/* ==========================================================================
   GentleDental.ai — global stylesheet
   ========================================================================== */

:root {
  --brand: #109287;
  --brand-600: #0d7a70;
  --brand-700: #0a6159;
  --brand-soft: #e4f4f1;
  --navy: #0a2b3a;
  --navy-2: #123a4d;
  --ink: #18323c;
  --muted: #55707a;
  --cream: #f3f8f6;
  --cream-2: #eaf3f0;
  --bg: #f0f0f0;
  --bg-card: #ffffff;
  --line: #dce8e5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(10, 43, 58, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 43, 58, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 43, 58, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; font-weight: 800; }

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

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(16, 146, 135, 0.32); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px rgba(16, 146, 135, 0.4); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-700); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 41px; width: auto; }

.nav { margin-left: auto; }
.nav-list { display: flex; list-style: none; gap: 6px; margin: 0; padding: 0; }
.nav-link {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: 15px;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-soft); }
.nav-link.is-active { color: var(--brand-700); background: var(--brand-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 74% 8%, #c9eeed, transparent 47%), #f3fafa;
  color: #0a2844;
}
.hero-inner {
  max-width: 1680px; min-height: clamp(590px, 51vw, 850px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: clamp(54px, 5vw, 84px) clamp(24px, 5.8vw, 96px) clamp(90px, 10vw, 168px);
}
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px;
  padding: 6px 16px; font-size: clamp(.72rem, 1.05vw, .98rem); letter-spacing: .04em;
  background: #ccefeb; color: var(--brand-700);
}
.hero .eyebrow span { font-size: 1.4em; line-height: 1; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px; font-weight: 700; color: var(--brand-600);
  background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.65rem, 5.35vw, 5.6rem); line-height: .99; letter-spacing: -.055em;
  margin: 0 0 24px; color: inherit;
}
.hero-title-line { display: block; }
.hero-title .accent { color: #008578; }
.hero-sub { font-size: clamp(1rem, 1.45vw, 1.45rem); line-height: 1.45; color: #31516c; max-width: 27em; margin: 0 0 30px; }
.hero-sub strong { color: #0a2844; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero .hero-actions { gap: 12px clamp(12px, 1.4vw, 24px); margin-bottom: clamp(28px, 3vw, 50px); }
.hero-actions .icon { flex: none; }
.hero .btn { gap: 10px; padding-inline: clamp(14px, 1.6vw, 27px); font-size: clamp(.9rem, 1.15vw, 1.1rem); }
.hero .btn-primary { background: #008276; }
.hero .btn-primary:hover { background: var(--brand-700); }
.hero .btn-ghost { border-color: var(--brand-600); }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: clamp(.8rem, 1.05vw, 1rem); line-height: 1.35; padding-right: 10px; }
.hero-points li + li { border-left: 1px solid #bde0de; padding-left: clamp(8px, 1.2vw, 20px); }
.hero-point-icon {
  display: grid; place-items: center; flex: none; width: clamp(34px, 3.3vw, 54px); aspect-ratio: 1;
  border-radius: 50%; color: var(--brand-600); background: #ceefed;
}
.hero-visual {
  position: absolute; top: 0; right: 0; width: min(54%, 910px); height: auto;
  mask-image: linear-gradient(to right, transparent, #000 12%), linear-gradient(to bottom, #000 76%, transparent 92%);
  mask-composite: intersect;
}
.hero-waves { position: absolute; z-index: 0; bottom: 0; left: 0; width: 100%; height: clamp(64px, 10vw, 164px); pointer-events: none; }

/* ---------- strip ---------- */
.strip { background: var(--navy); color: #d9e8ec; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.strip-item { margin: 0; font-size: 14.5px; }
.strip-item strong { color: #fff; font-size: 16px; }
.strip-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.22); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.section-lede { color: var(--muted); font-size: 17px; }

/* features */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-soft);
  color: var(--brand-700); margin-bottom: 18px;
}
.feature-title { font-size: 18px; }
.feature-text { color: var(--muted); font-size: 15px; margin: 0; }

/* steps */
.how { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); border-top: 4px solid var(--brand); box-shadow: var(--shadow-sm);
}
.step-num { font-size: 26px; font-weight: 800; color: var(--brand); display: block; margin-bottom: 12px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* commitment band */
.commitment { background: var(--navy); color: #d9e8ec; overflow: hidden; padding: 88px 0; }
.commitment-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.commitment .section-title { color: #fff; }
.commitment-copy p { font-size: 17px; margin-bottom: 24px; }
.commitment-brush { width: 220px; justify-self: end; transform: rotate(-8deg); opacity: 0.9; }

/* final CTA */
.cta { background: linear-gradient(135deg, var(--brand), var(--brand-700)); }
.cta-inner { text-align: center; padding: 80px 0; }
.cta-title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-sub { color: #e2f4f1; font-size: 17px; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.cta .btn-primary:hover { background: var(--brand-soft); color: var(--brand-700); }
.cta .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: radial-gradient(1000px 500px at 20% -20%, var(--brand-soft), transparent 60%), var(--bg); padding: 72px 0 56px; text-align: center; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
.page-lede { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17.5px; }

/* ---------- about ---------- */
.about-body { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 16.5px; }
.about-values { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.about-values li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--navy-2); }
.about-values .icon { color: var(--brand); flex: none; }
.about-photo { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-commitment { background: var(--bg); }

/* ---------- services ---------- */
.services-list { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}
.service-num {
  position: absolute; top: 22px; right: 24px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--brand-600);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px;
}
.service-title { font-size: 20px; margin-top: 16px; }
.service-text { color: var(--muted); margin: 0; }
.services-cta {
  margin-top: 40px; padding: 32px; border-radius: var(--radius);
  background: var(--navy); color: #d9e8ec; text-align: center;
}
.services-cta p { font-size: 18px; margin: 0 0 18px; }

/* ---------- contact ---------- */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 24px; }
.contact-item { display: flex; gap: 16px; }
.contact-item-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-700);
}
.contact-item h3 { font-size: 16px; margin-bottom: 2px; }
.contact-item p { color: var(--muted); margin: 0; }
.contact-form-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md);
}
.form-note { color: var(--muted); margin-top: -6px; }
.contact-form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; color: var(--navy-2); }
.opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  font: inherit; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease; width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-status { font-weight: 600; color: var(--brand-600); background: var(--brand-soft); padding: 10px 14px; border-radius: 10px; }
.form-status:empty { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }


/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b8cfd6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-about { font-size: 14.5px; max-width: 34em; }
.footer-legal { color: #7fa0ab; font-size: 13px; margin-top: 12px; }
.footer-heading { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #b8cfd6; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand); flex: none; margin-top: 3px; }
.footer-contact a { color: #b8cfd6; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: #7fa0ab;
}
.footer-tag { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { padding-top: 48px; }
  .hero-points li { gap: 7px; }
  .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .commitment-inner { grid-template-columns: 1fr; }
  .commitment-brush { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 12px; padding: 36px 24px 32px; }
  .hero-title { font-size: clamp(2.45rem, 8.5vw, 4rem); margin-bottom: 18px; }
  .hero-sub { margin-bottom: 22px; }
  .hero .hero-actions { margin-bottom: 24px; }
  .hero-points li { flex-direction: column; }
  .hero-visual {
    position: relative; width: min(100%, 560px); margin: 0 auto;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent), linear-gradient(to bottom, transparent, #000 10% 76%, transparent 92%);
  }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 16px auto 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section, .commitment { padding: 64px 0; }
  .footer-bottom { flex-direction: column; }
  .cta-inner { padding: 60px 0; }
}
