/* SmileCare — design tokens matched to reference clinic site */
:root {
  --blue-dark: #062a4e;
  --blue-primary: #073d83;
  --blue-hover: #054177;
  --blue-light: #ebf2fa;
  --blue-pale: #f0f7ff;
  --red-accent: #b02b2a;
  --red-bright: #c72f28;
  --pink-soft: #ecb9b7;
  --text-dark: #212529;
  --text-body: #333333;
  --text-muted: #666666;
  --text-light: #6c757d;
  --bg-white: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-section: #fafafa;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Roboto Slab", Georgia, "Times New Roman", serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(7, 61, 131, 0.08);
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--blue-primary);
  border: 2px solid #fff;
}

.btn-light:hover {
  background: var(--blue-pale);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.main-nav a:hover {
  color: var(--blue-primary);
}

.has-dropdown a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.header-cta {
  margin-left: auto;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
  background: var(--blue-pale);
  min-height: clamp(480px, 100svh, 720px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue-pale) 0%, #e8f1fb 100%);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url("https://cdn.prod.website-files.com/68df4f533623c335b721da7a%2F68df84d3eef77b371c44a9ee_Hero%20bg%20video-poster-00001.jpg")
    center center / cover no-repeat;
  transform: scale(1.03);
  transform-origin: center center;
  animation: hero-bg-zoom 24s ease-in-out infinite alternate;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(240, 247, 255, 0.72) 30%,
      rgba(240, 247, 255, 0.4) 50%,
      rgba(7, 61, 131, 0.12) 100%
    ),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(236, 185, 183, 0.35) 0%, transparent 70%);
}

.hero-bg-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle at 1px 1px, rgba(7, 61, 131, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: hero-blob-float 18s ease-in-out infinite;
}

.hero-bg-blob--1 {
  width: 320px;
  height: 320px;
  top: -8%;
  right: 12%;
  background: rgba(7, 61, 131, 0.25);
  animation-delay: 0s;
}

.hero-bg-blob--2 {
  width: 240px;
  height: 240px;
  bottom: 5%;
  left: 38%;
  background: rgba(236, 185, 183, 0.5);
  animation-delay: -6s;
}

.hero-bg-blob--3 {
  width: 180px;
  height: 180px;
  top: 55%;
  right: 42%;
  background: rgba(176, 43, 42, 0.12);
  animation-delay: -12s;
}

@keyframes hero-bg-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes hero-blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image,
  .hero-bg-blob {
    animation: none;
  }

  .hero-bg-image {
    transform: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  gap: 40px;
  align-items: center;
  min-height: inherit;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero h1 strong {
  font-weight: 800;
}

.text-red {
  color: var(--red-accent);
}

.text-blue {
  color: var(--blue-primary);
}

.sparkles {
  position: absolute;
  inset: -20px auto auto -10px;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.sparkle.red {
  color: var(--red-accent);
  top: 20px;
  left: 0;
}

.sparkle.blue {
  color: var(--blue-primary);
  top: 80px;
  left: 40px;
}

.sparkle.sm {
  width: 8px;
  height: 8px;
  top: 140px;
  left: 10px;
}

/* Section titles */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin: 0 0 16px;
}

.section-title.left {
  text-align: left;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Treatments */
.treatments {
  padding: 80px 0;
  background: var(--bg-white);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.treatment-card {
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.treatment-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--blue-primary);
}

.treatment-icon svg {
  width: 100%;
  height: 100%;
}

.treatment-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin: 0 0 12px;
}

.treatment-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Why choose */
.why-choose {
  padding: 80px 0;
  background: var(--bg-gray);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.why-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.why-content p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-body);
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-section);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue-primary);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin: 0 0 12px;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Team */
.team {
  padding: 80px 0;
  background: var(--blue-pale);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 24px;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card h3 {
  margin: 20px 16px 8px;
  font-size: 1.15rem;
  color: var(--blue-primary);
}

.team-role {
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 16px 8px;
  font-size: 14px;
}

.team-meta {
  margin: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Before / After */
.before-after {
  padding: 80px 0;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.ba-card h3 {
  font-size: 1rem;
  color: var(--blue-primary);
  margin: 0 0 16px;
  text-align: center;
}

.ba-compare {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ba-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-compare::before,
.ba-compare::after {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 4px;
}

.ba-compare::before {
  content: attr(data-label-before);
  left: 12px;
}

.ba-compare::after {
  content: attr(data-label-after);
  right: 12px;
}

.ba-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Reviews */
.reviews {
  padding: 80px 0;
  background: var(--bg-gray);
}

.rating-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin: 32px 0 40px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin-inline: auto;
}

.rating-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
}

.rating-banner strong {
  display: block;
  color: var(--text-dark);
}

.rating-banner p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  margin: 0;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.review-card footer {
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 12px;
  font-size: 14px;
}

.review-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.review-meta {
  text-align: center;
  margin-top: 32px;
  font-weight: 600;
  color: var(--blue-primary);
}

/* Blog */
.blog {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 16px 20px 8px;
  color: var(--text-dark);
  line-height: 1.4;
}

.blog-card p {
  margin: 0 20px 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.blog-card a {
  display: inline-block;
  margin: 0 20px 20px;
  font-weight: 600;
  font-size: 14px;
}

/* CTA */
.cta-section {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.cta-inner p {
  margin: 0 0 28px;
  opacity: 0.9;
}

.cta-inner .btn {
  margin: 0 8px 8px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: #23282d;
  color: #adb5bd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: #dee2e6;
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .why-grid,
  .treatment-grid,
  .feature-grid,
  .team-grid,
  .ba-grid,
  .review-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 16px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .header-cta {
    display: none;
  }

  .header-inner .header-cta.mobile-show {
    display: none;
  }

  .treatment-grid,
  .feature-grid,
  .review-grid,
  .blog-grid,
  .ba-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(100svh, 680px);
    padding: 40px 0 64px;
  }

  .hero-bg-image {
    background-position: center 35%;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(240, 247, 255, 0.55) 38%,
        rgba(240, 247, 255, 0.25) 58%,
        rgba(7, 61, 131, 0.18) 100%
      ),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(236, 185, 183, 0.3) 0%, transparent 65%);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    max-width: none;
  }
}
