/* ==========================================================================
   GLOBAL VARIABLES (Edit colors here to change them everywhere)
   ========================================================================== */
:root {
    --color-navy: #13204B;
    --color-mustard: #FCC616;
    --color-bg: #FEFEFE;
    --color-border: #EAEAEA;
    --color-text-main: #333333;
    --color-text-muted: #666666;
}

/* ==========================================================================
   0. BASE & NAVIGATION
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap');

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

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-navy);
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { 
    background: var(--color-mustard); 
    border-radius: 10px; 
    border: 2px solid var(--color-bg); 
}
::-webkit-scrollbar-thumb:hover { background: var(--color-navy); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "DejaVu Sans Condensed Bold", sans-serif;
    font-weight: bold;
    color: var(--color-navy);
}

h1 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    text-transform: uppercase;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.content {
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Navigation */
nav {
    background-color: var(--color-bg);
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--color-mustard);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px; 
    text-decoration: none;
}
.nav-logo-decal {
    height: 18px;
    width: auto;
}
.nav-logo-authority {
    height: 26px;
    width: auto;
}
.nav-links {
    padding-right: 1%;
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    position: relative;
    color: var(--color-navy);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--color-mustard); }

/* Global Buttons & Links */
.btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-navy);
    color: var(--color-bg);
    border: 1px solid var(--color-navy);
}

.btn-primary:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(19, 32, 75, 0.2); 
}

.btn-secondary {
    background-color: var(--color-mustard);
    color: var(--color-navy);
    border: 1px solid var(--color-mustard);
}

.btn-secondary:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(252, 198, 22, 0.35); 
}

.btn:active, .nav-cta:active {
    transform: translateY(0) scale(0.98); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.global-footer {
    background-color: #F8F9FA;
    border-top: 1px solid var(--color-border);
    padding: 80px 5% 40px 5%; 
    color: var(--color-text-muted);
    text-align: left;
    margin-top: 40px; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    /* Precisely matching the image's layout proportions */
    grid-template-columns: 1.3fr 1.7fr 1fr; 
    gap: 50px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid var(--color-border);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px; /* Exact spacing from the image */
    max-width: none; 
    padding-right: 20px; 
    color: var(--color-text-muted);
}

.footer-contact {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.85rem;
    color: var(--color-navy);
}

.footer-heading {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-navy);
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px 20px; /* Vertical and horizontal gap to perfectly match image */
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-navy);
}

.footer-hubs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.8rem;
    line-height: 2.2; /* Widened line height matching image */
    color: var(--color-text-muted);
}

.footer-compliance {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.8rem;
    color: var(--color-navy);
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-bottom {
    padding-top: 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem; /* Matched specific image size */
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Adjustments */
@media (max-width: 900px) { 
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px; 
    }
    .footer-brand p {
        padding-right: 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   1. MAIN (Homepage)
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 40px;
}
.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-navy);
    margin-bottom: 20px;
}
.hero-content .highlight { color: var(--color-mustard); }
.hero-subtext {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0px 15px 25px rgba(16, 27, 70, 0.2));
}

/* Corporate Clients Section */
.corporate-section {
    background-color: var(--color-navy);
    color: var(--color-bg);
    padding: 70px 5%;
    text-align: center;
}
.corporate-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-bg) !important;
}
.corporate-title .dot {
    color: var(--color-mustard) !important;
    margin: 0 10px;
}
.executed-for {
    font-size: 1.2rem;
    color: var(--color-mustard) !important;
    margin-bottom: 40px;
    font-style: italic;
}

/* Infinite Marquee */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--color-navy), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--color-navy), transparent); }

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
}
.marquee-item img {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}
.marquee-item img.no-invert { filter: none; }
.marquee-item:hover img { transform: scale(1.1); }

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   HOMEPAGE LAYOUT (Side-by-Side Hero)
   ========================================================================== */
.content-full {
    width: 100%;
}

/* Side-by-Side Hero Section */
.hero-section {
    padding: 100px 5%;
    border-bottom: 1px solid var(--color-border);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column: Text */
.hero-text-content {
    text-align: left;
}

.hero-label {
    display: inline-block;
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-navy);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.highlight {
    color: var(--color-mustard);
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Right Column: Big Logo */
.hero-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-big-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.hero-logo-brand {
    height: auto;
    width: 100%;
    max-width: 450px; 
}

/* Corporate Marquee Title */
.corporate-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.corporate-title {
    font-size: 1.5rem;
    font-family: "JetBrains Mono", monospace, sans-serif;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.corporate-title .dot {
    color: var(--color-mustard);
    margin: 0 10px;
}

.executed-for {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

/* Verified Metrics */
.metrics-section {
    padding: 80px 5%;
    background-color: #F8F9FA;
    border-bottom: 1px solid var(--color-border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 10px;
}

.metric-small {
    font-size: 1.8rem;
}

.metric-label {
    font-size: 0.85rem;
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.metric-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* The Core Difference Section */
.difference-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.difference-header {
    max-width: 700px;
    margin-bottom: 60px;
    text-align: left;
}

.difference-header h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    line-height: 1.2;
}

.accent-line {
    width: 50px;
    height: 4px;
    background-color: var(--color-mustard);
    margin: 25px 0;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.diff-card {
    padding: 40px;
    border: 1px solid var(--color-border);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.diff-label {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.highlight-label {
    color: var(--color-mustard);
    font-weight: bold;
}

.diff-card.decal-authority {
    border: 2px solid var(--color-navy);
    background-color: #F8F9FA;
}

.diff-card h3 {
    font-size: 1.25rem;
    color: var(--color-navy);
}

.diff-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.diff-card ul li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.diff-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-navy);
    font-size: 1.2rem;
    top: -2px;
}

.diff-card.decal-authority ul li::before {
    color: var(--color-mustard);
}

/* Product Selector */
.selector-section {
    padding: 100px 5%;
    background-color: #F8F9FA;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.selector-section h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
}

.section-sub {
    margin-bottom: 50px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.selector-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 35px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.selector-card h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.selector-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
}

.contact-link {
    color: var(--color-navy);
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--color-mustard);
    text-decoration: underline;
}

/* Case Study */
.case-study-section {
    background-color: var(--color-navy);
    color: var(--color-bg);
    padding: 100px 5%;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.case-content {
    text-align: left;
}

.case-content h2 {
    color: var(--color-bg);
    font-size: 2.5rem;
    margin: 15px 0 25px 0;
    line-height: 1.2;
}

.case-content p {
    color: #D1D5DB;
    line-height: 1.6;
    font-size: 1.05rem;
}

.case-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-box {
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.05);
    text-align: center;
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.stat-desc {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #D1D5DB;
}

/* Mobile Resizing */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text-content {
        text-align: center;
        order: 2; 
    }
    .hero-image-content {
        order: 1; 
    }
    .hero-big-logo {
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .metrics-grid, .difference-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   2. ABOUT US
   ========================================================================== */
.about-header { margin-bottom: 60px; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.about-content h2, .about-history h2 {
    color: var(--color-navy);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--color-border);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--color-mustard);
    border-radius: 50%;
    border: 3px solid var(--color-bg);
}
.timeline-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 5px;
}
.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   3. SERVICES
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.service-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 40px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    border-color: var(--color-navy);
    box-shadow: 0 10px 25px rgba(16, 27, 70, 0.05);
    transform: translateY(-4px);
}
.service-card h3 {
    color: var(--color-navy);
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.service-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex-grow: 1;
}
.service-deliverables li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}
.service-deliverables li::before {
    content: '■';
    color: var(--color-mustard);
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 0.8rem;
}

/* ==========================================================================
   4. GALLERY
   ========================================================================== */
.gallery-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 60px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.gallery-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollGallery 40s linear infinite; 
}
.gallery-marquee-track:hover { animation-play-state: paused; }
.gallery-item {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.gallery-item img {
    display: block;
    height: 320px;
    width: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* ==========================================================================
   5. LOCATIONS
   ========================================================================== */
.location-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 850px; 
    margin: 30px auto 0 auto;
}
.location-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden; 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.location-card:hover {
    border-color: var(--color-navy);
    box-shadow: 0 10px 20px rgba(16, 27, 70, 0.05);
    transform: translateY(-3px);
}
.location-images {
    display: flex;
    height: 280px;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}
.shop-img {
    width: 65%;
    height: 100%;
    object-fit: cover;
}
.map-img {
    width: 35%;
    height: 100%;
    object-fit: cover;
    border-left: 1px solid var(--color-border);
}
.location-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.branch-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 20px;
}
.location-content .btn {
    display: inline-block;
    width: auto;
}

/* --- Mobile Adjustments for Locations --- */
@media (max-width: 768px) {
    .location-list {
        gap: 25px;
    }
    .location-images {
        flex-direction: column;
        height: auto; /* Removes the forced 280px stretch */
    }
    .shop-img {
        width: 100%;
        height: 220px; /* Locks the shop image to a clean aspect ratio */
    }
    .map-img {
        display: none; /* Hides the redundant map image on phones */
    }
    .location-content {
        padding: 25px 20px; /* Tighter padding so text isn't swimming in white space */
    }
    .location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .location-content .btn {
        width: 100%; /* Makes the button full-width on mobile for easy tapping */
        text-align: center;
    }
}

/* ==========================================================================
   6. FAQS
   ========================================================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.faq-item {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--color-navy);
    box-shadow: 0 8px 15px rgba(16, 27, 70, 0.05);
}
.faq-item summary {
    background-color: transparent;
    color: var(--color-navy);
    padding: 22px 25px;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--color-navy);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item summary:hover::after { color: var(--color-mustard); }
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--color-mustard);
}
.faq-answer {
    padding: 0 25px 25px 25px;
    color: var(--color-text-muted);
    line-height: 1.6;
    border-top: none;
}
.faq-item[open] .faq-answer {
    animation: swooshSlide 0.35s ease-out forwards;
    transform-origin: top;
}
@keyframes swooshSlide {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONTACT INTAKE UI
   ========================================================================== */
.contact-intake-section {
    padding: 80px 5% 120px 5%;
}

.contact-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-primary {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.contact-secondary {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* Intake Builder Form */
.intake-builder {
    border: 1px solid var(--color-border);
    padding: 50px;
}

.intake-builder h2 {
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.intake-subtext {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-navy);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.bg-light {
    background-color: #F8F9FA;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .contact-split-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .intake-builder {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   FLEET GRAPHICS (Technical Authority Layout)
   ========================================================================== */
.page-header-section {
    padding: 100px 5% 60px 5%;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.header-container h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 10px;
}

.header-container p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* Doctrines Grid */
.doctrines-section {
    padding: 80px 5%;
    background-color: #F8F9FA;
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    color: var(--color-navy);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.doctrines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.doctrine-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.doctrine-label {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-mustard);
    margin-bottom: 15px;
}

.doctrine-card h3 {
    color: var(--color-navy);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.doctrine-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.verified-badge {
    background-color: var(--color-mustard);
    color: var(--color-navy);
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 15px;
    display: inline-block;
    margin-top: 20px;
    align-self: flex-start;
}

/* Materials Section */
.materials-section {
    padding: 100px 5%;
    border-bottom: 1px solid var(--color-border);
}

.materials-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.materials-header h2 {
    color: var(--color-navy);
    font-size: 2rem;
    margin-top: 10px;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.material-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 25px;
}

.material-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.material-item strong {
    display: block;
    color: var(--color-navy);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.material-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Platforms / How to Start Section */
.platforms-section {
    padding: 80px 5%;
}

.platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
}

.platform-block h3 {
    color: var(--color-navy);
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
}

.platforms-subtext {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.platform-block ul {
    list-style: none;
    padding: 0;
}

.platform-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.platform-block ul li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 0.8rem;
    color: var(--color-mustard);
}

/* Mobile Adjustments for Inner Pages */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 2.2rem;
    }
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CAPABILITIES & FAQS
   ========================================================================== */
.capabilities-section {
    padding: 80px 5%;
    border-bottom: 1px solid var(--color-border);
}

.capability-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
}

.capability-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cap-header h2 {
    font-size: 2rem;
    color: var(--color-navy);
    line-height: 1.2;
    margin-top: 10px;
}

.cap-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cap-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.cap-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* FAQ Accordion Styles */
.faq-section {
    padding: 80px 5%;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.faq-item {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-navy);
    box-shadow: 0 4px 10px rgba(19, 32, 75, 0.05);
}

.faq-item summary {
    background-color: transparent;
    color: var(--color-navy);
    padding: 22px 25px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none; 
}

.faq-item summary::after {
    content: '+';
    color: var(--color-navy);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item summary:hover::after {
    color: var(--color-mustard);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--color-mustard);
}

.faq-answer {
    padding: 0 25px 25px 25px;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: none;
}

.faq-item[open] .faq-answer {
    animation: swooshSlide 0.3s ease-out forwards;
    transform-origin: top;
}

@keyframes swooshSlide {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .capability-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cap-details {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   METHODOLOGY (Execution Protocol & Stress-Testing)
   ========================================================================== */
.stress-test-section {
    padding: 100px 5%;
    border-bottom: 1px solid var(--color-border);
}

.stress-test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stress-test-text h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 20px;
}

.stress-test-text p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.stress-test-box {
    background-color: var(--color-bg);
    border-left: 4px solid var(--color-mustard);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(19, 32, 75, 0.05);
}

.st-question-label, .st-answer-label {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.st-answer-label {
    margin-top: 25px;
}

.st-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    font-style: italic;
    line-height: 1.5;
}

.st-answer {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

/* Protocol List */
.protocol-section {
    padding: 100px 5%;
}

.protocol-list {
    display: flex;
    flex-direction: column;
}

.protocol-item {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
}

.protocol-item:last-child {
    border-bottom: none;
}

.protocol-stage {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-mustard);
    width: 100px;
    flex-shrink: 0;
    padding-top: 5px;
}

.protocol-content h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.protocol-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .stress-test-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .protocol-item {
        flex-direction: column;
        gap: 10px;
    }
    .protocol-stage {
        padding-top: 0;
    }
}

/* ==========================================================================
   PROCUREMENT & SUPPLIER QUALIFICATION
   ========================================================================== */
.procurement-section {
    padding: 80px 5%;
    border-bottom: 1px solid var(--color-border);
}

.snapshot-container {
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.snapshot-header {
    background-color: #F8F9FA;
    border-bottom: 1px solid var(--color-border);
    padding: 20px;
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: 2px;
}

.snapshot-table {
    display: flex;
    flex-direction: column;
}

.snapshot-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.snapshot-row:last-child {
    border-bottom: none;
}

.snapshot-label {
    font-family: "JetBrains Mono", monospace, sans-serif;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.snapshot-value {
    font-size: 0.95rem;
    color: var(--color-navy);
}

.font-mono {
    font-family: "JetBrains Mono", monospace, sans-serif;
}

.font-bold {
    font-weight: 700;
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Commercial Philosophy */
.philosophy-section {
    padding: 100px 5%;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.philosophy-title h2 {
    font-size: 2.2rem;
    color: var(--color-navy);
    line-height: 1.2;
    margin-top: 10px;
}

.philosophy-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.philosophy-content p:last-child {
    margin-bottom: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .snapshot-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   NAVBAR CTA BUTTON (Outlined / Clean Design)
   ========================================================================== */
.nav-links li:last-child {
    margin-left: 6px; 
    display: flex;
    align-items: center;
}

.nav-cta {
    background-color: transparent;
    color: var(--color-navy) !important;
    border: 2px solid var(--color-navy);
    border-radius: 5px;
    padding: 5px 11px; 
    font-family: inherit; 
    font-weight: 700;
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    line-height: 1.2; 
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-cta:hover {
    background-color: var(--color-bg);
    color: var(--color-navy) !important;
    text-decoration: none;
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(19, 32, 75, 0.1); 
}

.nav-cta:active {
    transform: scale(0.98); 
}

/* HIGHLIGHT ACTIVE CONTACTS PAGE CTA */
.nav-cta.active-nav-item,
.nav-cta.active-cta {
    background-color: transparent !important;
    color: var(--color-navy) !important;
    border: 2px solid var(--color-mustard) !important;
    font-weight: 900 !important;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .nav-links li:last-child {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }
}

/* ==========================================================================
   HAMBURGER MENU & MOBILE NAVIGATION
   ========================================================================== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-navy);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Dropdown Styling */
@media (max-width: 950px) {
    .hamburger {
        display: flex; 
    }

    .nav-links {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 15px 20px rgba(19, 32, 75, 0.1);
        border-bottom: 3px solid var(--color-mustard);
        
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
        z-index: 99;
    }

    .nav-links.nav-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   HOMEPAGE MOBILE & SMARTPHONE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    /* Utility class to hide heavy corporate sections on phones */
    .hide-on-mobile {
        display: none !important;
    }

    /* Hero Section: Tighter spacing and thumb-friendly buttons */
    .hero-section {
        padding: 50px 5% 40px 5%;
    }
    .hero-text-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Metrics: Convert to boxed cards for easier vertical scrolling */
    .metrics-grid {
        gap: 15px;
    }
    .metric-card {
        padding: 25px;
        background-color: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 6px;
        text-align: center;
    }
    .metric-number {
        font-size: 2.8rem;
    }

    /* Differences Section */
    .difference-header h2 {
        font-size: 1.8rem;
    }
    .diff-card {
        padding: 25px 20px;
    }

    /* Case Study: Shrink massive stats for smaller screens */
    .case-study-section {
        padding: 60px 5%;
    }
    .case-content h2 {
        font-size: 1.8rem;
    }
    .stat-box {
        padding: 20px 15px;
    }
    .stat-num {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   HAMBURGER MENU & MOBILE NAVIGATION
   ========================================================================== */
/* Locks the background from scrolling when the menu is open */
body.no-scroll {
    overflow: hidden;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-navy);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Dropdown Styling */
@media (max-width: 950px) {
    .hamburger {
        display: flex; 
    }

    .nav-links {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        /* 100dvh adapts to the Safari mobile address bar perfectly */
        height: 100dvh; 
        /* Fallback for older browsers */
        min-height: 100vh; 
        overflow-y: auto; 
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        gap: 0 !important; /* Forces the desktop gap to turn off */
        padding: 20px 5% 150px 5%; /* Extra bottom padding so it never cuts off */
        border-bottom: none; /* Removes the distracting yellow line at the bottom of the screen */
        
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.4s ease;
        z-index: 99;
    }

    .nav-links.nav-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 0; 
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        font-family: "DejaVu Sans Condensed", "Arial Narrow", sans-serif;
        font-size: 1.35rem; /* Slightly tightened size for compactness */
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--color-navy);
        padding: 8px 10px; /* Tighter padding */
    }

    .nav-links li:last-child {
        margin-top: 25px; 
    }

    /* Upgraded Mobile CTA Button */
    .nav-cta {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px !important;
        background-color: transparent !important;
        color: var(--color-navy) !important;
        border: 2px solid var(--color-navy) !important;
        font-family: "DejaVu Sans Condensed", "Arial Narrow", sans-serif !important;
        font-size: 1.25rem !important; 
        border-radius: 5px;
    }

    .nav-cta:hover {
        background-color: var(--color-bg) !important;
        color: var(--color-mustard) !important;
        border-color: var(--color-mustard) !important;
    }

    /* Hamburger Animation */
    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   CONTACTS PAGE MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Tighten the gap between 01, 02, and 03 */
    .contact-block {
        margin-top: 25px !important; 
    }
    .contact-block:first-child {
        margin-top: 0 !important; 
    }

    /* Remove the excessive inline margins inside the blocks */
    .contact-primary, 
    .contact-secondary {
        margin-top: 5px !important;
        margin-bottom: 15px !important;
    }
    .contact-primary {
        font-size: 1.3rem !important; 
    }

    /* 2. Fix the layout grid on mobile */
    .contact-split-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important; /* Removes grid gaps to rely on exact margins */
    }

    /* 3. Force a clear separation between section 03 and the Inquiry Builder */
    .intake-builder {
        margin-top: 50px !important; /* Pushes the form down away from the buttons */
    }
}

/* ==========================================================================
   GLOBAL SPACING REDUCTION (Pulling Content Upwards)
   ========================================================================== */

/* 1. Pulls the titles on subpages (Contacts, Gallery, Locations) closer to the nav */
.page-header-section {
    padding-top: 30px !important; /* Reduces the massive top gap */
    padding-bottom: 40px !important; /* Tightens the gap below the title */
}

/* 2. Pulls the main homepage hero content closer to the nav */
.hero-section {
    padding-top: 40px !important; 
}

/* 3. Mobile-Specific Adjustments */
@media (max-width: 768px) {
    .page-header-section {
        padding-top: 20px !important; /* Even tighter on phones */
        padding-bottom: 30px !important;
    }
    .hero-section {
        padding-top: 20px !important;
    }
}

@media (max-width: 768px) {
    /* Hides the big logo and its container completely on mobile */
    .hero-image-content {
        display: none !important;
    }
    
    /* Optional: Centers the remaining text perfectly since the logo is gone */
    .hero-text-content {
        text-align: center;
        align-items: center;
    }
}

/* ==========================================================================
   CONTACTS PAGE - TIGHTER SPACING (Desktop & Mobile)
   ========================================================================== */
/* 1. Reduces the large gap between the 01, 02, and 03 sections */
.contact-block {
    margin-top: 25px !important; /* Forces a tighter layout than the original 60px */
}
.contact-block:first-child {
    margin-top: 0 !important;
}

/* 2. Pulls the primary text (Phone numbers / Emails) closer to the section labels */
.contact-primary {
    margin-top: 0px !important;
    margin-bottom: 5px !important;
}

/* 3. Pulls the secondary text (Landlines / Branch emails) closer to the primary text */
.contact-secondary {
    margin-top: 0px !important;
    margin-bottom: 5px !important;
}

/* 4. Pulls the action buttons (Messenger / Facebook) closer to the text above them */
.contact-actions {
    margin-top: 5px !important;
}

/* 5. Mobile specific tightening */
@media (max-width: 768px) {
    .contact-block {
        margin-top: 5px !important; 
    }
    .contact-primary, 
    .contact-secondary {
        margin-bottom: 5px !important;
    }
}

/* --- MOBILE FIX FOR GRAND GALLERY MARQUEE (2 ROWS, SMALLER) --- */
@media (max-width: 768px) {
    /* 1. Shrink the boxes so they look like landscape photos on phones */
    .gallery-item {
        min-width: 280px !important; 
        border-radius: 6px !important;
        border: 1px solid var(--color-border) !important;
    }

    .gallery-item img {
        height: 190px !important; /* Restores landscape proportion */
        width: 100% !important;
        border-radius: 6px !important;
    }

    /* 2. Tighter gaps for smaller screens */
    .gallery-marquee-track {
        gap: 15px !important;
        width: max-content !important;
        animation: scrollGallery 40s linear infinite !important;
    }

    /* 3. Bring back Row 2 */
    .gallery-marquee-wrapper:nth-of-type(2) {
        display: block !important; 
        margin-top: 15px !important; /* Tighter gap between row 1 and row 2 */
    }

    .grand-gallery-section {
        padding: 40px 0 20px 0 !important;
    }
}

/* ==========================================================================
   HORIZONTAL SCROLL / SIDEWAYS MOVEMENT FIX
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.intake-builder input, 
.intake-builder select, 
.intake-builder textarea {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

#compiled-text {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* ==========================================================================
   ACTIVE PAGE HIGHLIGHTING
   ========================================================================== */
.nav-links a.active-nav-item {
    color: var(--color-navy) !important;
    font-weight: 700 !important;
}

.nav-links a.active-nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px; 
    width: 100%;
    height: 2px;
    background-color: var(--color-mustard) !important;
    margin-top: 0;
}
