/* =====================================================
   PERIO HOUSE — Editorial design system
   Palette · Dark blue (#195783), Light blue (#0fc0df), White, Grey
   ===================================================== */

:root {
  --c-blue:        #195783;  /* brand dark blue */
  --c-blue-deep:   #0d3f6a;  /* deeper shade for hover / depth */
  --c-blue-ink:    #0d3f6a;  /* dark section backgrounds (team, footer, cards) */
  --c-cyan:        #0fc0df;  /* brand light blue */
  --c-cyan-soft:   #d4f1f8;  /* pale cyan wash */
  --c-cream:       #f4f8fb;  /* page background — cool off-white */
  --c-cream-warm:  #e8f0f8;  /* slightly stronger blue-grey bg */
  --c-white:       #ffffff;
  --c-grey-100:    #dde6ef;  /* borders, dividers — cool grey */
  --c-grey-300:    #a8bccf;  /* mid grey */
  --c-grey-500:    #6e8090;  /* muted grey */
  --c-charcoal:    #1a2d3d;  /* nav text */
  --c-text:        #243447;  /* body text — dark blue-grey */

  --ff: 'Jost', sans-serif;
  --easing: cubic-bezier(.2,.8,.2,1);

  --pad-x: clamp(20px, 5vw, 96px);
  --gut: clamp(24px, 4vw, 64px);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }

/* The header is position:sticky, so an un-offset anchor jump parks the target
   underneath it. Keep this >= the tallest header state. */
:target, [id] { scroll-margin-top: 120px; }

/* Emails and addresses are the long unbroken strings here; let them break
   rather than overflow their card on a 320px screen. */
.cta__card-val,
.contact-detail__value,
.sidebar-contact-item__value,
.footer__col a { overflow-wrap: anywhere; }
body {
  font-family: var(--ff);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-cream);
  overflow-x: hidden;
}

img { display:block; max-width:100%; height:auto; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
em { font-style: italic; font-weight: 300; }

/* Keyboard focus. Mouse users never see this; keyboard users always do. */
:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Label text that is announced but not painted. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Locks background scroll while the mobile menu is open. */
body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =====================================================
   COMMON COMPONENTS
   ===================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid transparent;
  transition: all .35s var(--easing);
  position: relative;
  white-space: nowrap;
}
.btn--lg { padding: 18px 32px; font-size: 15px; }
.btn--primary {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-cyan);
  color: var(--c-blue-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(15,192,223,.6);
}
.btn svg { transition: transform .35s var(--easing); }
.btn:hover svg { transform: translateX(4px); }

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-blue);
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap .35s var(--easing), color .35s var(--easing);
}
.link-arrow svg { transition: transform .35s var(--easing); }
.link-arrow:hover { gap: 22px; color: var(--c-cyan); }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow--light { color: var(--c-white); }

.dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-cyan);
  margin-right: 4px;
}


/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
  background: var(--c-blue-ink);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  letter-spacing: .06em;
  position: relative;
  z-index: 60;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__divider {
  width: 1px; height: 12px; background: rgba(255,255,255,.18);
}
.topbar__spacer { flex: 1; }
.topbar__link { transition: color .3s ease; }
.topbar__link:hover { color: var(--c-cyan); }


/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--easing), border-color .35s var(--easing), padding .35s var(--easing);
}
.nav.is-stuck {
  background: var(--c-white);
  border-bottom-color: rgba(25,87,131,.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gut);
  padding: 18px var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { height: 100px; width: auto; transition: height .35s var(--easing); }
.nav.is-stuck .nav__logo img { height: 85px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.nav__link {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--c-charcoal);
  padding: 8px 0;
  transition: color .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link:hover { color: var(--c-blue); }
.nav__link--active::after {
  content:'';
  position:absolute;
  left:0; bottom:-2px;
  width: 18px; height: 2px;
  background: var(--c-cyan);
}

.nav__dropdown { position: relative; }
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown:hover .nav__link--has-children svg { transform: rotate(180deg); }
.nav__link--has-children svg { transition: transform .3s ease; }

.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--c-white);
  border-radius: 16px;
  padding: 22px 14px 14px;
  width: 320px;
  box-shadow: 0 24px 60px -20px rgba(15,42,64,.25);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: all .35s var(--easing);
  z-index: 100;
}
.nav__menu::before {
  content:'';
  position:absolute;
  top:10px; left:50%;
  transform: translateX(-50%) rotate(45deg);
  width:12px; height:12px;
  background: var(--c-white);
}
.nav__menu-item {
  display: block;
  padding: 14px;
  border-radius: 10px;
  transition: background .25s ease;
}
.nav__menu-item:hover { background: var(--c-cream); }
.nav__menu-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue-ink);
}

.nav__cta { flex-shrink: 0; }
.nav__toggle { display:none; }

/* Tap-to-call, mobile only (the topbar that carries the number is hidden there). */
.nav__call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--c-blue);
  background: rgba(25,87,131,.08);
  transition: background .3s ease, color .3s ease;
}
.nav__call:hover { background: var(--c-blue); color: var(--c-white); }
.nav__call svg { width: 19px; height: 19px; }

/* "Book Now" pinned to the bottom of the open mobile menu. */
.nav__links .nav__cta-mobile { display: none; }


/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh; /* mobile toolbars: svh doesn't jump on scroll */
  padding: 0 var(--pad-x);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 14s var(--easing) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
}

.hero__content {
  max-width: 920px;
  padding: 80px 0 110px;
  color: var(--c-white);
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(46px, 7.4vw, 110px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-white);
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line em { font-weight: 200; color: var(--c-cyan); }
.hero__title-strong { font-weight: 700; font-style: normal; }

.hero__lede {
  margin-top: 32px;
  max-width: 560px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  font-weight: 300;
}

.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content:'';
  position:absolute;
  top: -40px; left:0;
  width: 1px; height: 40px;
  background: var(--c-cyan);
  animation: scrollLine 2.4s var(--easing) infinite;
}
@keyframes scrollLine { to { top: 40px; } }


/* =====================================================
   STATEMENT — Where Your Smile Feels At Home
   (asymmetric split: text + offset image)
   ===================================================== */
.statement {
  background: var(--c-cream);
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
  position: relative;
}
.statement__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}
/* Must match the breakpoint that hides .statement__col-img, or the empty
   image track leaves ~45% of the section blank. */
@media (max-width: 980px) { .statement__grid { grid-template-columns: 1fr; } }

.statement__title {
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-blue-ink);
  margin-bottom: 48px;
}
.statement__title .ital {
  font-style: italic;
  font-weight: 200;
  color: var(--c-blue);
}
.statement__more { margin-top: 40px; }
.statement__copy { max-width: 620px; display: flex; flex-direction: column; gap: 22px; }
.statement__copy p { font-size: 16px; color: var(--c-text); }

.statement__col-img {
  position: relative;
  height: 560px;
}
.statement__media {
  position: absolute;
  inset: 0 0 60px 60px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-cyan) 100%);
  box-shadow: 0 30px 60px -30px rgba(15,42,64,.35);
}
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement__media::after {
  content:'';
  position: absolute;
  bottom: -20px; left: -40px;
  width: 120px; height: 120px;
  background: var(--c-cyan);
  border-radius: 50%;
  z-index: -1;
  opacity: .25;
}


/* =====================================================
   TEAM
   ===================================================== */
.team {
  background: var(--c-blue-ink);
  color: var(--c-white);
  padding: clamp(100px, 12vw, 180px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.team::before {
  content:'';
  position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(15,192,223,.15), transparent 70%);
  pointer-events: none;
}
.team__head {
  max-width: 720px;
  margin: 0 auto clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
  z-index: 2;
}
.team__title {
  font-size: clamp(40px, 5.8vw, 84px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-white);
}
.team__title em { color: var(--c-cyan); font-weight: 200; }

.team__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.member {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.member--secondary {
  grid-template-columns: 6fr 5fr;
  margin-left: clamp(0px, 6vw, 100px);
}
@media (max-width: 800px) {
  .member, .member--secondary { grid-template-columns: 1fr; margin-left: 0; }
}

.member__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: clamp(340px, 95vw, 520px);
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-cyan) 100%);
}
.member__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--easing);
}
.member:hover .member__media img { transform: scale(1.05); }
.member__media img.object-top { object-position: top center; }
.member__name {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin-bottom: 28px;
}
.member__name em { color: var(--c-cyan); font-weight: 200; }
.member__body p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  line-height: 1.7;
}

.team__more {
  display: flex;
  justify-content: center;
  margin: clamp(60px, 8vw, 100px) auto 0;
  color: var(--c-white) !important;
  border-color: rgba(255,255,255,.4) !important;
  position: relative;
  z-index: 2;
  width: max-content;
}


/* =====================================================
   SERVICES (asymmetric)
   ===================================================== */
.services {
  background: var(--c-cream);
  padding: clamp(100px, 12vw, 180px) var(--pad-x) clamp(80px, 10vw, 140px);
  position: relative;
}
.services__head {
  margin-bottom: clamp(60px, 8vw, 100px);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.services__title {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-blue-ink);
}
.services__title em { color: var(--c-blue); font-weight: 200; }

/* ----- Tab module (vertical tabs left, panel right) ----- */
.svc-module {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.svc-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  border-left: 1px solid rgba(25,87,131,.18);
  position: relative;
  z-index: 2;
  padding-top: 6px;
}
.svc-tab {
  position: relative;
  display: block;
  padding: 22px 22px 22px 26px;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--c-grey-500);
  transition: color .35s var(--easing), padding-left .35s var(--easing);
}
.svc-tab::before {
  content:'';
  position: absolute;
  left: -1px; top: 50%;
  width: 2px;
  height: 0;
  background: var(--c-cyan);
  transform: translateY(-50%);
  transition: height .45s var(--easing);
}
.svc-tab:hover { color: var(--c-blue-ink); padding-left: 32px; }
.svc-tab.is-active { color: var(--c-blue-ink); padding-left: 32px; }
.svc-tab.is-active::before { height: 60%; }
.svc-tab__name {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

/* ----- Panel ----- */
.svc-panels {
  position: relative;
  z-index: 2;
}
.svc-panel {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  animation: panelIn .55s var(--easing) both;
}
.svc-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.svc-panel__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: clamp(360px, 42vw, 560px);
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-cyan) 100%);
  box-shadow: 0 30px 60px -30px rgba(15,42,64,.35);
}
.svc-panel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: mediaIn .9s var(--easing) both;
}
@keyframes mediaIn {
  from { transform: scale(1.08); opacity: .6; }
  to { transform: scale(1); opacity: 1; }
}
.svc-panel__media-tag {
  position: absolute;
  top: 22px; left: 22px;
  background: rgba(12,42,64,.7);
  backdrop-filter: blur(10px);
  color: var(--c-white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}

.svc-panel__body { padding-right: clamp(0px, 4vw, 60px); }
.svc-panel__title {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-blue-ink);
  margin-bottom: 28px;
}
.svc-panel__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 36px;
  max-width: 520px;
}

.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-blue);
  width: max-content;
  transition: gap .35s var(--easing), color .35s var(--easing);
}
.svc__link svg { transition: transform .35s var(--easing); }
.svc__link:hover { gap: 20px; color: var(--c-cyan); }
.svc__link:hover svg { transform: translateX(6px); }

@media (max-width: 900px) {
  .svc-module { grid-template-columns: 1fr; gap: 32px; }
  /* The strip scrolls horizontally. The right-edge fade is the only cue that
     tabs 3 and 4 exist, since the scrollbar is suppressed. */
  .svc-tabs-scroll {
    position: relative;
  }
  .svc-tabs-scroll::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 1px;
    width: 48px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(244,248,251,0), var(--c-cream));
  }
  .svc-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid rgba(25,87,131,.18);
    padding: 0 56px 0 0;
    gap: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .svc-tab { scroll-snap-align: start; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab {
    padding: 14px 18px;
    flex-shrink: 0;
  }
  .svc-tab::before {
    left: 0; top: auto; bottom: -1px;
    width: 0; height: 2px;
    transform: none;
    transition: width .45s var(--easing);
  }
  .svc-tab.is-active::before { height: 2px; width: 100%; }
  .svc-tab:hover, .svc-tab.is-active { padding-left: 18px; }
  .svc-panel { grid-template-columns: 1fr; }
  /* Stacked layout: drop the desktop gutter or the copy sits off-centre
     against the full-bleed image above it. */
  .svc-panel__body { padding-right: 0; }
  .svc-module__bg-num { display: none; }
}


/* =====================================================
   CONTACT (CTA)
   ===================================================== */
.cta {
  position: relative;
  padding: clamp(100px, 12vw, 160px) var(--pad-x);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
}
.cta__inner {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 800px) { .cta__inner { grid-template-columns: 1fr; } }

.cta__title {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin-bottom: 36px;
}
.cta__title em { color: var(--c-cyan); font-weight: 200; }

.cta__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cta__card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background .35s var(--easing), transform .35s var(--easing), border-color .35s var(--easing);
}
.cta__card:hover {
  background: var(--c-white);
  color: var(--c-blue-ink);
  border-color: var(--c-white);
  transform: translateY(-4px);
}
.cta__card-lbl {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 500;
}
.cta__card:hover .cta__card-lbl { color: var(--c-blue); }
.cta__card-val { font-size: 17px; font-weight: 500; line-height: 1.4; }
.cta__card-arrow {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 18px;
  opacity: .5;
  transition: transform .35s var(--easing), opacity .35s var(--easing);
}
.cta__card:hover .cta__card-arrow { opacity: 1; transform: translate(4px, -4px); }
.cta__card--addr { grid-column: 1 / -1; }


/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--c-blue-ink);
  color: rgba(255,255,255,.75);
  padding: clamp(80px, 8vw, 120px) var(--pad-x) 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--gut);
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand img {
  height: 120px;
  width: auto;
  margin-bottom: 24px;
}
.footer__brand p {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.7;
}

.footer__col h5,
.footer__col-title {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 500;
  margin-bottom: 24px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.65);
  transition: color .3s ease, padding-left .3s ease;
  line-height: 1.6;
}
.footer__col a:hover { color: var(--c-cyan); padding-left: 4px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  max-width: 1500px;
  margin: 0 auto;
}


/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-wrapper {
  background: var(--c-cream);
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
}
.contact-layout {
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info__heading {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-blue-ink);
  line-height: 1.05;
  margin-bottom: 20px;
}
.contact-info__heading em { color: var(--c-blue); font-weight: 200; }
.contact-info__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 44px;
  font-weight: 300;
  max-width: 540px;
}
.contact-details {
  border-top: 1px solid var(--c-grey-100);
  margin-bottom: 48px;
}
.contact-detail {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-grey-100);
  align-items: baseline;
}
@media (max-width: 480px) { .contact-detail { grid-template-columns: 1fr; gap: 6px; } }
.contact-detail__label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 500;
  padding-top: 3px;
}
.contact-detail__value {
  font-size: 17px;
  color: var(--c-text);
  line-height: 1.6;
}
.contact-detail__value a { color: var(--c-blue); transition: color .3s ease; }
.contact-detail__value a:hover { color: var(--c-cyan); }
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  box-shadow: 0 20px 50px -15px rgba(15,42,64,.2);
}
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }

.contact-form-panel {
  background: var(--c-blue-ink);
  border-radius: 12px;
  padding: clamp(32px, 4vw, 52px);
  color: var(--c-white);
  box-shadow: 0 20px 50px -15px rgba(15,42,64,.35);
}
.contact-form-panel__title {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-white);
  line-height: 1.05;
  margin-bottom: 10px;
}
.contact-form-panel__sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-bottom: 32px;
  line-height: 1.6;
}
.contact-form-panel form { display: flex; flex-direction: column; gap: 14px; }
.contact-form-panel input,
.contact-form-panel textarea {
  font-family: var(--ff);
  /* Must stay >=16px: iOS Safari zooms the viewport on focus below that. */
  font-size: 16px;
  color: var(--c-white);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 15px 18px;
  width: 100%;
  transition: border-color .3s ease, background .3s ease;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form-panel input::placeholder,
.contact-form-panel textarea::placeholder { color: rgba(255,255,255,.38); }
.contact-form-panel input:focus,
.contact-form-panel textarea:focus { border-color: var(--c-cyan); background: rgba(255,255,255,.1); }
.contact-form-panel textarea { height: 150px; }
.contact-form-panel .btn { margin-top: 6px; width: 100%; justify-content: center; }


/* =====================================================
   PAGE HERO  (interior pages)
   ===================================================== */
.page-hero {
  background: var(--c-blue-ink);
  padding: clamp(80px, 10vw, 140px) var(--pad-x) clamp(60px, 8vw, 100px);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,192,223,.18), transparent 70%);
  pointer-events: none;
}
.page-hero__inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero__eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 500;
  margin-bottom: 20px;
}
.page-hero__title {
  font-size: clamp(48px, 7vw, 100px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-white);
}
.page-hero__title em { color: var(--c-cyan); font-weight: 200; }


/* =====================================================
   ABOUT BIO SECTIONS
   ===================================================== */
.about-bio {
  background: var(--c-blue-ink);
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  color: var(--c-white);
}
.about-bio--light {
  background: var(--c-cream);
  color: var(--c-text);
}
.about-bio__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}
.about-bio__grid--reverse { grid-template-columns: 6fr 5fr; }
@media (max-width: 800px) {
  .about-bio__grid,
  .about-bio__grid--reverse { grid-template-columns: 1fr; }
  .about-bio__grid--reverse .about-bio__body { order: -1; }
}
.about-bio__media {
  border-radius: 8px;
  overflow: hidden;
  height: clamp(480px, 55vw, 680px);
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-cyan) 100%);
  box-shadow: 0 30px 60px -30px rgba(15,42,64,.35);
}
.about-bio__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-bio__quals {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.8;
}
.about-bio--light .about-bio__quals { color: var(--c-blue); }
.about-bio__name {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin-bottom: 36px;
}
.about-bio__name em { color: var(--c-cyan); font-weight: 200; }
.about-bio--light .about-bio__name { color: var(--c-blue-ink); }
.about-bio--light .about-bio__name em { color: var(--c-blue); }
.about-bio__copy { display: flex; flex-direction: column; gap: 20px; }
.about-bio__copy p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
}
.about-bio--light .about-bio__copy p { color: var(--c-text); }


/* =====================================================
   SERVICE PAGES
   ===================================================== */
.service-wrapper {
  background: var(--c-cream);
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
}
.service-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: clamp(32px, 4vw, 64px);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 1024px) {
  .service-layout { grid-template-columns: 1fr; }
}
.service-content__title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-blue-ink);
  line-height: 1.02;
  margin-bottom: 36px;
}
.service-content__hero {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  height: clamp(280px, 32vw, 480px);
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-cyan) 100%);
  margin-bottom: 48px;
  box-shadow: 0 24px 60px -18px rgba(15,42,64,.32);
}
.service-content__hero img { width: 100%; height: 100%; object-fit: cover; }
.service-content__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 40px;
  font-weight: 300;
}
.service-article h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--c-blue-ink);
  margin: 44px 0 14px;
  line-height: 1.15;
}
.service-article p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 16px;
}
.service-article ul {
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-article ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  padding-left: 22px;
  position: relative;
}
.service-article ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
}
.service-article a {
  color: var(--c-blue);
  border-bottom: 1px solid rgba(25,87,131,.3);
  transition: color .3s ease, border-color .3s ease;
}
.service-article a:hover { color: var(--c-cyan); border-color: var(--c-cyan); }

/* Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form card */
.sidebar-form-card {
  background: var(--c-blue-ink);
  border-radius: 12px;
  padding: 36px;
  color: var(--c-white);
  box-shadow: 0 20px 50px -15px rgba(15,42,64,.35);
}
.sidebar-form-card__title {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin-bottom: 24px;
  line-height: 1.2;
}
.sidebar-form-card form { display: flex; flex-direction: column; gap: 12px; }
.sidebar-form-card input,
.sidebar-form-card textarea {
  font-family: var(--ff);
  font-size: 16px;
  color: var(--c-white);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color .3s ease, background .3s ease;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.sidebar-form-card input::placeholder,
.sidebar-form-card textarea::placeholder { color: rgba(255,255,255,.38); }
.sidebar-form-card input:focus,
.sidebar-form-card textarea:focus { border-color: var(--c-cyan); background: rgba(255,255,255,.1); }
.sidebar-form-card textarea { height: 120px; }
.sidebar-form-card .btn { margin-top: 4px; width: 100%; justify-content: center; }

/* Contact info card */
.sidebar-contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-100);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 16px 40px -12px rgba(15,42,64,.15);
}
.sidebar-contact-card__logo { height: 64px; width: auto; margin-bottom: 20px; }
.sidebar-contact-card__title {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-blue-ink);
  margin-bottom: 20px;
  line-height: 1.2;
}
.sidebar-contact-item { margin-bottom: 18px; }
.sidebar-contact-item:last-child { margin-bottom: 0; }
.sidebar-contact-item__label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}
.sidebar-contact-item__value { font-size: 16px; color: var(--c-text); line-height: 1.6; }
.sidebar-contact-item__value a { color: var(--c-blue); transition: color .3s ease; }
.sidebar-contact-item__value a:hover { color: var(--c-cyan); }


/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--easing), transform .9s var(--easing);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .topbar { display: none; }
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  .nav__logo img,
  .nav.is-stuck .nav__logo img { height: 64px; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    /* 44x44 minimum touch target */
    padding: 12px 10px;
  }
  .nav__toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--c-blue-ink);
  }
  /* The topbar (phone + email) is hidden here, so the header keeps a
     tap-to-call target and "Book Now" moves into the open menu.
     margin-left:auto groups call + hamburger on the right, since
     .nav__links and .nav__cta are display:none and space-between would
     otherwise strand the call button mid-header. */
  .nav__call { display: inline-flex; margin-left: auto; }
  .nav__cta { display: none; }
  .nav__links .nav__cta-mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }
  /* Open menu must scroll — 4 links plus an expanded submenu overflow a
     landscape phone. 100px is the mobile header height (64px logo + padding). */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px var(--pad-x);
    background: var(--c-white);
    border-bottom: 1px solid rgba(25,87,131,.1);
    box-shadow: 0 24px 40px -24px rgba(15,42,64,.35);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .statement__col-img { display: none; }
  .nav__dropdown { width: 100%; }
  .nav__dropdown:hover .nav__menu,
  .nav__dropdown:focus-within .nav__menu {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
  }
  .nav__link--has-children {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav__dropdown .nav__menu.is-open {
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    box-shadow: none;
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    padding: 8px 4px;
    background: rgba(25,87,131,.06);
  }
  .nav__dropdown .nav__menu.is-open::before { display: none; }
  .nav__dropdown .nav__menu.is-open .nav__menu-item { width: 100%; }
  .nav__link--has-children.is-open svg { transform: rotate(180deg); }
}

@media (max-width: 600px) {
  .hero__content { padding: 60px 0 90px; }
  .hero__title { font-size: 44px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__cards { grid-template-columns: 1fr; }
}

/* ============ FOOTER: agency credit + legal links ============ */
.avily-credit {
  margin: 0;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.avily-credit .avily-link,
.footer__legal a {
  color: inherit;
  text-decoration: none;
}
.avily-credit .avily-link:hover,
.footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.avily-logo-link { display: inline-block; vertical-align: middle; }
.avily-credit img {
  /* The global `img { display: block }` would push the logo onto its own line. */
  display: inline-block;
  height: 1.35em;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* The inputs null their outline, which out-specifies the global :focus-visible
   rule. Re-assert it here so keyboard users keep a visible ring. */
.contact-form-panel input:focus-visible,
.contact-form-panel textarea:focus-visible,
.sidebar-form-card input:focus-visible,
.sidebar-form-card textarea:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
}


/* =====================================================
   404 — Page not found
   ===================================================== */
.notfound {
  background: var(--c-cream);
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
}
.notfound__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.notfound__inner p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  font-weight: 300;
  color: var(--c-text);
}
.notfound__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 480px) {
  .notfound__actions { flex-direction: column; }
  .notfound__actions .btn { width: 100%; justify-content: center; }
}
