/* ================================================
   BETTERMAN TOWING LLC — Main Stylesheet
   Color Palette: Red #F38B00 | Dark #111 | White #fff
   ================================================ */

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

:root {
  --brand:       #F38B00;
  --brand-dark:  #D97A00;
  --dark:      #111111;
  --dark2:     #1c1c1c;
  --gray:      #f5f5f5;
  --gray2:     #e8e8e8;
  --text:      #333333;
  --white:     #ffffff;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow:    0 4px 24px rgba(0,0,0,0.12);
  --nav-h:     72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,139,0,0.4);
}
.btn-icon { gap: 12px; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-ico { font-size: 1.1rem; }

/* ---------- SECTION BANNER ---------- */
.section-banner {
  padding: 18px 24px;
  text-align: center;
}
.section-banner h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}
.section-banner--brand { background: var(--brand); }

.section-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* ================================================
   NAVIGATION
   ================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 32px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition);
}

#site-header.scrolled .navbar {
  background: rgba(17,17,17,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--brand);
  letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--white);
  padding: 8px 14px;
  border-radius: 3px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active,
.nav-link:hover {
  color: var(--brand);
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('images/hero_tow_truck.png') center center / cover no-repeat;
  padding-top: var(--nav-h);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 40px 24px;
  animation: fadeInUp 0.9s ease both;
}

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

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.hero-title-top {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.35);
  display: inline-block;
  padding: 6px 16px;
  letter-spacing: 1px;
}

.hero-title-mid {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-title-loc {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--white);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 36px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}

.hero-buttons .btn {
  width: 100%;
  font-size: 1rem;
  animation: fadeInUp 0.9s ease both;
}
.hero-buttons .btn:nth-child(1) { animation-delay: 0.2s; }
.hero-buttons .btn:nth-child(2) { animation-delay: 0.35s; }
.hero-buttons .btn:nth-child(3) { animation-delay: 0.5s; }

/* ================================================
   ABOUT
   ================================================ */
#about {
  background: var(--white);
}

.about-phone-bar {
  background:
    url('images/hero_tow_truck.png') center 30% / cover no-repeat;
  position: relative;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-phone-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.about-phone-bar .btn { position: relative; z-index: 1; }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 24px;
  align-items: start;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.about-image-wrap:hover img { transform: scale(1.02); }

.about-quote-badge {
  position: absolute;
  bottom: -20px;
  right: 24px;
  background: var(--white);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.2;
  border: 3px solid var(--brand);
  transition: transform var(--transition), box-shadow var(--transition);
  gap: 4px;
}
.about-quote-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.about-quote-badge .btn-ico { font-size: 1.4rem; color: var(--brand); }

.about-text {
  padding-top: 8px;
}
.about-text p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: #555;
}
.about-text .btn { margin-top: 12px; }

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

.services-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 24px;
  align-items: start;
}

.services-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: transform var(--transition);
}
.services-gallery img:hover { transform: scale(1.02); }

.services-left p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: #555;
}

/* Accordion */
.accordion { width: 100%; }

.accordion-item {
  border-bottom: 2px solid var(--gray2);
  background: var(--white);
  margin-bottom: 4px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark);
  text-align: left;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.accordion-btn:hover { background: var(--gray2); }
.accordion-btn[aria-expanded="true"] { color: var(--brand); }

.acc-icon {
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-btn[aria-expanded="true"] .acc-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}
.accordion-body.open {
  max-height: 200px;
  padding: 16px 20px 20px;
}
.accordion-body p { color: #666; line-height: 1.7; }

/* ================================================
   CONTACT / REVIEWS
   ================================================ */
.contact-section { background: var(--white); }

.contact-intro {
  padding: 56px 24px 32px;
  text-align: center;
}
.contact-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: #666;
  line-height: 1.75;
}
.contact-intro .section-heading { margin-bottom: 16px; }

.reviews-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 24px;
  align-items: start;
}

.reviews-rating {
  text-align: center;
  padding: 24px 16px;
}
.reviews-label {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 1px;
}
.stars {
  font-size: 2rem;
  color: #FBBC05;
  letter-spacing: 2px;
  margin: 8px 0;
}
.reviews-count { font-size: 0.9rem; color: #555; margin-bottom: 10px; }
.google-badge {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.reviews-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.reviewer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.reviewer-info strong { font-size: 0.9rem; color: var(--dark); }
.reviewer-info span { font-size: 0.75rem; color: #999; }

.google-g {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4285F4;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-stars {
  color: #FBBC05;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.verified { color: #4285F4; font-size: 0.8rem; }
.review-card p { font-size: 0.87rem; color: #555; line-height: 1.6; }

.contact-call-center {
  display: flex;
  justify-content: center;
  padding: 40px 24px 60px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  position: relative;
  background:
    url('images/hero_tow_truck.png') center center / cover no-repeat;
  color: var(--white);
}
.footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}
.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 72px 24px 48px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.7;
}
.footer-connect-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.footer-contact-list a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--brand); }
.footer-icon { font-size: 1.1rem; flex-shrink: 0; color: var(--brand); }

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.service-area-link {
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.service-area-link:hover { color: #FFAD33; }

.footer-service-areas { margin-bottom: 28px; }

.footer-socials {
  display: flex;
  gap: 14px;
}
.social-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.social-icon:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  transform: translateY(-3px);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE — TABLET (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  .about-content,
  .services-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
  }

  .reviews-section {
    grid-template-columns: 1fr;
  }
  .reviews-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px;
  }

  .about-quote-badge {
    bottom: 12px;
    right: 12px;
  }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  .navbar { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(17,17,17,0.97);
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 4px;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }

  .mobile-menu-btn { display: flex; }

  .hero-title-top { font-size: 1.35rem; }
  .hero-title-mid { font-size: 1.25rem; }

  .reviews-cards { grid-template-columns: 1fr; }

  .section-heading { font-size: 1.6rem; }

  .footer-socials { flex-wrap: wrap; }
}

/* =========================================================
   BOOKING MODAL STYLES
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-header {
  background: var(--brand);
  padding: 25px 30px;
  text-align: center;
  color: #fff;
}

.modal-header h2 {
  margin: 0 0 15px 0;
  font-family: var(--font-heading);
  font-size: 24px;
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.step {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
}

.step.active {
  background: #fff;
  color: var(--brand);
}

.step.completed {
  background: #111;
  color: #fff;
}

.step-line {
  height: 2px;
  width: 30px;
  background: rgba(255,255,255,0.3);
}

.modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-step h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--brand-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.step-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.modal-actions.split {
  justify-content: space-between;
}

.modal-actions.center {
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 2px solid #ccc;
  color: #333;
}

.btn-outline:hover {
  border-color: #999;
}

#step-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #4CAF50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  margin: 0 auto 20px auto;
}

.success-msg {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}
