/* ═══════════════════════════════════════════════════════════════
   Dentalis — Landing Page Styles
   Built on tokens from globals.css. Light theme, Satoshi + JetBrains Mono.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
address { font-style: normal; }
svg { flex-shrink: 0; }

/* ── EYEBROW / MONO LABEL ───────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── DECORATIVE ABSTRACT GRAPHICS ────────────────────────────
   One visual motif (soft gradient blob + dashed ring), reused
   in the hero, section heads, stats, CTA and footer so it reads
   as a single language rather than a one-off hero flourish.    */
.blob-field {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  background: var(--blob-gradient);
  filter: blur(70px);
  opacity: 0.32;
  animation: blob-float 18s var(--ease-in-out) infinite alternate;
}
.blob--a { width: 420px; height: 420px; top: -140px; left: -110px; }
.blob--b { width: 320px; height: 320px; bottom: -120px; right: -90px; opacity: 0.24; animation-delay: -7s; }
.blob--sm { width: 220px; height: 220px; opacity: 0.2; animation-duration: 13s; }

.ring {
  position: absolute;
  border: 1.5px dashed var(--border-strong);
  border-radius: 50%;
  opacity: 0.55;
  animation: ring-spin 60s linear infinite;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(28px, -22px) scale(1.08) rotate(8deg); }
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* ── SECTION WRAPPER ────────────────────────────────────────── */
.section { position: relative; padding: 120px 6vw; }
.section-tint { background: var(--bg-subtle); }
.section-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.section-inner-narrow { max-width: 640px; margin: 0 auto; text-align: center; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head-center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px 5vw;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
}
.nav.is-scrolled {
  padding: 10px 5vw;
  background: rgba(248, 248, 252, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -12px rgba(15, 0, 83, 0.12);
}
.nav.is-scrolled .nav-logo img { height: 34px; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; transition: height 0.3s var(--ease-out); }

.nav-actions { display: flex; align-items: center; gap: 0; transition: gap 0.3s var(--ease-out); }
.nav.is-scrolled .nav-actions { gap: 20px; }
.nav-phone {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.nav-phone:hover { color: var(--text); }

.nav-cta {
  background: var(--cta-bg); color: var(--cta-text);
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem;
  text-decoration: none; letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  max-width: 0; padding-left: 0; padding-right: 0;
  transform: translateY(-4px);
  transition: max-width 0.35s var(--ease-out), padding 0.35s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out);
}
.nav.is-scrolled .nav-cta {
  opacity: 1; visibility: visible; pointer-events: auto;
  max-width: 220px; padding-left: 22px; padding-right: 22px;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { box-shadow: 0 8px 24px rgba(15, 0, 83, 0.25); transform: translateY(-1px); }
}
.nav-cta:active { transform: scale(0.97); }

#top { position: relative; top: -76px; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 6vw;
  gap: 56px;
}

.hero-inner { position: relative; z-index: 1; }

.hero .ring {
  width: 640px; height: 640px;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 465px));
  animation: none;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--accent-600); }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 auto;
}

.hero-cta { margin-top: 36px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(15, 0, 83, 0.35); transform: translateY(-2px); }
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover { border-color: var(--accent-strong); background: var(--accent-soft); transform: translateY(-2px); }
}

.btn-whatsapp { background: #25D366; color: #ffffff; }
@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.45); transform: translateY(-2px); }
}

.btn-sm { padding: 11px 22px; font-size: 0.85rem; margin-top: 26px; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── INFO STRIP ──────────────────────────────────────────────── */
.info-strip {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 5vw;
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center; align-items: center;
}
.info-chip {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.85rem; color: var(--text-muted);
}
.info-chip svg { color: var(--accent-600); }
.info-chip a { text-decoration: none; transition: color 0.2s; }
.info-chip a:hover { color: var(--text); }
.info-chip-mono { font-family: var(--font-mono); font-size: 0.78rem; }
.info-sep { width: 1px; height: 20px; background: var(--border-strong); }

/* ── SERVICES ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: var(--accent-strong);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -20px rgba(15, 0, 83, 0.16);
  }
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  display: block; margin-bottom: 20px;
}
.service-icon {
  margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-700);
  transition: transform 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* Accent rotation for numbered badges — sparing extra hues, icon color follows */
.service-card:nth-child(3n+2) .service-icon { background: color-mix(in srgb, var(--highlight-amber) 35%, transparent); color: var(--warning-700); }
.service-card:nth-child(3n+3) .service-icon { background: color-mix(in srgb, var(--highlight-mint) 35%, transparent); color: var(--success-700); }

/* ── STATS ("WHY CHOOSE") ───────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center; padding: 40px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    border-color: var(--accent-strong);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -20px rgba(15, 0, 83, 0.16);
  }
}
.stat-num {
  font-size: 3rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); line-height: 1;
  margin-bottom: 12px;
}
.stat-accent { color: var(--accent-600); }
.stat-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── OUR APPROACH ────────────────────────────────────────────── */
.approach-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.approach-card {
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .approach-card:hover { border-color: var(--accent-strong); transform: translateY(-3px); }
}
.approach-num {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--accent-600);
  letter-spacing: 0.04em;
  display: block; margin-bottom: 16px;
}
.approach-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.approach-card p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }

/* ── HOURS & CONTACT ─────────────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } }

.info-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 36px;
}
.info-box h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.info-box-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-700);
  display: inline-flex; align-items: center; justify-content: center;
}

.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row-nodivider { border-bottom: none; }
.hours-row-divided { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.hours-day { color: var(--text); }
.hours-time { font-family: var(--font-mono); color: var(--accent-700); font-weight: 500; font-size: 0.85rem; }
.hours-closed { color: var(--text-faint); font-style: italic; font-size: 0.85rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9rem; line-height: 1.55; }
.contact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--accent-soft); border-radius: 10px;
  color: var(--accent-700);
  display: flex; align-items: center; justify-content: center;
}
.contact-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.contact-val { color: var(--text); }
.contact-val a { text-decoration: none; transition: color 0.2s; }
.contact-val a:hover { color: var(--accent-700); }

/* ── LOCATION ────────────────────────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.location-card {
  background: var(--bg-inverse);
  border-radius: 24px;
  padding: 48px 44px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 28px;
}
.location-text h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-inverse); margin-bottom: 12px; }
.location-text p { color: var(--text-inverse-muted); font-size: 0.95rem; line-height: 1.65; max-width: 420px; }
.location-text address { color: rgba(255,255,255,0.85); margin-top: 16px; font-size: 0.92rem; line-height: 1.7; }
.location-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px; align-items: center; }
.location-card .btn-secondary { border-color: rgba(255,255,255,0.3); color: var(--text-inverse); }
@media (hover: hover) and (pointer: fine) {
  .location-card .btn-secondary:hover { border-color: var(--accent-300); background: rgba(153, 239, 241, 0.12); }
}

.map-frame {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
}

/* ── FINAL BOOK CTA ──────────────────────────────────────────── */
.book-section { text-align: center; }
.book-card-note { margin-top: 18px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--bg-inverse);
  padding: 64px 6vw 32px;
}
.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { height: 30px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-desc { color: var(--text-inverse-muted); font-size: 0.88rem; line-height: 1.7; max-width: 320px; }
.footer-social { margin-top: 22px; display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--accent-300);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social a:active { transform: scale(0.94); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-300); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { color: var(--text-inverse-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text-inverse); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-inverse-muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--accent-300); text-decoration: none; }
.footer-address { font-size: 0.78rem !important; }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transform: none; transition: opacity 0.3s ease; }
  .eyebrow-dot { animation: none; }
  .btn, .service-card, .nav-cta { transition: none; }
  .blob, .ring { animation: none; }
  .service-icon, .stat-card, .approach-card { transition: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-phone { display: none; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 88px 6vw; }
  .location-card { padding: 36px 28px; }
  .location-actions { width: 100%; }
  .location-actions .btn { justify-content: center; width: 100%; }
  .info-sep { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .blob { filter: blur(40px); }
  .hero .ring { width: 380px; height: 380px; transform: translate(-50%, calc(-50% + 290px)); }
}
