/* Option B: Modern Responsive Stylesheet for G & F Contracting, LLC */
:root {
  --brand-green: #3d7a00;
  --brand-green-dark: #2a5500;
  --brand-green-light: #eef6e6;
  --accent-gold: #eab308;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 10px 30px rgba(15,23,42,0.14);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.25;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-green-dark);
}

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

/* Top Utility Bar */
.topbar {
  background: var(--brand-green-dark);
  color: #ffffff;
  font-size: 14px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: #ffffff;
  font-weight: 600;
}
.topbar a:hover {
  text-decoration: underline;
}

/* Sticky Navbar */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  gap: 20px;
}
.brand-logo img {
  height: 50px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 4px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--brand-green);
}

/* Portfolio Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
}
.nav-links > li:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
}
.dropdown-menu li a:hover {
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--brand-green);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(61, 122, 0, 0.28);
}
.btn-primary:hover {
  background: var(--brand-green-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
  border: 2px solid #ffffff;
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--brand-green-dark) !important;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: #1e293b;
  color: #ffffff;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.35) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 72px 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(61, 122, 0, 0.9);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 18px;
}
.hero p {
  font-size: 18px;
  color: #e2e8f0;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Page Banner (Inner Pages) */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 68px 0;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
}
.page-banner .container {
  position: relative;
  z-index: 2;
}
.page-banner h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}
.page-banner p {
  color: #cbd5e1;
  font-size: 18px;
}

/* 4-Pillar Values Bar */
.pillars-section {
  background: var(--brand-green);
  color: #ffffff;
  padding: 40px 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.pillar-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px;
}
.pillar-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
}
.pillar-card p {
  color: #f1f5f9;
  font-size: 14.5px;
}

/* Section Layout */
.section {
  padding: 72px 0;
}
.section-white {
  background: var(--bg-white);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px auto;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.card-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* Service Feature Box */
.service-card {
  display: flex;
  gap: 20px;
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--brand-green-light);
  padding: 8px;
  object-fit: contain;
}

/* Checklist Grid */
.checklist-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.checklist {
  list-style: none;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 500;
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Portfolio Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Native Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-modal.open {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  text-align: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: #f8fafc;
  margin-top: 12px;
  font-size: 15px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--brand-green);
}
.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green));
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 12px;
}
.cta-banner p {
  color: #e2e8f0;
  font-size: 18px;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 32px 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 18px;
}
.footer-list {
  list-style: none;
}
.footer-list li {
  margin-bottom: 10px;
}
.site-footer a {
  color: #94a3b8;
}
.site-footer a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 14px;
  }
}
