/* =============================================================
   Bay Area Express — Styles
   Modern, clean, service-first courier website.
   Colors: dark navy text, white background, red accent.
   ============================================================= */

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

/* ===== Variables ===== */
:root {
  --navy:       #0f1d35;
  --navy-mid:   #1b2d4f;
  --navy-light: #263c5f;
  --red:        #d63031;
  --red-dark:   #b71c1c;
  --blue:       #6b7280;
  --gray-50:    #f8f9fb;
  --gray-100:   #edf0f5;
  --gray-200:   #d6dae3;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --white:      #ffffff;
  --font:       -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --section-py: 80px;
  --radius:     6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

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

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* ===== Section typography ===== */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 40px;
}

/* Centered headings for grid sections */
.services .section-title,
.services .section-sub,
.how-it-works .section-title,
.how-it-works .section-sub,
.why-us .section-title,
.why-us .section-sub,
.area .section-title,
.area .section-sub,
.contact .section-title,
.contact .section-sub {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================
   HEADER — sticky, phone always visible
   ======================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
}

/* Nav links */
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav a:hover { color: var(--red); }

.nav-request {
  color: var(--red) !important;
  font-weight: 700 !important;
}
.nav-request:hover { color: var(--red-dark) !important; }

/* Active state for current page */
.nav-active {
  color: var(--red) !important;
  font-weight: 700 !important;
}

/* Phone number in header */
.header-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header-cta { white-space: nowrap; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0 72px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Trust badges row */
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.trust-icon { font-size: 1.05rem; }

/* ========================================================
   SERVICES
   ======================================================== */
.services {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--gray-400);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ========================================================
   HOW IT WORKS
   ======================================================== */
.how-it-works {
  padding: var(--section-py) 0;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step-num {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.step p a {
  color: var(--red);
  font-weight: 600;
}

.step-divider {
  width: 60px;
  height: 2px;
  background: var(--gray-200);
  flex-shrink: 0;
  margin-top: 24px;
}

/* ========================================================
   WHY CHOOSE US
   ======================================================== */
.why-us {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.why-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.why-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ========================================================
   ABOUT
   ======================================================== */
.about {
  padding: var(--section-py) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.about-box {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.about-box span { font-size: 3.5rem; }
.about-box p {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,0.45);
}

.about-text .section-title { text-align: left; margin-left: 0; }

.about-text p {
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.about-text .btn { margin-top: 8px; }

/* ========================================================
   SERVICE AREA
   ======================================================== */
.area {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.area-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.area-list li {
  font-size: 0.95rem;
  color: var(--gray-800);
  padding-left: 22px;
  position: relative;
}
.area-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.area-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--gray-600);
}
.area-note a {
  color: var(--red);
  font-weight: 600;
}

.map-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.map-box span { font-size: 3rem; }
.map-box p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.map-box .map-sub {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 400;
}

/* ========================================================
   CONTACT
   ======================================================== */
.contact {
  padding: var(--section-py) 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-block { margin-bottom: 24px; }

.contact-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-block p {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.6;
}

.contact-phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-top: 4px;
}
.contact-phone:hover { text-decoration: underline; }

.contact-block a {
  color: var(--red);
}
.contact-block a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.req { color: var(--red); }

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(107,114,128,0.15);
}

.contact-form .btn { align-self: flex-start; }

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 36px 0 24px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-main a {
  color: var(--white);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ========================================================
   TOAST (form feedback)
   ======================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================================
   RESPONSIVE — Tablet
   ======================================================== */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.1rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .about-inner,
  .area-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-visual { order: -1; }
  .header-phone { display: none; }
}

/* ========================================================
   RESPONSIVE — Mobile
   ======================================================== */
@media (max-width: 640px) {
  :root { --section-py: 56px; }

  /* Hide desktop nav + CTA, show hamburger */
  .nav, .header-cta, .header-phone { display: none; }
  .mobile-toggle { display: flex; }

  /* Mobile nav open */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    gap: 12px;
  }

  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .area-list ul { grid-template-columns: 1fr; }

  /* Stack how-it-works vertically */
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .step-divider {
    width: 2px;
    height: 24px;
    margin: 0;
  }
  .step { padding: 0; }

  .trust-row { gap: 10px 16px; }
  .trust-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* ========================================================
   PAGE HERO — request.html and other inner pages
   ======================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0 44px;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.65;
}

.page-hero p a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

/* ========================================================
   DELIVERY REQUEST FORM PAGE
   ======================================================== */
.request-section {
  padding: var(--section-py) 0;
}

.request-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Side info panel */
.request-info-block {
  margin-bottom: 24px;
}

.request-info-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.request-info-block p {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.6;
}

.request-info-block a {
  color: var(--red);
}
.request-info-block a:hover { text-decoration: underline; }

.request-tip {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--gray-800);
  line-height: 1.5;
  margin-top: 8px;
}

.tip-icon {
  margin-right: 4px;
}

/* Form fieldsets */
.delivery-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-section {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section legend {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  padding: 0 6px;
}

.form-group select {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(107,114,128,0.15);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-disclaimer {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ========================================================
   RESPONSIVE — request page
   ======================================================== */
@media (max-width: 900px) {
  .request-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.6rem; }
  .form-section { padding: 18px 16px 14px; }
}
