@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Great+Vibes&family=Manrope:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy: #0f2a3a;
  --navy-dark: #0a1c27;
  --gold: #0078d4;
  --sand: #eaf4ff;
  --mist: #f3f9ff;
  --slate: #3b4c59;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--navy-dark);
  background: var(--mist);
}

body.no-scroll {
  overflow: hidden;
}

.app-ready .seo-fallback {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  color: var(--navy-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
}

.site-header {
  background: rgba(15, 42, 58, 0.95);
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(8px);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
}

.navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.32);
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  margin-left: 1rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--white);
}

.nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--white);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.35rem 0.45rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  border-color: rgba(0, 120, 212, 0.9);
  background: rgba(0, 120, 212, 0.18);
}

.lang-btn img {
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 3px;
}

.hero {
  position: relative;
  background: linear-gradient(180deg, #eaf4ff 0%, #f3f9ff 100%);
}

.hero-carousel .carousel-item {
  min-height: 100vh;
}

.hero-carousel .carousel-inner {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #eaf4ff 0%, #d7ecff 48%, #f3f9ff 100%);
}

/* React-driven carousel: keep all slides in the DOM and fade them ourselves (no Bootstrap JS required). */
.hero-carousel .carousel-item {
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.hero-carousel .carousel-item.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide {
  min-height: 100vh;
  background: linear-gradient(135deg, #eaf4ff 0%, #d7ecff 52%, #f3f9ff 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform, opacity;
}

.hero-slide-empty::before {
  background-image:
    linear-gradient(135deg, rgba(234, 244, 255, 0.96), rgba(215, 236, 255, 0.86)),
    linear-gradient(180deg, #eaf4ff, #d7ecff);
}

/* No dark overlay: keep photos bright from the first frame. */
.hero-slide::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2rem 0;
  max-width: 620px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  margin-bottom: 1rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Keep text readable without dimming the whole image. */
.hero-content {
  /* Move the hero copy block to the left + make it more transparent. */
  margin-left: clamp(1rem, 5vw, 5rem) !important;
  margin-right: auto !important;
  /* Fully transparent hero panel. */
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 18px;
  padding: 2.25rem;
}

/* Aubuchon-style "zoom-move" animation on the background layer. */
.carousel-item.active .hero-slide::before {
  animation: zoom-move 15s linear infinite;
}

@keyframes zoom-move {
  0% {
    transform: scale(1.3);
    transform-origin: 50% 50%;
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    transform-origin: 50% 50%;
    opacity: 1;
  }
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--mist);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-title {
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-split {
  background: var(--sand);
}

.split-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 42, 58, 0.15);
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 2rem;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 42, 58, 0.12);
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--navy);
}

.stat-label {
  color: var(--slate);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  background: var(--white);
  padding: 1rem 1rem 1.35rem;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 42, 58, 0.12);
  overflow: hidden;
}

.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  background: #eaf4ff;
}

.service-card h3,
.service-card p,
.service-card .service-card-link {
  margin-left: 0.45rem;
  margin-right: 0.45rem;
}

.process-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-step {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.process-step span {
  display: inline-block;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 42, 58, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-open {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-open:focus-visible {
  outline: 3px solid rgba(0, 120, 212, 0.6);
  outline-offset: 2px;
}

.gallery-info {
  padding: 1.2rem 1.5rem 1.6rem;
}

.gallery-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.gallery-info p {
  margin: 0;
  color: var(--slate);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 39, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-inner img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 42, 58, 0.55);
  color: rgba(255, 255, 255, 0.92);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  user-select: none;
}

.nav-btn:hover {
  background: rgba(15, 42, 58, 0.8);
}

.nav-btn.prev {
  left: 14px;
}

.nav-btn.next {
  right: 14px;
}

.nav-btn.close {
  top: 14px;
  left: 14px;
  transform: none;
  width: auto;
  padding: 0 0.9rem;
  font-size: 0.9rem;
  height: 40px;
}

@media (max-width: 640px) {
  .nav-btn.prev,
  .nav-btn.next {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .nav-btn.prev {
    left: 14px;
  }

  .nav-btn.next {
    right: 14px;
  }

  .lightbox-inner {
    padding: 1rem;
  }
}

.section-cta {
  text-align: center;
}

.cta-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.cta-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 42, 58, 0.12);
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 1rem;
}

.contact-form .form-control {
  border-radius: 12px;
  border: 1px solid rgba(15, 42, 58, 0.12);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.15rem rgba(0, 120, 212, 0.25);
}

.contact-form textarea.form-control {
  resize: vertical;
}

.form-status {
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
}

.form-status.success {
  color: #1f6b42;
}

.form-status.error {
  color: #8f1d1d;
}

.form-status.submitting {
  color: var(--slate);
}

.cta-note {
  margin-top: 1rem;
  color: var(--slate);
}

.contact-details {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  color: rgba(15, 42, 58, 0.9);
}

.contact-details a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 120, 212, 0.75);
  text-underline-offset: 3px;
}

.map-embed {
  position: relative;
  margin-top: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 42, 58, 0.12);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

/* Make map click open full Google Maps (per request). */
.map-embed .map-click {
  position: absolute;
  inset: 0;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: #d3b275;
  border-color: #d3b275;
  color: var(--navy-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline-dark {
  border-color: var(--navy-dark);
  color: var(--navy-dark);
}

.text-link {
  color: var(--navy);
  font-weight: 600;
}

.page-hero {
  /* Full clarity header image (no overlay gradient). */
  background: url("/images/diaz/doctor-manuel-diaz-diaz-healtcare-center-09-1.webp");
  background-size: cover;
  background-position: center;
  padding: 6rem 0 4rem;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.seo-page-hero {
  position: relative;
}

.seo-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 28, 39, 0.72), rgba(15, 42, 58, 0.36));
}

.seo-page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.seo-lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.seo-body {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.seo-hero-media {
  width: min(100%, 680px);
  aspect-ratio: 16 / 9;
  margin: 1.35rem 0 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.seo-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.seo-list {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.seo-list li {
  padding-left: 0.15rem;
}

.seo-faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.seo-faq-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.seo-link-grid h3 a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 120, 212, 0.75);
  text-underline-offset: 4px;
}

.seo-copy {
  max-width: 860px;
}

.seo-copy h2,
.seo-copy h3 {
  margin-top: 1.75rem;
}

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-title {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(0, 120, 212, 0.55);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 120, 212, 0.12);
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: var(--white);
  background: rgba(0, 120, 212, 0.22);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1199px) {
  .brand-logo {
    height: 68px;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 991px) {
  #about,
  #services,
  #process,
  #contact {
    scroll-margin-top: 8.75rem;
  }

  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }

  .lang-toggle {
    margin-left: 0;
    padding: 0.75rem 0 0.25rem;
  }

  .navbar-collapse {
    background: rgba(15, 42, 58, 0.98);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: 70vh;
  }

  .hero-content {
    /* On mobile: keep it readable and avoid edge-to-edge. */
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    background: transparent;
    backdrop-filter: none;
    border: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3.5rem 0;
  }

  .brand-logo {
    height: 56px;
  }

  .brand-text {
    display: none;
  }

  .hero-carousel .carousel-item,
  .hero-carousel .carousel-inner,
  .hero-slide {
    min-height: 64vh;
  }

  .hero-content {
    padding: 1.25rem 0;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .feature-card,
  .service-card,
  .cta-card {
    padding: 1.5rem;
  }

  .contact-form .form-control {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  #about,
  #services,
  #process,
  #contact {
    scroll-margin-top: 9.5rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .seo-hero-media {
    aspect-ratio: 4 / 3;
    margin-top: 1rem;
    border-radius: 12px;
  }

  .map-embed iframe {
    height: 200px;
  }
}

/* 2026 frontend refresh: fluid, responsive, modernized styling */
:root {
  --ydp-font-heading: "Cormorant Garamond", serif;
  --ydp-font-script: "Great Vibes", cursive;
  --ydp-font-body: "Manrope", sans-serif;
  --ydp-ink-950: #08161f;
  --ydp-ink-900: #0d2432;
  --ydp-ink-800: #17374b;
  --ydp-ink-700: #204b63;
  --ydp-sand-300: #ead7bd;
  --ydp-sand-200: #f4e7d5;
  --ydp-teal-300: #7bc4c3;
  --ydp-teal-200: #b6e2df;
  --ydp-menu-blue: #0067b8;
  --ydp-menu-blue-dark: #004f96;
  --ydp-white: #ffffff;
  --ydp-slate-600: #4b677a;
  --ydp-slate-500: #5f7687;
  --ydp-radius-lg: 18px;
  --ydp-radius-xl: 24px;
  --ydp-shadow-soft: 0 20px 50px rgba(13, 36, 50, 0.12);
  --ydp-shadow-strong: 0 28px 70px rgba(8, 22, 31, 0.22);
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--ydp-font-body);
  color: var(--ydp-ink-900);
  line-height: 1.65;
  background: linear-gradient(180deg, #f8fbfd 0%, #f2f7fb 40%, #eff6f8 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: -18vmax;
  background:
    radial-gradient(46vmax 42vmax at 8% 10%, rgba(123, 196, 195, 0.25), transparent 66%),
    radial-gradient(52vmax 46vmax at 96% 14%, rgba(234, 215, 189, 0.32), transparent 68%),
    radial-gradient(52vmax 45vmax at 24% 88%, rgba(182, 226, 223, 0.2), transparent 68%);
}

body::after {
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(13, 36, 50, 0.03) 95%);
  background-size: 100% 22px;
  opacity: 0.32;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ydp-font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ydp-ink-950);
  line-height: 1.15;
}

p {
  color: var(--ydp-slate-600);
}

main [id] {
  scroll-margin-top: 7.5rem;
}

.container {
  --container-pad: clamp(1rem, 3.4vw, 2rem);
  width: min(1180px, calc(100% - (var(--container-pad) * 2)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.site-header {
  z-index: 1040;
  padding-top: max(0px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 103, 184, 0.97) 0%, rgba(0, 79, 150, 0.95) 100%);
  backdrop-filter: blur(16px);
}

.navbar {
  padding: 0;
  min-height: clamp(20px, 2vw, 27px);
}

.navbar > .container {
  min-height: inherit;
}

.navbar-brand {
  align-self: stretch;
  align-items: stretch;
  gap: 0.8rem;
  height: inherit;
  padding-block: 0;
}

.brand-logo {
  display: block;
  height: inherit;
  max-height: none;
  width: auto;
  object-fit: contain;
}

.brand-text {
  color: var(--ydp-white);
  font-family: var(--ydp-font-heading);
  font-size: clamp(0.95rem, 1.25vw, 1.3rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.22rem rgba(182, 226, 223, 0.35);
}

.nav-link {
  margin-left: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ydp-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  border: 1px solid rgba(234, 215, 189, 0.85);
  background: linear-gradient(120deg, rgba(234, 215, 189, 0.22), rgba(123, 196, 195, 0.18));
  color: var(--ydp-white);
}

.lang-toggle {
  margin-left: 0.8rem;
  gap: 0.35rem;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.28rem 0.34rem;
}

.lang-btn.active {
  border-color: rgba(234, 215, 189, 0.92);
  background: rgba(234, 215, 189, 0.2);
}

.lang-btn img {
  width: 24px;
  height: 17px;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
  min-height: min(920px, 100dvh);
}

@supports not (height: 100dvh) {
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: 100vh;
  }
}

.hero-slide {
  display: grid;
  align-items: center;
}

.hero-slide::before {
  transform: scale(1.08);
  animation: ydp-hero-pan 15s linear infinite;
}

.hero-slide::after {
  content: none;
}

.hero-content {
  margin-left: clamp(0.2rem, 3.2vw, 2rem) !important;
  margin-right: auto !important;
  max-width: min(700px, 100%);
  padding: clamp(1.35rem, 3.6vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ydp-radius-xl);
  background: rgba(8, 22, 31, 0.05);
  backdrop-filter: none;
  box-shadow: none;
  animation: ydp-hero-rise 700ms ease;
}

.hero-content h1 {
  font-family: var(--ydp-font-script);
  font-size: clamp(2rem, 5vw, 4.35rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-content p {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  max-width: 60ch;
}

.hero-eyebrow,
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
}

.hero-carousel .carousel-indicators {
  right: clamp(0.95rem, 3vw, 2.25rem);
  left: auto;
  bottom: clamp(1rem, 2.8vw, 2.1rem);
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
}

.hero-carousel .carousel-indicators button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
}

.hero-carousel .carousel-indicators .active {
  width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ydp-sand-300), var(--ydp-teal-300));
}

.carousel-control-prev,
.carousel-control-next {
  top: auto;
  bottom: clamp(1rem, 2.8vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 22, 31, 0.28);
  backdrop-filter: blur(5px);
  opacity: 1;
}

.carousel-control-prev {
  left: clamp(0.9rem, 3.2vw, 2rem);
}

.carousel-control-next {
  left: calc(clamp(0.9rem, 3.2vw, 2rem) + 56px);
  right: auto;
}

.section {
  padding-block: clamp(3.4rem, 8vw, 6.4rem);
}

.section-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 251, 255, 0.92));
}

.section-split {
  background: linear-gradient(165deg, rgba(255, 248, 239, 0.95), rgba(240, 248, 252, 0.92));
}

.section-dark {
  position: relative;
  background: linear-gradient(145deg, var(--ydp-ink-950), var(--ydp-ink-800));
  color: rgba(255, 255, 255, 0.92);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(44vmax 28vmax at 4% 0%, rgba(123, 196, 195, 0.16), transparent 70%),
    radial-gradient(40vmax 24vmax at 94% 100%, rgba(234, 215, 189, 0.2), transparent 70%);
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-title {
  margin-bottom: clamp(1.8rem, 5vw, 2.7rem);
  max-width: 740px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.split-grid {
  gap: clamp(1.2rem, 3.5vw, 2.6rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}

.feature-card,
.service-card,
.process-step,
.stat-card,
.gallery-card,
.cta-card {
  border: 1px solid rgba(32, 75, 99, 0.09);
  border-radius: var(--ydp-radius-lg);
  background: var(--ydp-white);
  box-shadow: var(--ydp-shadow-soft);
}

.feature-card {
  padding: clamp(1.35rem, 3vw, 2.4rem);
  background:
    linear-gradient(130deg, rgba(255, 248, 239, 0.88), rgba(232, 246, 244, 0.85)),
    var(--ydp-white);
}

.stat-grid {
  margin-top: 1.3rem;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 1.15rem 1rem;
}

.stat-number {
  color: var(--ydp-ink-900);
  font-family: var(--ydp-font-heading);
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
}

.stat-label {
  color: var(--ydp-slate-600);
  font-size: 0.88rem;
  line-height: 1.4;
}

.card-grid,
.process-grid,
.gallery-grid {
  gap: clamp(0.95rem, 2vw, 1.4rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.service-card {
  grid-column: span 4;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 252, 0.95));
}

.process-step {
  grid-column: span 3;
  padding: clamp(1.2rem, 2.5vw, 1.95rem);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: none;
}

.process-step span {
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ydp-ink-900);
  background: linear-gradient(140deg, var(--ydp-sand-300), var(--ydp-teal-300));
}

.gallery-card {
  grid-column: span 4;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  transition: transform 420ms ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.lightbox {
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(8, 22, 31, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-inner {
  width: min(1120px, 100%);
  padding: clamp(0.85rem, 2vw, 1.3rem);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 22, 31, 0.48);
  box-shadow: var(--ydp-shadow-strong);
}

.lightbox-inner img {
  max-height: min(78vh, 860px);
  border-radius: 14px;
  background: rgba(8, 22, 31, 0.35);
}

.nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(8, 22, 31, 0.64);
  color: var(--ydp-white);
}

.section-cta {
  text-align: left;
}

.cta-grid {
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.cta-card {
  padding: clamp(1.25rem, 2.8vw, 2rem);
}

.contact-details {
  margin-top: 1.25rem;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--ydp-slate-600);
}

.contact-details a {
  text-decoration: underline;
  text-decoration-color: rgba(32, 75, 99, 0.4);
  text-underline-offset: 2px;
}

.contact-form .form-control {
  min-height: 46px;
  border: 1px solid rgba(13, 36, 50, 0.18);
  padding: 0.62rem 0.82rem;
}

.contact-form .form-control:focus {
  border-color: rgba(123, 196, 195, 0.95);
  box-shadow: 0 0 0 0.2rem rgba(123, 196, 195, 0.2);
}

.contact-form textarea.form-control {
  min-height: 112px;
}

.cta-note {
  color: var(--ydp-slate-500);
}

.map-embed iframe {
  height: 228px;
}

.btn {
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  font-weight: 700;
  font-size: 0.91rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-primary {
  color: var(--ydp-ink-900);
  border-color: #d9bf96;
  background: linear-gradient(130deg, #ebd7ba, #d8be97);
  box-shadow: 0 10px 24px rgba(124, 92, 45, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--ydp-ink-900);
  border-color: #e8cfaa;
  background: linear-gradient(130deg, #f0dec3, #dec69f);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  color: var(--ydp-ink-950);
  background: rgba(255, 255, 255, 0.9);
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(620px, 72dvh);
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(2.8rem, 5vw, 4.2rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(8, 22, 31, 0.76) 8%, rgba(8, 22, 31, 0.36) 52%, rgba(8, 22, 31, 0.7) 100%),
    linear-gradient(180deg, rgba(8, 22, 31, 0.08), rgba(8, 22, 31, 0.42));
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-hero h1 {
  font-family: var(--ydp-font-script);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.seo-page-hero .container,
.seo-copy {
  max-width: 880px;
}

.site-footer {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.8rem, 6vw, 3.6rem) 0 calc(1.8rem + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(148deg, #071721 0%, #102f40 58%, #18495f 100%);
}

.footer-grid {
  gap: clamp(1.2rem, 2.8vw, 2.1rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.footer-grid > * {
  grid-column: span 4;
}

.footer-brand {
  font-family: var(--ydp-font-script);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.footer-title {
  color: var(--ydp-sand-200);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.84);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ydp-sand-200);
}

@media (max-width: 1199px) {
  .service-card,
  .gallery-card,
  .footer-grid > * {
    grid-column: span 6;
  }

  .process-step {
    grid-column: span 6;
  }
}

@media (max-width: 991px) {
  main [id] {
    scroll-margin-top: 8.3rem;
  }

  .navbar-collapse {
    margin-top: 0.7rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 79, 150, 0.94);
    padding: 0.95rem 1rem;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.78rem;
  }

  .lang-toggle {
    margin: 0.25rem 0 0;
    width: fit-content;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: min(860px, 82dvh);
  }

  .hero-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .split-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  main [id] {
    scroll-margin-top: 8.8rem;
  }

  .brand-logo {
    height: inherit;
  }

  .brand-text {
    display: none;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: min(760px, 78dvh);
  }

  .hero-content {
    padding: 1.15rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 22, 31, 0.58);
    box-shadow: 0 18px 42px rgba(8, 22, 31, 0.28);
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.85rem);
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .service-card,
  .process-step,
  .gallery-card,
  .footer-grid > * {
    grid-column: span 12;
  }

  .feature-card,
  .service-card,
  .process-step,
  .cta-card {
    padding: 1.2rem;
  }
}

@media (max-width: 479px) {
  .section {
    padding-block: clamp(3rem, 11vw, 4rem);
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.72rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes ydp-hero-pan {
  0% {
    transform: scale(1.08) translate(0, 0);
  }

  50% {
    transform: scale(1.15) translate(1%, -0.8%);
  }

  100% {
    transform: scale(1.08) translate(0, 0);
  }
}

@keyframes ydp-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final header sizing override: keep the menu bar matched to the logo height. */
:root {
  --ydp-header-height: 96px;
}

.site-header .navbar {
  min-height: var(--ydp-header-height) !important;
  padding-block: 0 !important;
}

.site-header .navbar > .container,
.site-header .navbar-brand {
  min-height: var(--ydp-header-height) !important;
  height: var(--ydp-header-height) !important;
  align-items: center !important;
  padding-block: 0 !important;
}

.site-header .brand-logo {
  height: var(--ydp-header-height) !important;
  max-height: var(--ydp-header-height) !important;
  width: auto !important;
}

.site-header .brand-text {
  align-self: center;
  font-family: var(--ydp-font-script) !important;
  font-size: clamp(1.55rem, 2.25vw, 2.35rem) !important;
  font-weight: 400;
  letter-spacing: 0 !important;
  line-height: 0.95;
  white-space: normal;
}

@media (min-width: 992px) {
  .site-header .lang-btn img {
    width: 48px;
    height: auto;
    aspect-ratio: 24 / 17;
  }
}

/* Blue theme refinement: carry the shirt-inspired menu blue through the full page. */
:root {
  --ydp-blue-950: #02294f;
  --ydp-blue-900: #00447f;
  --ydp-blue-800: #005aa8;
  --ydp-blue-700: #0067b8;
  --ydp-blue-600: #1279d4;
  --ydp-blue-100: #eaf5ff;
  --ydp-blue-050: #f5fbff;
  --ydp-sky-200: #c9e8ff;
}

body {
  background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 42%, #f8fcff 100%);
}

body::before {
  background:
    radial-gradient(48vmax 42vmax at 8% 10%, rgba(0, 103, 184, 0.16), transparent 66%),
    radial-gradient(52vmax 46vmax at 94% 12%, rgba(18, 121, 212, 0.14), transparent 68%),
    radial-gradient(48vmax 40vmax at 22% 88%, rgba(201, 232, 255, 0.34), transparent 68%);
}

.site-header {
  background: linear-gradient(180deg, rgba(0, 103, 184, 0.98) 0%, rgba(0, 79, 150, 0.96) 100%);
  box-shadow: 0 14px 34px rgba(0, 68, 127, 0.24);
}

.nav-cta {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
}

.hero-carousel .carousel-indicators .active,
.process-step span,
.btn-primary {
  background: linear-gradient(135deg, #dff2ff 0%, var(--ydp-sky-200) 42%, #8dccff 100%);
}

.section-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(234, 245, 255, 0.9));
}

.section-split {
  background: linear-gradient(150deg, #ffffff 0%, var(--ydp-blue-050) 48%, #e8f5ff 100%);
}

.section-dark {
  background: linear-gradient(145deg, var(--ydp-blue-950) 0%, var(--ydp-blue-900) 54%, var(--ydp-blue-800) 100%);
}

.section-dark::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%),
    radial-gradient(44vmax 28vmax at 7% 0%, rgba(201, 232, 255, 0.2), transparent 70%),
    radial-gradient(40vmax 24vmax at 94% 100%, rgba(18, 121, 212, 0.22), transparent 70%);
}

.feature-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 245, 255, 0.9)),
    var(--ydp-white);
}

.service-card,
.cta-card,
.stat-card {
  border-color: rgba(0, 103, 184, 0.11);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.96));
  box-shadow: 0 20px 46px rgba(0, 68, 127, 0.11);
}

.stat-number,
.service-card h3,
.feature-card h3 {
  color: var(--ydp-blue-900);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  color: var(--ydp-blue-900);
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.service-card-link:hover,
.service-card-link:focus {
  color: #2f6d22;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.contact-details a {
  text-decoration-color: rgba(0, 103, 184, 0.42);
}

.contact-form .form-control:focus {
  border-color: rgba(0, 103, 184, 0.85);
  box-shadow: 0 0 0 0.2rem rgba(0, 103, 184, 0.16);
}

.contact-form .form-control[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 0.12rem rgba(180, 35, 24, 0.12);
}

.field-error {
  display: block;
  margin: -0.45rem 0 0.15rem;
  color: #8f1d1d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.website-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.btn-primary {
  color: var(--ydp-blue-950);
  border-color: #9bd6ff;
  box-shadow: 0 12px 26px rgba(0, 103, 184, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--ydp-blue-950);
  border-color: #b8e3ff;
  background: linear-gradient(135deg, #eef8ff 0%, #cdeaff 46%, #9bd6ff 100%);
}

.page-hero::before {
  background:
    linear-gradient(112deg, rgba(0, 41, 79, 0.82) 8%, rgba(0, 103, 184, 0.38) 52%, rgba(0, 68, 127, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 103, 184, 0.08), rgba(0, 41, 79, 0.42));
}

.site-footer {
  background: linear-gradient(148deg, var(--ydp-blue-950) 0%, var(--ydp-blue-900) 58%, var(--ydp-blue-700) 100%);
}

.footer-title,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ydp-sky-200);
}

/* Mobile carousel image fit: fill the viewport width like desktop and avoid side gaps. */
@media (max-width: 991px) {
  .hero-slide {
    background: #071721;
  }

  .hero-slide::before {
    background-size: cover;
    background-position: center center;
    transform: translate3d(0, 0, 0) scale(1.04);
    -webkit-transform: translate3d(0, 0, 0) scale(1.04);
    animation: none;
    -webkit-animation: none;
  }

  .carousel-item.active .hero-slide::before {
    animation: stb-ken-burns-mobile 18s ease-in-out forwards;
    -webkit-animation: stb-ken-burns-mobile 18s ease-in-out forwards;
  }
}

@media (max-width: 991px) and (orientation: portrait) {
  .hero-carousel {
    --ydp-mobile-hero-image-height: clamp(230px, 48dvh, 430px);
  }

  .hero-slide {
    align-items: end;
    padding-top: var(--ydp-mobile-hero-image-height);
  }

  .hero-slide::before {
    inset: 0 0 auto;
    height: var(--ydp-mobile-hero-image-height);
  }

  .carousel-control-prev,
  .carousel-control-next {
    top: calc(var(--ydp-mobile-hero-image-height) - 4rem);
    bottom: auto;
  }

  .hero-carousel .carousel-indicators {
    top: calc(var(--ydp-mobile-hero-image-height) - 2.25rem);
    bottom: auto;
  }

  .hero-slide-video {
    align-items: center;
    padding-top: 0;
  }

  .hero-slide-video .hero-video {
    inset: 0;
    height: 100%;
    object-fit: cover;
  }

  .hero-carousel.hero-carousel-video-active .carousel-indicators,
  .hero-carousel:has(.carousel-item.active .hero-slide-video) .carousel-indicators {
    top: auto;
    bottom: clamp(1rem, 2.8vw, 2.1rem);
  }

  .hero-carousel-video-active .hero-content {
    align-self: end;
    max-width: min(92vw, 360px);
    margin: 0 1rem 3.2rem !important;
    padding: 0.65rem 0.75rem;
    background: rgba(6, 31, 53, 0.36);
  }

  .hero-carousel-video-active .hero-content h1 {
    font-size: clamp(1.05rem, 5.6vw, 1.55rem);
    line-height: 1.05;
    margin-bottom: 0;
  }

  .hero-carousel-video-active .hero-eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.3rem;
  }

  .hero-carousel-video-active .hero-content > p,
  .hero-carousel-video-active .hero-actions {
    display: none;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: min(760px, 88dvh);
  }
}

@media (max-width: 991px) and (orientation: landscape) {
  .hero-slide {
    padding-top: 0;
  }

  .hero-slide::before {
    inset: 0;
    height: auto;
    background-position: right center;
  }

  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: calc(100dvh - var(--ydp-header-height));
  }

  .hero-content {
    max-width: min(430px, 50vw);
    padding: 0.75rem 0.9rem;
  }

  .hero-content h1 {
    font-size: clamp(1.35rem, 3.4vw, 1.95rem);
    margin-bottom: 0.45rem;
  }

  .hero-content p {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 0.55rem;
  }

  .hero-actions {
    margin-top: 0.75rem;
  }

  .carousel-control-prev {
    right: calc(1rem + 56px);
    left: auto;
  }

  .carousel-control-next {
    right: 1rem;
    left: auto;
  }
}

/* Boutique blush theme inspired by Maya Nails Spa. */
:root {
  --stb-font: "Montserrat", Arial, Helvetica, sans-serif;
  --stb-navy: #8f6b24;
  --stb-blue: #b42f73;
  --stb-blue-bright: #d94f9a;
  --stb-ice: #fff4f7;
  --stb-line: rgba(99, 37, 61, 0.14);
  --stb-muted: #7b6570;
  --stb-cream: #fffaf2;
  --stb-blush: #f8dce7;
  --stb-rose-soft: #f2b8cf;
  --stb-gold: #c99a38;
  --stb-gold-dark: #8f6b24;
  --stb-gold-light: #f1d79a;
  --stb-text-dark: #2f2230;
}

body {
  font-family: var(--stb-font);
  color: var(--stb-text-dark);
  background: linear-gradient(180deg, #fff7fa 0%, #f8dce7 48%, #fffaf2 100%);
}

body::before,
body::after {
  display: none;
}

h1,
h2,
h3,
h4,
.brand-text,
.footer-brand {
  font-family: var(--stb-font) !important;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header {
  top: 0.65rem;
  margin: 0 auto;
  width: min(1180px, calc(100% - 1.5rem));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 64, 67, 0.12);
  box-shadow: 0 16px 38px rgba(19, 64, 67, 0.13);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  overflow: visible;
}

.site-header .navbar {
  padding: 0.58rem 0;
}

.site-header .container {
  max-width: 1140px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header .brand-logo {
  height: 58px !important;
  max-height: 58px !important;
  width: 194px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(99, 37, 61, 0.1));
}

.site-header .brand-text {
  display: none;
  color: var(--stb-blue);
  font-family: "Montserrat", "Inter", Arial, Helvetica, sans-serif !important;
  font-size: clamp(0.96rem, 1.34vw, 1.32rem) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em !important;
  line-height: 1;
}

.nav-link {
  position: relative;
  min-width: auto;
  height: 2.5rem;
  color: #000000;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  margin-left: 0.15rem;
  padding: 0 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0.72rem;
  bottom: 0.32rem;
  left: 0.72rem;
  height: 2px;
  border-radius: 999px;
  background: #86b84f;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #000000;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.nav-link:hover::after,
.nav-link:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .dropdown-menu {
  min-width: 15.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(19, 64, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(19, 64, 67, 0.14);
}

.site-header .dropdown-item {
  min-height: 2.35rem;
  border-radius: 10px;
  color: #000000;
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: normal;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
  color: #000000;
  background: #eef8f3;
}

.nav-icon-link {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  color: #7d624f;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-link::after {
  content: none;
}

.nav-icon-link:hover,
.nav-icon-link:focus {
  color: #7d624f;
  background: #f8f2ed;
  border-color: rgba(125, 98, 79, 0.24);
}

.facebook-mark {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #ffffff;
  background: #7d624f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 0.12rem;
  overflow: hidden;
  transform: translateY(0);
}

.instagram-mark {
  position: relative;
  width: 1.08rem;
  height: 1.08rem;
  border: 2px solid currentColor;
  border-radius: 0.32rem;
  display: block;
}

.instagram-mark::before {
  content: "";
  position: absolute;
  inset: 0.24rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.instagram-mark::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 50%;
  background: currentColor;
}

.nav-cta {
  color: #000000;
  border-color: rgba(95, 150, 59, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, #8bbd4f 0%, #5f963b 100%);
  box-shadow: 0 13px 26px rgba(95, 150, 59, 0.26);
  padding-left: 1.18rem;
  padding-right: 1.18rem;
}

.nav-cta:hover,
.nav-cta:focus {
  color: #000000;
  background: linear-gradient(135deg, #79ab43 0%, #47792d 100%);
  box-shadow: 0 15px 30px rgba(71, 121, 45, 0.28);
}

.nav-cta::after {
  content: none;
}

.navbar-toggler {
  border: 2px solid rgba(0, 0, 0, 0.72);
  background: #ffffff;
  border-radius: 14px;
  width: 3rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

.navbar-toggler-icon {
  filter: none;
  width: 1.45rem;
  height: 1.45rem;
  background-image: none !important;
  background-color: transparent;
  position: relative;
  display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  border-radius: 999px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0.05rem;
  width: 1.35rem;
  height: 0.18rem;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.navbar-toggler-icon::before {
  top: 0.34rem;
}

.navbar-toggler-icon::after {
  bottom: 0.34rem;
}

.navbar-toggler-icon {
  background:
    linear-gradient(#000000, #000000) center / 1.35rem 0.18rem no-repeat !important;
}

.site-header .navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.site-header .lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin-left: 0.55rem;
  padding: 0.24rem;
  border: 1px solid rgba(201, 154, 56, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 245, 226, 0.7) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 22px rgba(99, 37, 61, 0.08);
}

.site-header .lang-btn {
  width: 2.62rem;
  height: 2.22rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.site-header .lang-btn:hover,
.site-header .lang-btn:focus {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 16px rgba(99, 37, 61, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.site-header .lang-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(180, 47, 115, 0.22);
}

.site-header .lang-btn.active {
  background: linear-gradient(135deg, #fff8e8 0%, #f1d79a 100%);
  box-shadow: 0 9px 18px rgba(143, 107, 36, 0.2);
}

.site-header .lang-flag-frame {
  width: 1.76rem;
  height: 1.18rem;
  border-radius: 0.22rem;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px rgba(91, 51, 70, 0.16), 0 3px 8px rgba(91, 51, 70, 0.12);
}

.site-header .lang-btn img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.hero-content {
  max-width: 680px;
  border-radius: 0;
  border: 0;
  background: rgba(74, 36, 52, 0.22);
  box-shadow: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-content h1,
.page-hero h1 {
  font-family: var(--stb-font) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.98;
}

.hero-eyebrow,
.eyebrow {
  color: var(--stb-blue-bright);
  font-weight: 900;
  letter-spacing: 0.22em;
}

.section-light,
.section-split {
  background: linear-gradient(180deg, var(--stb-ice) 0%, var(--stb-cream) 100%);
}

.section-dark {
  background: linear-gradient(145deg, var(--stb-gold-dark) 0%, var(--stb-gold) 54%, var(--stb-gold-light) 100%);
  color: var(--stb-text-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--stb-text-dark);
}

.feature-card,
.service-card,
.stat-card,
.cta-card,
.gallery-card {
  border-radius: 0;
  border: 1px solid var(--stb-line);
  box-shadow: 0 18px 44px rgba(99, 37, 61, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);
}

.doctor-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.35rem;
  border: 1px solid var(--stb-line);
}

.process-step {
  border-radius: 0;
}

.btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.btn-primary {
  color: #ffffff;
  border-color: var(--stb-blue);
  background: var(--stb-blue);
  box-shadow: 0 12px 24px rgba(180, 47, 115, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #ffffff;
  border-color: var(--stb-gold-dark);
  background: var(--stb-gold-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-slide-video::before {
  background-image: none;
  content: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(143, 107, 36, 0.58), rgba(201, 154, 56, 0.14));
}

.gallery-card video,
.gallery-video-thumb img,
.gallery-video-thumb video {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.gallery-video-thumb {
  position: relative;
  display: block;
}

.video-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: rgba(143, 107, 36, 0.86);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-inner video {
  width: 100%;
  max-height: min(78vh, 860px);
  background: #000000;
  display: block;
}

.admin-image-preview video,
video.admin-image-preview {
  background: #000000;
}

@media (max-width: 991px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: 20px;
  }

  .site-header .navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-header .navbar-brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 4rem);
  }

  .site-header .brand-logo {
    height: 46px !important;
    max-height: 46px !important;
    width: min(164px, 100%);
  }

  .site-header .navbar-toggler {
    display: inline-flex !important;
    margin-left: auto;
    color: #000000;
    border-color: rgba(0, 0, 0, 0.76);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  }

  .navbar-collapse {
    flex-basis: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 64, 67, 0.12);
    box-shadow: 0 18px 38px rgba(19, 64, 67, 0.13);
  }

  .nav-link {
    width: 100%;
    min-width: 100%;
    margin-left: 0;
    margin-bottom: 0.45rem;
    text-align: center;
    border-radius: 12px;
    background: #f5fbf7;
    border-color: rgba(25, 67, 70, 0.1);
    color: #000000;
  }

  .nav-link::after {
    content: none;
  }

  .nav-icon-link,
  .nav-cta {
    min-width: 100%;
    width: 100%;
  }

  .nav-icon-link {
    border-radius: 12px;
  }

  .nav-cta {
    background: linear-gradient(135deg, #8bbd4f 0%, #5f963b 100%);
  }

  .site-header .lang-toggle {
    width: 100%;
    margin: 0.15rem 0 0;
    padding: 0.28rem;
    gap: 0.35rem;
  }

  .site-header .lang-btn {
    flex: 1 1 0;
    max-width: 5.2rem;
    height: 2.45rem;
  }

  .nav-icon-link,
  .nav-cta,
  .nav-icon-link:hover,
  .nav-icon-link:focus,
  .nav-cta:hover,
  .nav-cta:focus {
    color: #000000;
  }
}

@media (max-width: 380px) {
  .site-header .brand-logo {
    height: 42px !important;
    max-height: 42px !important;
    width: min(140px, 100%);
  }

  .site-header .navbar-toggler {
    width: 2.75rem;
    height: 2.55rem;
  }
}

/* Keep carousel media proportional and less cropped. */
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
  min-height: clamp(520px, 78vh, 760px);
}

.hero-slide {
  background: linear-gradient(135deg, #eaf4ff 0%, #d7ecff 52%, #f3f9ff 100%);
}

.hero-slide::before {
  background-size: contain;
  background-position: center center;
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  animation: none;
  -webkit-animation: none;
  will-change: transform, background-position;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel-item.active .hero-slide::before {
  animation: stb-ken-burns 18s ease-in-out forwards;
  -webkit-animation: stb-ken-burns 18s ease-in-out forwards;
}

.hero-video {
  object-fit: contain;
  background: linear-gradient(135deg, #eaf4ff 0%, #d7ecff 52%, #f3f9ff 100%);
}

.carousel-item.active .hero-video {
  animation: stb-ken-burns 18s ease-in-out forwards;
  -webkit-animation: stb-ken-burns 18s ease-in-out forwards;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 991px) {
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: clamp(500px, 76vh, 700px);
  }

  .hero-slide::before {
    background-size: contain;
    background-position: center center;
    height: 100%;
    inset: 0;
  }

  .hero-slide-video {
    padding-top: 0;
  }

  .hero-slide-video .hero-video {
    height: 100%;
    object-fit: cover;
  }

  .hero-carousel-video-active .hero-content {
    max-width: min(92vw, 380px);
    padding: 0.7rem 0.8rem;
  }
}

@keyframes stb-ken-burns {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1.02);
    background-position: 46% center;
  }

  100% {
    transform: translate3d(2.5%, 0, 0) scale(1.16);
    background-position: 58% center;
  }
}

@-webkit-keyframes stb-ken-burns {
  0% {
    -webkit-transform: translate3d(-2%, 0, 0) scale(1.02);
    background-position: 46% center;
  }

  100% {
    -webkit-transform: translate3d(2.5%, 0, 0) scale(1.16);
    background-position: 58% center;
  }
}

@keyframes stb-ken-burns-mobile {
  0% {
    transform: translate3d(-3%, 0, 0) scale(1.04);
    background-position: 45% center;
  }

  100% {
    transform: translate3d(3%, 0, 0) scale(1.18);
    background-position: 60% center;
  }
}

@-webkit-keyframes stb-ken-burns-mobile {
  0% {
    -webkit-transform: translate3d(-3%, 0, 0) scale(1.04);
    background-position: 45% center;
  }

  100% {
    -webkit-transform: translate3d(3%, 0, 0) scale(1.18);
    background-position: 60% center;
  }
}

@media (max-width: 991px) {
  .carousel-item.active .hero-slide::before {
    animation: stb-ken-burns-mobile 12s ease-in-out infinite alternate !important;
    -webkit-animation: stb-ken-burns-mobile 12s ease-in-out infinite alternate !important;
  }

  .carousel-item.active .hero-video {
    animation: stb-ken-burns-mobile 12s ease-in-out infinite alternate !important;
    -webkit-animation: stb-ken-burns-mobile 12s ease-in-out infinite alternate !important;
  }
}

@media (max-width: 991px), (hover: none), (pointer: coarse) {
  .hero-carousel .carousel-item.active .hero-slide::before {
    transform-origin: center center;
    -webkit-transform-origin: center center;
    animation-name: stb-ken-burns-mobile !important;
    animation-duration: 12s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-direction: alternate !important;
    -webkit-animation-name: stb-ken-burns-mobile !important;
    -webkit-animation-duration: 12s !important;
    -webkit-animation-timing-function: ease-in-out !important;
    -webkit-animation-iteration-count: infinite !important;
    -webkit-animation-direction: alternate !important;
  }
}

/* Final header contrast override: keep menu labels readable against the white header. */
.site-header .navbar .navbar-nav .nav-link,
.site-header .navbar-dark .navbar-nav .nav-link,
.site-header .navbar .navbar-nav .nav-link:hover,
.site-header .navbar .navbar-nav .nav-link:focus,
.site-header .navbar .navbar-nav .nav-cta,
.site-header .navbar .navbar-nav .nav-cta:hover,
.site-header .navbar .navbar-nav .nav-cta:focus {
  color: #000000 !important;
}

/* Mobile hero media: make images fill the carousel frame like videos. */
@media (max-width: 991px) {
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-slide {
    min-height: min(760px, 88dvh);
  }

  .hero-slide {
    align-items: end;
    padding-top: 0;
  }

  .hero-slide::before {
    inset: 0;
    height: 100%;
    background-size: cover;
    background-position: center center;
  }

  .hero-video {
    inset: 0;
    height: 100%;
    object-fit: cover;
  }

  .hero-carousel .carousel-indicators {
    top: auto;
    bottom: clamp(1rem, 2.8vw, 2.1rem);
  }

  .carousel-control-prev,
  .carousel-control-next {
    top: auto;
    bottom: clamp(1rem, 2.8vw, 2.1rem);
  }

  .hero-content,
  .hero-carousel-video-active .hero-content {
    align-self: end;
    max-width: min(92vw, 380px);
    margin: 0 1rem 3.2rem !important;
    padding: 0.7rem 0.8rem;
    background: rgba(6, 31, 53, 0.36);
  }

  .hero-content h1,
  .hero-carousel-video-active .hero-content h1 {
    font-size: clamp(1.05rem, 5.6vw, 1.55rem);
    line-height: 1.05;
    margin-bottom: 0;
  }

  .hero-eyebrow,
  .hero-carousel-video-active .hero-eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.3rem;
  }

  .hero-content > p,
  .hero-actions,
  .hero-carousel-video-active .hero-content > p,
  .hero-carousel-video-active .hero-actions {
    display: none;
  }
}

/* Final Visit Flow/FAQ band override: keep process sections in the light blue site palette. */
.section-dark {
  background: linear-gradient(180deg, #eaf4ff 0%, #d7ecff 52%, #f3f9ff 100%) !important;
  color: var(--navy-dark) !important;
}

.section-dark::before {
  background:
    radial-gradient(42vmax 26vmax at 8% 0%, rgba(0, 120, 212, 0.12), transparent 70%),
    radial-gradient(38vmax 24vmax at 94% 100%, rgba(91, 163, 230, 0.16), transparent 72%) !important;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--navy-dark) !important;
}

.section-dark .eyebrow,
.process-step span {
  color: #0078d4 !important;
}

.process-step {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(0, 120, 212, 0.16) !important;
  box-shadow: 0 18px 42px rgba(0, 68, 127, 0.1);
}

/* Reference-site presentation */
:root {
  --reference-blue: #b8d9f3;
  --reference-blue-strong: #a7cdeb;
  --reference-ink: #1d1d1d;
  --reference-muted: #5e6265;
  --reference-gray: #efeded;
  --reference-soft: #f7f7f7;
}

body {
  background: #fff;
  color: var(--reference-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.reference-header {
  position: relative;
  z-index: 1000;
  min-height: 80px;
  background: var(--reference-blue);
}

.reference-nav-wrap {
  width: min(100% - 48px, 1200px);
  min-height: 80px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 30px;
}

.reference-brand img {
  display: block;
  width: 138px;
  height: 56px;
  object-fit: contain;
}

.reference-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.reference-nav a,
.reference-nav button,
.reference-phone {
  border: 0;
  background: transparent;
  color: #161616;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.reference-nav a:hover,
.reference-nav button:hover,
.reference-phone:hover {
  color: #315b79;
}

.reference-nav-services {
  position: relative;
}

.reference-nav-services > button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 24px 0;
}

.reference-nav-services > button span {
  font-size: 18px;
  font-weight: 400;
}

.reference-service-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: -22px;
  display: none;
  width: 250px;
  padding: 12px 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 42, 58, .16);
}

.reference-nav-services:hover .reference-service-menu,
.reference-nav-services.is-open .reference-service-menu {
  display: grid;
}

.reference-service-menu a {
  padding: 11px 22px;
  font-weight: 600;
}

.reference-phone {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #fff;
}

.reference-menu-toggle {
  display: none;
}

.reference-home {
  overflow: hidden;
}

.reference-home h1,
.reference-home h2,
.reference-home h3,
.reference-footer h2 {
  margin: 0;
  color: var(--reference-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.reference-home p,
.reference-footer p {
  color: #42474a;
  line-height: 1.72;
}

.reference-hero {
  position: relative;
  min-height: 980px;
  background: var(--reference-blue);
  overflow: hidden;
}

.reference-hero-image {
  position: absolute;
  inset: 0 0 74px 0;
  width: 100%;
  height: calc(100% - 74px);
  object-fit: cover;
  object-position: center;
}

.reference-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding-top: 190px;
}

.reference-hero-copy > * {
  max-width: 540px;
}

.reference-kicker {
  margin: 0 0 22px;
  color: #183c55 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.reference-hero h1 {
  max-width: 600px;
  font-size: 68px;
  line-height: 1.08;
}

.reference-hero-copy > p:not(.reference-kicker) {
  margin: 35px 0;
  font-size: 16px;
}

.reference-actions {
  display: flex;
  gap: 18px;
}

.reference-btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0;
}

.reference-btn-dark { background: #171717; color: #fff; }
.reference-btn-blue { background: var(--reference-blue); }

.reference-info-strip {
  min-height: 88px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  display: grid;
  grid-template-columns: 1.3fr 1fr .7fr;
  align-items: center;
  gap: 28px;
  background: var(--reference-blue);
  color: #3b5261;
  font-size: 13px;
}

.reference-info-strip a { color: inherit; text-decoration: none; }

.reference-section {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: 110px 0;
}

.reference-section h2 {
  font-size: 52px;
  line-height: 1.12;
}

.reference-section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 58px;
}

.reference-section-heading > p { margin: 0; }

.reference-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.reference-service-grid article {
  position: relative;
  min-height: 300px;
  padding: 46px 34px 32px;
  display: flex;
  flex-direction: column;
}

.reference-service-grid article.blue { background: var(--reference-blue-strong); }
.reference-service-grid article.gray { background: var(--reference-gray); }
.reference-service-icon { min-height: 54px; color: #496675; font-size: 38px; }
.reference-service-grid h3 { margin-top: 28px; font-size: 22px; }
.reference-service-grid p { margin: 15px 0 22px; font-size: 14px; line-height: 1.55; }
.reference-service-grid a { margin-top: auto; color: #333; font-size: 13px; font-weight: 700; text-decoration: none; }

.reference-doctor {
  width: 100%;
  max-width: none;
  padding: 115px max(24px, calc((100% - 1200px) / 2));
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 110px;
  align-items: center;
  background: var(--reference-soft);
}

.reference-doctor > div { max-width: 520px; }
.reference-doctor p:not(.reference-kicker) { margin: 28px 0 34px; }
.reference-doctor figure { margin: 0; display: flex; justify-content: center; }
.reference-doctor figure img { width: min(100%, 500px); aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border: 8px solid #fff; box-shadow: 0 8px 0 var(--reference-blue); }

.reference-why {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 85px;
}

.reference-why-copy p:not(.reference-kicker) { margin: 28px 0 34px; }
.reference-why-visual { position: relative; padding: 0 0 90px 70px; }
.reference-why-visual > img { width: 100%; height: 490px; object-fit: cover; object-position: 62% center; }
.reference-metric { position: absolute; bottom: 0; width: 200px; min-height: 170px; padding: 34px 20px; display: grid; place-content: center; text-align: center; background: var(--reference-blue); }
.reference-metric:first-of-type { left: 0; }
.reference-metric:last-of-type { left: 215px; }
.reference-metric strong { font-size: 45px; line-height: 1; }
.reference-metric span { margin-top: 15px; color: #4a5963; font-size: 13px; }

.reference-insurance { text-align: center; }
.reference-insurance-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.reference-insurance-grid img { width: 100%; height: 105px; object-fit: contain; }

.reference-quote {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #496f89;
}
.reference-quote > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(.3); }
.reference-quote::after { content: ""; position: absolute; inset: 0; background: rgba(36, 83, 113, .66); }
.reference-quote > div { position: relative; z-index: 1; max-width: 780px; padding: 30px; text-align: center; color: #fff; }
.reference-quote blockquote { margin: 0 0 25px; font-size: 38px; line-height: 1.3; font-weight: 800; }
.reference-quote cite { font-style: normal; font-size: 14px; }

.reference-footer {
  padding: 85px max(24px, calc((100% - 1200px) / 2)) 26px;
  background: #fff;
}
.reference-footer-grid { display: grid; grid-template-columns: 1.25fr 1.1fr .65fr 1fr; gap: 65px; padding-bottom: 60px; }
.reference-footer-grid h2 { margin-bottom: 27px; font-size: 13px; text-transform: uppercase; }
.reference-footer-grid p { margin: 16px 0; font-size: 14px; }
.reference-footer-grid a { display: block; margin: 9px 0; color: #4e5356; font-size: 14px; text-decoration: none; }
.reference-footer-brand img { width: 150px; height: 62px; object-fit: contain; }
.reference-footer-bottom { min-height: 58px; padding-top: 20px; border-top: 1px solid #d8e1e7; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: #666; font-size: 12px; }
.reference-footer-bottom > a { justify-self: end; color: inherit; text-decoration: none; }
.reference-language { display: flex; gap: 5px; }
.reference-language button { border: 1px solid #b8c4cc; background: #fff; padding: 4px 8px; font-size: 11px; }
.reference-language button.active { background: var(--reference-blue); }

@media (max-width: 991px) {
  .reference-nav-wrap { width: min(100% - 32px, 720px); grid-template-columns: 1fr auto; min-height: 74px; }
  .reference-brand img { width: 120px; height: 50px; }
  .reference-phone { display: none; }
  .reference-menu-toggle { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; border: 0; background: transparent; }
  .reference-menu-toggle span { display: block; width: 24px; height: 2px; background: #111; }
  .reference-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; padding: 22px 24px 30px; align-items: stretch; background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.13); }
  .reference-nav.is-open { display: grid; gap: 0; }
  .reference-nav > a, .reference-nav-services > button { width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid #e8e8e8; }
  .reference-nav-services > button { justify-content: space-between; }
  .reference-service-menu { position: static; width: 100%; box-shadow: none; padding: 4px 0 10px 16px; }
  .reference-hero { min-height: 780px; }
  .reference-hero-image { inset: 0 0 54px; height: calc(100% - 54px); object-position: 62% center; }
  .reference-hero-image::after { content: ""; }
  .reference-hero-copy { width: min(100% - 32px, 720px); padding-top: 90px; }
  .reference-hero-copy::before { content: ""; position: absolute; inset: 55px auto auto -16px; width: min(580px, calc(100vw - 20px)); height: 520px; background: rgba(255,255,255,.82); z-index: -1; }
  .reference-hero h1 { font-size: 50px; }
  .reference-info-strip { padding: 22px 24px; grid-template-columns: 1fr; gap: 12px; }
  .reference-section { width: min(100% - 32px, 720px); padding: 80px 0; }
  .reference-section h2 { font-size: 40px; }
  .reference-section-heading, .reference-doctor, .reference-why { grid-template-columns: 1fr; gap: 45px; }
  .reference-section-heading { margin-bottom: 40px; }
  .reference-service-grid { grid-template-columns: repeat(2, 1fr); }
  .reference-doctor { width: 100%; padding: 80px max(16px, calc((100% - 720px) / 2)); }
  .reference-why-visual { padding-left: 40px; }
  .reference-insurance-grid { grid-template-columns: repeat(3, 1fr); }
  .reference-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .reference-hero { min-height: 720px; }
  .reference-hero-copy { padding-top: 72px; }
  .reference-hero-copy::before { height: 540px; }
  .reference-hero h1 { font-size: 39px; }
  .reference-hero-copy > p:not(.reference-kicker) { font-size: 14px; }
  .reference-actions { flex-wrap: wrap; gap: 10px; }
  .reference-btn { min-height: 48px; padding: 0 24px; }
  .reference-section h2 { font-size: 34px; }
  .reference-service-grid { grid-template-columns: 1fr; }
  .reference-service-grid article { min-height: 250px; }
  .reference-why-visual { padding: 0 0 150px; }
  .reference-why-visual > img { height: 330px; }
  .reference-metric { width: 50%; min-height: 145px; }
  .reference-metric:first-of-type { left: 0; }
  .reference-metric:last-of-type { left: 50%; }
  .reference-insurance-grid { grid-template-columns: repeat(2, 1fr); }
  .reference-quote { min-height: 460px; }
  .reference-quote blockquote { font-size: 28px; }
  .reference-footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .reference-footer-bottom { grid-template-columns: 1fr auto; }
  .reference-footer-bottom > a { grid-column: 1 / -1; justify-self: start; }
}

.reference-service-page {
  background: #fff;
}

.reference-service-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 50px 24px;
  isolation: isolate;
  background-image: var(--service-image);
  background-size: cover;
  background-position: center;
}

.reference-service-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 30, 46, .56);
}

.reference-service-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 64px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.reference-service-content {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
  padding: 105px 0;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: center;
}

.reference-service-copy h2 {
  margin: 0 0 30px;
  color: var(--reference-ink);
  font-size: 50px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.reference-service-copy > p:not(.reference-kicker) {
  margin: 0 0 24px;
  color: #303438;
  font-size: 18px;
  line-height: 1.75;
}

.reference-service-copy .reference-actions {
  margin-top: 38px;
}

.reference-service-photo {
  margin: 0;
}

.reference-service-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  object-fit: cover;
}

@media (max-width: 767px) {
  .reference-service-hero { min-height: 310px; }
  .reference-service-hero h1 { font-size: 42px; }
  .reference-service-content { width: min(100% - 32px, 620px); padding: 70px 0; grid-template-columns: 1fr; gap: 42px; }
  .reference-service-copy h2 { font-size: 36px; }
  .reference-service-copy > p:not(.reference-kicker) { font-size: 16px; }
}
