/* ════════════════════════════════════════
   css/site.css — all styles for all pages
════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --yellow: #f5d10d;
  --black:  #0f0f0f;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--black);
  color: #eaeaea;
  font-family: 'Barlow', sans-serif;
  margin: 0;
}

a { text-decoration: none; }

h1, h2, h3, h4,
.nav-drawer a,
.services-toggle {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}


/* ════════════════════════════
   HEADER
════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: #000;
  border-bottom: 3px solid var(--yellow);
}
.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo { height: 110px; width: auto; }

.header-contact {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.header-phone {
  color: var(--yellow);
  font-weight: 600;
  font-size: 1.1rem;
}
.header-email {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.header-email:hover { color: var(--yellow); }

.hamburger-btn {
  display: flex;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  align-self: flex-end;
  margin-bottom: 8px;
}


/* ════════════════════════════
   UNIFIED NAV DRAWER
════════════════════════════ */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #000;
  border-top: 1px solid #222;
  padding: 20px 24px 24px;
}
.nav-drawer.open { display: flex; }

.nav-drawer a,
.services-toggle {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #eaeaea;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a1a;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-drawer a:last-child  { border-bottom: none; }
.nav-drawer a:hover,
.nav-drawer a.selected,
.services-toggle:hover    { color: var(--yellow); }

/* Services sub-menu */
.drawer-sub { display: none; flex-direction: column; }
.drawer-sub.open { display: flex; }
.drawer-sub a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #9ca3af;
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid #1a1a1a;
}
.drawer-sub a:hover,
.drawer-sub a.selected { color: var(--yellow); }

/* Mobile-only contact block */
.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid #333;
}
.drawer-contact a         { font-size: 0.95rem; border-bottom: none; padding: 2px 0; }
.drawer-contact .d-phone  { color: var(--yellow); font-weight: 600; }
.drawer-contact .d-email  { font-family: 'Barlow', sans-serif; font-size: 0.875rem; color: #9ca3af; }


/* ── DESKTOP NAV (768px+) ── */
@media (min-width: 768px) {
  .hamburger-btn  { display: none; }
  .header-contact { display: flex; }

  .nav-drawer {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: transparent;
    border-top: none;
    padding: 0;
  }
  .nav-drawer a,
  .services-toggle {
    font-size: 1.5rem;
    padding: 0;
    border-bottom: none;
    width: auto;
  }
  .drawer-contact { display: none; }

  .services-wrap { position: relative; }
  .services-toggle::after { content: " ▾"; font-size: 0.9em;; }

  .drawer-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    min-width: 230px;
    z-index: 100;
    display: none;
    flex-direction: column;
    background: transparent;
  }
  .services-wrap:hover .drawer-sub { display: flex; }

  .drawer-sub-inner {
    background: #111;
    border: 1px solid #333;
    border-top: 2px solid var(--yellow);
  }
  .drawer-sub a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    border-bottom: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--yellow);
  }
  .drawer-sub a:hover    { background: var(--yellow); color: var(--black); }
  .drawer-sub a.selected { color: var(--yellow); background: transparent; }

  .btn-quote {
    border: 2px solid var(--yellow) !important;
    color: var(--yellow) !important;
    padding: 6px 18px !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
    transition: background 0.2s, color 0.2s !important;
  }
  .btn-quote:hover { background: var(--yellow) !important; color: var(--black) !important; }
}


/* ════════════════════════════
   FOOTER & CONTACT FORM
════════════════════════════ */
.site-footer { border-top: 2px solid var(--yellow); }

.contact-section {
  background: var(--black);
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/cracks.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
}
.contact-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.contact-heading {
  font-size: 2.5rem;
  color: var(--yellow);
  margin-bottom: 2rem;
}

.alert-success {
  background: #1a3a1a;
  border: 1px solid #4caf50;
  color: #a5d6a7;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
}
.alert-error {
  background: #3a1a1a;
  border: 1px solid #f44336;
  color: #ef9a9a;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 16px;
}
.form-fields label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 4px;
}
.contact-input {
  font-size: 1rem;
  border-radius: 8px;
  padding: 10px 14px;
  background: #111;
  border: 1px solid #444;
  color: #eaeaea;
  width: 100%;
  transition: border-color 0.2s;
  font-family: 'Barlow', sans-serif;
}
.contact-input:focus          { outline: none; border-color: var(--yellow); }
.contact-input::placeholder   { color: #555; }

.btn-send {
  background: var(--yellow);
  color: var(--black);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  padding: 10px 40px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 4px;
}
.btn-send:hover { opacity: 0.85; }

.footer-bar {
  background: var(--yellow);
  border-top: 1px solid #1f2937;
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--black);
}
.footer-bar a       { color: var(--black); }
.footer-bar a:hover { text-decoration: underline; }


/* ════════════════════════════
   HOME PAGE — HERO
════════════════════════════ */
.hero-bg {
  position: relative;
  background-color: var(--black);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/main.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  pointer-events: none;
}

.hero-section {
  padding: 8rem 2rem;
  margin-top: 119px;
}
.hero-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-heading {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 14px black;
}
.catch-text {
  background: rgba(0,0,0,0.65);
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 16px 20px;
  text-shadow: 0 0 10px black;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}
.hero-tagline {
  color: #9ca3af;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  display: inline-block;
  background: rgba(0,0,0,0.55);
  padding: 8px 24px 8px 14px;
  transform: skewX(-12deg);
}
.hero-tagline span {
  display: inline-block;
  transform: skewX(12deg);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
}
.btn-cta {
  display: inline-block;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  padding: 14px 36px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.75);
  transition: background 0.2s, color 0.2s;
}
.btn-cta:hover { background: var(--yellow); color: var(--black); }

.hero-phone {
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 0 10px black;
}

.hero-gallery {
  position: relative;
  height: 420px;
  border-radius: 8px;
  border: 1px solid #374151;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.active {
  opacity: 1;
  position: relative;
}


/* ════════════════════════════
   GALLERY PAGE
════════════════════════════ */

/* Hero Slider */
.gallery-hero {
  position: relative;
  margin-top: 119px;
  height: 80vh;
  background: #000;
  overflow: hidden;
  border-bottom: 3px solid var(--yellow);
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-empty-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #555;
  font-size: 1rem;
}

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(245,209,13,0.3);
  color: var(--yellow);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: rgba(245,209,13,0.15); border-color: var(--yellow); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* Grid */
.gallery-grid-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: 1px solid #222;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-thumb:hover img { transform: scale(1.05); }

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gallery-thumb-overlay span {
  color: var(--yellow);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-thumb:hover .gallery-thumb-overlay { background: rgba(0,0,0,0.4); }
.gallery-thumb:hover .gallery-thumb-overlay span { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 201;
}
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(245,209,13,0.3);
  color: var(--yellow);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(245,209,13,0.15); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.service-area-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .service-area-grid { grid-template-columns: 1fr 1fr; }
}

.area-card {
  background: #111;
  border: 1px solid #222;
  border-top: 3px solid var(--yellow);
  padding: 28px 24px;
}
.area-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--yellow);
  margin-bottom: 16px;
}

/* ════════════════════════════
   HOME PAGE — SERVICES SECTION
════════════════════════════ */
.services-section {
  background: #0a0a0a;
  padding: 80px 24px;
  border-bottom: 3px solid var(--yellow);
}
.services-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.services-heading {
  font-size: 2.5rem;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #222;
  border-top: 3px solid var(--yellow);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  color: #eaeaea;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
}
.service-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card-body h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}
.service-card-body p {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
  flex: 1;
  margin: 0 0 16px;
}
.service-card-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
  transition: opacity 0.2s;
}
.service-card:hover .service-card-link { opacity: 0.75; }

.page-hero {
  margin-top: 119px;
  background: #000;
  border-bottom: 3px solid var(--yellow);
  padding: 140px 24px 130px;
  position: relative;
  overflow: hidden;
}
.page-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}
.page-hero-img .page-hero-inner { z-index: 1; }
.page-hero-img.hero-sealcoating::after   { background-image: url("../images/asphalt-sealcoating.jpg"); }
.page-hero-img.hero-crack-sealing::after { background-image: url("../images/crack-sealing.jpg"); }
.page-hero-img.hero-patching::after      { background-image: url("../images/patching.jpg"); }
.page-hero-img.hero-striping::after      { background-image: url("../images/striping.jpg"); }
.page-hero-img.hero-about::after         { background-image: url("../images/about.jpg"); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 18px,
    rgba(245,209,13,0.03) 18px, rgba(245,209,13,0.03) 19px
  );
  pointer-events: none;
}
.page-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
}
.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ddd;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 20px 6px 12px;
  transform: skewX(-12deg);
}
.breadcrumb span {
  display: inline-block;
  transform: skewX(12deg);
}
.breadcrumb a       { color: var(--yellow); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--yellow); }

.page-hero-sub {
  font-size: 1.05rem;
  color: #9ca3af;
  max-width: 560px;
  line-height: 1.6;
  display: inline-block;
  background: rgba(0,0,0,0.55);
  padding: 8px 24px 8px 14px;
  transform: skewX(-12deg);
  margin-top: 12px;
}
.page-hero-sub span {
  display: inline-block;
  transform: skewX(12deg);
}

.content-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  gap: 48px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  max-width: 760px;
  border-left: 3px solid var(--yellow);
  padding-left: 20px;
}

.section-heading {
  font-size: 1.8rem;
  color: var(--yellow);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

/* Benefit cards grid */
.benefits-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: 1fr 1fr 1fr; } }

.benefit-card {
  background: #111;
  border: 1px solid #222;
  border-top: 3px solid var(--yellow);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.benefit-card:hover { border-color: var(--yellow); transform: translateY(-3px); }

.benefit-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--yellow);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 8px;
}
.benefit-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 12px;
}
.benefit-body {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
}
.benefit-list { list-style: none; padding: 0; margin: 10px 0 0; }
.benefit-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  color: #9ca3af;
  font-size: 0.88rem;
}
.benefit-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--yellow);
  font-weight: bold;
}

/* Callout box */
.callout {
  background: #111;
  border: 1px solid #333;
  border-left: 4px solid var(--yellow);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
}
.callout-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.callout-text { font-size: 0.95rem; color: #ccc; line-height: 1.7; }
.callout-text strong { color: var(--yellow); font-weight: 600; }

/* CTA strip */
.cta-strip { background: var(--yellow); padding: 40px 24px; }
.cta-strip-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .cta-strip-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-strip h2 { font-size: 2rem; color: var(--black); margin: 0; }
.cta-strip p  { color: #333; font-size: 0.95rem; margin: 4px 0 0; }

.btn-cta-dark {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  border: 2px solid var(--black);
  padding: 14px 36px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-cta-dark:hover { background: #222; }