/* ===================================================================
   SMILE POINT DENTAL CLINIC — Design tokens
   Palette: deep clinical teal + warm coral accent + soft mint & gold
   Type: Fraunces (display, warm/characterful) + Manrope (body, clean)
   Signature: hand-drawn "smile-arc" divider used between sections
   =================================================================== */

:root {
  /* Color */
  --bg: #FFFDF8;
  --bg-soft: #EAF5F1;
  --bg-soft-2: #DCEFEA;
  --ink: #14302B;
  --ink-soft: #4C6864;
  --primary: #0B4F4A;
  --primary-light: #12726A;
  --primary-dark: #072F2C;
  --accent: #FF6F52;
  --accent-dark: #E1502F;
  --gold: #F2B705;
  --line: #CFE4DE;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 40px -20px rgba(11, 79, 74, 0.25);
  --shadow-card: 0 12px 30px -16px rgba(20, 48, 43, 0.18);
  --ease: cubic-bezier(.22,.85,.32,1);
}

/* ===================== Reset & base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--primary-dark); margin: 0 0 .5em; line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
address { font-style: normal; }
iframe { border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: .8em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: .95rem; padding: .9em 1.6em; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(225, 80, 47, .55); }
.btn-solid:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.6px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--primary-dark); font-weight: 700; }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 1.05em 2em; font-size: 1.02rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(11,79,74,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--primary-dark); display: flex; flex-direction: column; line-height: 1.1; }
.brand-text em { font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: .93rem; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .25s var(--ease); }
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary-dark); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ===================== Reveal-on-scroll ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; padding: 84px 0 60px; background: var(--bg); }
.hero-blob {
  position: absolute; top: -180px; right: -220px; width: 640px; height: 640px;
  background: radial-gradient(circle at 30% 30%, var(--bg-soft-2), var(--bg-soft) 60%, transparent 75%);
  border-radius: 50%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--accent-dark); margin-bottom: .9em; }

.hero-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); letter-spacing: -.01em; }
.underline-swipe { position: relative; color: var(--primary); white-space: nowrap; }
.underline-swipe::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .32em;
  background: var(--gold); opacity: .55; z-index: -1; border-radius: 3px;
  transform: scaleX(0); transform-origin: left; animation: swipe 1s var(--ease) .5s forwards;
}
@keyframes swipe { to { transform: scaleX(1); } }

.hero-sub { font-size: 1.08rem; max-width: 46ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2em; }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-chip { display: flex; flex-direction: column; }
.trust-chip strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary-dark); }
.trust-chip strong span { color: var(--gold); }
.trust-chip span:last-child { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }

.hero-media { position: relative; }
.hero-media img { border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-media-card {
  position: absolute; left: -30px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  max-width: 280px;
}
.hero-media-card svg { width: 34px; height: 34px; flex-shrink: 0; color: #fff; background: var(--primary); border-radius: 50%; padding: 8px; }
.hero-media-card strong { display: block; font-size: .92rem; color: var(--primary-dark); }
.hero-media-card span { font-size: .78rem; color: var(--ink-soft); }

/* ===================== Trust strip ===================== */
.trust-strip { background: var(--primary); color: #fff; padding: 34px 0; }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.trust-item .label { font-size: .8rem; opacity: .85; font-weight: 600; }

/* ===================== Smile divider (signature) ===================== */
.smile-divider { color: var(--primary-light); opacity: .5; line-height: 0; }
.smile-divider svg { width: 100%; height: 40px; display: block; }
.smile-divider.flip svg { transform: scaleY(-1); }
.smile-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.smile-divider.in-view .smile-path { animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===================== Section shared ===================== */
section { padding: 90px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.light h2, .section-head.light .eyebrow { color: #fff; }
.section-sub { font-size: 1.02rem; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }

/* ===================== Services ===================== */
.services { background: var(--bg); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--primary-light); box-shadow: 0 24px 40px -20px rgba(11,79,74,.3); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.16rem; margin-bottom: .4em; }
.service-card p { font-size: .93rem; margin-bottom: 1.2em; }
.card-link { font-weight: 700; font-size: .88rem; color: var(--accent-dark); display: inline-flex; gap: 6px; }
.card-link span { transition: transform .25s var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* ===================== Why us ===================== */
.why-us { background: var(--bg-soft); }
.why-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.why-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); aspect-ratio: 8/9; object-fit: cover; }
.why-list { display: flex; flex-direction: column; gap: 30px; }
.why-list li { display: flex; gap: 20px; align-items: flex-start; }
.why-mark { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); flex-shrink: 0; width: 46px; }
.why-list h3 { font-size: 1.08rem; margin-bottom: .3em; }
.why-list p { font-size: .93rem; margin-bottom: 0; }

/* ===================== Dentist ===================== */
.dentist { background: var(--bg); }
.dentist-inner { display: grid; grid-template-columns: .55fr 1fr; gap: 56px; align-items: center; }
.dentist-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); aspect-ratio: 3/4; object-fit: cover; }
.dentist-copy p { font-size: 1.02rem; }
.dentist-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6em; }
.dentist-badges span { background: var(--bg-soft); border: 1px solid var(--line); color: var(--primary-dark); font-size: .8rem; font-weight: 600; padding: .5em 1em; border-radius: 999px; }

/* ===================== Gallery ===================== */
.gallery { background: var(--bg-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-card); }
.gallery img { aspect-ratio: 1/1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(7,47,44,.85), transparent); }

/* ===================== Testimonials ===================== */
.testimonials { background: var(--primary-dark); position: relative; overflow: hidden; }
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); padding: 30px; }
.testi-card p { color: #EAF5F1; font-family: var(--font-display); font-size: 1.08rem; font-style: italic; line-height: 1.5; }
.testi-card cite { color: var(--gold); font-weight: 700; font-size: .85rem; font-style: normal; }

/* ===================== FAQ ===================== */
.faq { background: var(--bg); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; text-align: left; font-family: var(--font-display); font-size: 1.05rem; color: var(--primary-dark); font-weight: 600; }
.acc-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-left: 16px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease); }
.acc-icon::before { width: 18px; height: 2px; top: 8px; left: 0; }
.acc-icon::after { width: 2px; height: 18px; top: 0; left: 8px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel p { padding: 0 4px 22px; font-size: .95rem; }

/* ===================== Location ===================== */
.location { background: var(--bg-soft); }
.location-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.location-copy address { font-size: 1rem; color: var(--ink-soft); margin-bottom: 1.4em; line-height: 1.7; }
.hours-list { margin-bottom: 1.8em; border-top: 1px solid var(--line); }
.hours-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.hours-list li span:last-child { color: var(--ink-soft); font-weight: 500; }
.location-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.location-map iframe { width: 100%; height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ===================== Final CTA ===================== */
.final-cta { background: linear-gradient(135deg, var(--primary), var(--primary-light)); text-align: center; }
.final-cta-inner { max-width: 620px; margin: 0 auto; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #DCEFEA; font-size: 1.05rem; margin-bottom: 1.8em; }

/* ===================== Footer ===================== */
.site-footer { background: var(--primary-dark); color: #DCEFEA; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text em { color: var(--gold); }
.footer-brand p { color: #9FC3BC; font-size: .9rem; margin-top: .8em; }
.footer-col h3 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1em; }
.footer-col a { display: block; color: #B9D8D2; font-size: .92rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px; }
.footer-bottom p { color: #7FA69E; font-size: .8rem; margin: 0; text-align: center; }

/* ===================== Floating WhatsApp ===================== */
.floating-whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; color: #25D366;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  animation: pulse 2.4s ease-in-out infinite;
}
.floating-whatsapp svg { width: 32px; height: 32px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); }
  50% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .95), 0 0 0 10px rgba(37, 211, 102, .12); }
}

/* ===================== Responsive ===================== */
@media (max-width: 1020px) {
  .hero-inner, .why-inner, .dentist-inner, .location-inner { grid-template-columns: 1fr; }
  .why-media, .dentist-media { max-width: 420px; }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-track { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
}

@media (max-width: 780px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .hero-media-card { position: static; margin-top: 16px; max-width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-header.nav-open .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 20px 24px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 20px; }
  .header-cta .btn-solid { padding: .75em 1.2em; font-size: .85rem; }
}
