/* ==========================================================================
   CSS VARIABLES & GLOBAL RESET (KY PERGOLA FOREST GREEN & GOLD)
   ========================================================================== */
:root {
  --ky-green: #1d3c2b;
  --ky-green-dark: #13281d;
  --ky-gold: #d4a024;
  --text-dark: #1b2420;
  --text-muted: #526059;
  --bg-light: #f4f7f5;
  --white: #ffffff;
  --border-color: #dce4df;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-logo-img {
  height: 54px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

code {
  font-family: monospace;
  background: #e4ede8;
  color: var(--ky-green-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ==========================================================================
   STICKY HEADER NAVIGATION
   ========================================================================== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--ky-green);
  color: var(--white);
  height: var(--header-height);
  border-bottom: 3px solid var(--ky-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.brand-main {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.6px;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--ky-gold);
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ky-gold);
  border-bottom-color: var(--ky-gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.phone-link:hover {
  color: var(--ky-gold);
}

.btn-header-quote {
  background-color: var(--ky-gold);
  color: var(--ky-green-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-header-quote:hover {
  background-color: #e4b132;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--white);
}

/* ==========================================================================
   HERO SECTION & MULTI-STEP QUOTE FORM
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background: url("Home/Designing Outdoor Dreams/1.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 50px 0 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 33, 24, 0.86) 0%, rgba(16, 33, 24, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headings h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.license-badge {
  color: #dce6e0;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.promo-pill {
  display: inline-block;
  background-color: var(--white);
  color: var(--ky-green);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1.5px solid var(--ky-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quote-card {
  width: 100%;
  max-width: 520px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--ky-gold);
  box-shadow: var(--shadow-card);
  padding: 26px 30px 32px;
  text-align: left;
}

.quote-card-header {
  margin-bottom: 24px;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

#stepIndicatorText {
  color: var(--ky-green);
}

#stepCategoryText {
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 5px;
  background-color: #e4ebe7;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--ky-green);
  transition: width 0.3s ease;
}

.form-step {
  display: none;
  animation: fadeIn 0.25s ease;
}

.form-step.active {
  display: block;
}

.form-step h2 {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.18s ease;
}

.option-btn:hover {
  border-color: var(--ky-green);
  background-color: #f1f6f3;
  transform: translateX(2px);
}

.option-btn .chevron {
  color: #8fa097;
  font-size: 1.25rem;
}

.option-btn:hover .chevron {
  color: var(--ky-green);
}

.input-group {
  margin-bottom: 12px;
}

.input-group input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
}

.input-group input:focus {
  outline: none;
  border-color: var(--ky-green);
}

.btn-submit {
  width: 100%;
  background-color: var(--ky-green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--ky-green-dark);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
}

.form-error {
  color: #c92a2a;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-success {
  text-align: center;
  padding: 15px 0;
}

.success-icon {
  width: 52px;
  height: 52px;
  background-color: var(--ky-green);
  color: var(--ky-gold);
  font-size: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-reset {
  margin-top: 16px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   SECTIONS, NESTED FOLDER BLOCKS & GALLERIES
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--ky-green);
  background-color: #e4ede8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ky-green-dark);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Category Filter Tabs */
.folder-nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.folder-pill {
  background-color: var(--white);
  color: var(--ky-green);
  border: 1.5px solid var(--ky-green);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.folder-pill:hover,
.folder-pill.active {
  background-color: var(--ky-green);
  color: var(--white);
}

/* Main Parent Category Wrapper (e.g., Carport, Outdoor Building, Pergola) */
.parent-category-section {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 42px;
  box-shadow: var(--shadow-soft);
}

.parent-category-header {
  border-bottom: 2px solid var(--ky-gold);
  padding-bottom: 14px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.parent-category-header h3 {
  font-size: 1.65rem;
  color: var(--ky-green-dark);
  font-weight: 800;
}

.parent-path-badge {
  font-family: monospace;
  font-size: 0.85rem;
  background-color: var(--ky-green);
  color: var(--ky-gold);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
}

/* Nested Sub-Folder Block (e.g., Carport/Flat/, Carport/Gable/) */
.subfolder-block {
  margin-bottom: 36px;
}

.subfolder-block:last-child {
  margin-bottom: 0;
}

.subfolder-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--ky-green);
}

.subfolder-title-bar h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 700;
}

.subfolder-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subfolder-path-code {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: #eef3f0;
  padding: 3px 9px;
  border-radius: 4px;
}

/* Carousel Prev / Next Navigation Buttons */
.slider-nav-btns {
  display: flex;
  gap: 6px;
}

.slider-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ky-green);
  background-color: var(--white);
  color: var(--ky-green);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.slider-btn:hover {
  background-color: var(--ky-green);
  color: var(--white);
}

/* Horizontal Sliding Carousel Track for Product Subfolders */
.product-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--ky-green) #e4ede8;
}

.product-slider-track::-webkit-scrollbar {
  height: 7px;
}

.product-slider-track::-webkit-scrollbar-track {
  background: #e4ede8;
  border-radius: 99px;
}

.product-slider-track::-webkit-scrollbar-thumb {
  background-color: var(--ky-green);
  border-radius: 99px;
}

/* Each Slide Card inside the Subfolder Carousel */
.product-slider-track .gallery-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 270px;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .product-slider-track .gallery-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .product-slider-track .gallery-card {
    flex: 0 0 85%;
  }
}

/* Standard Grid (kept for 3D Sketches & Completed Portfolio sections) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.img-wrapper {
  width: 100%;
  height: 215px;
  overflow: hidden;
  cursor: zoom-in;
  background-color: #e4ebe7;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  padding: 16px;
  flex: 1;
}

.file-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 0.74rem;
  background-color: #eef3f0;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  word-break: break-all;
}

.gallery-card h3,
.gallery-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.gallery-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.faq-card {
  background: var(--bg-light);
  padding: 26px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--ky-green);
}

.faq-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--ky-green-dark);
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Banner & Footer */
.cta-banner {
  background-color: var(--ky-green);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: #dce6e0;
  margin-bottom: 24px;
}

.btn-primary-large {
  display: inline-block;
  background-color: var(--ky-gold);
  color: var(--ky-green-dark);
  text-decoration: none;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.btn-primary-large:hover {
  background-color: #e4b132;
}

.site-footer {
  background-color: var(--ky-green-dark);
  color: #b8c7bf;
  padding: 24px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--ky-gold);
  text-decoration: none;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 14px;
  text-align: center;
  max-width: 720px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Desktop: show full phone number, hide mobile-only "Call Us" label */
.phone-mobile-label {
  display: none;
}

@media (max-width: 920px) {
  .brand-sub {
    display: none;
  }

  /* Hide "Free Quote" button on mobile */
  .btn-header-quote {
    display: none;
  }

  /* Style "Call Us" as the primary gold CTA button on mobile */
  .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--ky-gold);
    color: var(--ky-green-dark);
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .phone-link:hover {
    background-color: #e4b132;
    color: var(--ky-green-dark);
  }

  .phone-text {
    display: none;
  }

  .phone-mobile-label {
    display: inline;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--ky-green-dark);
    padding: 16px 20px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .parent-category-section {
    padding: 20px;
  }
}