/* ==========================================================================
   1. VARIABLES & CORE RESETS
   ========================================================================= */
:root {
    --bg-dark: #111111;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --gold: #d4af37;
    --gold-hover: #f3e5ab;
    --font-main: 'Quicksand', sans-serif;
    --content-width: 800px;
    --max-width: 1280px;
}

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

html, body {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
}

body {
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVIGATION HEADER (DESKTOP GRID)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 40px; /* Offset to sit perfectly below the top-bar */
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #111111; /* Opaque solid color to match top-bar */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 2001;
}

.nav-logo img {
    height: 65px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
}

/* ==========================================================================
   3. SCROLL ANCHOR CORRECTION
   ========================================================================= */
.scroll-anchor {
    position: relative;
    top: -130px; /* Counteracts combined height of top-bar and fixed navbar */
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   4. UNIFORM PARALLAX LAYOUT
   ========================================================================= */
.p-image {
    position: relative;
    overflow: hidden; 
    min-height: 100vh;
    /* 140px creates a clean gap under your 130px header system */
    padding: 140px 20px 80px 20px; 
    display: flex;
    flex-direction: column; /* Stacks items top-down */
    justify-content: flex-start; /* Forces content to start at the top */
    align-items: center; /* Keeps content centered horizontally */
    background-color: var(--bg-dark);
}

.p-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    opacity: 1; 
    transition: opacity 4s ease-in-out; 
    pointer-events: none;
}

.p-image.animate-bg::before {
    opacity: 0.08; 
}

.img-1::before { background-image: url('img/img-1.jpg'); } 
.img-2::before { background-image: url('img/img-2.jpg'); }
.img-3::before { background-image: url('img/img-3.jpg'); }

.p-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    text-align:center;
}

.border {
    border: 2px solid var(--gold);
    color: var(--text-light);
    padding: 15px 30px;
    font-size: 1.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 500;
}

.craft-text {
    background-color: transparent;
    border: none;
    padding: 20px 0;
    margin-bottom: 40px;
}

.craft-text h2 {
    color: var(--gold);
    font-size: 1.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.craft-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
}

.cta-button:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}

/* ==========================================================================
   5. SERVICES BLOCK COMPONENT
   ========================================================================= */
.services-list-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 40px;
    text-align: left;
}

.service-item {
    background-color: transparent;
    border-top: 3px solid var(--gold);
    padding: 20px 10px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Update the existing service-icon class */
.service-icon {
    font-size: 2.2rem;
    color: var(--gold); /* Default color (keeps scissors gold) */
    margin-bottom: 15px;
    display: block; 
    text-align: center; /* Centers the icon in its column */
}

/* Add custom colors for the tree and gear */
.service-icon.fa-tree {
    color: #4CAF50; /* Natural green */
}

.service-icon.fa-gear {
    color: var(--text-muted); /* Uses your existing gray variable (#aaaaaa) */
}
/* ==========================================================================
   6. PORTFOLIO WORK ARCHITECTURE
   ========================================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px auto 0 auto;
    width: 100%;
}

.portfolio-item {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   7. CONTACT SECTION HOUSING
   ========================================================================= */
.contact-section-container {
    max-width: var(--max-width);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
    align-items: start;
}

.contact-details-side {
    background-color: transparent;
    border: none;
    padding: 20px 0;
}

.contact-details-side h3 {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.company-name {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.contact-item-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.inline-icon {
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
    color: var(--gold);
    padding-top: 2px;
}

/* --- Standardized Font Styling for Phone, Address, & Email --- */
.phone-number,
.email-address,
.address-line {
    font-size: 1rem;   /* Standardized larger size from the phone number */
    font-weight: 600;    /* Unified bold weight */
    color: #ffffff;      /* Unified bright white color */
    margin-top: 5px;     /* Unified spacing */
    line-height: 1.1;    /* Tighten line height slightly for bold text */
}

.contact-card-container {
    width: 100%;
}

.contact-form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input-group input,
.form-input-group textarea {
    width: 100%;
    padding: 16px;
    background-color: rgba(17, 17, 17, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-input-group input:focus,
.form-input-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-submit-gold {
    padding: 16px;
    background-color: var(--gold);
    color: var(--bg-dark);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-submit-gold:hover {
    background-color: var(--gold-hover);
}

.form-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.err-msg { background-color: #721c24; color: #f8d7da; border: 1px solid #f5c6cb; }
.succ-msg { background-color: #155724; color: #d4edda; border: 1px solid #c3e6cb; }

/* ==========================================================================
   8. FOOTER METRICS
   ========================================================================= */
footer {
    background-color: #0b0b0b;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.copyright-col {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.credentials-col {
    text-align: center;
}

.cred-status {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.cred-number {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials-col {
    text-align: right;
}

.socials-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.social-links-grid {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-badge {
    display: flex;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-badge:hover {
    border-color: var(--gold);
    color: var(--gold);
    background-color: rgba(212, 175, 55, 0.05);
}

/* ==========================================================================
   9. TOP BAR INFRASTRUCTURE
   ========================================================================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #111111;
    display: flex;
    align-items: center;
    z-index: 1001;
    font-size: 0.85rem;
    font-weight: 700;
}

.top-bar-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.top-bar-item {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.link-item {
    transition: color 0.3s ease;
}

.link-item:hover {
    color: var(--gold);
}

.icon-gold {
    color: #d4af37;
    font-size: 0.95rem;
}

/* ==========================================================================
   10. DEVICE MEDIA QUERY SYSTEM
   ========================================================================= */
@media (max-width: 992px) {
    .services-list-clean { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .social-links-grid { justify-content: center; }
    .socials-col { text-align: center; }
}

@media (max-width: 768px) {
    .navbar { top: 40px; }
    .scroll-anchor { top: -120px; }
    .nav-container { padding: 0 24px; }
    .border { font-size: 1.4rem; padding: 12px 20px; letter-spacing: 4px; }
    .p-image { padding-top: 120px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .top-bar-container { padding: 0 20px; gap: 15px; font-size: 0.8rem; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2000;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--text-light);
        transition: all 0.3s ease;
    }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--gold); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--gold); }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #161616;
        flex-direction: column;
        justify-content: flex-start; 
        align-items: center; 
        padding-top: 140px; 
        gap: 40px;
        z-index: 1500; 
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    }

    .nav-menu.active { right: 0; }
    .nav-menu a { text-align: center; width: 100%; }
}

/* Fix for Contact Page Gap */

/* Increase gap only on the Home page */
#home-target + .p-image {
    padding-top: 250px; 
}

#contact-target + .p-image {
    align-items: flex-start;
    padding-top: 120px; 
}

/* Optional: Apply to About and Services if they also have too much gap */
#about-target + .p-image, #services-target + .p-image, #work-target + .p-image  {
    align-items: flex-start;
    padding-top: 120px;
}



/* 1. Global Hover Animation & Background Logic */
.social-badge:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #ffffff !important; /* Force white background */
}

/* 2. Specific Brand Colors for Borders and Icons */
.social-badge.fb:hover { color: #1877f2; border-color: #1877f2; }
.social-badge.ig:hover { color: #e4405f; border-color: #e4405f; }
.social-badge.yt:hover { color: #ff0033; border-color: #ff0033; }

/* 3. TikTok styling (as requested, keeping the dark text/border effect) */
.social-badge.tt:hover { 
    color: #000; 
    border-color: #000; 
    text-shadow: 0 0 8px #ff0050; 
}



.mobile-call-cta {
    display: none;
    /* ... rest of your code ... */
}

/* Mobile CTA Button - Hidden by default */
.mobile-call-cta {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #d4af37; /* Adjust this to match your specific green */
    color: #ffffff;
    text-align: center;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* Only show on mobile screens */
@media (max-width: 768px) {
    .mobile-call-cta {
        display: block;
    }
    
    /* Optional: Add padding to the bottom of your body so the button doesn't cover content */
    body {
        padding-bottom: 60px;
    }
}


/* --- Modal Fade Animation --- */
#thankYouModal {
    transition: opacity 2s ease; /* This handles the slow fade */
    opacity: 1; /* Make sure it starts fully visible */
}
