/* =============================================
   PAGES.CSS — Page-specific Layouts
   ============================================= */

/* ══════ HOME PAGE ══════ */

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  background: radial-gradient(circle at top right, rgba(0, 209, 102, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 40%),
              #fff;
}
@media(max-width:767px) { .hero { padding: 40px 0 40px; } }

.hero-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; align-items: center;
}
@media(min-width:1024px) { .hero-inner { grid-template-columns: 1fr 1fr; gap: 80px; } }

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-full);
  background: var(--primary-subtle); color: var(--primary);
  font-size: 0.8125rem; font-weight: 700; margin-bottom: 24px;
  border: 1px solid rgba(0, 209, 102, 0.1);
  box-shadow: 0 4px 12px rgba(0, 209, 102, 0.05);
}
.hero-title {
  font-size: 3rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: var(--dark); margin-bottom: 20px;
}
@media(min-width:1024px) { .hero-title { font-size: 4.5rem; } }
.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--primary), #10B981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--text-2); line-height: 1.6;
  max-width: 480px; margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-search {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--r-xl); padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; margin-top: 32px;
  border: 1px solid var(--border-light); transition: all 0.3s var(--ease);
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 12px 30px rgba(0, 209, 102, 0.15); }
.hero-search input {
  flex: 1; font-size: 1rem; font-weight: 500; color: var(--dark); background: transparent;
}

.hero-visual { position: relative; display: none; }
@media(min-width:1024px) { .hero-visual { display: flex; align-items: center; justify-content: center; min-height: 500px; } }
.hero-float-card {
  position: absolute; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border-radius: var(--r-xl); padding: 20px 24px; box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: float 6s ease-in-out infinite;
}
.hero-float-card:nth-child(1) { top: 5%; right: 5%; animation-delay: 0s; }
.hero-float-card:nth-child(2) { top: 45%; left: -5%; animation-delay: 1.5s; }
.hero-float-card:nth-child(3) { bottom: 10%; right: 15%; animation-delay: 3s; }
.hero-float-inner {
  display: flex; align-items: center; gap: 12px;
}
.hero-float-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.hero-float-text h5 { font-size: .8125rem; font-weight: 700; color: var(--dark); }
.hero-float-text p { font-size: .6875rem; color: var(--text-3); margin: 0; }

/* Decorative blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3;
  pointer-events: none;
}
.hero-blob-1 { width: 400px; height: 400px; background: var(--primary-light); top: -100px; right: -100px; }
.hero-blob-2 { width: 300px; height: 300px; background: #E3F2FD; bottom: -50px; left: -50px; }

/* Stats bar */
.stats-bar {
  display: flex; align-items: center; gap: 32px;
  margin-top: 32px; flex-wrap: wrap;
}
.stat-item {}
.stat-value {
  font-size: 1.5rem; font-weight: 800; color: var(--dark);
}
.stat-label { font-size: .75rem; color: var(--text-3); }

/* ── Section Headings ── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section-head h2 { font-size: 1.5rem; }
@media(min-width:768px) { .section-head h2 { font-size: 1.875rem; } }
.section-head .see-all {
  font-size: .875rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: gap .2s;
}
.section-head .see-all:hover { gap: 8px; }

/* ── Service Category Grid ── */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media(min-width:480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media(min-width:1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Service Cards Grid ── */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media(min-width:768px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media(min-width:1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Nearest Helpers Scroll ── */
.helpers-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 4px 20px 20px; margin: 0 -20px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.helpers-scroll::-webkit-scrollbar { display: none; }
.helpers-scroll .vendor-card { min-width: 280px; flex-shrink: 0; }

/* ── Banner Section ── */
.promo-banner {
  margin: 0 20px; padding: 32px; border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--primary), #00E676);
  color: #fff; position: relative; overflow: hidden;
}
.promo-banner h3 { font-size: 1.375rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.promo-banner p { font-size: .875rem; opacity: .85; margin-bottom: 20px; color: #fff; }
.promo-banner .btn { background: #fff; color: var(--primary); }
.promo-banner .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo-blob {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.15); top: -50px; right: -50px;
}

/* ══════ SERVICE DETAILS PAGE ══════ */
.detail-banner {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}
.detail-header { padding: 24px 20px 0; }
.detail-title { font-size: 1.5rem; margin-bottom: 4px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-rating .material-icons-round { color: var(--star); font-size: 18px; }
.detail-rating span { font-size: .875rem; color: var(--text-2); }

.detail-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 20px; }
@media(min-width:768px) { .detail-layout { grid-template-columns: 1fr 360px; } }
.detail-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.booking-widget {
  background: #fff; border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.booking-widget h4 { margin-bottom: 20px; }

/* ══════ BOOKING PAGE ══════ */
.booking-page { padding: 24px 20px; max-width: 600px; margin: 0 auto; }
.booking-section { margin-bottom: 32px; }
.booking-section h3 { font-size: 1.125rem; margin-bottom: 16px; }

/* ══════ CHECKOUT PAGE ══════ */
.checkout-page { padding: 24px 20px; max-width: 600px; margin: 0 auto; }
.order-summary {
  background: var(--bg-2); border-radius: var(--r-xl); padding: 24px;
  margin-bottom: 24px;
}
.order-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  font-size: .875rem; color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
}
.order-row:last-child { border: none; font-weight: 700; color: var(--dark); font-size: 1rem; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: #fff; border-radius: var(--r-md);
  border: 2px solid var(--border-light); cursor: pointer;
  transition: all .2s;
}
.payment-method.selected { border-color: var(--primary); background: var(--primary-subtle); }
.payment-method .material-icons-round { font-size: 24px; color: var(--text-3); }
.payment-method.selected .material-icons-round { color: var(--primary); }

/* ══════ SUCCESS PAGE ══════ */
.success-page { text-align: center; padding: 80px 20px; max-width: 480px; margin: 0 auto; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-subtle); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 40px;
  animation: bounceIn .6s var(--ease-spring) both;
}
.success-page h1 { font-size: 1.5rem; margin-bottom: 8px; }
.success-page p { margin-bottom: 32px; }
.success-details {
  background: var(--bg-2); border-radius: var(--r-xl); padding: 20px;
  text-align: left; margin-bottom: 32px;
}
.success-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: .875rem;
}
.success-row .label { color: var(--text-3); }
.success-row .value { font-weight: 600; color: var(--dark); }

/* ══════ AUTH PAGES ══════ */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--header-h)); padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff;
  border-radius: var(--r-2xl); padding: 40px 32px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; text-align: center; }
.auth-card .subtitle { text-align: center; margin-bottom: 32px; }
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--text-3); font-size: .75rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}
.auth-footer { text-align: center; margin-top: 24px; font-size: .875rem; color: var(--text-3); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ══════ DASHBOARD ══════ */
.dashboard-page { padding: 24px 20px; }
.dash-header { margin-bottom: 32px; }
.dash-header h1 { font-size: 1.5rem; margin-bottom: 4px; }
.dash-tabs {
  display: flex; gap: 8px; margin-bottom: 24px;
  overflow-x: auto; padding-bottom: 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 600; color: var(--text-3);
  background: var(--bg-2); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.dash-tab.active { background: var(--dark); color: #fff; }
.dash-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
@media(min-width:768px) { .dash-cards { grid-template-columns: repeat(4, 1fr); } }
.dash-stat-card {
  background: #fff; border-radius: var(--r-xl); padding: 20px;
  box-shadow: var(--shadow-xs);
}
.dash-stat-card .material-icons-round { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.dash-stat-card .value { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.dash-stat-card .label { font-size: .75rem; color: var(--text-3); margin-top: 2px; }

.booking-list { display: flex; flex-direction: column; gap: 12px; }
.booking-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs); transition: all .2s;
}
.booking-item:hover { box-shadow: var(--shadow-sm); }
.booking-item-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.booking-item-info { flex: 1; min-width: 0; }
.booking-item-title { font-size: .9375rem; font-weight: 600; color: var(--dark); }
.booking-item-meta { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.booking-item-status { flex-shrink: 0; }

/* ══════ ABOUT & CONTACT ══════ */
.page-hero {
  text-align: center; padding: 60px 20px 40px;
  background: var(--bg-2);
}
@media(min-width:768px) { .page-hero { padding: 80px 20px 60px; } }
.page-hero h1 { font-size: 2rem; margin-bottom: 12px; }
@media(min-width:768px) { .page-hero h1 { font-size: 2.5rem; } }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: 40px 20px; max-width: 900px; margin: 0 auto;
}
@media(min-width:768px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.feature-card {
  background: #fff; border-radius: var(--r-xl); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-xs);
  transition: all .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .material-icons-round {
  font-size: 40px; color: var(--primary); margin-bottom: 16px;
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: .8125rem; }

.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 40px 20px; max-width: 900px; margin: 0 auto;
}
@media(min-width:768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
}
.contact-info-card .material-icons-round {
  font-size: 28px; color: var(--primary);
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--primary-subtle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
