/* ============================================================
   Sustain6 Holdings — Main Stylesheet
   Brand: Black (#111), Chrome Silver (#C0C0C0), White (#fff)
   Accent: Deep Green (#1A5C36)
============================================================ */

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

:root {
  --black:   #111111;
  --chrome:  #C0C0C0;
  --green:   #1A5C36;
  --green-light: #e8f4ed;
  --green-dark:  #0a3d22;
  --white:   #ffffff;
  --off-white: #f8f9fa;
  --grey-100: #f1f3f5;
  --grey-200: #e9ecef;
  --grey-400: #adb5bd;
  --grey-600: #6c757d;
  --grey-800: #343a40;
  --font: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.6;
  padding-top: 72px;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--grey-600); }

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--black);
  border-bottom: 1px solid rgba(192,192,192,0.2);
  height: 72px;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #888 0%, #C0C0C0 50%, #888 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--black);
  letter-spacing: 1px;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-title { font-size: 15px; font-weight: 700; color: var(--chrome); letter-spacing: 2px; }
.nav-sub   { font-size: 9px;  font-weight: 400; color: rgba(192,192,192,0.6); letter-spacing: 3px; }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-link {
  display: block; padding: 8px 16px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--chrome); background: rgba(192,192,192,0.1);
  text-decoration: none;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--chrome); border-radius: 2px;
  transition: all var(--transition);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-booking, .section-registration, .section-contact {
  background: var(--off-white);
  max-width: 100%;
  padding: 5rem 0;
}
.section-booking > *,
.section-registration > *,
.section-contact > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { color: var(--black); margin-bottom: 0.5rem; }
.section-header p  { color: var(--grey-600); font-size: 1.1rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.section-home { padding-top: 2rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 5rem;
}

.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-block;
  background: var(--black);
  color: var(--chrome);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-title { color: var(--black); margin-bottom: 1rem; }
.hero-accent { color: var(--green); }
.hero-tagline { font-size: 1.15rem; color: var(--grey-600); margin-bottom: 2rem; max-width: 480px; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; flex-direction: column; gap: 1rem;
  min-width: 160px;
}
.stat-card {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.stat-number { display: block; font-size: 1.75rem; font-weight: 700; color: var(--chrome); }
.stat-label  { font-size: 12px; color: rgba(192,192,192,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

.btn-outline {
  background: transparent; color: var(--black);
  border-color: var(--grey-400);
}
.btn-outline:hover { border-color: var(--black); color: var(--black); background: var(--grey-100); }

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Services Grid ───────────────────────────────────────── */
.services-section { margin-bottom: 5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--black); margin-bottom: 0.5rem; }
.service-card p  { font-size: 14px; }

/* ── Pillars Grid ────────────────────────────────────────── */
.pillars-section { margin-bottom: 2rem; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.pillar-card {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
}
.pillar-number {
  font-size: 3rem; font-weight: 700;
  color: rgba(192,192,192,0.15);
  position: absolute; top: 1rem; right: 1.25rem;
  line-height: 1;
}
.pillar-card h3 { color: var(--chrome); margin-bottom: 0.5rem; font-size: 1.1rem; }
.pillar-card p  { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── Form Card ───────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.form-card h3 { color: var(--black); margin-bottom: 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: 13px; font-weight: 500; color: var(--grey-800); }
.required { color: #c0392b; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="date"], input[type="time"],
select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 14px; font-family: var(--font);
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,92,54,0.1);
}
textarea { resize: vertical; }

.input-eye { position: relative; }
.input-eye input { padding-right: 42px; }
.eye-btn {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; padding: 4px;
}

.step-subtitle { color: var(--grey-600); font-size: 14px; margin-bottom: 1.5rem; }

/* ── Booking Steps ───────────────────────────────────────── */
.booking-container { padding: 0 2rem; }
.booking-steps {
  display: flex; align-items: center; gap: 0;
  max-width: 720px; margin: 0 auto 2rem;
}
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey-400); }
.step.active { color: var(--green); font-weight: 600; }
.step.done   { color: var(--grey-600); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grey-200); color: var(--grey-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.step.active .step-dot { background: var(--green); color: white; }
.step.done .step-dot   { background: var(--green-light); color: var(--green); }
.step-line { flex: 1; height: 1px; background: var(--grey-200); margin: 0 8px; }

.booking-step { max-width: 720px; margin: 0 auto; }

.step-nav { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: space-between; }

/* ── Vehicle Grid ────────────────────────────────────────── */
.vehicle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.vehicle-card {
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.vehicle-card:hover:not(.unavailable) { border-color: var(--green); }
.vehicle-card.selected { border-color: var(--green); background: var(--green-light); }
.vehicle-card.unavailable { opacity: 0.5; cursor: not-allowed; }

.v-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 20px; margin-bottom: 10px;
}
.v-badge.available   { background: #d4edda; color: #155724; }
.v-badge.unavailable { background: #f8d7da; color: #721c24; }

.v-name   { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.v-detail { font-size: 12px; color: var(--grey-600); margin-bottom: 2px; }
.v-price  { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 10px; }
.v-check  {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; background: var(--green);
  border-radius: 50%; display: none;
  align-items: center; justify-content: center; color: white; font-size: 12px;
}
.vehicle-card.selected .v-check { display: flex; }

/* ── Summary ─────────────────────────────────────────────── */
.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.summary-table tr { border-bottom: 1px solid var(--grey-200); }
.summary-table tr:last-child { border-bottom: none; font-weight: 700; font-size: 15px; }
.summary-table td { padding: 10px 0; font-size: 14px; }
.summary-table td:first-child { color: var(--grey-600); }
.summary-table td:last-child { text-align: right; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 1rem; font-weight: 500;
}
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.hidden { display: none !important; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-container { max-width: 560px; margin: 0 auto; padding: 0 2rem; }
.auth-tabs {
  display: flex; gap: 4px; background: var(--grey-100);
  padding: 4px; border-radius: var(--radius); margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 14px; font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  border-radius: 6px; color: var(--grey-600); transition: all var(--transition);
}
.auth-tab.active { background: var(--white); color: var(--black); box-shadow: var(--shadow); }

.form-terms { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1.25rem; }
.form-terms input { margin-top: 3px; flex-shrink: 0; }
.form-terms label { font-size: 13px; color: var(--grey-600); font-weight: 400; }
.form-footer { font-size: 13px; color: var(--grey-600); text-align: center; margin-top: 1rem; }
.form-footer a { color: var(--green); font-weight: 500; }

.account-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.account-avatar {
  width: 52px; height: 52px; background: var(--black);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--chrome); flex-shrink: 0;
}

.login-prompt {
  background: var(--grey-100); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; margin-bottom: 1.5rem;
}
.login-prompt p { margin-bottom: 1rem; }
.login-prompt-actions { display: flex; gap: 1rem; justify-content: center; }

/* Booking list in my account */
.booking-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1rem; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.booking-ref  { font-size: 13px; font-weight: 600; color: var(--black); }
.booking-info { font-size: 12px; color: var(--grey-600); margin-top: 2px; }
.booking-status {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}
.status-confirmed { background: #d4edda; color: #155724; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { font-size: 1.5rem; width: 40px; flex-shrink: 0; }
.contact-item h4 { font-size: 14px; color: var(--black); margin-bottom: 4px; }
.contact-item p  { font-size: 14px; color: var(--grey-600); line-height: 1.5; }

.contact-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0.5rem; }
.social-btn {
  background: var(--black); color: var(--chrome);
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 20px;
  transition: all var(--transition); text-decoration: none;
}
.social-btn:hover { background: var(--green); color: white; text-decoration: none; }

.contact-form-wrap .form-card { max-width: 100%; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 400px;
  position: relative;
}
.modal h3 { color: var(--black); margin-bottom: 1.25rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--grey-600);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 3rem 2rem;
  margin-top: 0;
}
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.footer-name { font-size: 14px; font-weight: 700; color: var(--chrome); letter-spacing: 1px; }
.footer-reg  { font-size: 12px; color: rgba(192,192,192,0.5); }
.footer-tag  { font-size: 13px; color: rgba(192,192,192,0.7); font-style: italic; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { font-size: 14px; color: rgba(192,192,192,0.7); }
.footer-links a:hover { color: var(--chrome); text-decoration: none; }
.footer-copy { font-size: 12px; color: rgba(192,192,192,0.4); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  body { padding-top: 64px; }

  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open {
    display: flex;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--black);
    padding: 1rem; border-top: 1px solid rgba(192,192,192,0.1);
    gap: 4px;
  }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 120px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  .vehicle-grid { grid-template-columns: 1fr; }

  .contact-container { grid-template-columns: 1fr; }

  .booking-steps { overflow-x: auto; padding-bottom: 0.5rem; }
  .step span { display: none; }

  .hero-cta { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
