/* =========================================================================
   Cadugo Dental Clinic — Qmart Branch
   Bespoke static site by OK Studios. No build step, one shared stylesheet.
   Creative direction: "The unhurried chair." Calm, clinical-warm, editorial.
   ========================================================================= */

:root {
  /* Palette — warm paper, deep pine accent, near-black ink */
  --paper:    #F7F5F0;
  --paper-2:  #EFEDE6;
  --card:     #FFFFFF;
  --mint:     #E7EEEA;   /* soft tint block */
  --pine:     #2F5D57;   /* primary accent — clinical-warm, not corporate blue */
  --pine-ink: #234641;
  --ink:      #1B211F;
  --muted:    #6A716D;
  --line:     #E2DED4;
  --gold:     #B6894B;   /* rating stars / small flourish */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --shadow: 0 24px 60px -28px rgba(28, 40, 37, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 6.6vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--text); font-size: 12.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--pine);
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.serif-em { font-style: italic; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-ink); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.brand .dot { color: var(--pine); }
.brand small { font-family: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); align-self: center; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--pine); transition: width .3s var(--ease); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* ---- Hero ---- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero h1 em { font-style: italic; color: var(--pine); }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -22px; bottom: 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.hero-badge .stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.hero-badge .big { font-family: var(--display); font-size: 26px; font-weight: 600; }
.hero-badge small { color: var(--muted); font-size: 12.5px; }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 22px 0; }
.trust li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.trust li b { color: var(--ink); font-weight: 600; }
.trust li .mk { color: var(--pine); }

/* ---- Section scaffolding ---- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin: 14px 0 18px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-figure img { width: 100%; aspect-ratio: 3.4 / 4; object-fit: cover; border-radius: var(--radius); }
.about-body p + p { margin-top: 18px; }
.pull { font-family: var(--display); font-size: clamp(22px, 2.7vw, 30px); line-height: 1.25; color: var(--pine-ink); font-style: italic; margin: 28px 0 0; padding-left: 22px; border-left: 3px solid var(--pine); }

/* ---- Care / services ---- */
.care { background: var(--ink); color: #F3F2ED; }
.care .eyebrow { color: #9FC3BB; }
.care .section-head p { color: #B7BAB4; }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.care-cell { background: var(--ink); padding: 34px 30px; min-height: 190px; display: flex; flex-direction: column; transition: background .35s var(--ease); }
.care-cell:hover { background: #232b28; }
.care-cell .no { font-family: var(--display); font-size: 15px; color: #7f8f8a; }
.care-cell h3 { margin: 16px 0 10px; color: #fff; }
.care-cell p { font-size: 14.5px; color: #AEB2AB; line-height: 1.55; }

/* ---- Why (pillars + image band) ---- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.pillars { display: grid; gap: 4px; }
.pillar { padding: 22px 4px; border-bottom: 1px solid var(--line); }
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar h3 { display: flex; align-items: baseline; gap: 14px; font-family: var(--text); font-size: 18px; font-weight: 600; }
.pillar h3 .idx { font-family: var(--display); color: var(--pine); font-size: 16px; }
.pillar p { margin: 8px 0 0 32px; color: var(--muted); font-size: 14.5px; }
.why-figure img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Visit ---- */
.visit { background: var(--mint); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.visit-info h2 { margin: 14px 0 24px; }
.info-rows { display: grid; gap: 2px; margin-bottom: 30px; }
.info-row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.info-row .k { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.info-row .v { font-size: 16px; }
.info-row .v a { color: var(--pine-ink); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .25s; }
.info-row .v a:hover { border-bottom-color: var(--pine); }
.hours-line { display: flex; justify-content: space-between; max-width: 320px; padding: 3px 0; font-size: 15px; }
.hours-line span:last-child { color: var(--muted); }
.hours-line.closed span:last-child { color: #B0645A; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #C9CDC7; padding: clamp(56px, 7vw, 84px) 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { font-family: var(--display); font-size: 30px; color: #fff; font-weight: 600; }
.footer-brand + p { margin-top: 14px; max-width: 34ch; font-size: 14.5px; color: #9CA19B; }
.footer-col h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #7f8781; margin-bottom: 16px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: #C9CDC7; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 12.5px; color: #7f8781; }
.footer-bottom a:hover { color: #fff; }

/* ---- Scroll reveal (only hidden when JS is present, so no-JS stays visible) ---- */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
/* Collapse the horizontal nav to a drawer before it gets cramped */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-140%); transition: transform .4s var(--ease); box-shadow: var(--shadow); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { margin-top: 12px; justify-content: center; border: 1px solid var(--pine); }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .why-grid, .visit-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .hero-figure { order: -1; }
  .about-figure { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-badge { left: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .care-grid { grid-template-columns: 1fr; }
  .trust ul { flex-direction: column; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
