:root {
  --bg: #fbf7f1;
  --bg-soft: #f4efe4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fffdf9;
  --ink: #1f3440;
  --muted: #5f6f78;
  --line: rgba(31, 52, 64, 0.12);
  --accent: #f36b4f;
  --accent-deep: #d14f35;
  --accent-soft: #ffd8cf;
  --mint: #dff3ee;
  --mint-deep: #4ca793;
  --sun: #ffe7a8;
  --shadow: 0 24px 70px rgba(56, 58, 43, 0.12);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(243, 107, 79, 0.16), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(76, 167, 147, 0.15), transparent 18%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 42%, #fff8ef 100%);
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(243, 107, 79, 0.24);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(251, 247, 241, 0.95);
  border-bottom: 1px solid rgba(31, 52, 64, 0.12);
  box-shadow: 0 2px 12px rgba(31, 52, 64, 0.08);
  transition: all 200ms ease;
}

.header-shell,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  padding: 0.8rem 0 0.9rem;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  grid-column: 3;
  grid-row: 1;
  width: auto;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(31, 52, 64, 0.1);
  box-shadow: 0 8px 18px rgba(31, 52, 64, 0.08);
  white-space: nowrap;
  transition: all 200ms ease;
}

.utility-link:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 52, 64, 0.2);
  box-shadow: 0 12px 24px rgba(31, 52, 64, 0.12);
  transform: translateY(-2px);
}

.utility-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
}

.utility-icon svg {
  width: 0.92rem;
  height: 0.92rem;
  display: block;
}

.utility-call .utility-icon {
  background: #335aa6;
}

.utility-whatsapp .utility-icon {
  background: #20b15a;
}

.icon-inline {
  display: inline-block;
  margin-right: 0.35rem;
  line-height: 1;
}

.utility-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  white-space: nowrap;
}

.utility-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.utility-link strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 4.25rem;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1;
}

.brand-text strong {
  color: #123fa6;
  font-family: "Segoe UI", "Aptos", sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-text span {
  color: #2d6c63;
  font-family: "Segoe UI", "Aptos", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

h1,
h2 {
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  grid-column: 3;
  grid-row: 2;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  color: #5d6e79;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  background: transparent;
  border: 1px solid transparent;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 200ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 60%;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(31, 52, 64, 0.12);
  transform: translateY(-2px);
}

.site-nav .is-active {
  color: var(--ink);
  background: rgba(18, 63, 166, 0.1);
  border-color: rgba(18, 63, 166, 0.2);
  box-shadow: 0 2px 8px rgba(18, 63, 166, 0.12);
}

.site-nav .is-active::after {
  width: 60% !important;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 3rem;
  height: 3rem;
  padding: 0;
  cursor: pointer;
  transition: all 200ms ease;
}

.nav-toggle:hover {
  opacity: 0.7;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2.2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.hero,
.page-hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid,
.page-hero-grid,
.editorial-grid,
.split-showcase,
.contact-layout {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 2.5rem;
}

.page-hero-grid {
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
}

.page-hero-grid > .reveal:first-child {
  max-width: 46rem;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.45rem, 4.1vw, 4rem);
  line-height: 1.02;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.24rem;
}

.lead,
.section-copy p,
.section-header p,
.service-tile p,
.detail-card p,
.statement-panel p,
.quote-block p,
.contact-card p,
.faq-item p,
.footer-grid p,
.timeline-item p,
.bullet-list li,
.lightbox-caption {
  color: var(--muted);
  line-height: 1.75;
}

.contact-card p,
.footer-grid p {
  overflow-wrap: anywhere;
}

.lead {
  max-width: 64ch;
  margin: 1.1rem 0 0;
  font-size: 1rem;
}

.hero-actions,
.section-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.hero-actions {
  margin: 2.2rem 0 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 1rem 1.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 300ms ease;
  z-index: -1;
}

.button:hover::before {
  left: 100%;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffb65d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(243, 107, 79, 0.3);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(243, 107, 79, 0.4);
}

.button-primary:active {
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(31, 52, 64, 0.15);
  color: var(--ink);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 52, 64, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 52, 64, 0.1);
}

.tag-row,
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tag-row span,
.pill-cloud span {
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 52, 64, 0.12);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 200ms ease;
}

.tag-row span:hover,
.pill-cloud span:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 52, 64, 0.2);
  transform: translateY(-1px);
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.media-frame,
.service-tile,
.detail-card,
.statement-panel,
.quote-block,
.contact-card,
.enquiry-form,
.timeline-item,
.faq-item,
.cta-shell {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.photo-card img,
.media-frame img,
.page-hero-media img,
.gallery-shot img,
.masonry-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-large {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: transparent;
}

.photo-large img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  border-radius: var(--radius-md);
}

.photo-small {
  min-height: 16.25rem;
  overflow: hidden;
}

.photo-top {
  grid-column: 2;
  display: none;
}

.photo-bottom {
  grid-column: 2;
  display: none;
}

.info-ribbon {
  padding: 1rem 0 0;
}

.contact-card strong {
  font-size: 1rem;
}

.section {
  padding: 5.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(244, 239, 228, 0.72), rgba(255, 255, 255, 0));
}

.section-contrast {
  background:
    radial-gradient(circle at 12% 20%, rgba(243, 107, 79, 0.12), transparent 20%),
    linear-gradient(180deg, #fef7ea 0%, #f8f0df 100%);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

.editorial-grid {
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
}

.statement-panel,
.quote-block,
.cta-shell {
  padding: 2rem;
}

.statement-chip {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-deep);
  font-weight: 700;
  font-size: 0.85rem;
}

.statement-panel h3 {
  margin: 0.9rem 0 0.75rem;
  font-size: 1.55rem;
  line-height: 1.18;
}

.quote-block p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.card-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.service-tile,
.detail-card,
.faq-item {
  padding: 1.5rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.split-showcase {
  grid-template-columns: minmax(18rem, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 2.6rem;
}

.showcase-stack {
  display: grid;
  gap: 1rem;
  max-width: 18.5rem;
  width: 100%;
  justify-self: center;
}

.tall-frame {
  min-height: 16.5rem;
}

.media-frame {
  overflow: hidden;
}

.showcase-stack .media-frame {
  min-height: 13.25rem;
}

.split-showcase .section-copy {
  max-width: 40rem;
}

.split-showcase .section-copy h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.03;
  margin-bottom: 1rem;
}

.split-showcase .section-copy p {
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.78;
}

.split-showcase .bullet-list {
  margin-top: 1.15rem;
}

.split-showcase .bullet-list li {
  color: #516371;
  font-size: 0.96rem;
  line-height: 1.7;
}

.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.bullet-list li + li {
  margin-top: 0.45rem;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.doctor-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.5rem;
  align-items: center;
}

.doctor-photo-card,
.doctor-copy {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.doctor-photo-card {
  overflow: hidden;
  padding: 1rem;
}

.doctor-photo-card img {
  border-radius: 20px;
  object-fit: cover;
}

.doctor-copy {
  padding: 2rem;
}

.doctor-copy h3 {
  margin: 0.95rem 0 0.8rem;
  font-size: 2rem;
}

.doctor-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.doctor-copy p + p {
  margin-top: 0.8rem;
}

.trust-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.gallery-shot,
.masonry-card {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.gallery-shot:hover,
.masonry-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 28px 60px rgba(56, 58, 43, 0.18);
}

.gallery-shot::after,
.masonry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 55%);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
  border-radius: var(--radius-md);
}

.gallery-shot:hover::after,
.masonry-card:hover::after {
  opacity: 1;
}

.gallery-shot {
  min-height: 18rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.masonry-card {
  width: 100%;
  margin: 0;
  aspect-ratio: 1 / 1;
}

.video-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40rem;
  background: #000;
}

.page-hero-media {
  min-height: 24rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-hero .reveal:first-child {
  max-width: 41rem;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero .lead {
  max-width: 56ch;
}

.process-layout {
  display: grid;
  gap: 1.5rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.4rem;
}

.timeline-item strong {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.faq-shell {
  display: grid;
  gap: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.section-header-inline {
  grid-column: 1 / -1;
  margin-bottom: -0.5rem;
}

.contact-kicker {
  color: #123fa6;
}

.map-panel {
  display: grid;
  gap: 1rem;
}

.map-visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.map-visual iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
}

.map-action {
  display: flex;
  justify-content: flex-start;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.35rem;
}

.enquiry-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.enquiry-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1.5px solid rgba(31, 52, 64, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1rem;
  transition: all 200ms ease;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: rgba(31, 52, 64, 0.4);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(243, 107, 79, 0.1);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Form success card */
.form-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background: var(--surface-strong);
  border: 1.5px solid #c3e8d0;
  border-radius: var(--radius-md);
  animation: fadeSlideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.form-success-card[hidden] {
  display: none;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #2e8b57;
  flex-shrink: 0;
}

.form-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.form-success-message {
  color: var(--muted);
  max-width: 38ch;
  margin: 0;
  line-height: 1.65;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.compact-pills {
  margin-top: 1rem;
}

.cta-section {
  padding-top: 1rem;
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background:
    linear-gradient(145deg, rgba(31, 52, 64, 0.95), rgba(53, 90, 92, 0.95)),
    linear-gradient(135deg, rgba(243, 107, 79, 0.25), transparent 50%);
  color: #fff;
}

.cta-shell .kicker,
.cta-shell h2,
.cta-shell p {
  color: #fff;
}

.site-footer {
  padding: 4.25rem 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 18%, rgba(76, 167, 147, 0.18), transparent 22%),
    radial-gradient(circle at 86% 26%, rgba(243, 107, 79, 0.17), transparent 18%),
    radial-gradient(circle at 52% 78%, rgba(255, 177, 74, 0.08), transparent 24%),
    linear-gradient(145deg, #0d1528 0%, #0b1324 46%, #08111f 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.2fr) minmax(11rem, 0.78fr) minmax(12rem, 0.88fr) minmax(16rem, 1.12fr);
  align-items: start;
  gap: 1.8rem 2rem;
}

.footer-company,
.footer-panel,
.footer-legal {
  min-width: 0;
}

.footer-company {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.15rem 1.4rem 1.4rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-company::before {
  content: "Integrated Child Support";
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-logo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 20.5rem);
  gap: 0.95rem;
  padding: 0;
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  flex: 0 0 auto;
}

.footer-logo-mark img {
  width: 100%;
  max-width: 4.6rem;
  height: auto;
  object-fit: contain;
}

.footer-logo-text {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.footer-logo-text strong {
  color: #f7fbff;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.footer-logo-text span {
  color: #9ed8cd;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-summary {
  max-width: 20rem;
  margin: 0;
  color: rgba(229, 236, 246, 0.86);
  font-size: 1rem;
  line-height: 1.82;
}

.footer-grid strong {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}

.footer-grid strong::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 0.15rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ca793, #f36b4f);
}

.footer-grid p {
  margin: 0;
  color: rgba(226, 233, 242, 0.84);
  line-height: 1.65;
}

.footer-grid a {
  color: rgba(238, 243, 250, 0.9);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #ffffff;
}

.footer-links-panel {
  min-height: 100%;
  padding: 1rem 0 0 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: grid;
  gap: 0.82rem;
}

.footer-links a {
  width: fit-content;
  font-size: 1.02rem;
  line-height: 1.45;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateX(2px);
}

.footer-contact-list {
  display: grid;
  gap: 0;
}

.footer-contact-item {
  display: grid;
  gap: 0.36rem;
  padding: 0.95rem 0;
}

.footer-contact-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-contact-item a,
.footer-contact-item p {
  font-size: 1rem;
  line-height: 1.7;
}

.footer-contact-panel {
  padding: 1.2rem 1.35rem;
  border-radius: 1.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 17, 33, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(76, 167, 147, 0.48);
  background: rgba(76, 167, 147, 0.14);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.footer-legal {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
  color: rgba(226, 233, 242, 0.9);
  font-size: 0.92rem;
}

/* ── FAQ icon rows ── */
.faq-item-icon {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-q-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.faq-q-row h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.faq-q-row .service-icon-wrap {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
}

.faq-item-icon > p {
  padding-left: 3.45rem;
}

/* ── Page hero media fit ── */
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-media.reveal img {
  border-radius: var(--radius-lg);
}

/* ── Contact cards with icons ── */
.contact-card-icon {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card-icon .service-icon-wrap {
  flex-shrink: 0;
  margin-bottom: 0;
}

.contact-card-icon strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Service Cards with Icons ── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(56, 58, 43, 0.16);
}

.service-tile-media {
  margin: 0.35rem 0 0.15rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.55);
}

.service-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.service-icon-green  { background: #e8f5ee; color: #2e8b57; }
.service-icon-purple { background: #f0eafa; color: #7c3aed; }
.service-icon-orange { background: #fff0e8; color: #e05c1a; }
.service-icon-blue   { background: #e8f0fb; color: #1a56c4; }
.service-icon-teal   { background: #e6f4f2; color: #2d8c7e; }

/* ── About page detail cards ── */
.detail-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(56, 58, 43, 0.16);
}

/* ── FAQ accordion ── */
.faq-item {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

/* ── Timeline step numbers ── */
.timeline-item strong {
  font-size: 1.1rem;
  font-weight: 800;
}

/* ── Contact card hover ── */
.contact-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(56, 58, 43, 0.14);
}

.form-status {
  min-height: 1.4rem;
  margin: -0.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #456072;
}

.form-status.is-success {
  color: #155e3a;
}

.form-status.is-error {
  color: #b03220;
}

.lightbox {
  border: 0;
  padding: 0;
  width: min(92vw, 48rem);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(10, 18, 22, 0.7);
}

.lightbox-image {
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-close {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem 1rem 0;
  color: var(--muted);
  cursor: pointer;
}

.lightbox-caption {
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .header-shell {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.9rem;
    padding: 0.8rem 0 0.9rem;
  }

  .utility-bar {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .utility-link {
    width: calc(50% - 0.4rem);
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.98);
    border: 1px solid rgba(31, 52, 64, 0.1);
    box-shadow: 0 12px 32px rgba(31, 52, 64, 0.15);
    animation: slideDown 250ms ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
    width: 100%;
    min-height: 3rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.is-active {
    background: rgba(18, 63, 166, 0.15);
    border-color: rgba(18, 63, 166, 0.25);
  }

  .hero-grid,
  .page-hero-grid,
  .editorial-grid,
  .split-showcase,
  .contact-layout,
  .map-panel,
  .doctor-feature,
  .service-detail-grid,
  .card-grid-three,
  .gallery-preview {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    grid-template-columns: 1fr 1fr;
  }

  .photo-large {
    grid-column: 1 / -1;
    min-height: 24rem;
  }

  .page-hero-media {
    min-height: 19rem;
  }

  .cta-shell,
  .trust-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.2rem;
  }

  .footer-company {
    grid-column: 1 / -1;
    max-width: 36rem;
  }

  .footer-legal {
    grid-column: 1 / -1;
    margin-top: 0.1rem;
  }

  .footer-links-panel {
    padding-left: 1rem;
  }

  .map-visual,
  .map-visual iframe {
    min-height: 18rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-company {
    grid-column: auto;
    max-width: none;
    padding: 1rem 1rem 1.2rem;
  }

  .footer-logo-card {
    width: min(100%, 18.5rem);
  }

  .footer-logo-mark {
    width: 4rem;
  }

  .footer-logo-mark img {
    max-width: 4rem;
  }

  .footer-logo-text strong {
    font-size: 1rem;
  }

  .footer-logo-text span {
    font-size: 0.76rem;
  }

  .footer-links-panel,
  .footer-contact-panel {
    padding-left: 0;
    border-left: 0;
  }

  .hero,
  .page-hero,
  .section {
    padding: 3.5rem 0;
  }

  .header-shell {
    padding: 0.6rem 0 0.75rem;
  }

  .utility-link {
    width: 100%;
    justify-content: flex-start;
  }

  .utility-link strong {
    font-size: 0.9rem;
  }

  .utility-text {
    gap: 0.3rem;
  }

  .brand-logo {
    width: 100%;
  }

  .brand-logo-frame {
    width: 2.7rem;
    height: 3.15rem;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text span {
    font-size: 0.72rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 2.9rem);
    line-height: 1.04;
  }

  .hero-actions,
  .section-actions,
  .cta-actions,
  .tag-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .tag-row span {
    width: 100%;
  }

  .hero-collage {
    grid-template-columns: 1fr;
  }

  .photo-top,
  .photo-bottom,
  .photo-large {
    grid-column: auto;
    min-height: 15rem;
  }

  .masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}
