/* =========================================
   CSS Variables & Theme
   ========================================= */
:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --brand-gold: #cca43b; /* Extracted from the logo */
    --brand-gold-hover: #b38f33;
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   Typography & Buttons
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--brand-gold);
}

.btn-primary, .btn-quote {
    background-color: var(--brand-gold);
    color: var(--primary-black);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    border: 2px solid var(--brand-gold);
}

.btn-primary:hover, .btn-quote:hover {
    background-color: transparent;
    color: var(--brand-gold);
}

/* =========================================
   Header & Navigation
   ========================================= */
.main-header {
    background-color: var(--primary-black);
    border-bottom: 2px solid var(--brand-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--secondary-black);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #333;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.info-item i {
    color: var(--brand-gold);
    margin-right: 0.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Desktop Logo settings */
.logo, .footer-logo {
    height: 45px; 
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-gold);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--secondary-black);
    padding: 3rem 0 0 0;
    border-top: 4px solid var(--brand-gold);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.tagline {
    color: var(--brand-gold);
    margin-bottom: 1rem;
}

.footer-col h3 {
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a:hover {
    color: var(--brand-gold);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--brand-gold);
    width: 20px;
}

.social-icons a {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1rem;
    background-color: var(--primary-black);
    color: var(--brand-gold);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid var(--brand-gold);
}

.social-icons a:hover {
    background-color: var(--brand-gold);
    color: var(--primary-black);
}

.footer-bottom {
    background-color: var(--primary-black);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #888;
}

/* =========================================
   Scrolling Reviews Animation
   ========================================= */
.reviews-marquee {
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--secondary-black);
    padding: 2rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.marquee-content {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

.review-card {
    display: inline-block;
    background-color: var(--primary-black);
    border: 1px solid var(--brand-gold);
    padding: 1.5rem;
    margin: 0 1rem;
    border-radius: 8px;
    width: 350px;
    white-space: normal;
    vertical-align: top;
}

.review-stars {
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   Media Queries (Responsive Optimization)
   ========================================= */

/* Tablet Optimization (1024px and below) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    /* Soften the massive desktop fonts */
    h1[style*="3.5rem"], h1[style*="3rem"] { font-size: 2.8rem !important; }
    h2[style*="2.5rem"] { font-size: 2.2rem !important; }
}

/* Mobile Landscape & Standard Tablets (768px and below) */
@media (max-width: 768px) {
    /* Top Bar & Nav Stack */
    .top-bar-content {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary-black);
        padding: 1rem 0;
        border-top: 1px solid #333;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
    }

    /* Shrink the dual Logo setup */
    .logo-link { gap: 8px !important; }
    .logo, .footer-logo { height: 35px !important; }
    .logo-link span:first-of-type, .footer-brand span:first-of-type { font-size: 1.2rem !important; }
    .logo-link span:last-of-type, .footer-brand span:last-of-type { font-size: 0.65rem !important; }

    /* Override massive desktop paddings */
    section[style*="padding: 5rem"],
    section[style*="padding: 6rem"],
    section[style*="padding: 4rem"] {
        padding: 3rem 0 !important;
    }

    /* Override massive desktop typography */
    h1[style*="3.5rem"], h1[style*="3rem"] { font-size: 2rem !important; }
    h2[style*="2.5rem"], h2[style*="2rem"] { font-size: 1.8rem !important; }
    p[style*="1.2rem"], p[style*="1.1rem"] { font-size: 1rem !important; }

    /* Force inline Grids to stack into single columns */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Force inline Flexbox wrappers (like Services page) to stack vertically */
    div[style*="flex-wrap: wrap"], 
    div[style*="flex-wrap: wrap-reverse"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Stop large images and boxes from blowing out the screen width */
    div[style*="min-width: 300px"], 
    div[style*="min-width: 350px"] {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Review Marquee Mobile Fix */
    .review-card {
        width: 280px;
        padding: 1.2rem;
        margin: 0 0.5rem;
    }

    /* Center the footer layout */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3 {
        margin: 0 auto 1rem auto;
        display: inline-block;
    }
    .social-icons a {
        margin: 1rem 0.5rem 0 0.5rem;
    }
}

/* Small Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    /* Further reduce section padding to save screen space */
    section[style*="padding: 5rem"],
    section[style*="padding: 6rem"],
    section[style*="padding: 4rem"],
    section[style*="padding: 3rem"] {
        padding: 2.5rem 0 !important;
    }

    /* Refine fonts for extremely narrow screens */
    h1[style*="3.5rem"], h1[style*="3rem"] { font-size: 1.8rem !important; }
    h2[style*="2.5rem"], h2[style*="2rem"] { font-size: 1.5rem !important; }

    /* Make buttons full-width for easier tapping */
    .btn-primary, .btn-quote {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    /* Remove the inline side-margin from dual buttons on the Services page */
    a[style*="margin-left: 1rem"] {
        margin-left: 0 !important;
    }
}