@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --navy: #1B2B48;
    --gold: #C5A059;
    --gold-hover: #b08d4f;
    --white: #FFFFFF;
    --slate: #F4F7F9;
    --charcoal: #2D2D2D;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Makes anchor links glide smoothly */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Upgrade Headings to Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.2;
}

/* --- NEW ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a {
    text-decoration: none;
    color: var(--navy);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* =========================================
   GLOBAL IMAGE RESET & CONSTRAINTS
========================================= */
img {
    max-width: 100%;
    height: auto !important; /* Forces natural proportions, overriding inline PHP styles */
    object-fit: cover; /* Prevents squishing if a specific height is ever forced */
    display: block;
}

/* HERO & WHY CHOOSE US CONSTRAINTS */
.hero-grid img,
.wcu-grid img {
    width: 100%;
    border-radius: 4px;
    align-self: center; /* Stops the CSS Grid from vertically stretching the images */
}

/* SPOTLIGHT CARD CONSTRAINTS */
.spotlight-img-container {
    height: 250px; 
    background-color: var(--slate);
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.spotlight-img-container img {
    width: 100%;
    height: 100% !important; /* Overrides the global 'auto' height just for these cards */
    object-fit: cover; 
}

/* Header & Nav */
.top-bar {
    background-color: var(--navy);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Image Logo Styling */
.logo-link {
    display: inline-block;
}

.site-logo {
    max-height: 110px; /* Adjust this number to make your logo bigger or smaller */
    width: auto;      /* Keeps the image proportions perfect */
    display: block;   /* Removes any weird invisible spacing under the image */
    transition: var(--transition);
}

.site-logo:hover {
    opacity: 0.85; /* Adds a premium little fade effect when hovered */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--navy);
    background: none;
    border: none;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background-color: var(--gold);
    color: var(--white) !important;
    padding: 14px 32px; /* Slightly larger for a premium feel */
    border-radius: 4px; /* Slightly softer corners */
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3); /* Glowing shadow */
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-3px); /* Lifts the button up */
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4); /* Expands the shadow */
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy) !important;
    padding: 12px 28px;
    border-radius: 2px;
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--navy);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--white);
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var(--charcoal);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Section Basics */
.section {
    padding: 100px 0;
}

.section-slate {
    background-color: var(--slate);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
    font-size: 0.85rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--gold);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(27, 43, 72, 0.08);
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Why Choose Us */
.wcu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.wcu-list {
    list-style: none;
    margin-top: 30px;
}

.wcu-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.wcu-list strong {
    color: var(--navy);
    display: block;
    font-size: 1.1rem;
}

/* Service Spotlight Styles */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.spotlight-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.spotlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(27, 43, 72, 0.12);
}

.spotlight-img-container {
    height: 220px;
    overflow: hidden;
}

.spotlight-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space without distortion */
    transition: transform 0.5s ease;
}

.spotlight-card:hover .spotlight-img-container img {
    transform: scale(1.05);
}

.spotlight-content {
    padding: 30px;
    flex-grow: 1;
}

.spotlight-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.spotlight-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.text-link {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
}

.text-link:hover {
    color: var(--navy);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .spotlight-img-container {
        height: 200px;
    }
}



/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author strong {
    color: var(--navy);
    display: block;
}

/* Lead Form */
.form-container {
    background: var(--white);
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col a {
    color: #a0aec0;
    margin-bottom: 10px;
    display: block;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: 'Open Sans', sans-serif;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.6;
}

/* Active State Styles */
.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Turns the + into an x */
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .wcu-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .top-bar-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .site-logo {
        max-height: 80px; /* Scales the logo down slightly for mobile screens */
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 30px auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
}

/* --- HONEYPOT SPAM PROTECTION --- */
.hp-wrapper {
    /* We move it completely off the screen instead of just display:none 
       because some smart bots ignore display:none! */
    position: absolute;
    left: -5000px;
    top: -5000px;
    opacity: 0;
    z-index: -1;
}