/* ========================================
   A&A Towing — Modern Responsive CSS
   ======================================== */

:root {
  --color-bg-dark:      #0d1117;
  --color-navy:         #111827;
  --color-navy-mid:     #1e293b;
  --color-accent:       #f97316;
  --color-accent-hover: #ea6c10;
  --color-accent-glow:  rgba(249, 115, 22, 0.45);
  --color-white:        #ffffff;
  --color-text-light:   #e2e8f0;
  --color-text-muted:   #94a3b8;
  --color-text-dark:    #1e293b;
  --color-star:         #fbbf24;
  --color-border:       #334155;

  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --text-h1:   clamp(2rem, 5vw, 3.75rem);
  --text-h2:   clamp(1.5rem, 3.5vw, 2.5rem);
  --text-h3:   clamp(1.1rem, 2vw, 1.4rem);
  --text-body: 1rem;
  --text-sm:   0.875rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

section {
  padding: 5rem 1.25rem;
}

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

main {
  display: block;
}

/* ===== Animations ===== */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 var(--color-accent-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(249, 115, 22, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Header & Navigation ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

#site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#site-logo img {
  height: 50px;
  width: auto;
}

#site-logo a:hover img {
  filter: brightness(1.1);
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-grow: 1;
}

#main-nav a {
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

#main-nav a:hover::after {
  width: 100%;
}

.btn-call-header {
  background: var(--color-accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-call-header:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

#burger {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

#burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-accent);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/aa-tow-truck.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 4rem 1.25rem;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 30, 0.75) 0%, rgba(10, 15, 30, 0.85) 100%);
  z-index: 1;
}

#hero > * {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-size: var(--text-h1);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-call-hero {
  display: inline-block;
  background: var(--color-accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-glow 2s infinite;
  box-shadow: 0 0 0 0 var(--color-accent-glow);
}

.btn-call-hero:hover {
  animation: none;
  background: var(--color-accent-hover);
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary-hero {
  display: inline-block;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-secondary-hero:hover {
  background: var(--color-accent);
  color: #000;
}

.hero-trust {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-trust span {
  display: inline-block;
  margin: 0 0.5rem;
}

/* ===== Services Section ===== */
#services {
  background: var(--color-navy);
}

#services h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

.services-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--color-navy-mid);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  border-top: 4px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-top-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: var(--text-h3);
}

.service-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Trust Section ===== */
#trust {
  background: var(--color-navy);
  padding: 4rem 1.25rem;
}

#trust h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 3rem;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.badge-pill {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

/* ===== About Section ===== */
#about {
  background: var(--color-bg-dark);
}

#about h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-quote {
  background: var(--color-navy-mid);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.about-quote blockquote {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-quote cite {
  display: block;
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
  width: 100%;
  height: auto;
}

/* ===== Testimonials Section ===== */
#testimonials {
  background: var(--color-navy);
}

#testimonials h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-navy-mid);
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.stars {
  color: var(--color-star);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  display: block;
  font-weight: 600;
  color: var(--color-accent);
  font-style: normal;
}

/* ===== Service Areas Section ===== */
#service-area {
  background: var(--color-bg-dark);
  position: relative;
  padding: 0;
  overflow: hidden;
}

.service-area-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.25rem;
  background: rgba(13, 17, 23, 0.95);
}

.service-area-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/towing.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.service-area-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.8);
}

#service-area h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.area-intro {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.area-list li {
  list-style: none;
  color: var(--color-text-light);
  padding-left: 1.5rem;
  position: relative;
}

.area-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--color-accent);;
  font-size: 0.8rem;
}

.area-cta {
  color: var(--color-text-light);
  font-weight: 600;
  margin-top: 1.5rem;
}

/* ===== Contact Section ===== */
#contact {
  background: var(--color-navy);
}

#contact h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.contact-phone {
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
  font-family: var(--font-heading);
}

.contact-phone:hover {
  text-decoration: underline;
}

.contact-email {
  color: var(--color-text-light);
  word-break: break-all;
}

address {
  color: var(--color-text-light);
  line-height: 1.8;
  font-style: normal;
}

.hours-table {
  width: 100%;
  color: var(--color-text-light);
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table th {
  color: var(--color-accent);
  font-weight: 700;
}

.hours-table td:last-child {
  text-align: right;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16/9;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Footer ===== */
footer {
  background: var(--color-navy);
  border-top: 2px solid var(--color-accent);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
}

footer p {
  margin-bottom: 1rem;
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-phone {
  font-size: 1.3rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-phone:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

/* ===== Floating Mobile CTA ===== */
.floating-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.floating-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem;
  animation: pulse-glow 2.5s infinite;
}

.floating-call a:active {
  transform: scale(0.98);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 1.25rem;
  }

  #site-header {
    flex-wrap: wrap;
  }

  #burger {
    display: block;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy);
    border-bottom: 2px solid var(--color-accent);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    width: 100%;
  }

  #main-nav.open {
    display: flex;
  }

  #main-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  #main-nav a::after {
    display: none;
  }

  .btn-call-header {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  #hero {
    min-height: 70vh;
    padding: 3rem 1.25rem;
  }

  #hero h1 {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-call-hero,
  .btn-secondary-hero {
    width: 100%;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .floating-call {
    display: block;
  }

  body {
    padding-bottom: 64px;
  }

  #main-nav {
    z-index: 999;
  }
}

@media (max-width: 640px) {
  #site-header {
    padding: 0.5rem 1rem;
  }

  #site-logo img {
    height: 40px;
  }

  #main-nav {
    gap: 0.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  #hero h1 {
    line-height: 1.1;
  }

  .service-card {
    padding: 1.5rem;
  }

  .trust-stats {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-badges {
    flex-direction: column;
  }

  .badge-pill {
    width: 100%;
  }

  .area-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hours-table {
    font-size: 0.9rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn-call-hero,
  .floating-call a {
    animation: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  #site-header,
  .floating-call,
  .hero-buttons {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}
