/* Premium Light Theme & Brand Identity UI */

:root {
    --bg-main: #fcfdfe;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --border-soft: rgba(11, 27, 61, 0.1);
    --accent-navy: #0B1B3D;
    --accent-gold: #C5A059;
    --accent-gold-soft: #D4B982;
    --accent-orange: #D4B982;
    --accent-amber: #C5A059;
    --accent-red: #EF3340;
    --accent-green: #009739;
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-heading: #0B1B3D;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1440px; /* Scaled up from 1200px */
    margin: 0 auto;
    padding: 0 2.5rem;
}
@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
}

.front-page-content section {
    padding: 5rem 0; /* Reduced from 7rem */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--accent-navy);
    position: relative;
    padding-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Structured Grid System */
.feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2.25rem;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}
.feature-box:hover {
    border-bottom-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(11, 27, 61, 0.05);
    transform: translateY(-5px);
}

.image-block {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.image-block img { width: 100%; display: block; }

.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Refined Decorations for HR */
.glow-orb {
    display: none; /* Hide flashy orbs for a cleaner corporate look */
}

/* Light Theme Cards */
.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.5rem; /* Reduced from 3.5rem */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 27, 61, 0.04);
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(11, 27, 61, 0.1);
    border-color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-soft));
    color: white;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 15px 25px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
    color: white;
}
.btn-navy {
    background: var(--accent-navy);
    color: white;
    box-shadow: 0 10px 20px rgba(11, 27, 61, 0.2);
}
.btn-navy:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--accent-navy);
    border: 2px solid var(--accent-navy);
}
.btn-secondary:hover {
    background: var(--accent-navy);
    color: white;
}
.btn-glass {
    background: rgba(11, 27, 61, 0.05);
    border: 1px solid var(--accent-navy);
    color: var(--accent-navy);
}
.btn-glass:hover {
    background: var(--accent-navy);
    color: #ffffff;
}

/* Base Form Inputs */
input, textarea, select {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="submit"], button[type="submit"], .wpcf7-submit {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-soft)) !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    width: 100%;
    margin-top: 1rem !important;
}

input[type="submit"]:hover, button[type="submit"]:hover, .wpcf7-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 25px rgba(197, 160, 89, 0.4) !important;
    filter: brightness(1.1) !important;
}
input:focus, textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Base */
.single-hero {
    position: relative;
    padding: 5rem 0 4rem 0;
    background: linear-gradient(135deg, var(--accent-navy), #173166);
    overflow: hidden;
    color: white;
}

.front-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #ffffff;
    /* Base Grid Pattern */
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(11, 27, 61, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    padding: 6rem 0;
    color: var(--accent-navy);
    overflow: hidden;
}

/* Solid Decorative Elements */
.front-hero::before,
.front-hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.front-hero::before {
    width: 350px;
    height: 350px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.15;
    top: -100px;
    left: -50px;
    animation: floatShape1 18s infinite alternate ease-in-out;
}

.front-hero::after {
    width: 500px;
    height: 500px;
    background: var(--accent-navy);
    border-radius: 80px;
    opacity: 0.06;
    bottom: -150px;
    right: -100px;
    animation: floatShape2 25s infinite alternate ease-in-out;
}

/* Third Element Hidden */
.hero-orb-3 {
    display: none;
}

@keyframes floatShape1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.05); }
}

@keyframes floatShape2 {
    0% { transform: rotate(15deg) translate(0, 0) scale(1); }
    100% { transform: rotate(35deg) translate(-40px, -60px) scale(1.05); }
}

/* Noise Overlay Refined */
.hero-noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 10;
}
.hero-content {
    flex: 1.2;
}
.hero-graphic {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 992px) {
    .hero-flex { flex-direction: column; text-align: center; }
    .hero-graphic { display: none; }
    .hero-box .section-title::after { left: 50%; transform: translateX(-50%); }
    .hero-box .section-subtitle { margin: 0 auto 2rem auto !important; text-align: center !important; }
}

.hero-box {
    max-width: 750px;
}
.hero-box .section-title { 
    color: var(--accent-navy); 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    line-height: 1.05; 
}
.hero-box .section-title::after { background: var(--accent-gold); width: 100px; height: 6px; }
.hero-box .section-subtitle { 
    color: var(--text-muted); 
    text-align: left; 
    margin-left: 0; 
    font-size: 1.25rem; 
    line-height: 1.8; 
    max-width: 600px;
    margin-bottom: 3rem;
}


.hero-trust-badges {
    margin-top: 5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0.8;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-brands {
    display: flex;
    gap: 3rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Hide Mobile Elements by Default (Desktop) */
.mobile-toggle,
.mobile-nav-overlay {
    display: none;
}
/* Marketing Strategies Layout */
.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.marketing-lead-card {
    padding: 4rem 3rem;
    text-align: center;
    border-radius: 16px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 768px) {
    .marketing-grid { grid-template-columns: 1fr; gap: 3rem; }
    .marketing-lead-card { padding: 2.5rem 1.5rem; }
}
.archive-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.post-card {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(11,27,61,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11,27,61,0.12);
}

.post-thumb {
    height: 220px;
    position: relative;
    border-bottom: 4px solid var(--accent-gold);
    background-size: cover;
    background-position: center;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Hide Mobile Elements by Default (Desktop) */
.mobile-toggle,
.mobile-nav-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .front-page-content section,
    section { padding: 3rem 0 !important; }
    .section-title { font-size: 2rem; margin-bottom: 1rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 1.5rem !important; }
    .glass-card { padding: 1.5rem; border-radius: 16px; }
    
    /* Buttons Full Width on Mobile */
    .btn { width: 100%; display: flex; justify-content: center; padding: 1rem 1.5rem; }
    
    /* Hero Adjustments */
    .single-hero { padding: 4rem 0 3rem 0 !important; }
    .single-hero h1 { font-size: 2.25rem !important; }
    .front-hero { min-height: 60vh; padding: 3rem 0; }
    .hero-box .section-title { font-size: 2.25rem !important; }
    
    .hero-trust-badges { margin-top: 2rem; gap: 1rem; flex-direction: column; }
    .trust-brands { gap: 1rem; font-size: 1rem; flex-wrap: wrap; justify-content: center; }
    .trust-brands span { font-size: 0.95rem; }
    
    /* Grid Adjustments */
    .archive-grid-container { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
        margin-top: 2rem;
    }
    .post-thumb { height: 180px; }
    
    /* Hub Adjustments */
    .mobile-text-center { text-align: center; }
    .contact-split { grid-template-columns: 1fr !important; gap: 4rem !important; }
    .contact-split .reveal-on-scroll { text-align: center; }
    .contact-split h2 { text-align: center !important; }
    .contact-split .glass-card { padding: 2.5rem 1.5rem !important; }

    /* Site Header Adjustments */
    .header-inner { height: 4.5rem; }
    .custom-logo-link img { max-height: 45px !important; }
    .site-branding a.fallback-logo { font-size: 1.4rem; }
    
    .site-header .container { justify-content: space-between; }
    .main-navigation { display: none; }
    .d-none-mobile { display: none !important; }

    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }
    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--accent-navy);
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    .mobile-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: white;
        z-index: 1000;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .mobile-nav-overlay ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }
    .mobile-nav-overlay li { margin-bottom: 2rem; }
    .mobile-nav-overlay a {
        font-size: 2rem;
        font-weight: 800;
        color: var(--accent-navy);
        text-decoration: none;
    }

    .split-layout {
        flex-direction: column !important;
        gap: 3rem;
    }
    .hero-split-image {
        display: none;
    }
    .image-placeholder {
        height: 350px;
    }
    .overlap-card {
        position: static !important;
        margin-top: 2rem;
        max-width: 100% !important;
    }
    .section-title { font-size: 1.85rem; }
}

/* Fluent Form Premium Styling Sync */
.fluentform .ff-btn-submit.ff_btn_style {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber)) !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 10px 25px rgba(212, 185, 130, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    width: 100%; /* Force full width to match container designs */
    margin-top: 1rem !important;
}

.fluentform .ff-btn-submit.ff_btn_style:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(212, 185, 130, 0.4) !important;
    filter: brightness(1.1) !important;
}

.fluentform .ff-el-form-control {
    border-radius: 10px !important;
    border: 1.5px solid var(--border-soft) !important;
    background: #f8fafc !important;
    padding: 0.8rem 1.25rem; /* Removed !important to allow Phone Field flags to set their own padding */
}

.fluentform .ff-el-form-control:focus {
    border-color: var(--accent-orange) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(212, 185, 130, 0.1) !important;
}

/* Contact Form 7 Premium Styling Sync */
.wpcf7-form label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--accent-navy) !important;
    margin-bottom: 0.8rem !important;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1.25rem !important;
    border: 1.5px solid var(--border-soft) !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    margin-top: 0.4rem !important;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--accent-orange) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(212, 185, 130, 0.1) !important;
    outline: none;
}
.wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}
.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-soft)) !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    width: 100%;
    margin-top: 1rem !important;
}
.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 25px rgba(197, 160, 89, 0.4) !important;
    filter: brightness(1.1) !important;
}

