/**
 * Base Structural CSS - Layout Only, No Visual Styling
 * This file contains ONLY structural/layout CSS that works for any design
 * All visual styling (colors, fonts, shadows) use CSS variables
 */

/* ==========================================================================
   Layout & Structure - Universal
   ========================================================================== */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 80px 0;
}

/* Grid Systems */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Header Structure
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Navigation Structure */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.primary-menu > li {
    position: relative;
}

/* Dropdown Structure */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0 0;
    z-index: 999;
}

.primary-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Structure */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* ==========================================================================
   Hero Section Structure
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content-form {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   Form Structure
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Hero Form Structure */
.hero-form-wrapper {
    padding: 30px;
}

.hero-quick-form .form-group {
    margin-bottom: 15px;
}

.hero-quick-form input,
.hero-quick-form textarea {
    width: 100%;
    padding: 14px 18px;
}

.hero-quick-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-full-width {
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================================
   Component Structure
   ========================================================================== */

/* FAQ Structure */
.faq-accordion {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 25px 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-answer {
    padding: 0 30px 25px;
    overflow: hidden;
}

/* Service Cards Structure */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden;
}

.service-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* Stats Counter Structure */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    padding: 30px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
}

/* Trust Badges Structure */
.trust-badges-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-badge svg {
    width: 24px;
    height: 24px;
}

/* Gallery Structure */
.gallery-wrapper {
    position: relative;
    max-width: 100vw;
}

.gallery-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 400px;
    height: 300px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border: none;
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Footer Structure
   ========================================================================== */

.site-footer {
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

/* ==========================================================================
   Responsive Structure
   ========================================================================== */

@media (max-width: 1024px) {
    .primary-menu {
        gap: 25px;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .site-navigation {
        display: none;
    }
    
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile padding adjustments */
    body {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    /* Section padding */
    section {
        padding: 60px 0;
    }
    
    /* Mobile grids */
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Mobile hero */
    .hero-section {
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .hero-content-form {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Mobile gallery */
    .gallery-item {
        width: 280px;
        height: 210px;
    }
    
    .gallery-nav {
        display: none;
    }
    
    /* Mobile FAQ */
    .faq-accordion {
        margin: 40px -20px 0;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer {
        padding: 20px;
    }
    
    /* Mobile stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Mobile footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Sticky Mobile CTA Structure */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.sticky-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: block;
    }
}

/* ==========================================================================
   Utility Classes - Structure Only
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot field hiding */
input[name="website"],
input[name="url"],
#website,
#hero-website,
#contact-website,
label[for="website"],
label[for="hero-website"],
label[for="contact-website"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -9999 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
}