/* ============================================================
   CONCEPT C - CLARITY
   Apple-inspired. Near-white, near-black, one accent (teal).
   Font: Plus Jakarta Sans (geometric-humanist, not Inter/Roboto).
   ============================================================ */

:root {
  --bg: #FBFBFD;
  --panel: #F2F2F4;
  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --accent: #0FB5BA;
  --accent-dark: #0B8F93;
  --line: #E4E4E7;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max: 1240px;
  --ff: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--ff);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

p { line-height: 1.6; color: var(--ink-soft); margin: 0; }

.section {
  padding: 100px 0;
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
}

/* -------------------- reveal-on-scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------- NAV -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,251,253,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 30px; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-dark); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-panel.is-open { display: flex; }
.mobile-panel a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-panel .nav-cta { align-self: flex-start; margin-top: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .nav-cta.desktop-only { display: none; }
  .hamburger { display: flex; }
}

/* -------------------- HERO -------------------- */
.hero {
  padding: 88px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 68px);
  max-width: 980px;
  margin: 0 auto;
}

.hero .subhead {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 19px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(15,181,186,0.28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-media {
  margin: 56px auto 0;
  max-width: 1080px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(29,29,31,0.35);
}
.hero-media img {
  width: 100%;
  height: clamp(280px, 46vw, 560px);
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.hero-media.is-visible img { transform: scale(1); }

/* -------------------- BEFORE / AFTER SLIDER -------------------- */
.ba-hero {
  max-width: 760px;
  margin: 0 auto 56px;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(29,29,31,0.32);
  user-select: none;
  touch-action: pan-y;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .ba-after { z-index: 1; }

.ba-slider .ba-before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  width: 50%;
}

.ba-slider .ba-before-wrap img {
  width: 100vw;
  max-width: none;
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-before-wrap {
  width: var(--pos, 50%);
}
.ba-slider .ba-before-wrap img {
  width: var(--slider-w, 100%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
}

.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.ba-handle::before {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 18px;
  color: var(--ink);
}

.ba-tag {
  position: absolute;
  bottom: 18px;
  z-index: 4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29,29,31,0.65);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.ba-tag.tag-before { left: 18px; }
.ba-tag.tag-after { right: 18px; }

.ba-switcher {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  margin-top: 28px;
  scrollbar-width: thin;
}

.ba-thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.ba-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ba-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.ba-thumb.is-active { opacity: 1; border-color: var(--accent); }

.ba-cta {
  text-align: center;
  margin-top: 40px;
}

/* -------------------- WHY US -------------------- */
.why-rows {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-row:nth-child(even) .why-media { order: 2; }

.why-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(29,29,31,0.3);
}
.why-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.why-media.is-visible img { transform: scale(1); }

.why-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}
.why-copy p { font-size: 17px; }
.why-stat {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border-top: 2px solid var(--accent);
  padding-top: 10px;
}

@media (max-width: 860px) {
  .why-row, .why-row:nth-child(even) { grid-template-columns: 1fr; }
  .why-row:nth-child(even) .why-media { order: 0; }
  .why-media img { height: 260px; }
}

/* -------------------- SERVICES -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(29,29,31,0.25);
  border-color: transparent;
}

.service-card.card-quiet {
  background: var(--panel);
  border: none;
}

.service-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
}

.service-card h3 {
  font-size: 20px;
  margin: 14px 0 10px;
}

.service-card p { font-size: 15px; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* -------------------- SMILE SIMULATOR -------------------- */
.sim {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.sim .eyebrow { color: var(--accent); }
.sim h2 { color: var(--white); max-width: 640px; margin: 0 auto; }
.sim p.body {
  max-width: 520px;
  margin: 20px auto 0;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
}
.sim .btn-primary { margin-top: 32px; }
.sim .disclaimer {
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.42);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.sim-visual {
  margin: 48px auto 0;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.sim-visual .sim-frame {
  width: 45%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.sim-visual img { width: 100%; height: 100%; object-fit: cover; }
.sim-arrow {
  font-size: 22px;
  color: var(--accent);
}

@media (max-width: 640px) {
  .sim { padding: 56px 24px; }
}

/* -------------------- SOCIAL PROOF -------------------- */
.proof-band {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.proof-stat .num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proof-stat .label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.proof-media {
  margin-top: 44px;
  text-align: center;
}
.proof-media p { font-size: 15px; margin-bottom: 20px; }

.awards-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.awards-row img { height: 48px; width: auto; opacity: 0.85; filter: grayscale(15%); }

@media (max-width: 760px) {
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .proof-band { padding: 44px 24px; }
}

/* -------------------- CTA -------------------- */
.cta-section {
  text-align: center;
}
.cta-section .wrap { max-width: 680px; }
.cta-section h2 { margin-top: 8px; }
.cta-section .body { margin-top: 18px; font-size: 17px; }
.cta-buttons {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------- FOOTER -------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo img { height: 26px; margin-bottom: 14px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 28px; }
}
