/* DRK Dental Clinic — design system. Modern medical technology aesthetic. */

:root {
  --color-primary: #073b4c;
  --color-primary-deep: #042a36;
  --color-secondary: #087e8b;
  --color-accent: #22c7a9;
  --color-accent-soft: #dff8f4;
  --color-background: #f7fbfc;
  --color-surface: #ffffff;
  --color-surface-muted: #eef6f8;
  --color-text: #102a33;
  --color-text-muted: #5b7078;
  --color-border: #dce9ec;
  --color-error: #b42318;
  --color-success: #067647;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(7, 59, 76, .06), 0 2px 8px rgba(7, 59, 76, .05);
  --shadow: 0 8px 30px rgba(7, 59, 76, .10);
  --shadow-lg: 0 24px 60px rgba(7, 59, 76, .16);

  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 74px;

  --grad-hero: radial-gradient(120% 120% at 80% 0%, #0b5566 0%, #073b4c 45%, #042a36 100%);
  --grad-accent: linear-gradient(120deg, var(--color-secondary), var(--color-accent));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--color-primary); margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
a { color: var(--color-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Layout ------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--muted { background: var(--color-surface-muted); }
.section--deep { background: var(--grad-hero); color: #eaf6f8; }
.section--deep h2, .section--deep h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: .9rem; }
.section--deep .eyebrow { color: var(--color-accent); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--color-text-muted); }
.section--deep .lead { color: #bfe6e6; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s, background .2s, color .2s;
  min-height: 48px; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-accent); color: #052e28; box-shadow: 0 10px 24px rgba(34, 199, 169, .3); }
.btn-primary:hover { color: #052e28; box-shadow: 0 14px 30px rgba(34, 199, 169, .42); }
.btn-solid { background: var(--color-primary); color: #fff; }
.btn-solid:hover { color: #fff; background: var(--color-primary-deep); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-sm { padding: .55rem 1rem; min-height: 40px; font-size: .88rem; }

/* Cards ------------------------------------------------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--color-accent); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--color-accent-soft); color: var(--color-secondary); margin-bottom: 1rem;
}
.pill { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--color-secondary); background: var(--color-accent-soft); padding: .25rem .7rem; border-radius: 999px; }
.placeholder-note { display: inline-block; font-size: .75rem; color: var(--color-error); background: #fef3f2; border: 1px dashed #fca; padding: .1rem .5rem; border-radius: 6px; }

/* Announcement + Header --------------------------------- */
.announcement { background: var(--color-primary-deep); color: #cfeff0; text-align: center; font-size: .86rem; padding: .5rem 1rem; }
.announcement button { background: none; border: 0; color: #7fd6d6; cursor: pointer; margin-left: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s, backdrop-filter .3s;
  background: transparent;
}
.site-header.solid { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--color-border); }
.site-header .container { max-width: 1300px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.25rem; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--color-primary); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; flex-shrink: 0; }
.brand-mark { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(34,199,169,.35); }
.brand-name { line-height: 1; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.site-header:not(.solid) .brand { color: #fff; }
.site-header:not(.solid) .nav-links a { color: #eaf6f8; }
.site-header:not(.solid) .nav-toggle { color: #fff; }

.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-links a { color: var(--color-text); font-weight: 500; font-size: .92rem; padding: .5rem .7rem; border-radius: 8px; position: relative; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--color-secondary); }
.nav-links a.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--color-primary); cursor: pointer; padding: .4rem; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--color-surface); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 1.25rem var(--gutter); overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.mobile-menu a.mlink { display: block; padding: .9rem .25rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--color-primary); border-bottom: 1px solid var(--color-border); }
.mobile-menu .mobile-actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .75rem; }
body.no-scroll { overflow: hidden; }

/* Hero -------------------------------------------------- */
.hero { position: relative; background: var(--grad-hero); color: #eaf6f8; padding-top: calc(var(--header-h) * -1); margin-top: calc(var(--header-h) * -1); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(40% 40% at 15% 20%, rgba(34,199,169,.16), transparent 70%),
  radial-gradient(50% 50% at 90% 80%, rgba(8,126,139,.28), transparent 70%);
  pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(6rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { color: #fff; }
.hero .lead { color: #bfe6e6; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 1.25rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.quick-actions a { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: #d6f2f2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: .45rem .8rem; border-radius: 999px; }
.quick-actions a:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Hero visual composition */
.hero-visual { position: relative; min-height: 380px; }
.scan-ring { position: absolute; inset: 8% 12%; border-radius: 50%; border: 1px solid rgba(34,199,169,.35); }
.scan-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.tooth-shape { position: absolute; inset: 18% 22%; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.22); border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; backdrop-filter: blur(4px); }
.float-card { position: absolute; background: rgba(255,255,255,.96); color: var(--color-text); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow-lg); font-size: .82rem; min-width: 150px; }
.float-card .k { font-family: var(--font-head); font-weight: 700; color: var(--color-primary); display: block; font-size: .95rem; }
.float-card.a { top: 6%; right: 2%; }
.float-card.b { bottom: 10%; left: -2%; }
.float-card .badge { display: inline-flex; align-items: center; gap: .35rem; color: var(--color-success); font-weight: 600; }

/* Trust strip ------------------------------------------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 2rem; }
.trust-strip .item { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: #d9f2f2; }
.trust-strip .item svg { color: var(--color-accent); flex: 0 0 auto; }

/* Treatment cards --------------------------------------- */
.treatment-card h3 { display: flex; align-items: center; gap: .5rem; }
.treatment-card .more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; margin-top: .5rem; }

/* Journey timeline -------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: step; }
.timeline .step { position: relative; padding-top: 2.5rem; }
.timeline .step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; background: var(--grad-accent); color: #052e28; }
.timeline .step::after { content: ""; position: absolute; top: 20px; left: 40px; right: -1rem; height: 2px; background: var(--color-border); }
.timeline .step:last-child::after { display: none; }
.section--deep .timeline .step::after { background: rgba(255,255,255,.2); }

/* Pricing ----------------------------------------------- */
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.price-row .amt { font-family: var(--font-head); font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.notice { border: 1px solid #b7e6dd; background: var(--color-accent-soft); color: #0c4a45; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: .92rem; }
.notice .notice-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--color-secondary); }

/* FAQ accordion ----------------------------------------- */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); margin-bottom: .75rem; overflow: hidden; }
.faq-item button.q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--color-primary); cursor: pointer; }
.faq-item button.q svg { transition: transform .25s; flex: 0 0 auto; }
.faq-item[aria-expanded="true"] button.q svg { transform: rotate(180deg); }
.faq-item .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item[aria-expanded="true"] .a { grid-template-rows: 1fr; }
.faq-item .a-inner { overflow: hidden; min-height: 0; color: var(--color-text-muted); }
.faq-item .a-inner p { padding: 0 1.25rem 1.15rem; margin: 0; }

/* Doctor cards ------------------------------------------ */
.doctor-card { text-align: left; }
.doctor-card .avatar { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--color-surface-muted), var(--color-accent-soft)); display: grid; place-items: center; color: var(--color-secondary); margin-bottom: 1rem; overflow: hidden; }
.doctor-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }

/* Forms ------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--color-primary); }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-secondary); outline: none; box-shadow: 0 0 0 3px var(--color-accent-soft); }
.field .err { color: var(--color-error); font-size: .82rem; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--color-error); }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.consent input { width: auto; margin-top: .25rem; }
.form-status { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-top: 1rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #ecfdf3; color: #05603a; border: 1px solid #a6f4c5; }

/* Contact info cards ------------------------------------ */
.info-card { display: flex; gap: .85rem; align-items: flex-start; }
.info-card .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--color-accent-soft); color: var(--color-secondary); display: grid; place-items: center; }

/* Footer ------------------------------------------------ */
.site-footer { background: var(--color-primary-deep); color: #b9d7db; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #b9d7db; display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; }
.social-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }

/* Floating contact -------------------------------------- */
.floating { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: .6rem; }
.floating a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.floating a:hover { transform: scale(1.08); color: #fff; }
.floating .wa { background: #25d366; }
.floating .call { background: var(--color-secondary); }
.floating .book { background: var(--color-primary); }

/* Page hero (interior) ---------------------------------- */
.page-hero { background: var(--grad-hero); color: #eaf6f8; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); margin-top: calc(var(--header-h) * -1); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #bfe6e6; }
.breadcrumbs { font-size: .85rem; color: #9fd3d3; margin-bottom: .75rem; }
.breadcrumbs a { color: #9fd3d3; }
.breadcrumbs a:hover { color: #fff; }

/* Filters (treatments) ---------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.75rem; }
.filter-bar .search { flex: 1 1 240px; }
.chip { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem; transition: all .2s; }
.chip.active, .chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.empty-state { text-align: center; color: var(--color-text-muted); padding: 3rem 1rem; }

/* Prose (legal) ----------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }

/* Animation --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-card { animation: floaty 6s ease-in-out infinite; }
.float-card.b { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .btn:hover, .card-hover:hover { animation: none; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; }
  .timeline { grid-template-columns: 1fr; }
  .timeline .step { padding: 0 0 1.5rem 3.25rem; }
  .timeline .step::after { top: 40px; left: 20px; right: auto; bottom: 0; width: 2px; height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .float-card { display: none; }
}

.brand-logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
