/* ========================================
   East Texas Towing — Styles
   Palette: Terracotta + Sand + Cream
======================================== */

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

:root {
  --terracotta: #C4704B;
  --terracotta-dark: #A85A3A;
  --terracotta-light: #D4916F;
  --sand: #E8D5C0;
  --sand-light: #F5EDE3;
  --sand-lighter: #FAF5EF;
  --cream: #FDF6EE;
  --cream-dark: #F2E6D8;
  --text-dark: #2D1F14;
  --text-mid: #5C4033;
  --text-light: #8B7365;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(45,31,20,0.06);
  --shadow-md: 0 4px 16px rgba(45,31,20,0.08);
  --shadow-lg: 0 8px 32px rgba(45,31,20,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ========================================
   HEADER / NAV
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 112, 75, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
}

.logo-text span {
  color: var(--terracotta);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition), background var(--transition);
}

.nav-list a:hover {
  color: var(--terracotta);
  background: rgba(196, 112, 75, 0.06);
}

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ========================================
   HERO — Split layout
======================================== */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 50%, var(--sand-lighter) 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,112,75,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,213,192,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 112, 75, 0.1);
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-headline em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--sand);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-floating-card {
  position: absolute;
  bottom: 32px;
  left: -32px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-floating-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.hero-floating-card span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,112,75,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--sand);
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(196,112,75,0.04);
}

.btn-white {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--sand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========================================
   SECTION COMMON
======================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ========================================
   SERVICES
======================================== */
.services {
  padding: 100px 0;
  background: var(--white);
}

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

.service-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(196,112,75,0.06);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196,112,75,0.15);
  background: var(--white);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(196,112,75,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--terracotta);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ========================================
   ABOUT
======================================== */
.about {
  padding: 100px 0;
  background: var(--cream);
  overflow: hidden;
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-img-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100px;
  height: 100px;
  background: var(--terracotta);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.about-content {
  max-width: 480px;
}

.about-content .section-tag {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--terracotta);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

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

/* ========================================
   WHY US
======================================== */
.why-us {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

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

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid rgba(196,112,75,0.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.why-card:hover .why-num {
  color: rgba(196,112,75,0.15);
}

.why-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ========================================
   CTA BANNER
======================================== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   CONTACT
======================================== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

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

.contact-info .section-tag,
.contact-info .section-title {
  text-align: left;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(196,112,75,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

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

/* Form */
.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(196,112,75,0.08);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196,112,75,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(26,95,59,0.06);
  border-radius: var(--radius-sm);
  color: #1A5F3B;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========================================
   MAP
======================================== */
.map-section {
  border-top: 1px solid var(--sand);
}

.map-wrapper {
  filter: saturate(0.7) contrast(1.05);
  transition: filter var(--transition);
}

.map-wrapper:hover {
  filter: saturate(1) contrast(1);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--text-dark);
  color: rgba(253,246,238,0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 300px;
  color: rgba(253,246,238,0.55);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(253,246,238,0.55);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--sand);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(253,246,238,0.55);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(253,246,238,0.08);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(253,246,238,0.35);
}

/* ========================================
   REVEAL ANIMATIONS
   Progressive enhancement — only apply
   when JS is available and motion is allowed
======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default state for reveal elements (no-JS fallback: always visible) */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .about-grid,
  .contact-grid {
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,246,238,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(196,112,75,0.1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }

  /* HERO mobile */
  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-image {
    order: -1;
  }

  .hero-img-wrapper img {
    height: 360px;
  }

  .hero-floating-card {
    left: 16px;
    bottom: 16px;
  }

  .hero-trust {
    gap: 16px;
  }

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

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    height: 360px;
  }

  .about-content .section-tag,
  .about-content .section-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .about-content .btn {
    margin: 8px auto 0;
    display: inline-flex;
  }

  /* WHY US */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-grid {
    flex-direction: column;
    text-align: center;
  }

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

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info .section-tag,
  .contact-info .section-title {
    text-align: center;
  }

  .contact-desc {
    text-align: center;
  }

  .contact-form-wrap {
    padding: 28px;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
