/* ===================================
   ALLIED ASPHALT — STYLESHEET
   Clean, minimalist, forest green + off-white
   =================================== */

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

:root {
  --green-900: #0B2118;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --green-100: #B7E4C7;
  --green-50:  #D8F3DC;
  --off-white: #F7F5F0;
  --cream:     #EFECE4;
  --white:     #FFFFFF;
  --black:     #0A0A0A;
  --gray-900:  #1A1A1A;
  --gray-700:  #3A3A3A;
  --gray-500:  #6B6B6B;
  --gray-300:  #B0B0B0;
  --gray-200:  #D1D1D1;
  --gray-100:  #EAEAEA;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-h: 64px;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ===================================
   NAVIGATION
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: var(--nav-h);
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green-800);
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  color: var(--green-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-700);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--green-800);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--green-700);
  border: 1px solid var(--green-700);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gray-900);
  transition: all 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--off-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gray-900);
  transition: color 0.2s ease;
}

.nav-overlay a:hover {
  color: var(--green-700);
}

.nav-overlay-cta {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
  border: 1px solid var(--green-700);
  padding: 12px 28px;
  border-radius: 100px;
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 33, 24, 0.88) 0%,
    rgba(27, 67, 50, 0.82) 50%,
    rgba(45, 106, 79, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-100);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-trust-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
}

.hero-trust-label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.25);
}

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

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

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

.btn-white:hover {
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-full {
  width: 100%;
}

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

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-500);
}

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

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

.service-card {
  background: var(--white);
  padding: 48px 36px;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  border-color: var(--green-100);
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.06);
  transform: translateY(-2px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-500);
}

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

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

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

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

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

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-900);
}

.about-value svg {
  color: var(--green-700);
  flex-shrink: 0;
}

/* ===================================
   GALLERY
   =================================== */
.gallery {
  padding: 120px 0;
  background: var(--off-white);
}

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

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  aspect-ratio: 3/2;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(transparent, rgba(11, 33, 24, 0.7));
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials {
  padding: 120px 0;
  background: var(--green-800);
}

.testimonials .section-eyebrow {
  color: var(--green-100);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.testimonial-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--green-100);
}

/* ===================================
   CTA
   =================================== */
.cta {
  padding: 120px 0;
  background: var(--off-white);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-eyebrow {
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

.contact-info .section-eyebrow {
  text-align: left;
}

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

.contact-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 40px;
}

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

.contact-detail {
  display: flex;
  gap: 16px;
}

.contact-detail svg {
  color: var(--green-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-700);
}

.contact-detail a {
  color: var(--green-700);
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--green-600);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 48px 40px;
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-note {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--gray-500);
  margin-bottom: 32px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray-900);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.12);
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 8px;
  color: var(--green-800);
  font-size: 0.875rem;
  font-weight: 400;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  color: var(--green-700);
  flex-shrink: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo svg {
  color: var(--green-500);
}

.footer-brand p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

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

.footer-contact p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--green-100);
  transition: color 0.2s ease;
}

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

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

.footer-bottom p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
}

/* ===================================
   REVEAL ANIMATIONS (below fold only)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: ensure content is visible without JS */
.no-js .reveal,
:not(.no-js) .reveal {
  /* JS will add .visible; without JS content stays visible via cascade */
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-trust {
    gap: 20px;
  }

  .services {
    padding: 80px 0;
  }

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

  .service-card {
    padding: 36px 28px;
  }

  .about {
    padding: 80px 0;
  }

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

  .about-image {
    order: -1;
  }

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

  .about-values {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding: 80px 0;
  }

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

  .testimonials {
    padding: 80px 0;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .cta {
    padding: 80px 0;
  }

  .contact {
    padding: 80px 0;
  }

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

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

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

  .contact-form-wrap {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding: 60px 0 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

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

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

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

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