/* ==========================================================================
   Persona Dental Group — Design Tokens
   ========================================================================== */
:root{
  /* Color system */
  --white:        #ffffff;
  --grey-50:      #f6f7f6;
  --grey-100:     #eef0ee;
  --grey-300:     #d7dbd8;
  --grey-500:     #8a8f8c;
  --grey-700:     #4a4e4b;
  --ink:          #111311;   /* near-black for headings */
  --green-900:    #0d3d27;   /* deep green, dark sections */
  --green-700:    #146c43;   /* primary brand green */
  --green-600:    #1c8a54;   /* interactive / hover */
  --green-100:    #e7f4ec;   /* light green tint */
  --green-050:    #f3faf6;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,p{ margin:0; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for a11y */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--green-700); color:#fff;
  padding:10px 16px; z-index:200; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}

/* ==========================================================================
   Type scale
   ========================================================================== */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color: var(--green-700);
}
.eyebrow::before{
  content:""; width:6px; height:6px; border-radius:50%; background: var(--green-600);
}
h1{ font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight:700; line-height:1.04; letter-spacing:-0.02em; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight:700; line-height:1.1; letter-spacing:-0.015em; }
h3{ font-size: 1.25rem; font-weight:700; letter-spacing:-0.01em; }
.lede{ font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--grey-700); line-height:1.55; font-weight:400; }
p{ color: var(--grey-700); line-height:1.65; font-size:1rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 28px; border-radius: 999px; font-weight:600; font-size:0.98rem;
  border:1.5px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background: var(--green-700); color:#fff; }
.btn-primary:hover{ background: var(--green-600); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--grey-300); }
.btn-ghost:hover{ border-color: var(--ink); transform: translateY(-1px); }
.btn-on-dark{ background: #fff; color: var(--green-900); }
.btn-on-dark:hover{ background: var(--green-100); transform: translateY(-1px); }
.btn-ghost-on-dark{ background:transparent; color:#fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-on-dark:hover{ border-color:#fff; }
.btn-sm{ padding:10px 18px; font-size:.9rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  position: sticky; top:0; z-index:100;
  height: var(--nav-h);
  display:flex; align-items:center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled{ border-bottom-color: var(--grey-100); }
.nav .container{ display:flex; align-items:center; justify-content:space-between; width:100%; }

.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.05rem; letter-spacing:-0.01em; }
.brand .mark{ width:30px; height:30px; flex:0 0 auto; }
.brand .mark path{ stroke: var(--green-700); }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links a{
  padding:10px 14px; border-radius:8px; font-size:.94rem; font-weight:500; color: var(--grey-700);
  transition: color .2s, background .2s;
}
.nav-links a:hover{ color: var(--ink); background: var(--grey-50); }
.nav-links a.active{ color: var(--green-700); font-weight:600; }

.nav-cta{ display:flex; align-items:center; gap:10px; }
.lang-toggle{
  font-size:.82rem; font-weight:600; color:var(--grey-500); border:1px solid var(--grey-300);
  border-radius:999px; padding:6px 12px; background:none;
}
.lang-toggle:hover{ color:var(--ink); border-color:var(--grey-500); }

.nav-toggle{
  display:none; width:40px; height:40px; border:none; background:none; position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:8px; right:8px; height:2px; background:var(--ink); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span{ top:19px; }
.nav-toggle span::before{ top:-7px; }
.nav-toggle span::after{ top:7px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after{ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-cta .lang-toggle{ display:none; }
  .nav-toggle{ display:block; }

  .mobile-menu{
    position:fixed; inset: var(--nav-h) 0 0 0; background: var(--white);
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    z-index:99; overflow-y:auto;
  }
  .mobile-menu.is-open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .mobile-menu .container{ padding-top:16px; padding-bottom:32px; display:flex; flex-direction:column; gap:4px; }
  .mobile-menu a{
    padding:16px 4px; font-size:1.25rem; font-weight:600; border-bottom:1px solid var(--grey-100);
  }
  .mobile-menu .mobile-cta{ margin-top:20px; display:flex; flex-direction:column; gap:12px; }
  .mobile-menu .lang-toggle{ align-self:flex-start; margin-top:20px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative; overflow:hidden;
  padding: 96px 0 84px;
  background: linear-gradient(180deg, var(--green-050) 0%, var(--white) 72%);
}
.hero-blob{
  position:absolute; z-index:0; border-radius:50%;
  filter: blur(60px); opacity:.55;
}
.hero-blob.b1{ width:520px; height:520px; background: var(--green-100); top:-220px; right:-160px; }
.hero-blob.b2{ width:360px; height:360px; background: var(--green-050); bottom:-180px; left:-120px; }

.hero .container{ position:relative; z-index:1; }
.hero-content{ max-width:760px; }
.hero-content .eyebrow{ margin-bottom:18px; }
.hero-content h1{ margin-bottom:22px; }
.hero-content .lede{ max-width:560px; margin-bottom:34px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }

.smile-divider{ width:100%; height:auto; display:block; margin-top:64px; }
.smile-divider path{ stroke: var(--green-600); }

/* Trust strip */
.trust-strip{ border-top:1px solid var(--grey-100); border-bottom:1px solid var(--grey-100); background: var(--white); }
.trust-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:0;
  padding: 28px 0;
}
.trust-item{ text-align:center; padding:0 12px; border-left:1px solid var(--grey-100); }
.trust-item:first-child{ border-left:none; }
.trust-item .num{ font-size:1.5rem; font-weight:700; color:var(--green-700); letter-spacing:-0.01em; }
.trust-item .label{ font-size:.82rem; color:var(--grey-500); margin-top:4px; }

@media (max-width: 760px){
  .trust-grid{ grid-template-columns: repeat(2, 1fr); row-gap:24px; }
  .trust-item:nth-child(3){ border-left:none; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section{ padding: 96px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head .eyebrow{ margin-bottom:14px; }
.section-head h2{ margin-bottom:16px; }
.alt-bg{ background: var(--grey-50); }

.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:20px;
}
.service-card{
  background: var(--white); border:1px solid var(--grey-100); border-radius: var(--radius-md);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(13,61,39,.25);
  border-color: var(--green-100);
}
.service-icon{
  width:52px; height:52px; border-radius:14px; background: var(--green-100);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.service-icon svg{ width:26px; height:26px; }
.service-icon path, .service-icon circle{ stroke: var(--green-700); }
.service-card h3{ margin-bottom:8px; }
.service-card p{ font-size:.94rem; margin-bottom:16px; }
.service-card .link{ font-size:.9rem; font-weight:600; color: var(--green-700); display:inline-flex; align-items:center; gap:6px; }
.service-card .link svg{ width:14px; height:14px; transition: transform .2s; }
.service-card:hover .link svg{ transform: translateX(3px); }

@media (max-width: 960px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   About split
   ========================================================================== */
.about-split{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.about-visual{
  position:relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow:hidden;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  display:flex; align-items:center; justify-content:center;
}
.about-visual svg{ width:46%; }
.about-visual path{ stroke:#fff; opacity:.9; }
.about-text p{ margin-bottom:18px; }
.about-stats{ display:flex; gap:32px; margin-top:28px; }
.about-stats div .num{ font-size:1.6rem; font-weight:700; color:var(--green-700); }
.about-stats div .label{ font-size:.82rem; color:var(--grey-500); }

@media (max-width: 860px){
  .about-split{ grid-template-columns:1fr; gap:36px; }
  .about-visual{ order:-1; }
}

/* ==========================================================================
   Dentists
   ========================================================================== */
.dentists-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.dentist-card{
  background:#fff; border:1px solid var(--grey-100); border-radius: var(--radius-md);
  padding:26px 22px; text-align:center; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dentist-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(13,61,39,.22); }
.avatar{
  width:76px; height:76px; border-radius:50%; margin:0 auto 16px;
  background: var(--green-100); color:var(--green-700); font-weight:700; font-size:1.15rem;
  display:flex; align-items:center; justify-content:center;
}
.dentist-card h3{ font-size:1.05rem; margin-bottom:2px; }
.dentist-card .role{ font-size:.85rem; color:var(--green-700); font-weight:600; margin-bottom:10px; }
.dentist-card p{ font-size:.86rem; }

@media (max-width: 960px){ .dentists-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   First visit steps
   ========================================================================== */
.steps-row{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; counter-reset: step; }
.step-card{ position:relative; padding-top:8px; }
.step-card .step-num{
  width:44px; height:44px; border-radius:50%; background: var(--green-700); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:20px;
}
.step-card h3{ margin-bottom:8px; }
.step-card p{ font-size:.92rem; }
.step-line{ position:absolute; top:22px; left:64px; right:-20px; height:2px; background: var(--grey-100); }
.step-card:last-child .step-line{ display:none; }

@media (max-width: 860px){
  .steps-row{ grid-template-columns: 1fr 1fr; row-gap:36px; }
  .step-line{ display:none; }
}
@media (max-width: 560px){ .steps-row{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.review-card{
  background: var(--white); border:1px solid var(--grey-100); border-radius: var(--radius-md);
  padding:28px; display:flex; flex-direction:column; gap:16px;
}
.review-stars{ display:flex; gap:3px; }
.review-stars svg{ width:16px; height:16px; }
.review-stars path{ fill: var(--green-600); }
.review-card p{ font-size:.95rem; color: var(--ink); }
.review-name{ font-size:.85rem; font-weight:700; color: var(--grey-700); }

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

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner{
  background: var(--green-900); color:#fff; border-radius: var(--radius-lg);
  padding: 64px 48px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  margin: 0 24px; max-width: calc(var(--container) - 0px);
}
.cta-banner-inner{ max-width: var(--container); margin:0 auto; width:100%; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-text h2{ color:#fff; margin-bottom:10px; }
.cta-text p{ color: rgba(255,255,255,.75); max-width:460px; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer{ background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap:40px; margin-bottom:56px; }
.footer-brand .brand{ color:#fff; margin-bottom:14px; }
.footer-brand .mark path{ stroke:#fff; }
.footer-brand p{ color: rgba(255,255,255,.55); font-size:.9rem; max-width:280px; }
.footer-col h4{ color:#fff; font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:18px; font-weight:700; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a, .footer-col p{ font-size:.92rem; color: rgba(255,255,255,.65); }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:28px; border-top:1px solid rgba(255,255,255,.12); font-size:.82rem; color: rgba(255,255,255,.45);
}

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; row-gap:36px; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-banner, .cta-banner-inner{ text-align:center; justify-content:center; }
  .cta-actions{ justify-content:center; width:100%; }
}

/* ==========================================================================
   Responsive section padding
   ========================================================================== */
@media (max-width: 760px){
  section{ padding: 64px 0; }
  .hero{ padding: 64px 0 56px; }
  .about-split{ text-align:left; }
  .cta-banner{ padding: 40px 28px; margin:0 16px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ transition:none; opacity:1; transform:none; }
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}
