/* =========================================================
   Boardwalk Law Firm — Coastal PEI Design System
   ========================================================= */
:root {
  --navy: #0C2D48;
  --navy-deep: #071E30;
  --teal: #1A6B78;
  --teal-light: #2A8A99;
  --sand: #EDE6DA;
  --sand-dark: #DDD4C4;
  --driftwood: #A67C52;
  --coral: #D4654A;
  --white: #FAFAF8;
  --ink: #1A2B3C;
  --muted: #5C6B7A;
  --line: #D5CEC2;
  --line-strong: #C4BAA8;
  --shadow-sm: 0 2px 8px rgba(12,45,72,.06);
  --shadow-md: 0 16px 40px -16px rgba(12,45,72,.22);
  --shadow-lg: 0 32px 64px -32px rgba(12,45,72,.35);
  --radius: 4px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --container: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.hero__title, .section__title,
.brand__name, .pcard h3, .member__body h3,
.step h3, .stat__num, .rcase__num,
.post__body h3, .hero__chip strong,
.hero__stats strong, .about__media-name,
.acc__index, .step__num {
  font-family: var(--font-heading);
  font-weight: 700;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* Typography */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--teal);
  border-left: 3px solid var(--driftwood);
  padding-left: 12px;
}
.eyebrow--light { color: rgba(255,255,255,.75); border-color: var(--driftwood); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,107,120,.1); color: var(--teal);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: 8px 14px; border-radius: var(--radius-pill);
}
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--driftwood); }

.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section__head { max-width: 640px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; text-align: left; max-width: none; }
.section__head--row .section__intro { max-width: 300px; margin: 0; }

.section__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  line-height: 1.18; letter-spacing: -.015em;
  margin: 12px 0 0; color: var(--navy);
  text-wrap: balance;
}
.section__title em { font-style: italic; color: var(--teal); }
.section__title--light { color: #fff; }
.section__intro { color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.05rem); margin: 14px auto 0; max-width: 520px; line-height: 1.65; }
.section__intro--light { color: rgba(255,255,255,.72); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--sand); border-color: var(--teal); transform: translateY(-2px); }
.btn--outline svg { transition: transform .25s var(--ease); }
.btn--outline:hover svg { transform: translateX(4px); }
.btn--accent { background: var(--driftwood); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent:hover { background: #8f6842; transform: translateY(-2px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none !important; }

/* Topbar */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.8); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--driftwood); }
.topbar__divider { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.topbar__spacer { flex: 1; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--navy); color: var(--driftwood);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.15rem; color: var(--navy); letter-spacing: -.01em; }
.brand__sub { font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-top: 3px; font-weight: 600; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--driftwood); }
.brand--light .brand__mark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; padding: 8px 14px; font-size: .9rem; font-weight: 500; color: var(--muted);
  border-radius: var(--radius); transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 2px solid var(--line); background: var(--white);
  border-radius: var(--radius); padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero — split layout */
.hero {
  background: linear-gradient(135deg, var(--sand) 0%, var(--white) 55%, rgba(26,107,120,.06) 100%);
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.hero__wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath d='M0 30 Q360 60 720 30 T1440 30 V60 H0Z' fill='%23FAFAF8'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  min-width: 0;
}
.hero__grid > * { min-width: 0; }
.hero__title {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.14; letter-spacing: -.02em;
  margin: 18px 0 0; color: var(--navy);
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--teal); }
.hero__lede { color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.08rem); line-height: 1.65; margin: 18px 0 0; max-width: 100%; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats {
  display: flex; gap: 32px; margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stats strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--teal); line-height: 1; }
.hero__stats span { font-size: .82rem; color: var(--muted); margin-top: 4px; display: block; }

.hero__visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(12,45,72,.88); backdrop-filter: blur(8px); color: #fff;
  padding: 14px 18px; border-radius: var(--radius); border-left: 3px solid var(--driftwood);
  display: flex; flex-direction: column; line-height: 1.3;
}
.hero__chip span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--driftwood); }
.hero__chip strong { font-family: var(--font-heading); font-size: 1.1rem; margin-top: 2px; }
.hero__chip small { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 2px; }

.trust { margin-top: clamp(48px, 6vw, 72px); text-align: center; position: relative; z-index: 1; }
.trust__label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.trust__logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px;
  color: var(--navy); font-weight: 600; font-size: .92rem; opacity: .7;
}
.trust__logos span:nth-child(even) { color: var(--line-strong); }

/* About */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; min-width: 0; }
.about__grid > * { min-width: 0; }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media-tag {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(transparent, rgba(12,45,72,.85));
  color: #fff; padding: 40px 20px 18px;
}
.about__media-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; display: block; }
.about__media-role { font-size: .82rem; color: var(--driftwood); }

.about__content .section__title { margin-top: 10px; }
.about__mission { margin-top: 24px; padding-left: 18px; border-left: 3px solid var(--teal); }
.about__mission h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; font-weight: 700; }
.about__mission p { color: var(--muted); margin: 0 0 12px; }

.about__points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.about__points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: .95rem; }
.about__points svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat__num { display: block; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.8rem,3vw,2.4rem); color: var(--teal); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--muted); margin-top: 6px; display: block; }

/* Practice */
.practice { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border-top: 3px solid transparent;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--teal); }
.pcard__icon {
  width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(26,107,120,.1); color: var(--teal);
}
.pcard__icon svg { width: 24px; height: 24px; }
.pcard h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; margin: 18px 0 8px; color: var(--navy); }
.pcard p { color: var(--muted); margin: 0 0 16px; font-size: .93rem; }
.pcard__link { font-weight: 600; font-size: .88rem; color: var(--teal); }
.pcard__link span { transition: transform .25s var(--ease); display: inline-block; }
.pcard:hover .pcard__link span { transform: translateX(4px); }

/* Why */
.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(40px,5vw,72px); align-items: center; min-width: 0; }
.why__grid > * { min-width: 0; }
.why__content .section__title { margin-top: 10px; }
.why__content .section__intro { margin: 14px 0 0; }

.accordion { margin-top: 28px; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; align-items: center; gap: 16px; padding: 20px 4px; font-family: inherit; color: var(--navy);
}
.acc__index { font-family: var(--font-heading); font-weight: 700; color: var(--driftwood); font-size: 1rem; min-width: 26px; }
.acc__title { flex: 1; font-weight: 600; font-size: 1.02rem; }
.acc__icon { position: relative; width: 18px; height: 18px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: var(--navy); border-radius: 1px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.acc__icon::before { left: 0; right: 0; top: 8px; height: 2px; }
.acc__icon::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.acc__item.is-open .acc__icon::after { transform: scaleY(0); opacity: 0; }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc__panel p { margin: 0 0 20px; padding-left: 42px; color: var(--muted); font-size: .95rem; }
.accordion--plain .acc__panel p { padding-left: 4px; }

.why__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.2; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__quote {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(12,45,72,.85); backdrop-filter: blur(6px); color: #fff;
  padding: 18px 20px; border-radius: var(--radius); border-left: 3px solid var(--driftwood);
}
.why__quote p { font-family: var(--font-heading); font-style: italic; font-size: 1.02rem; margin: 0 0 6px; }
.why__quote span { font-size: .8rem; color: rgba(255,255,255,.65); }

/* Team */
.attorneys { background: var(--sand); }
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.member__photo { aspect-ratio: 3/3.5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-dark); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { padding: 16px 2px 0; }
.member__body h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; margin: 0; color: var(--navy); }
.member__role { color: var(--teal); font-size: .85rem; font-weight: 600; }

/* Process */
.process { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step {
  padding: 28px; background: var(--sand); border-radius: var(--radius-lg);
  border-bottom: 3px solid var(--teal); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--driftwood); }
.step h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.12rem; margin: 12px 0 6px; color: var(--navy); }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Results */
.results { background: var(--navy); color: #fff; }
.results__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 48px; }
.rcase { padding: 28px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); text-align: center; background: rgba(255,255,255,.04); }
.rcase__num { display: block; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.8rem,3.5vw,2.6rem); color: var(--driftwood); }
.rcase__label { display: block; margin-top: 6px; color: rgba(255,255,255,.65); font-size: .88rem; }

.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote { padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: rgba(255,255,255,.04); }
.quote__stars { color: var(--driftwood); letter-spacing: 2px; font-size: .9rem; }
.quote p { font-family: var(--font-heading); font-style: italic; font-size: 1.05rem; line-height: 1.5; margin: 12px 0 18px; color: rgba(255,255,255,.9); }
.quote__by { display: flex; align-items: center; gap: 10px; }
.quote__by img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote__by span { display: flex; flex-direction: column; line-height: 1.3; }
.quote__by strong { font-size: .9rem; }
.quote__by small { color: rgba(255,255,255,.5); font-size: .78rem; }

/* Articles */
.articles { background: var(--white); }
.articles__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius); }
.post__body { padding: 20px 22px 24px; }
.post__date { font-size: .78rem; color: var(--muted); }
.post__body h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.18rem; line-height: 1.25; margin: 6px 0 8px; }
.post:hover .post__body h3 a { color: var(--teal); }

/* FAQ */
.faq { background: var(--sand); }
.faq__grid { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(40px,5vw,72px); align-items: start; }
.faq__intro .section__title { margin-top: 10px; }
.faq__intro .section__intro { margin: 14px 0 24px; }

/* Contact */
.contact { background: var(--white); }
.contact__card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,56px);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(32px,4vw,56px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  min-width: 0;
}
.contact__card > * { min-width: 0; }
.contact__card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(26,107,120,.25), transparent 60%);
  pointer-events: none;
}
.contact__info, .contact__form { position: relative; z-index: 1; }
.contact__info .section__title { margin-top: 10px; }
.contact__lede { color: rgba(255,255,255,.72); margin: 14px 0 24px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__ic { width: 40px; height: 40px; border-radius: var(--radius); flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.contact__ic svg { width: 18px; height: 18px; fill: var(--driftwood); }
.contact__list small { display: block; font-size: .74rem; color: rgba(255,255,255,.5); letter-spacing: .04em; text-transform: uppercase; }
.contact__list a, .contact__list address, .contact__hours { font-size: .98rem; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--driftwood); }

.contact__form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px,3vw,32px); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .94rem; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,107,120,.15); }
.field input.invalid, .field textarea.invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(212,101,74,.12); }
.form__note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form__note.success { color: #1e7e44; font-weight: 600; }
.form__note.error { color: var(--coral); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding-top: clamp(56px,7vw,80px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer__brand p { margin: 16px 0 0; max-width: 280px; font-size: .92rem; }
.footer__col h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.footer__col a, .footer__contact address { display: block; font-style: normal; color: rgba(255,255,255,.65); margin-bottom: 10px; font-size: .92rem; overflow-wrap: anywhere; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--driftwood); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__bottom p { margin: 0; }
.footer__legal { color: rgba(255,255,255,.4); }

/* Back to top */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: var(--radius); border: none;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  box-shadow: var(--shadow-md);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--teal-light); }
.totop svg { width: 20px; height: 20px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(5px); transition: opacity .75s var(--ease), transform .8s var(--ease), filter .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* Motion layer */
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shimmerText { to { background-position: 200% center; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(166,124,82,.2); } 50% { box-shadow: 0 0 0 6px rgba(166,124,82,.05); } }

html.js .hero__title, html.js .section__title { opacity: 0; }
html.js .hero__title.is-split, html.js .section__title.is-split { opacity: 1; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--driftwood));
}

.hero__content .tag { animation: heroIn .7s .05s both var(--ease); }
.hero__lede { animation: heroIn .75s .3s both var(--ease); }
.hero__cta { animation: heroIn .75s .45s both var(--ease); }
.hero__stats { animation: heroIn .75s .55s both var(--ease); }
.hero__visual img { animation: kenburns 16s ease-in-out infinite alternate; }
.tag__dot { animation: dotPulse 2.8s ease-in-out infinite; }

.hero__title em, .section__title em {
  color: var(--teal);
  font-style: italic;
}

.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.word__inner { display: inline-block; transform: translateY(110%); transition: transform .85s var(--ease); }
.is-inview .word__inner { transform: none; }

[data-tilt] { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
[data-tilt].is-tilting { transition: transform .1s linear, box-shadow .4s var(--ease); }
[data-magnetic] { will-change: transform; }

.btn--primary::after, .btn--accent::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: translateX(-130%) skewX(-18deg); pointer-events: none;
}
.btn--primary, .btn--accent { position: relative; overflow: hidden; }

.trust__logos.is-marquee { display: block; overflow: hidden; opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 32s linear infinite; }
.trust__group { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; }
.trust__logos.is-marquee:hover .trust__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero__visual img, .tag__dot, .trust__track,
  .hero__content .tag, .hero__lede, .hero__cta, .hero__stats { animation: none !important; }
  .word__inner { transform: none !important; transition: none !important; }
  html.js .hero__title, html.js .section__title { opacity: 1 !important; }
  [data-tilt] { transform: none !important; }
  .scroll-progress { display: none; }
}

/* Responsive — small laptops, tablets, mobile */
@media (max-width: 1280px) {
  .nav__link { padding: 8px 10px; font-size: .84rem; }
  .btn--sm { padding: 9px 16px; font-size: .82rem; }
  .header__inner { gap: 14px; min-height: 68px; }
  .hero__grid { gap: clamp(24px, 4vw, 40px); }
  .cards { gap: 16px; }
  .pcard { padding: 24px; }
  .section { padding: clamp(52px, 7vw, 90px) 0; }
}

@media (max-width: 1080px) {
  .hero__grid, .about__grid, .why__grid, .faq__grid, .contact__card { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .about__media, .why__media { max-width: 500px; margin-inline: auto; width: 100%; }
  .section__head--row { display: grid; gap: 12px; text-align: center; }
  .section__head--row .section__intro { max-width: none; margin-inline: auto; }
  .cards, .articles__grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .team, .steps, .results__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .why__grid { gap: 40px; }
  .about__grid { gap: 40px; }
  .contact__card { gap: 28px; }
}

@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 10px clamp(16px, 4vw, 24px) 20px;
    transform: translateY(-120%); transition: transform .4s var(--ease); box-shadow: var(--shadow-md);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.is-open { display: flex; transform: translateY(0); }
  .nav__link { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .topbar__item--hide-sm { display: none; }
  .faq__grid { gap: 32px; }
}

@media (max-width: 640px) {
  .cards, .articles__grid, .testimonials, .team, .steps, .results__grid, .stats, .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; white-space: normal; }
  .hero__stats { flex-direction: column; gap: 14px; align-items: center; text-align: center; }
  .hero__title { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
  .section__title { font-size: clamp(1.5rem, 6.5vw, 1.95rem); }
  .tag { flex-wrap: wrap; justify-content: center; text-align: center; max-width: 100%; }
  #contactForm .btn { width: 100%; }
  .topbar { font-size: .72rem; }
  .topbar__inner { gap: 8px; }
  .hero__chip { left: 12px; right: 12px; bottom: 12px; }
  .hero__visual { aspect-ratio: 4 / 3.2; }
  .contact__card { padding: clamp(24px, 5vw, 32px); }
  .contact__form { padding: 20px; }
  .section__head { margin-bottom: 28px; }
  .trust__logos { font-size: .84rem; gap: 10px 14px; }
  .pcard h3 { font-size: 1.15rem; }
  .step { padding: 22px; }
  .quote p { font-size: 1rem; }
}

@media (max-width: 380px) {
  .container { padding-inline: 14px; }
  .hero__title { font-size: 1.55rem; }
  .section__title { font-size: 1.4rem; }
  .btn { padding: 12px 20px; font-size: .88rem; }
  .brand__name { font-size: 1.05rem; }
  .header__inner { min-height: 62px; }
}
