/* ============================================================
   AFFORDABLE DRIVEWAY & PATIOS — Main Stylesheet
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

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

/* ---------- Variables ---------- */
:root {
  --green: #39b54a;
  --green-dark: #2e9a3d;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gray-light: #f8f8f8;
  --text: #222;
  --text-muted: #555;
  --white: #ffffff;
  --radius-btn: 4px;
  --radius-card: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ---------- Container ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

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

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--dark); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  font-size: 1rem;
}
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; }

.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-xl { padding: 18px 48px; font-size: 1.1rem; border-radius: 50px; }
.btn-sm { padding: 9px 20px; font-size: 0.78rem; }

/* ---------- Section Utilities ---------- */
.section-pad { padding: 90px 0; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-eyebrow.light { color: var(--green); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}
.section-title strong { font-weight: 900; }
.section-title.light { color: var(--white); }
.section-title.light strong { color: var(--green); }

.section-sub { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-footer { text-align: center; margin-top: 48px; }

.bg-dark { background: var(--dark); }
.bg-light { background: var(--gray-light); }

/* ---------- Scroll Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
}

/* Top bar */
.header-top {
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.header-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  transition: color var(--transition);
}
.header-contact-item:hover { color: var(--green); }
.header-contact-item i { color: var(--green); font-size: 0.85rem; }

.header-social { display: flex; gap: 12px; }
.social-link {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.78rem;
  transition: background var(--transition);
}
.social-link:hover { background: var(--green); }

/* Navbar */
.navbar { padding: 14px 0; background: #ffffff; }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img { height: 64px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--green); }
.nav-link:hover::after { width: 100%; }

.nav-cta { border-radius: 50px !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Slideshow */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2a3a2a;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.06);
  animation: none;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 7s ease forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.3);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-title .white { color: var(--white); }
.hero-title .green { color: var(--green); font-weight: 900; }
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.hero-btn { border-radius: 50px !important; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
}
.about-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.about-logo { display: flex; justify-content: center; }
.about-logo-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}
.about-logo-circle img { width: 75%; height: auto; object-fit: contain; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-color: #2a3a2a;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  transition: background var(--transition);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}
.service-card-content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  width: 100%;
  text-align: center;
}
.service-card-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.service-card-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--gray-light); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background var(--transition);
}
.portfolio-item:hover .portfolio-overlay { background: rgba(0,0,0,0.55); }
.portfolio-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.portfolio-item:hover .portfolio-overlay span { opacity: 1; transform: translateY(0); }

/* ============================================================
   WHATSAPP CTA
   ============================================================ */
.cta-section { text-align: center; }
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 40px;
}
.cta-contact-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-contact-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition);
}
.cta-contact-link:hover { color: var(--green); }
.cta-contact-link i { color: var(--green); }
.cta-divider { color: rgba(255,255,255,0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0a0a0a;
  padding: 60px 0 32px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.footer-logo img { height: 72px; width: auto; }

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green); }

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.trust-logo {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform var(--transition);
}
.trust-logo:hover { transform: scale(1.06); }
.trust-stars { display: flex; gap: 4px; }
.trust-stars .fa-star { color: #FFD700; font-size: 1.1rem; }
.trust-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-buttons { justify-content: center; }
  .about-logo { order: -1; }
  .about-logo-circle { width: 240px; height: 240px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .section-pad { padding: 64px 0; }
  .header-top { display: none; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 320px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .hero { min-height: 100svh; padding-bottom: 60px; }
  .hero-title { font-size: 2rem; }

  .trust-badges { gap: 32px; }
  .trust-logo { height: 56px; }
  .cta-contact-row { flex-direction: column; gap: 12px; }
  .cta-divider { display: none; }
}
