/* ============================================================
   Mapledent 365 — site styles
   ============================================================ */

:root {
  --brand: #00A6E0;
  --brand-dark: #007FB0;
  --brand-soft: #E6F6FD;
  --maple: #C8102E;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F7FAFC;
  --bg-dark: #0B1220;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--text); max-width: 60ch; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand-dark); padding: 8px 0; }
.btn-ghost:hover { color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 56px; width: auto; }
@media (max-width: 520px) { .brand img { height: 48px; } }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-cta .phone {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.lang-switch a {
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.lang-switch a.active {
  background: var(--brand);
  color: #fff;
}
.lang-switch a:not(.active):hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav, .header-cta .phone, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(80% 60% at 0% 0%, var(--brand-soft) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F4FBFE 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: #cfe6f0;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Section ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { display: inline-block; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0 0;
}
.stat {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.service-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-dark);
}
.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 14px; }
.service-card a { font-size: 0.9rem; font-weight: 600; }

@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery .tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e6f6fd 0%, #c9e7f4 100%);
}
.gallery .tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery .tile .cap {
  position: absolute;
  left: 16px; bottom: 14px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-size: 0.95rem;
}
.gallery .tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Two-column feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature ul { padding-left: 0; list-style: none; }
.feature li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.feature li::after {
  content: "";
  position: absolute;
  left: 5px; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.feature .img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e6f6fd 0%, #c9e7f4 100%);
}
@media (max-width: 860px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.value-card h3 { color: var(--brand-dark); margin-bottom: 8px; font-size: 1.05rem; }
.value-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 920px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Workflow ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 920px) { .workflow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .workflow { grid-template-columns: 1fr; } }

/* ---------- Pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.price-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-card h3 { margin-bottom: 6px; }
.price-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.price-card .price { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.price-card .note { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 8px;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.price-card li::after {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: #fff;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h4 {
  margin: 18px 0 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}
.contact-card h4:first-child { margin-top: 0; }
.contact-card p { margin: 0; color: var(--text); }
.contact-card a { color: var(--ink); font-weight: 500; }
.contact-card a:hover { color: var(--brand); }

form.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
form.quote h3 { margin-bottom: 6px; }
form.quote p.sub { color: var(--muted); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}

.map-grid {
  margin-top: 56px;
}
.map-grid iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(135deg, #00A6E0 0%, #007FB0 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  margin: 0 24px;
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.9); margin-bottom: 28px; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #f1f5f9; color: var(--brand-dark); }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta .btn-outline:hover { border-color: #fff; color: #fff; }
.cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 72px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer .brand-blurb { font-size: 0.92rem; color: #94a3b8; max-width: 36ch; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo img { height: 80px; border-radius: 8px; }
/* Make placeholder fill its container when used as a wrapper */
.img-wrap img, .hero-image img, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 24px 0 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Page header ---------- */
.page-header {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #F4FBFE 0%, #ffffff 100%);
}
.page-header .eyebrow { display: inline-block; }
.page-header h1 { margin: 12px 0 14px; }
.page-header p { color: var(--muted); max-width: 60ch; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
