/* Ring Ring Digital — site styles
   Layout: white page, generous margins, one forest band for the closing call to action.
   Red is for actions only. Teal is a small accent. Forest is the ink. */

:root {
  --red: #e3000f;
  --red-deep: #b8000c;
  --forest: #123832;
  --forest-2: #1d4a43;
  --teal: #5fbfbf;
  --teal-soft: #dff1f0;
  --ice: #f2f8f7;
  --paper: #ffffff;
  --ink: #123832;
  --body: #34504b;
  --muted: #5f7773;
  --line: #dbe7e5;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 56, 50, .06), 0 12px 32px -12px rgba(18, 56, 50, .18);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) {
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- type scale ---------- */
.eyebrow {
  font: 600 13px/1.3 var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; font-weight: 700; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.6; color: var(--body); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 10px; border: 2px solid transparent;
  font: 600 16px/1 var(--text);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--teal-soft); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--red); text-decoration: none;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.textlink svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font: 700 21px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.brand-name span { color: var(--red); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 8px 12px; border-radius: 8px;
  font-weight: 500; font-size: 16px; color: var(--body); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--ice); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--red); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .site-header .wrap { gap: 12px; min-height: 66px; }
  .mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-nav:not([hidden]) { display: block; }
  .mobile-nav .wrap { display: grid; gap: 2px; padding-block: 10px 18px; min-height: 0; }
  .mobile-nav a {
    padding: 12px 4px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a:last-child { border-bottom: 0; color: var(--red); }
}
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions .btn-sm { padding: 0 14px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-ice { background: var(--ice); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy .h1 span { color: var(--red); }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; min-width: 0; }
.rings { position: absolute; inset: 50% auto auto 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); pointer-events: none; }
.rings circle { fill: none; stroke: var(--teal); }
.phone {
  position: relative; width: min(330px, 100%);
  background: var(--forest); border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(18,56,50,.45), 0 2px 0 rgba(255,255,255,.06) inset;
}
.phone-screen { background: #fbfdfd; border-radius: 34px; overflow: hidden; }
.phone-top {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--line); background: #fff;
}
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal-soft);
  display: grid; place-items: center; font: 700 14px/1 var(--display); color: var(--forest); flex: none;
}
.phone-who { display: grid; gap: 2px; min-width: 0; }
.phone-who b { font: 600 15px/1.2 var(--text); color: var(--ink); }
.phone-who span { font-size: 12px; color: var(--muted); }
.thread { display: grid; gap: 8px; padding: 16px 14px 22px; }
.sys {
  justify-self: center; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--red); background: #fdecee; padding: 5px 10px; border-radius: 99px; font-weight: 600;
}
.sys svg { width: 13px; height: 13px; }
.stamp { justify-self: center; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bubble { max-width: 84%; padding: 10px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.bubble.out { justify-self: end; background: var(--forest); color: #fff; border-bottom-right-radius: 6px; }
.bubble.in { justify-self: start; background: #e9efee; color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.auto { position: relative; }
.bubble-tag { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 3px; }
.phone-caption { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); max-width: 300px; }

@media (prefers-reduced-motion: no-preference) {
  .thread > * { animation: pop .45s ease both; }
  .thread > *:nth-child(2) { animation-delay: .25s; }
  .thread > *:nth-child(3) { animation-delay: .9s; }
  .thread > *:nth-child(4) { animation-delay: 1.6s; }
  .thread > *:nth-child(5) { animation-delay: 2.3s; }
  .thread > *:nth-child(6) { animation-delay: 2.9s; }
  @keyframes pop { from { transform: translateY(6px) scale(.98); opacity: .001; } to { transform: none; opacity: 1; } }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .rings { width: 440px; height: 440px; }
}

/* ---------- services list ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head { display: grid; gap: 16px; position: sticky; top: 110px; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.svc-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); color: var(--forest);
  display: grid; place-items: center;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-body { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
}

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 10px; align-content: start;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font: 700 16px/1 var(--display); margin-bottom: 8px;
}
.step .textlink { margin-top: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- promises ---------- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.promise { display: grid; gap: 8px; align-content: start; }
.promise-icon { color: var(--red); margin-bottom: 4px; }
.promise-icon svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- work cards ---------- */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.work-head .section-head { margin-bottom: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.work-shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--ice); max-width: 100%;
  box-shadow: var(--shadow);
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.work-card:hover .work-shot img { transform: scale(1.02); }
.work-meta { display: grid; gap: 4px; }
.tag {
  justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--forest); background: var(--teal-soft); padding: 4px 9px; border-radius: 99px;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- area + closing band ---------- */
.closing { background: var(--forest); color: #d6e6e3; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.closing h2 { color: #fff; }
.closing .lead { color: #c4dbd7; }
.closing-copy { display: grid; gap: 20px; min-width: 0; }
.area { border-left: 1px solid rgba(255,255,255,.16); padding-left: clamp(24px, 4vw, 56px); display: grid; gap: 16px; min-width: 0; }
.area .eyebrow { color: var(--teal); }
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.cities li { font-size: 15px; color: #e4efed; }
@media (max-width: 860px) {
  .closing .wrap { grid-template-columns: 1fr; }
  .area { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 32px; }
}
@media (max-width: 420px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- footer ---------- */
.site-footer { background: #0d2a26; color: #a9c2be; font-size: 15px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 40px; }
.footer-main h3 { font: 600 13px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-main a { text-decoration: none; color: #d6e6e3; }
.footer-main a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .brand-name { color: #fff; }
.footer-brand address { font-style: normal; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: #d6e6e3; }
@media (max-width: 860px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-main { grid-template-columns: 1fr; } }
