/* Aurelia Dental — navy clinic template */

:root {
  --pine: #071a45;
  --pine-deep: #04112e;
  --pine-mid: #163a7a;
  --sage: #7a97c9;
  --mist: #e8eef8;
  --cream: #f4f7fc;
  --cream-2: #e6eef8;
  --parchment: #ffffff;
  --terracotta: #4a90e2;
  --terracotta-dark: #3578c9;
  --accent: #4a90e2;
  --accent-dark: #3578c9;
  --ink: #12203a;
  --muted: #5a6a80;
  --line: rgba(7, 26, 69, 0.1);
  --white: #ffffff;
  --gold: #ffc107;
  --shadow: 0 18px 50px rgba(7, 26, 69, 0.12);
  --radius: 18px;
  --header-h: 5.6rem;
  --font: var(--font-outfit), "Outfit", system-ui, sans-serif;
  --serif: var(--font-outfit), "Outfit", system-ui, sans-serif;
  /* header logo */
  --logo-width: 220px;
  --logo-footer-width: 220px;
  /* misc */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 .6em;
  color: var(--pine);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.container-wide {
  width: min(1320px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}
.eyebrow.light { color: var(--parchment); }

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.icon {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
.icon svg { width: 100%; height: 100%; }
.icon-tiny { width: .85em; height: .85em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.35rem;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: .01em;
  transition: .25s ease;
  cursor: pointer;
  background: var(--pine);
  color: var(--white);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1em; height: 1em; }
.btn-terracotta, .btn-accent { background: var(--accent); color: #fff; }
.btn-terracotta:hover, .btn-accent:hover { background: var(--accent-dark); }
.btn-cream { background: #fff; color: var(--pine); }
.btn-outline {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-outline:hover { background: var(--pine); color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: .95rem 1.85rem;
  border-radius: 5px;
}
.btn-ghost:hover { background: #fff; color: var(--pine); }

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
}
.site-header.is-scrolled {
  position: fixed;
  background: rgba(8, 20, 52, .92);
  backdrop-filter: blur(14px);
}
.nav-bar .container {
  width: min(1240px, calc(100% - 3.5rem));
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 5.6rem;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.site-header .logo img {
  width: auto;
  height: 52px;
  max-width: var(--logo-width);
  display: block;
  object-fit: contain;
}
.site-footer .logo img {
  width: auto;
  height: 64px;
  max-width: var(--logo-footer-width);
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .45rem .7rem;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  background: none;
  border-radius: 0;
}
.nav > .nav-item > a.is-active,
.nav > .nav-item > a:hover { background: none; color: #fff; opacity: .78; }
.nav .icon-caret {
  width: .62rem;
  height: .62rem;
  opacity: .9;
}
.subnav {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  min-width: 13.5rem;
  background: #fff;
  border: 0;
  border-radius: 8px;
  padding: .45rem;
  box-shadow: 0 16px 40px rgba(8, 20, 52, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.35rem);
  transition: .2s ease;
}
.nav-item:hover .subnav,
.nav-item:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.subnav a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 6px;
  font-size: .88rem;
  color: #1b2b4b;
}
.subnav a:hover, .subnav a.is-active { background: #eef4fc; color: #1b2b4b; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn-accent {
  border-radius: 5px;
  padding: .72rem 1.15rem;
  font-size: .9rem;
  box-shadow: none;
}
.menu-toggle {
  display: grid;
  border: 0;
  background: transparent;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0;
  place-items: center;
  color: #fff;
  padding: 0;
  cursor: pointer;
}
.menu-toggle .icon { width: 1.45rem; height: 1.45rem; }

.extra-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 36, .55);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}
.extra-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.extra-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  z-index: 95;
  background: linear-gradient(180deg, #0b1d4a 0%, #071433 100%);
  color: #fff;
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(0, 0, 0, .25);
}
.extra-panel.is-open { transform: translateX(0); }
.extra-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.extra-panel-head .logo img { height: 48px; width: auto; }
.extra-panel-close {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.extra-panel-close .icon { width: 1.35rem; height: 1.35rem; }
.extra-panel-body {
  overflow: auto;
  padding: 1.4rem 1.6rem 5rem;
}
.extra-panel-nav {
  display: none;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.extra-panel-nav a {
  color: #c5d4ea;
  padding: .45rem 0;
  font-weight: 500;
}
.extra-panel-nav a:hover { color: #fff; }
.extra-block {
  padding: 1.15rem 0 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.extra-block h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.extra-block p {
  color: #9eb0c9;
  margin: 0 0 1rem;
}
.extra-services { display: grid; gap: .55rem; }
.extra-services a {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #9eb0c9;
  font-size: .98rem;
}
.extra-services a:hover { color: #fff; }
.extra-services .icon { color: #6eb3ff; width: 1.05rem; height: 1.05rem; }
.extra-contact { display: grid; gap: .7rem; }
.extra-contact li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #9eb0c9;
  font-size: .95rem;
}
.extra-contact .icon { color: #6eb3ff; width: 1.1rem; height: 1.1rem; margin-top: .12rem; }
.extra-contact a { color: #9eb0c9; }
.extra-contact a:hover { color: #fff; }
.extra-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #6eb3ff;
  font-weight: 600;
}
.to-top {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.to-top .icon { width: 1.1rem; height: 1.1rem; }
body.panel-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  background: url("/img/hero-patient.jpg") 62% center / cover no-repeat;
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(6, 18, 48, .72) 0%,
    rgba(8, 24, 58, .55) 38%,
    rgba(10, 28, 70, .32) 68%,
    rgba(12, 32, 80, .18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 8.8rem 0 5.5rem;
}
.hero-kicker {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
}
.hero h1 {
  max-width: 13.5ch;
  font-size: clamp(2.7rem, 5.6vw, 4.55rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 1.7rem;
}
.hero-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .9rem;
  margin: 2.15rem 0 0;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
}
.hero-rating strong { font-weight: 700; }
.hero-rating .stars {
  color: #ffc107;
  margin: 0;
  display: inline-flex;
  gap: .1rem;
}
.hero-rating .stars .icon { width: 1.05rem; height: 1.05rem; }

.marquee {
  background: var(--pine);
  color: #d7e4ff;
  overflow: hidden;
  padding: .85rem 0;
  border-block: 1px solid rgba(255,255,255,.08);
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: 5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 0; max-width: 16ch; }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 1rem;
}
.about-photos img:first-child {
  height: 460px;
  object-fit: cover;
  border-radius: 24px 24px 80px 24px;
  grid-row: span 2;
}
.about-photos img:nth-child(2),
.about-photos img:nth-child(3) {
  height: 222px;
  object-fit: cover;
  border-radius: 20px;
}
.checklist { margin: 1.4rem 0 1.8rem; }
.checklist li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-bottom: .7rem;
}
.checklist .icon {
  margin-top: .15rem;
  color: var(--terracotta);
}

/* Services */
.service-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card.wide { grid-column: span 2; flex-direction: row; }
.service-card.wide img { width: 48%; height: auto; min-height: 100%; object-fit: cover; }
.service-card img { height: 190px; width: 100%; object-fit: cover; }
.service-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.service-card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.service-card p { color: var(--muted); margin-bottom: 1rem; }
.service-index {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .4rem;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* Why / stats */
.band { background: var(--pine); color: #e8efe9; }
.band h2, .band h3 { color: var(--parchment); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(243,230,200,.12);
  border-radius: 18px;
  padding: 1.3rem;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--parchment);
}
.feature-list { display: grid; gap: 1.1rem; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(243,230,200,.12);
  color: var(--parchment);
  display: grid;
  place-items: center;
}
.feature-icon .icon { width: 1.3rem; height: 1.3rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-card img { height: 280px; width: 100%; object-fit: cover; }
.team-card-body { padding: 1.15rem 1.2rem 1.4rem; }
.team-card h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.team-card .role { color: var(--terracotta); font-size: .86rem; margin-bottom: .55rem; }
.team-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.1rem;
}
.quote {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
}
.quote p { color: var(--ink); margin-bottom: 0; }
.quote.featured {
  background: var(--pine);
  color: #e8eef8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.quote.featured h3 { color: #fff; font-size: 1.9rem; }
.quote.featured p { color: #e8eef8; }
.stars { color: var(--gold); display: flex; gap: .15rem; margin-bottom: .8rem; }
.stars .icon { width: .95rem; }
.quote-who { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.quote-who img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote-who strong { display: block; color: var(--pine); }
.quote-who span { font-size: .82rem; color: var(--muted); }
.quote.featured .quote-who strong { color: #fff; }
.quote.featured .quote-who span { color: rgba(255,255,255,.8); }

/* Gallery */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: .8rem;
}
.gallery-mosaic a {
  overflow: hidden;
  border-radius: 18px;
}
.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s ease;
}
.gallery-mosaic a:hover img { transform: scale(1.06); }
.gallery-mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic a:nth-child(4) { grid-row: span 2; }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.process-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--line);
  counter-increment: step;
}
.process-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: .6rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.blog-card img { height: 210px; width: 100%; object-fit: cover; }
.blog-card-body { padding: 1.2rem 1.3rem 1.5rem; }
.meta { font-size: .8rem; color: var(--sage); margin-bottom: .45rem; }
.blog-card h3 { font-size: 1.25rem; }

.hero-lede {
  max-width: 36rem;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.7rem;
}
.crumbs {
  font-size: .88rem;
  color: rgba(255,255,255,.78);
  margin: 0 0 1rem;
}
.crumbs a { color: #fff; }
.inner-hero {
  min-height: 78vh;
}
.inner-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin-bottom: 1rem;
}
.inner-hero .hero-content { padding-bottom: 4.5rem; }

/* Forms */
.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--pine); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  padding: .8rem .9rem;
  color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.alert {
  padding: .9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--mist);
  color: var(--pine);
  border: 1px solid rgba(22,56,50,.12);
}
.alert.error { background: #fde8e4; color: #7a2d1c; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.split > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-stack { display: grid; gap: 1rem; }
.info-tile {
  display: flex;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.info-tile .icon { width: 1.4rem; color: var(--terracotta); margin-top: .15rem; }

.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; }

/* FAQ */
.faq-list { display: grid; gap: .7rem; max-width: 820px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.05rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--pine);
  cursor: pointer;
}
.faq-item .faq-body {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}
.faq-item.is-open .faq-body { display: block; }
.faq-item.is-open button .icon { transform: rotate(180deg); }

/* Service detail */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin: 0 0 1rem; color: var(--muted); }
.prose li { margin-bottom: .35rem; }
.cover-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  margin: 1.5rem 0 2rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-table td:last-child { text-align: right; color: var(--muted); }

/* Footer */
.site-footer { background: var(--pine-deep); color: #b9c9e6; }
.footer-cta {
  background: var(--pine);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.4rem 0;
}
.footer-cta h2 { color: var(--parchment); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.footer-main { padding: 3.2rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr .9fr;
  gap: 2rem;
}
.footer-brand p { max-width: 28ch; }
.site-footer h3 {
  color: var(--parchment);
  font-size: 1.05rem;
  margin-bottom: .9rem;
}
.site-footer a:hover { color: var(--parchment); }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  font-size: .75rem;
  font-weight: 700;
}
.footer-base {
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  opacity: .75;
}
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.3rem;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 17, 46, .88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 86vh; border-radius: 16px; }
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--parchment);
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .why-grid, .quote-grid, .split, .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-bento, .team-grid, .blog-grid, .process {
    grid-template-columns: 1fr 1fr;
  }
  .service-card.wide { grid-column: span 2; flex-direction: column; }
  .service-card.wide img { width: 100%; height: 210px; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-mosaic a:nth-child(1),
  .gallery-mosaic a:nth-child(4) { grid-column: auto; grid-row: auto; }
  .hero { min-height: 92vh; }
  .hero h1 { max-width: 12ch; }
  .nav {
    position: fixed;
    inset: 5.5rem 1rem auto;
    z-index: 60;
    background: #fff;
    border-radius: 10px;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    box-shadow: var(--shadow);
    display: none;
    margin-left: 0;
  }
  .nav > .nav-item > a { color: #1b2b4b; }
  .nav > .nav-item > a.is-active,
  .nav > .nav-item > a:hover { background: #eef4fc; color: #1b2b4b; opacity: 1; }
  .nav-actions .btn { display: none; }
  .extra-panel-nav { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .service-bento, .team-grid, .blog-grid, .process, .stat-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; }
  .about-photos { grid-template-columns: 1fr; }
  .about-photos img:first-child { grid-row: auto; height: 260px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-content { padding: 7.2rem 0 3.4rem; }
}
