/* ============================================================================
   MEDICAL SMARTBOOKING - HOMEPAGE STYLES (smartbooking.html)
   ============================================================================
   This stylesheet contains all design system variables and component styles
   for the homepage. It defines colors, spacing, shadows, and animations used
   throughout the landing page layout.
   ============================================================================ */

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

/* ============================================================================
   DESIGN SYSTEM: CSS VARIABLES
   ============================================================================
   Centralized color palette, spacing tokens, and visual utilities.
   Used across all homepage sections for consistent theming.
*/
:root {
  --bg: #edfdf9;
  --surface: #ffffff;
  --ink: #102a2a;
  --ink-muted: #55706d;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-light: #ccfbf1;
  --secondary: #14b8a6;
  --accent2: #f59e0b;
  --border: #cde8e1;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --nav-bg: rgba(237,253,249,0.9);
  --shadow-accent: rgba(15,118,110,.25);
  --band-bg: #102a2a;
  --band-ink: #ffffff;
  --input-bg: #ffffff;
  --input-focus: rgba(15,118,110,.14);
  --input-hover-bg: #f8fffd;
  --date-field-bg: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
  --booked-bg: #f1f5f9;
  --booked-border: #cbd5e1;
  --calendar-other: #94a3b8;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #071a19;
  --surface: #0d2422;
  --ink: #ecfdf9;
  --ink-muted: #9fc9c3;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --accent-light: #134e4a;
  --secondary: #5eead4;
  --accent2: #fbbf24;
  --border: #1f4b46;
  --shadow: 0 12px 36px rgba(0,0,0,0.28);
  --nav-bg: rgba(7,26,25,0.9);
  --shadow-accent: rgba(45,212,191,.22);
  --band-bg: #0d2422;
  --band-ink: #ecfdf9;
  --input-bg: #12312e;
  --input-focus: rgba(45,212,191,.18);
  --input-hover-bg: #173b37;
  --date-field-bg: linear-gradient(180deg, #173b37 0%, #12312e 100%);
  --booked-bg: #102a2a;
  --booked-border: #1f4b46;
  --calendar-other: #5f8580;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

/* PAGE: smartbooking.html - BODY & TYPOGRAPHY
   Establishes base typography and global text styles using Google Fonts */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .32s ease, transform .32s ease;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.page-leaving {
  opacity: 0;
  transform: translateY(6px);
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; }

/* SECTION: Navigation Bar (top of page)
   Sticky header with branding and main navigation links */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.logo span { color: var(--ink); }
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav ul a {
  text-decoration: none; color: var(--ink-muted);
  font-size: 0.92rem; font-weight: 500;
  transition: color .2s;
}
nav ul a:hover { color: var(--accent); }
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s, transform .18s;
}
.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-login {
  background: var(--accent); color: #fff;
  padding: .45rem 1.2rem; border-radius: 99px;
  font-size: 0.88rem; font-weight: 500;
  transition: background .2s;
}
.btn-login:hover { background: var(--accent-dark); }

/* SECTION: Hero Section
   Displays headline, tagline, CTA buttons, and animated calendar visual.
   Layout: Two-column grid with text on left, calendar on right. */
.hero {
  min-height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
  padding: 5rem 5% 4rem;
}
.hero-text { animation: fadeUp .7s ease both; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-light); color: var(--accent);
  padding: .3rem .9rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1.4rem;
}
.hero-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
}
h1.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  color: var(--ink-muted); font-size: 1.05rem;
  max-width: 440px; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: .8rem 1.8rem; border-radius: 99px;
  font-size: .95rem; font-weight: 600;
  text-decoration: none; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 16px var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-accent); background: var(--accent-dark); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
  padding: .8rem 1.8rem; border-radius: 99px;
  font-size: .95rem; font-weight: 500;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-visual {
  animation: fadeUp .7s .15s ease both;
  display: flex; justify-content: center;
}
.calendar-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 340px;
  border: 1px solid var(--border);
}
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.2rem;
}
.cal-month { font-family: 'Syne',sans-serif; font-weight: 700; font-size: 1.05rem; }
.cal-nav { display: flex; gap: .4rem; }
.cal-nav button {
  background: var(--bg); border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: .9rem; color: var(--ink-muted);
  transition: background .15s;
}
.cal-nav button:hover { background: var(--accent-light); color: var(--accent); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; text-align: center;
}
.cal-day-label { 
  font-size: .72rem; color: var(--ink-muted); font-weight: 600; 
  padding: 4px 0; min-width: 32px; overflow: hidden;
}
.cal-day {
  font-size: .85rem; padding: 6px 2px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
  border: none;
  background: transparent;
  font-family: inherit;
  min-width: 32px;
}
.cal-day:hover { background: var(--accent-light); color: var(--accent); }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.selected { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.other { color: var(--calendar-other); }
.cal-day.available { color: var(--secondary); font-weight: 600; }
.cal-day.selected.available { color: #fff; }

/* SECTION: Quick Booking Area
   Service/date/time selector with "Check Availability" button.
   Enables quick appointment booking from homepage. */
.booking-section {
  background: var(--surface);
  padding: 5rem 5%;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 2.5rem;
}
.booking-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.2rem; max-width: 900px;
}
.booking-field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink-muted); margin-bottom: .4rem;
}
.booking-field select,
.booking-field input {
  width: 100%; min-height: 50px; padding: .82rem 1rem;
  border: 1.5px solid var(--border); border-radius: 16px;
  font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700;
  background: var(--input-bg); color: var(--ink);
  outline: none; transition: background .2s, border-color .2s, box-shadow .2s;
}
.booking-field select {
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  appearance: none;
}
.booking-field input[type="date"] {
  min-height: 52px;
  padding-right: 1rem;
  background: var(--date-field-bg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.booking-field select:hover,
.booking-field input:hover { background-color: var(--input-hover-bg); border-color: var(--accent); }
.booking-field select:focus,
.booking-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--input-focus); }
.booking-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .82;
  padding: .34rem;
  border-radius: 999px;
  background-color: var(--accent-light);
}
.booking-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.btn-check {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  padding: .8rem 2rem; border-radius: 99px;
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  margin-top: 1.4rem;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 16px var(--shadow-accent);
}
.btn-check:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-accent); background: var(--accent-dark); }

/* SECTION: Healthcare Services
   Grid of 5 service cards showing Doctor, Dentist, Therapist, Cardiologist, Pediatrician.
   Each card displays icon, description, duration, cost, and "Book Now" button. */
.healthcare-services-section { padding: 5rem 5%; background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px var(--shadow-accent); }
.service-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .3rem; color: var(--ink); }
.service-specialty { font-size: .85rem; color: var(--accent); font-weight: 600; margin-bottom: .8rem; }
.service-desc { font-size: .9rem; color: var(--ink-muted); margin-bottom: 1rem; line-height: 1.5; }
.service-details { font-size: .8rem; color: var(--ink-muted); margin-bottom: 1.2rem; }
.service-details span { font-weight: 600; color: var(--ink); }
.service-book-btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: .6rem 1.4rem; border-radius: 99px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 12px var(--shadow-accent);
}
.service-book-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--shadow-accent); background: var(--accent-dark); }

/* SECTION: How It Works / Process Steps
   4-step process flow: Create Account → Choose Service → Select Time → Confirm & Email
   Displayed as card grid with step numbers and icons. */
.how-section { padding: 5rem 5%; }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem 1.5rem;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: 'Syne',sans-serif; font-size: 3.5rem; font-weight: 800;
  color: var(--border); line-height: 1;
}
.step-icon { font-size: 2rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.step-card p { font-size: .88rem; color: var(--ink-muted); }

/* SECTION: Features Highlight
   Dark background section listing key product benefits (6 feature chips).
   Used to build credibility and show differentiators. */
.features-section {
  background: var(--band-bg); color: var(--band-ink);
  padding: 5rem 5%;
  border-radius: 32px; margin: 0 3%;
}
.features-section .section-label { color: var(--accent2); }
.features-section .section-title { color: #fff; }
.features-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: .8rem; margin-top: 2rem;
}
.feature-item {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 1rem 1.2rem;
  font-size: .92rem;
}
.feature-item::before {
  content: '✓';
  width: 24px; height: 24px; min-width: 24px;
  background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
}

/* SECTION: Available Time Slots
   Shows today's available/booked appointment slots in a row grid.
   Slots can be "active" (selected), "booked" (unavailable), or open. */
.slots-section { padding: 5rem 5%; }
.slots-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
}
.slots-header a {
  font-size: .88rem; color: var(--accent); text-decoration: none; font-weight: 600;
}
.slots-summary {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: .92rem;
}
.slots-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.slot {
  appearance: none;
  font: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px; padding: .65rem 1.2rem;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .18s;
}
.slot:hover, .slot.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.slot.booked,
.slot.booked:hover {
  background: var(--booked-bg);
  color: var(--ink-muted);
  border-color: var(--booked-border);
  cursor: not-allowed;
}
.section-subtitle {
  font-size: .55em;
  color: var(--ink-muted);
  font-weight: 500;
}

/* SECTION: Testimonials
   User reviews section with star rating and quote.
   Builds social proof by showing positive customer feedback. */
.testimonial-section { padding: 5rem 5%; display: flex; justify-content: center; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 3rem 3.5rem;
  max-width: 680px; text-align: center;
  box-shadow: var(--shadow);
}
.stars { color: var(--accent2); font-size: 1.4rem; margin-bottom: 1.2rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-family: 'Syne', sans-serif; font-weight: 600;
  line-height: 1.4; margin-bottom: 1.2rem; letter-spacing: -.3px;
}
.testimonial-author { font-size: .82rem; color: var(--ink-muted); font-weight: 600; letter-spacing: .08em; }


/* SECTION: Call-to-Action
   Large banner with headline and primary CTA button.
   Final conversion section before footer to prompt booking. */
.cta-section {
  background: var(--accent-light); border-radius: 32px;
  margin: 0 3% 4rem; padding: 5rem 5%;
  text-align: center;
}
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1.8rem; }
.cta-btn {
  font-size: 1.05rem;
  padding: .9rem 2.4rem;
}

/* SECTION: Footer
   Dark footer with company info, quick links, legal links, and social icons.
   Spans all pages; contains contact info and site navigation. */
footer {
  background: var(--band-bg); color: var(--band-ink);
  padding: 4rem 5% 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-family: 'Syne',sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); margin-bottom: .8rem; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.footer-contact span { font-size: .85rem; color: rgba(255,255,255,.6); }
footer h4 { font-family: 'Syne',sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; color: rgba(255,255,255,.4); }
footer ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
footer ul a { text-decoration: none; color: rgba(255,255,255,.7); font-size: .88rem; transition: color .2s; }
footer ul a:hover { color: var(--accent); }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 700;
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: #fff; }
.footer-bottom {
  padding-top: 2rem; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 5%; }
  .hero-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .features-section { margin: 0; border-radius: 0; }
  .cta-section { margin: 0 0 2rem; border-radius: 0; }
}
