/* ============================================================
   BrightSmile Dental Studio — Main Stylesheet
   Version: 1.0.0
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --primary:      #0aa6a6;
  --primary-dark: #057b80;
  --accent:       #ffcf70;
  --ink:          #102a43;
  --muted:        #627d98;
  --soft:         #eefafa;
  --white:        #ffffff;
  --line:         rgba(16, 42, 67, 0.1);
  --shadow:       0 24px 70px rgba(16, 42, 67, 0.14);
  --radius:       28px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8ffff 0%, #ffffff 45%, #f6fbfb 100%);
  line-height: 1.6;
}
img { width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Header / Navbar ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.navbar,
.section-pad,
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 30px rgba(10, 166, 166, 0.3);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.nav-links a { color: var(--muted); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-cta {
  color: var(--white) !important;
  background: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px; border-radius: 5px; }

/* ── Section Base ────────────────────────────────────────────── */
.section-pad { padding-top: 96px; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex;
  color: var(--primary-dark);
  background: rgba(10, 166, 166, 0.1);
  border: 1px solid rgba(10, 166, 166, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; }
h1 { font-size: clamp(3rem,   7vw, 5.8rem); margin-bottom: 22px; }
h2 { font-size: clamp(2.2rem, 4vw, 3.65rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin: 14px 0 10px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 40px rgba(10, 166, 166, 0.28);
}
.btn-secondary { color: var(--ink); background: var(--white); border: 1px solid var(--line); }

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 82px);
}
.hero-text,
.about-content > p,
.appointment-card > div > p { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.8rem; }
.hero-stats span  { color: var(--muted); font-weight: 600; }
.hero-card { position: relative; }
.image-card {
  position: relative;
  padding: 14px;
  border-radius: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.image-card img { height: 560px; object-fit: cover; border-radius: 28px; }
.floating-badge {
  position: absolute;
  top: 32px; right: 32px;
  z-index: 2;
  background: var(--white);
  color: var(--primary-dark);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(16, 42, 67, 0.15);
}
.mini-card {
  position: absolute;
  left: -24px; bottom: 36px;
  max-width: 340px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.mini-card p { color: var(--muted); font-size: 0.94rem; }
.mini-icon {
  flex: 0 0 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-weight: 900;
}

/* ── Trust Strip ─────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--ink);
  color: var(--white);
}
.trust-strip span {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-weight: 700;
}

/* ── Services ────────────────────────────────────────────────── */
.section-heading { max-width: 720px; margin-bottom: 42px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card .service-icon { font-size: 2rem; }
.service-card p { color: var(--muted); }

/* ── About ───────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-image img { height: 520px; object-fit: cover; border-radius: 38px; box-shadow: var(--shadow); }
.check-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 700; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: -2px;
  color: var(--white);
  background: var(--primary);
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* ── Reviews ─────────────────────────────────────────────────── */
.reviews-section { background: var(--soft); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.review-card p     { color: var(--muted); }
.review-card strong { display: block; margin-top: 20px; }
.review-card .stars { color: #f7a600; font-weight: 900; }

/* ── Appointment ─────────────────────────────────────────────── */
.appointment-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  padding: 46px;
  border-radius: 40px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 34%),
              linear-gradient(135deg, var(--primary-dark), var(--ink));
  box-shadow: var(--shadow);
}
.appointment-card .eyebrow {
  color: var(--white);
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.18);
}
.appointment-card > div > p { color: rgba(255,255,255,0.78); }

/* ── Booking Form ────────────────────────────────────────────── */
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-form input,
.booking-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  font: inherit;
  outline: none;
}
.booking-form select,
.booking-form button,
.form-message { grid-column: span 2; }
.form-message { min-height: 24px; font-weight: 700; color: var(--accent) !important; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  padding-top: 42px;
  padding-bottom: 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.site-footer p { color: var(--muted); margin-top: 14px; }
.footer-links { display: flex; gap: 20px; font-weight: 700; color: var(--muted); }

/* ── Reveal Animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Admin bar offset ────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ── Responsive: Tablet (≤ 920px) ──────────────────────────── */
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 82px;
    left: 24px; right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .hero, .about, .appointment-card { grid-template-columns: 1fr; }
  .image-card img, .about-image img { height: 420px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid  { grid-template-columns: 1fr; }
}

/* ── Responsive: Mobile (≤ 620px) ──────────────────────────── */
@media (max-width: 620px) {
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .hero { gap: 30px; }
  .hero-stats { gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .mini-card { position: static; margin-top: 16px; max-width: none; }
  .floating-badge { left: 26px; right: auto; }
  .appointment-card { padding: 28px; }
  .booking-form { grid-template-columns: 1fr; }
  .booking-form select,
  .booking-form button,
  .form-message { grid-column: auto; }
  .site-footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
