:root {
  --bg-white: #ffffff; 
  --bg-light-neutral: #F8FAFC; 
  --primary-slate: #1E3329; 
  --primary-dark: #12221C; 
  --accent-cyan: #19C3F0; 
  --accent-cyan-hover: #12A8D3; 
  --text-dark: #1E293B; 
  --text-grey: #475569; 
  --text-light: #ffffff;
  --border-color: #E2E8F0; 
  --font-stack: 'Poppins', sans-serif;
  --header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--font-stack); background-color: var(--bg-white); color: var(--text-dark); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 1.5rem; }

/* Site Header */
.site-header { position: sticky; top: 0; background-color: var(--primary-slate); z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); width: 100%; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-height); width: 100%; padding: 0 2.5rem; }
.logo a { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 55px; width: auto; max-width: 100%; display: block; object-fit: contain; transition: opacity 0.2s ease; }
.logo a:hover img { opacity: 0.9; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 1.75rem; align-items: center; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text-light); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-cyan); }

.header-phone { margin-left: 0.5rem; }
.header-phone a { color: var(--accent-cyan) !important; text-decoration: none; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.5px; padding: 0.5rem 1rem; border: 1px solid var(--accent-cyan); border-radius: 4px; transition: all 0.2s ease; white-space: nowrap; }
.header-phone a:hover { background-color: var(--accent-cyan); color: var(--primary-slate) !important; }

.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle svg { width: 34px; height: 34px; fill: var(--text-light); display: block; }

/* Buttons & Filters */
.btn { display: inline-block; background-color: var(--accent-cyan); color: var(--primary-slate); padding: 0.85rem 2rem; text-decoration: none; font-weight: 800; font-size: 0.9rem; transition: all 0.3s ease; border: none; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; cursor: pointer; text-align: center; }
.btn:hover { background-color: var(--accent-cyan-hover); color: var(--text-light); }
.btn-white { background-color: var(--bg-white); color: var(--primary-slate); border: 2px solid var(--primary-slate); }
.btn-white:hover { background-color: var(--primary-slate); color: var(--text-light); }
.btn-filter { background-color: var(--bg-white); color: var(--text-dark); border: 1px solid var(--border-color); padding: 0.55rem 1.4rem; font-size: 0.88rem; font-weight: 600; border-radius: 20px; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.04); }
.btn-filter.active, .btn-filter:hover { background-color: var(--primary-slate); color: #ffffff; border-color: var(--primary-slate); box-shadow: 0 4px 10px rgba(30, 51, 41, 0.2); }

section { padding: 5rem 0; }
.text-center { text-align: center; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text-dark); margin-bottom: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--text-grey); }

/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0; background: #EEF2F6; font-size: 0.85rem; }
.breadcrumbs a { color: var(--primary-slate); text-decoration: none; font-weight: 600; }
.breadcrumbs span { color: var(--text-grey); margin: 0 0.4rem; }

/* Hero Section (Original Visual Styling & Gradient) */
.hero-section {
  background: 
    radial-gradient(circle at 20% 25%, rgba(25, 195, 240, 0.10) 0%, transparent 60%),
    linear-gradient(to top, rgba(14, 26, 21, 0.92) 0%, rgba(30, 51, 41, 0.65) 100%),
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E"),
    url('images/hero_fence_background_home_page.webp') center/cover no-repeat;
  padding: 5rem 0 3rem 0;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: flex-start; }
.hero-left { color: var(--text-light); padding-top: 1rem; }
.hero-left h1 { font-size: 2.8rem; font-weight: 800; color: var(--text-light); margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-trust-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-trust-pill { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(4px); letter-spacing: 0.3px; }
.hero-left p { color: #E2E8F0; font-size: 1.1rem; margin-bottom: 2rem; text-shadow: 0 1px 2px rgba(0,0,0,0.4); max-width: 580px; }

/* Subpage Banners */
.gallery-hero, .faq-hero {
  background: linear-gradient(rgba(30, 51, 41, 0.85), rgba(30, 51, 41, 0.85)), url('images/hero_fence_background_home_page.webp') center/cover no-repeat;
  padding: 4rem 0 3rem 0;
  text-align: center;
  color: var(--text-light);
}
.faq-hero { padding: 4.5rem 0 3.5rem 0; }
.gallery-hero h1, .faq-hero h1 { font-size: 2.8rem; font-weight: 800; color: var(--text-light); margin-bottom: 0.75rem; text-transform: uppercase; }
.gallery-hero p, .faq-hero p { color: #CBD5E1; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* Quote Card */
.quote-card { background: var(--bg-white); border-radius: 4px; padding: 2.5rem 2rem; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); border-top: 6px solid var(--accent-cyan); border-bottom: 6px solid var(--accent-cyan); position: relative; z-index: 10; }
.hero-quote-card { margin-bottom: -120px; }
.bottom-quote-card { margin-top: -120px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); }
.quote-card-header { text-align: center; margin-bottom: 2rem; }
.quote-card-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.25rem; color: var(--text-dark); text-transform: uppercase; }
.quote-card-header p { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0; }

.line-form .form-group { margin-bottom: 1.25rem; }
.line-form .form-control { width: 100%; padding: 0.6rem 0; border: none; border-bottom: 1px solid #B0B8C1; border-radius: 0; font-family: var(--font-stack); font-size: 0.92rem; color: var(--text-dark); background: transparent; transition: border-color 0.2s; }
.line-form .form-control:focus { outline: none; border-bottom-color: var(--accent-cyan); }
.line-form .form-control::placeholder { color: #8C949E; font-size: 0.88rem; }
.line-form button { margin-top: 1rem; width: 100%; font-size: 1rem; padding: 0.9rem; }

/* Content Section & Accordions */
.content-section { padding-top: 6rem; background-color: var(--bg-white); }
.content-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.content-left h2 { font-size: 2rem; text-transform: uppercase; color: var(--text-dark); margin-bottom: 1.5rem; font-weight: 800; }
.content-left p { font-size: 0.96rem; line-height: 1.7; margin-bottom: 1.5rem; }
.content-img-card { border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); overflow: hidden; width: 100%; }
.content-img-card img { width: 100%; height: 400px; object-fit: cover; display: block; }

.feature-accordion-section { background-color: var(--bg-white); padding: 4rem 0 5rem 0; }
.feature-accordion-section h2 { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: flex-start; }
.feature-left-wrap { display: flex; flex-direction: column; align-items: center; }
.feature-img-card { background: transparent; padding: 0; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); border: none; margin-bottom: 2rem; width: 100%; overflow: hidden; }
.feature-img-card img { width: 100%; height: 380px; object-fit: cover; border-radius: 0; display: block; border: none; }
.feature-left-wrap .btn { width: 80%; max-width: 320px; }

.accordion-list { display: flex; flex-direction: column; gap: 1.25rem; }
.acc-item { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; transition: all 0.3s ease; }
.acc-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding: 0.4rem 0; }
.acc-header-left { display: flex; align-items: center; gap: 1rem; }
.check-badge { width: 28px; height: 28px; background-color: var(--accent-cyan); color: var(--primary-slate); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.acc-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0; }
.acc-arrow { font-size: 0.9rem; color: var(--text-dark); transition: transform 0.3s ease; font-weight: 700; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding-left: 2.75rem; }
.acc-body p { font-size: 0.92rem; color: var(--text-grey); margin-bottom: 0; padding-top: 0.5rem; line-height: 1.6; }
.acc-item.active .acc-arrow { transform: rotate(180deg); }
.acc-item.active .acc-body { max-height: 220px; }

/* Colors & Services */
.bg-light-neutral { background-color: var(--bg-light-neutral); }
.bg-primary { background-color: var(--primary-slate); color: var(--text-light); }
.bg-primary h2, .bg-primary p { color: var(--text-light); }

#services {
  background-color: var(--primary-dark);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(25, 195, 240, 0.08) 0%, transparent 65%),
    linear-gradient(to top, rgba(14, 26, 21, 0.96) 0%, rgba(30, 51, 41, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  position: relative;
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: stretch; }
.service-card { background-color: var(--bg-white); padding: 2.5rem 1.5rem; border-radius: 8px; text-align: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); border-top: 5px solid var(--accent-cyan); display: flex; flex-direction: column; justify-content: flex-start; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35); }
.service-card h3 { color: var(--text-dark); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; line-height: 1.3; }
.service-card p { color: var(--text-grey); font-size: 0.92rem; line-height: 1.6; margin-bottom: 0; }

/* Gallery Grids */
.gallery-page-section { padding: 4rem 0 12rem 0; }
.gallery-filters { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.gallery-page-section .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.gallery-card { background: #ffffff; padding: 10px; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); border: 1px solid var(--border-color); text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; display: block; user-select: none; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.gallery-img-wrap { position: relative; overflow: hidden; border-radius: 4px; height: 220px; background-color: #E2E8F0; }
.gallery-page-section .gallery-img-wrap { height: 230px; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.material-badge { position: absolute; top: 10px; right: 10px; background: rgba(30, 51, 41, 0.92); color: #ffffff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 3px; letter-spacing: 0.4px; text-transform: uppercase; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.gallery-card-body { padding: 1rem 0.5rem 0.5rem 0.5rem; }
.gallery-card-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text-dark); }
.gallery-card-body p { font-size: 0.85rem; color: var(--text-grey); margin-bottom: 0; }

/* Process & Testimonials */
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step-box { background: var(--bg-white); padding: 2rem 1.25rem; border-radius: 8px; border-top: 4px solid var(--accent-cyan); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.step-num { font-size: 2rem; font-weight: 700; color: var(--accent-cyan); margin-bottom: 0.5rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card { background: var(--bg-light-neutral); padding: 1.75rem; border-radius: 8px; border-top: 4px solid var(--accent-cyan); text-align: left; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.stars { color: #94A3B8; font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card p { font-style: italic; margin-bottom: 1.25rem; color: var(--text-dark); font-size: 0.92rem; line-height: 1.5; }
.testimonial-author { font-weight: 600; color: var(--primary-slate); font-size: 0.88rem; }
.testimonial-badge { font-size: 0.78rem; color: var(--text-grey); font-weight: 400; display: block; margin-top: 0.25rem; }

/* Homepage FAQ Section (Maintains clearance for footer quote card) */
#faq { padding: 5rem 0 13rem 0; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--bg-white); padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); text-align: left; }
.faq-item h3 { margin-bottom: 0.5rem; color: var(--primary-slate); font-size: 1.1rem; }
.faq-item p { margin-bottom: 0; font-size: 0.95rem; }
.faq-item a { color: var(--accent-cyan); text-decoration: underline; font-weight: 600; }
.faq-item a:hover { color: var(--primary-slate); }

/* Dedicated FAQ Page & Live Search */
.faq-page-section { padding: 4rem 0 12rem 0; }
.faq-search-box { max-width: 600px; margin: 0 auto 2rem auto; }
.faq-search-input { width: 100%; padding: 0.9rem 1.25rem; border: 2px solid var(--border-color); border-radius: 6px; font-family: var(--font-stack); font-size: 1rem; color: var(--text-dark); background: #ffffff; outline: none; transition: border-color 0.2s; }
.faq-search-input:focus { border-color: var(--accent-cyan); }
.faq-category-nav { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.faq-group-title { font-size: 1.5rem; font-weight: 800; color: var(--primary-slate); margin-top: 3rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); display: flex; align-items: center; gap: 0.6rem; }
.faq-card { background: #ffffff; padding: 1.75rem 2rem; border-radius: 6px; box-shadow: 0 3px 12px rgba(0,0,0,0.04); border: 1px solid var(--border-color); border-left: 5px solid var(--accent-cyan); transition: box-shadow 0.2s, transform 0.2s; }
.faq-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.faq-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.6rem; }
.faq-card p { font-size: 0.95rem; color: var(--text-grey); margin-bottom: 0; line-height: 1.65; }
.faq-card a { color: var(--accent-cyan); text-decoration: underline; font-weight: 600; }
.faq-card a:hover { color: var(--primary-slate); }

/* Footer */
.site-footer-section { background-color: var(--primary-dark); color: #A0B2A8; padding-top: 0; padding-bottom: 2.5rem; position: relative; }
.bottom-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: flex-start; margin-bottom: 3rem; }
.contact-details-box { padding-top: 4rem; color: var(--text-light); }
.contact-details-box h2 { color: var(--text-light); font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.contact-details-box p { color: #D1D5DB; }
.contact-details-box strong { color: var(--text-light); }
.contact-details-box a { color: var(--accent-cyan); text-decoration: none; transition: opacity 0.2s; }
.contact-details-box a:hover { color: #5BE0FF; }
.footer-copyright { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; font-size: 0.85rem; color: #94A3B8; }
.footer-copyright p { color: #94A3B8; margin-bottom: 0.3rem; }

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(18, 34, 28, 0.95); z-index: 2000; justify-content: center; align-items: center; padding: 2rem; box-sizing: border-box; }
.lightbox-modal.is-active { display: flex !important; }
.lightbox-content { max-width: 900px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2010; }
.lightbox-content img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); background-color: #000; }
.lightbox-caption { color: #ffffff; margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.5; text-align: center; max-width: 750px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: #ffffff; font-size: 3rem; font-weight: 700; cursor: pointer; line-height: 1; transition: color 0.2s, transform 0.2s; user-select: none; z-index: 2020; }
.lightbox-close:hover { color: var(--accent-cyan); transform: scale(1.1); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 2rem; padding: 0.75rem 1.25rem; cursor: pointer; border-radius: 4px; transition: all 0.2s ease; z-index: 2020; user-select: none; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent-cyan); color: var(--primary-slate); border-color: var(--accent-cyan); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { padding: 0 1.5rem; }
  #faq { padding-bottom: 7rem; }
  .hero-grid, .content-grid, .feature-grid, .bottom-contact-grid { grid-template-columns: 1fr; }
  .hero-quote-card { margin-bottom: -120px; margin-top: 2rem; }
  .bottom-quote-card { margin-top: -50px; }
  .contact-details-box { padding-top: 1rem; }
  .content-section { padding-top: 8.5rem; }
  .method-steps, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-img-card img, .content-img-card img { height: 300px; }
  .lightbox-prev, .lightbox-next { padding: 0.5rem 0.85rem; font-size: 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .gallery-page-section, .faq-page-section { padding-bottom: 7rem; }
}

@media (max-width: 768px) {
  .logo img { height: 50px; }
  .menu-toggle { display: block; }
  .main-nav { 
    display: none; 
    position: absolute; 
    top: var(--header-height); 
    left: 0; 
    width: 100%; 
    background: var(--primary-slate); 
    padding: 2.2rem 1.5rem; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); 
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1.4rem; text-align: center; }
  .main-nav a { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.5px; display: inline-block; padding: 0.4rem 1rem; }
  .header-phone { margin-left: 0; margin-top: 0.5rem; }
  .header-phone a { display: inline-block; font-size: 1.15rem; padding: 0.6rem 1.2rem; }
  .btn { width: 100%; text-align: center; }
  .method-steps, .services-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .lightbox-close { top: 1rem; right: 1.25rem; font-size: 2.2rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1.5rem; transform: none; padding: 0.5rem 1rem; font-size: 1.5rem; }
  .lightbox-prev { left: 20%; transform: translateX(-50%); }
  .lightbox-next { right: 20%; transform: translateX(50%); }
  .lightbox-content img { max-height: 55vh; }
  .lightbox-caption { font-size: 0.9rem; margin-top: 0.75rem; }
}

@media (max-width: 600px) {
  .gallery-hero h1, .faq-hero h1 { font-size: 2.2rem; }
}