/* style.css — Seraya Dental. Refined, clinical-but-warm, premium.
   Palette: warm paper, deep teal-charcoal ink, one calm teal accent, soft clay variation. */
:root {
  --paper: #FAF8F4;
  --paper-2: #F3EFE7;
  --surface: #FFFFFF;
  --ink: #16302B;
  --muted: #5C6B66;
  --accent: #0F8A82;
  --accent-deep: #0C6F69;
  --accent-soft: #E3F0EE;
  --clay: #E8DDCB;
  --clay-soft: #F2EADB;
  --border: #E9E4DA;
  --star: #E0A100;
  --shadow-sm: 0 2px 10px -4px rgba(16, 48, 43, 0.12);
  --shadow-md: 0 18px 44px -20px rgba(16, 48, 43, 0.30);
  --shadow-lg: 0 30px 70px -28px rgba(16, 48, 43, 0.38);
  --radius: 20px;
  --radius-lg: 28px;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.08; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(15,138,130,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(15,138,130,0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; }
.brand .mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(60px, 9vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); line-height: 1.02; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { margin-top: 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); font-weight: 600; line-height: 1; }
.hero-trust .ht span { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* Hero visual: layered art card with smile-arc motif */
.hero-art { position: relative; aspect-ratio: 5 / 5.4; }
.hero-card {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0F8A82 0%, #0C6F69 60%, #0a5d58 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card .arc { position: absolute; width: 150%; left: -25%; opacity: 0.18; color: #fff; }
.hero-card .arc.a1 { top: 8%; }
.hero-card .arc.a2 { top: 30%; opacity: 0.12; }
.hero-card .glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%); top: -60px; right: -60px; }
.hero-card .leaf { position: absolute; bottom: 26px; left: 28px; width: 64px; color: rgba(255,255,255,0.9); }
.hero-card .hc-tag {
  position: absolute; left: 28px; top: 30px; color: #fff;
  font-family: var(--font-display); font-size: 1.5rem; max-width: 64%; line-height: 1.2;
}
/* floating booking chip */
.hero-chip {
  position: absolute; right: -14px; bottom: 56px;
  background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
  animation: float 5s ease-in-out infinite;
}
.hero-chip .dot { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-chip .dot svg { width: 20px; height: 20px; }
.hero-chip b { font-size: 0.92rem; color: var(--ink); display: block; }
.hero-chip span { font-size: 0.78rem; color: var(--muted); }
.hero-rating {
  position: absolute; left: -16px; top: 132px;
  background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite reverse;
}
.hero-rating .stars { color: var(--star); font-size: 0.9rem; letter-spacing: 2px; }
.hero-rating span { font-size: 0.76rem; color: var(--muted); display: block; margin-top: 2px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Section heading block */
.sec-head { max-width: 60ch; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-pad { padding: clamp(56px, 9vw, 104px) 0; }

/* Services */
.services { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 24px; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { margin-bottom: 8px; font-family: var(--font-display); }
.svc p { font-size: 0.95rem; margin-bottom: 16px; }
.svc .price { font-size: 0.82rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }

/* Why us */
.why .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 66px); align-items: center; }
.why-points { display: grid; gap: 14px; }
.why-pt { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.why-pt .tick { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.why-pt .tick svg { width: 18px; height: 18px; }
.why-pt h3 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 700; margin-bottom: 3px; }
.why-pt p { font-size: 0.93rem; margin: 0; }

/* Dentists */
.dentists { background: var(--clay-soft); }
.dent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.dent { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.dent:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dent img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; background: var(--accent-soft); }
.dent .dbody { padding: 22px 24px 26px; }
.dent h3 { font-family: var(--font-display); margin-bottom: 4px; }
.dent .role { font-size: 0.82rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.dent p { font-size: 0.94rem; margin: 0; }

/* Reviews */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.rev .stars { color: var(--star); letter-spacing: 3px; font-size: 0.95rem; margin-bottom: 14px; }
.rev .quote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.rev .who { font-size: 0.9rem; font-weight: 700; color: var(--muted); }

/* Location */
.location { background: var(--surface); border-top: 1px solid var(--border); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 54px); align-items: center; }
.loc-info .row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.loc-info .row:last-child { border-bottom: none; }
.loc-info .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.loc-info .ic svg { width: 20px; height: 20px; }
.loc-info .row b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; }
.loc-info .row span { color: var(--ink); font-weight: 500; }
.loc-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.loc-map img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.loc-cta { margin-top: 26px; }

/* Footer */
.footer { background: var(--ink); color: #cdd8d4; padding: 64px 0 30px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand .mark { color: #5fd8cf; }
.footer p { color: #9fb0ab; font-size: 0.94rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #7f928d; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #cdd8d4; font-size: 0.95rem; transition: color 0.18s ease; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 46px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: #8a9b96;
}
.footer-bottom .disclosure { max-width: 60ch; }
.footer-bottom a { color: #5fd8cf; font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 8px auto 0; width: 100%; }
  .why .wrap, .loc-grid { grid-template-columns: 1fr; }
  .svc-grid, .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .svc-grid, .rev-grid, .dent-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .hero-chip { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
