
@font-face {
  font-family: 'Minigap';
  src: url('../assets/fonts/Minigap-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-navy: #0f2c57;
  --color-navy-dark: #0a1f3d;
  --color-blue-light: #4db8e8;
  --color-cream: #ebddd0;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.6);
  --color-border-soft: rgba(100, 100, 100, 0.16);
  --font-base: 'Poppins', sans-serif;
  --radius-pill: 80px;
  --container-max: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-black);
  background: #fcfcfa;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 5%;
  background: transparent;
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.site-header .logo .logo-full {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-header .logo:hover .logo-full {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 18px;
}

.nav-links a {
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.7;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a[href="contact.html"] {
  padding: 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0px 10px 24px 0px rgba(15, 44, 87, 0.25);
}

.btn-pill:active {
  transform: translateY(-1px);
}

.btn-navy {
  background: linear-gradient(220deg, var(--color-navy) 3.5%, #255a96 100%);
  color: #fff;
}

.btn-navy:hover {
  opacity: 0.9;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger:hover span {
  opacity: 0.7;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--color-navy);
}

/* Mobile nav dropdown — .nav-open is toggled on .site-header by js/nav.js.
   Below the hamburger breakpoint .nav-links is hidden by default (see the
   1460px query below); this reveals it as a floating panel and forces
   readable navy text regardless of the header's hero/light context. */
.site-header.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.18);
  border-radius: 0 0 24px 24px;
  padding: 8px 24px 20px;
  z-index: 200;
}

.site-header.nav-open .nav-links a {
  color: var(--color-navy) !important;
  opacity: 1 !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.site-header.nav-open .nav-links a:last-child {
  border-bottom: none;
}

/* Light header (used on interior pages with white bg) */
.site-header.light .nav-links,
.site-header.light .logo p {
  color: var(--color-navy);
}

/* Dark hero header (text over image) */
.site-header.on-hero .nav-links a {
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  max-width: calc(1549px - 80px);
  width: calc(100% - 80px);
  margin: 80px auto 40px;
  border-radius: 55px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0px 14px 84px 0px rgba(0, 0, 0, 0.05);
  /* Reserve room for the wave below the text. This is intentionally less
     than the wave images' own full height (31.02%) — the wave overlay
     isn't cropped or resized, it just overlaps upward behind the
     divider/bottom row (pale green there, same as the reference), which
     keeps the card shorter without touching the wave assets. */
  padding-bottom: 19%;
}

/* Text block sizing uses clamp(min, vw, max) so it scales fluidly with
   the viewport. The wave is a separate SVG + logo overlay layered behind
   this text (see .footer-wave-wrap) rather than a flattened image, so it
   is crisp at any size and never needs cropping. */
.footer-top {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.7vw, 48px) clamp(24px, 6vw, 83px) clamp(12px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}

.footer-newsletter h3 {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 500;
  margin-bottom: clamp(10px, 1.5vw, 18px);
}

.newsletter-form {
  position: relative;
  background: var(--color-border-soft);
  border-radius: 110px;
  height: clamp(42px, 4.4vw, 58px);
  display: flex;
  align-items: center;
  padding: 0 clamp(5px, 0.8vw, 7px) 0 clamp(12px, 1.6vw, 18px);
  margin-bottom: clamp(10px, 1.5vw, 18px);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: clamp(10px, 1vw, 13px);
}

.newsletter-form button {
  background: #fff;
  color: var(--color-navy);
  height: calc(100% - clamp(6px, 1vw, 10px));
  padding: 0 clamp(14px, 2vw, 22px);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: clamp(10px, 1vw, 13px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.newsletter-form button:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.footer-newsletter p {
  font-size: clamp(11px, 1.2vw, 15px);
  line-height: 1.4;
  color: var(--color-text-muted);
}

.footer-col h4 {
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 500;
  margin-bottom: clamp(6px, 0.8vw, 9px);
}

.footer-col hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: clamp(8px, 1vw, 12px);
  width: 100%;
}

.footer-col ul li {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.7vw, 7px);
  padding: clamp(3px, 0.5vw, 6px) 0;
  font-size: clamp(10px, 1vw, 12px);
}

.footer-col ul li img {
  width: clamp(8px, 0.8vw, 10px);
  height: clamp(8px, 0.8vw, 10px);
}

.footer-divider {
  position: relative;
  z-index: 2;
  margin: 0 clamp(24px, 6vw, 83px);
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.5vw, 18px) clamp(24px, 6vw, 83px) clamp(18px, 2.2vw, 29px);
  font-size: clamp(10px, 1.2vw, 15px);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: clamp(10px, 1.5vw, 18px);
}

.footer-legal a {
  transition: opacity 0.2s ease;
}

.footer-legal a:hover {
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
}

.footer-social a {
  width: clamp(20px, 2.2vw, 26px);
  height: clamp(20px, 2.2vw, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.8;
}

.footer-social img {
  width: clamp(10px, 1.2vw, 15px);
  height: clamp(10px, 1.2vw, 15px);
}

.footer-wave-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  padding-top: 31.02%;
  z-index: 0;
}

.footer-wave-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}

.footer-wave-green {
  z-index: 0;
}

.footer-wave-navy {
  z-index: 1;
}

.footer-logo-img {
  position: absolute;
  left: 6%;
  bottom: 8%;
  width: 40%;
  height: auto;
  z-index: 2;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ---------- Site Hero (full-bleed photo, white fade from left) ----------
   Shared across pages — same banner as the home page, just its text and
   photo swapped per page. Keep it here (not in a page-specific stylesheet)
   so every page that uses it stays visually identical. */
.hero {
  position: relative;
  margin: 24px max(40px, 2%) 0;
  border-radius: 50px;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 2.15 / 1;
  min-height: 560px;
}

.hero .site-header {
  position: relative;
  z-index: 3;
  justify-content: flex-start;
  gap: 64px;
  padding: 44px 5% 0;
}

.hero .site-header.on-hero .nav-links a,
.hero .site-header.on-hero .logo p {
  color: var(--color-navy);
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0) 60%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 37%;
}

.hero-content h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(28px, 3.85vw, 74px);
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 8px;
}

.hero-content h1 span {
  display: block;
}

.hero-content h1 .line-navy {
  color: #004883;
  font-weight: 500;
}

.hero-content h1 .line-navy:not(.line-bold),
.hero-content h1 .line-pink {
  font-family: 'Minigap', 'Quicksand', sans-serif;
  font-weight: 300;
}

.hero-content h1 .line-bold {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.hero-content h1 .line-pink {
  color: #f4a0b5;
}

.hero-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #004883;
  max-width: 420px;
  margin: 12px 0 16px;
  line-height: 1.6;
}

.hero-content .btn-pill {
  margin-top: -8px;
}

@media (max-width: 1100px) {
  .hero-content h1 { font-size: 44px; }
}

@media (max-width: 700px) {
  .hero { aspect-ratio: auto; min-height: 460px; }
  .hero-content { max-width: 80%; }
  .hero-content h1 {
    white-space: normal;
    font-size: clamp(24px, 7vw, 40px);
  }
  .hero-content p { max-width: 100%; }
}

/* ---------- Hero variant: no left fade, text banner-style centered at
   the top instead of left-middle. Used by pages whose hero photo doesn't
   have empty space on the left for the usual left-aligned text block
   (e.g. Doctors, Gallery). ---------- */
.hero-top-center .hero-photo-wrap::before {
  display: none;
}

.hero-top-center .hero-content {
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: 100%;
  text-align: center;
}

.hero-top-center .hero-content h1 {
  white-space: normal;
  font-size: clamp(28px, 2.8vw, 52px);
  margin-bottom: 0;
}

.hero-top-center .hero-content p {
  max-width: 500px;
  margin: 8px auto 12px;
}

.hero-top-center .hero-content .btn-pill {
  margin-top: 0;
}

@media (max-width: 700px) {
  .hero-top-center .hero-content {
    top: 20%;
    max-width: 92%;
  }
}

/* ---------- Interior Page Hero ---------- */
.page-hero-header {
  position: relative;
  margin: 0 5% 60px;
  border-radius: 50px;
  overflow: hidden;
  background: linear-gradient(197deg, #0f2c57 3.5%, #255a96 100%);
}

.page-hero-header .header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.page-hero-header .site-header {
  position: relative;
  padding: 32px 40px;
}

.page-hero-header .nav-links a,
.page-hero-header .logo p {
  color: #fff;
}

.page-hero-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 5% 100px;
  overflow: hidden;
}

.page-hero-text {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.page-hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 200;
  font-size: 110px;
  line-height: 1;
  margin-bottom: 24px;
}

.page-hero-text p {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 32px;
}

.page-hero-image {
  position: relative;
  flex: 0 0 auto;
  width: 45%;
  max-width: 620px;
}

.page-hero-image img.hero-photo {
  width: 100%;
  border-radius: 60px 200px 60px 200px;
  object-fit: cover;
  aspect-ratio: 1.15;
}

.page-hero-image .floating-card-img {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 55%;
  border-radius: 30px;
  box-shadow: 0px 14px 44px 0px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .page-hero-body {
    flex-direction: column;
    padding-bottom: 60px;
  }
  .page-hero-image {
    width: 100%;
  }
  .page-hero-text h1 {
    font-size: 64px;
  }
}

@media (max-width: 1280px) {
  .hamburger {
    display: flex;
  }
  .nav-links,
  .site-header .btn-pill {
    display: none;
  }
}

/* ---------- Scroll reveal (presentation-style entrance animation) ----------
   Mark an element .reveal (fade + slide up) or .reveal-scale (fade + scale
   in) and js/reveal.js flips on .is-visible the first time it scrolls into
   view. Wrap a set of siblings in .reveal-group to stagger their entrance
   automatically via --reveal-index. */
/* Uses the standalone translate/scale properties (not transform) so the
   entrance animation never clashes with an element's own transform (e.g.
   .hero-top-center centering via translateX, or a hover-state transform). */
.reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-index, 0) * 0.1s);
}

.reveal-scale {
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.6s ease, scale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-index, 0) * 0.1s);
}

.reveal.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: none;
  }
}

/* ---------- Header alignment + responsive fixes ---------- */
.site-header .logo { flex-shrink: 0; }
.site-header .logo .logo-full { height: 44px; width: auto; max-width: none; object-fit: contain; }
.hamburger { margin-left: auto; padding: 8px; flex-shrink: 0; }
@media (min-width: 1281px) and (max-width: 1460px) {
  .hero .site-header { gap: 32px; }
  .nav-links { gap: 22px; font-size: 16px; }
  .site-header .btn-pill { padding: 10px 24px; margin-left: auto; }
}
@media (max-width: 1280px) {
  .site-header, .hero .site-header { justify-content: space-between; gap: 16px; }
}
@media (max-width: 700px) {
  .site-header, .hero .site-header, .page-hero-header .site-header { padding: 20px 20px 0; }
  .site-header .logo .logo-full { height: 34px; }
  .hero { margin: 12px 12px 0; border-radius: 28px; min-height: 420px; }
  .hero-photo-wrap::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 40%, rgba(255,255,255,0) 75%); }
  .hero-content { top: 90px; transform: none; left: 20px; right: 20px; max-width: none; }
  .hero-top-center .hero-content { top: 90px; left: 50%; transform: translateX(-50%); }
  .hero-top-center .hero-content h1 { font-size: clamp(22px, 6.5vw, 32px); }
  .hero-content p { font-size: 13px; }
  .container { padding: 0 20px; }
  .site-footer { width: calc(100% - 24px); margin: 40px auto 20px; border-radius: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero-header { margin: 0 12px 32px; border-radius: 28px; }
  .page-hero-text h1 { font-size: 44px; }
  .page-hero-text p { font-size: 16px; }
  .page-hero-image .floating-card-img { right: 0; bottom: -20px; }
  section { scroll-margin-top: 20px; }
}
@media (max-width: 700px) {
  main > section:not(.hero), body > section:not(.hero) { padding-left: 20px; padding-right: 20px; }
}
/* Header "Book Appointment" CTA — visible at every size */
.site-header .header-cta { display: inline-flex !important; margin-left: auto; padding: 10px 24px; }
.site-header .header-cta + .hamburger { margin-left: 12px; }
@media (max-width: 700px) {
  .site-header .header-cta { padding: 8px 14px; font-size: 12px; }
  .site-header .logo .logo-full { height: 28px; }
}

.nav-links a { white-space: nowrap; }
.site-header { min-width: 0; }
@media (max-width: 700px) {
  .site-header, .hero .site-header { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .site-header .logo { flex-shrink: 1; min-width: 0; }
  .site-header .logo .logo-full { height: auto; width: 100%; max-width: 140px; }
  .site-header .header-cta { padding: 8px 12px; font-size: 11px; }
  .site-header .header-cta + .hamburger { margin-left: 0; }
}
@media (min-width: 701px) and (max-width: 1280px) { .hero .site-header { padding-right: calc(5% + 48px); } }
/* Header always compact: logo + Book Appointment + hamburger at every width */
.hamburger { display: flex !important; }
.site-header .nav-links { display: none; }
.site-header.nav-open .nav-links { display: flex; }
.site-header, .hero .site-header { justify-content: space-between; gap: 16px; }
.site-header .header-cta { margin-left: auto; }
@media (min-width: 701px) { .hero .site-header { padding-right: calc(5% + 48px); } }
