/* css/styles.css */

/* =========================================
   Variables & Base Setup
   ========================================= */
:root {
    --color-charcoal: #0f172a;
    --color-charcoal-light: #1e293b;

    -color-accent: #d4a017;
    --color-accent-dark: #b8860b;

    --color-white: #ffffff;
    --color-light-grey: #eef2f6;

    --color-border: #334155;

    --color-text-main: #cbd5e1;
    --color-text-muted: #94a3b8;
    
    --font-primary: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-padding: 5%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   Typography & Alternating Themes
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }

/* Navy Blue Sections (Dark) */
.bg-charcoal {
    background-color: var(--color-charcoal);
    color: var(--color-text-main);
}
.bg-charcoal h1, 
.bg-charcoal h2, 
.bg-charcoal h3, 
.bg-charcoal .section-title {
    color: var(--color-white);
}
.bg-charcoal p,
.bg-charcoal .text-muted,
.bg-charcoal .section-intro {
    color: var(--color-text-muted);
}

/* Light Grey Sections (Light) */
.bg-light-grey {
    background-color: var(--color-light-grey);
    color: #334155;
}
.bg-light-grey h1, 
.bg-light-grey h2, 
.bg-light-grey h3, 
.bg-light-grey .section-title {
    color: #0f172a;
}
.bg-light-grey p,
.bg-light-grey .text-muted,
.bg-light-grey .section-intro {
    color: #475569;
}

/* Footer Background */
.bg-charcoal-light {
    background-color: var(--color-charcoal-light);
    color: var(--color-text-main);
}
.bg-charcoal-light h4 {
    color: var(--color-white);
}

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 120px 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.section-header {
    max-width: 700px;
    margin-bottom: 64px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-steel-blue);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-intro {
    font-size: 1.125rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.insights-section-header{
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
}

/* Blueprint Texture */
.blueprint-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.dark-pattern {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* =========================================
   Buttons & Links
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 2px;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #D4A017;
    color: #081B3A;
    border: 1px solid #D4A017;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--color-steel-blue-dark);
    border-color: var(--color-steel-blue-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,160,23,.30);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.18);
}

.text-link {
    font-weight: 600;
    color: var(--color-steel-blue);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.text-link:hover {
    color: var(--color-steel-blue-dark);
    transform: translateX(4px);
}

/* =========================================
   Navigation
   ========================================= */
.site-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-charcoal-light);
    border-bottom: 1px solid rgba(212, 160, 23, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
    min-height: 72px;
    display: flex;
    align-items: center;
}

.site-navbar.scrolled {
    background: rgba(30, 41, 59, 0.96); /* Same charcoal-light with slight transparency */
    padding: 12px 0;
    min-height: 64px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.18);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #d4a017;
}

.nav-link:hover::after {
    width: 100%;
}

.site-navbar:not(.scrolled) .nav-link {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
        90deg,
        rgba(8,27,58,0.75) 0%,
        rgba(8,27,58,0.62) 35%,
        rgba(8,27,58,0.38) 65%,
        rgba(8,27,58,0.15) 100%
),
        url("../images/hero-home.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 850px;
}

.hero-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.hero-subtext {
    color: #edf0f6;
    font-size: 1.125rem;
    font-weight:400;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 40px;
    }

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-buttons .btn {
    flex: none !important;
    width: auto !important;
    max-width: fit-content;
}

/* =========================================
   Services Section (Light)
   ========================================= */
/* =========================================
   SERVICE CARDS
   ========================================= */

.service-card {
    background: var(--color-white);
    padding: 48px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    scroll-margin-top: 240px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-steel-blue);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* =========================================
   ICON
   ========================================= */

.card-icon {
    width: 60px;
    height: 60px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(212,160,23,.10);
    color: var(--color-steel-blue);
    opacity: 1;
}

/* =========================================
   TITLE
   ========================================= */

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-charcoal);
    margin-bottom: 18px;
}

/* =========================================
   DESCRIPTION
   ========================================= */

.service-card p {
    flex-grow: 0;
    margin-bottom: 36px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

/* =========================================
   INCLUDES
   ========================================= */

.card-includes {
    flex-grow: 1;
    margin-bottom: 30px;
}

.card-includes strong {
    color: #D4A017;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: 1;
}

.card-includes ul {

    list-style: none;
    padding: 0;
    margin: 0;
}

.card-includes li {

    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #334155;
    font-size: .97rem;
    line-height: 1.6;
}

.card-includes li:last-child{

    margin-bottom:0;
}

.card-includes li::before {

    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-steel-blue);
    font-size: 1.2rem;
    font-weight: bold;
}

/* =========================================
   DETAILED SERVICE CARD
   ========================================= */

.detailed-service-card {
    background: #10264A;
    border-radius: 12px;
    padding: 48px;
    scroll-margin-top: 140px;
}

/* =========================================
   About Snapshot Section (Dark)
   ========================================= */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.metric-card {
    background: var(--color-charcoal-light);
    padding: 32px;
    border-left: 4px solid var(--color-steel-blue);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   Industries Section (Light)
   ========================================= */
.industry-card {
    background: var(--color-charcoal-light);
    color: var(--color-white);
    height: 240px;
    padding: 32px;
    position: relative;
    display: flex;
    align-items: flex-end;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.2));
    z-index: 1;
}

.industry-content {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.industry-card h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.industry-card p {
    color: var(--color-text-main);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.industry-card:hover {
    border-color: var(--color-steel-blue);
}

.industry-card:hover .industry-content {
    transform: translateY(0);
}

.industry-card:hover p {
    opacity: 1;
}

/* =========================================
   Why SysTransform Section (Dark)
   ========================================= */
.why-card {
    background: #1F2937;
    border-left: 4px solid #D4A017;
    border-radius: 6px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.why-accent {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 16px;
    font-family: monospace;
}

.why-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   Insights Section (Light)
   ========================================= */
.insight-card {
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    padding: 40px 32px;
    transition: var(--transition-smooth);
}

.insight-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
    border-color: var(--color-steel-blue);
}

.insight-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-steel-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.insight-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.insight-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* =========================================
   Contact Section (Dark)
   ========================================= */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-method strong {
    display: block;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-method p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.contact-form {
    background: var(--color-charcoal-light);
    padding: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background: #313C52;
    border: 1px solid #556273;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

.text-link {
    color: var(--color-charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.text-link:hover {
    color: var(--color-steel-blue);
    text-decoration: underline;
}

/* NEW - Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #364158;
    border-color: var(--color-steel-blue);
    box-shadow: 0 0 0 3px rgba(212,160,23,.18);
}

.form-group select option {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.contact-form button,
.contact-form .btn-primary {
    width: 100%;
    padding: 16px 20px;
    background: #D4A017;
    color: #0F172A;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212,160,23,0.28);
}

.contact-form button:hover,
.contact-form .btn-primary:hover {
    background: #B8860B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212,160,23,0.40);
}

/* =========================================
   Footer (Dark)
   ========================================= */
.site-footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-tagline {
    color: #D4A017;
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-signature {
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.3px;
    text-align: center;
}

/* =========================================
   NEW COLOR PALETTE OVERRIDES 
   ========================================= */
/* Base Utility Classes for Backgrounds */
.bg-navy {
    background-color: var(--color-navy);
    color: var(--color-text-dark-sec);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy .section-title {
    color: var(--color-heading-light);
}
.bg-navy .section-intro {
    color: var(--color-text-dark-sec);
}

.bg-light {
    background-color: var(--color-light);
    color: var(--color-text-light-sec);
}
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light .section-title {
    color: var(--color-heading-dark);
}
.bg-light .section-intro {
    color: var(--color-text-light-sec);
}

.bg-slate {
    background-color: var(--color-slate);
}

/* Custom Link styling */
.text-link {
    color: var(--color-mustard);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}
.text-link:hover {
    color: var(--color-mustard-dark);
    text-decoration: underline;
}

/* Helper Classes */
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.relative-z { position: relative; z-index: 2; }
.mt-4 { margin-top: 2rem; }

/* =========================================
   SERVICES PAGE: SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.services-hero-section {
    position: relative;
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-color: #081B3A; /* Fallback for Charcoal/Navy */
    overflow: hidden;
    padding-top: 120px; /* Offset for navbar */
    padding-bottom:60px;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services-hero-bg.jpg'); /* Ensure path is correct */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg, 
        rgba(8,27,58,0.82) 0%,
        rgba(8,27,58,0.80) 35%,
        rgba(8,27,58,0.78) 70%,
        rgba(8,27,58,0.78) 100%
        );
    z-index: 2;
}

.services-hero-wrapper {
    position: relative;
    z-index: 3;
    padding: 40px 0;
}

.services-hero-content {
    max-width: 900px;
}

.services-hero-eyebrow {
    display: block;
    color: #D4A017;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.services-hero-heading {
    color: #FFFFFF;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.services-hero-subtext {
    color: #CBD5E1;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 40px
    margin: 0;
}

/* Introduction Section */
.services-page-intro {
    padding: 48px 0;
    border-bottom: none;
}

.services-intro-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #334155;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-weight: 400;
}

/* =========================================
   SERVICES HERO NAVIGATION
   ========================================= */

.services-hero-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 56px;
    width: 100%;
    max-width: 920px;
}

.services-hero-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 14px 16px;
    min-height: 54px;

    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition: var(--transition-smooth);
}

.services-hero-nav-link:hover {
    background: rgba(212, 160, 23, 0.18);
    border-color: var(--color-steel-blue);
    color: var(--color-steel-blue);
    transform: translateY(-2px);
}

.services-hero-nav-link:active {
    transform: translateY(0);
}

/* Individual Service Detail Sections */
.service-detail-section {
    padding: 100px 0;
}

.service-detail-header {
    max-width: 850px;
    margin-bottom: 56px;
}

.service-detail-title {
    font-size: 2.25rem;
    color: #1F2937;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.service-detail-desc {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.7;
    margin: 0;
}

/* Service Photo Gallery Grid */
.service-photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-photo-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background-color: #E5E7EB; /* Placeholder gray before image loads */
}

.service-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}

.service-photo-wrap:hover img {
    transform: scale(1.04);
}

/* Methodology Section (How We Operate) */
.methodology-section {
    padding: 120px 0;
    background-color: #081B3A; /* Matches Charcoal/Navy requirement */
}

.methodology-header {
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.text-white { color: #FFFFFF !important; }
.text-muted-light { color: #CBD5E1 !important; }

/* Premium Timeline Layout */
.methodology-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #081B3A;
    border: 3px solid #D4A017;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: 24px;
    transition: background-color 0.3s ease;
}

.timeline-node:hover .timeline-dot {
    background-color: #D4A017;
}

.timeline-line {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(212, 160, 23, 0.3); /* Muted Gold with opacity */
    z-index: 1;
}

.timeline-title {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* CTA Section */
.services-cta-section {
    padding: 120px 0;
}

.services-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.services-cta-text {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 40px;
}

.services-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Secondary Button Styling for White background */
.btn-secondary.text-dark-btn {
    border: 1px solid #1F2937;
    color: #1F2937;
}
.btn-secondary.text-dark-btn:hover {
    background-color: #1F2937;
    color: #FFFFFF;
}

/* =========================================
   RESPONSIVE LAYOUTS
   ========================================= */

@media (max-width: 1024px) {
    .service-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero-section {
        height: auto;
        min-height: 50vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .services-hero-bg {
        /* Swap to the mobile-specific portrait image */
        background-image: url('../images/services-hero-bg-mob.jpg') !important;
        
        background-size: cover;
        /* Reset position to center since the photo is already formatted for mobile */
        background-position: center center !important; 
    }

    .services-hero-heading {
        font-size: 2.25rem;
    }

    .services-page-intro {
        padding: 48px 0;
    }
    
    .services-intro-text {
        font-size: 1.1rem;
        text-align: left;
    }

    .service-detail-section {
        padding: 80px 0;
    }

    .service-detail-header {
        margin-bottom: 40px;
    }

    .service-detail-title {
        font-size: 1.75rem;
    }

    .service-photo-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .methodology-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .timeline-node {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 48px;
    }

    .timeline-node:last-child {
        margin-bottom: 0;
    }

    .timeline-dot {
        margin-bottom: 0;
        margin-right: 24px;
        position: relative;
        top: 2px;
    }

    .timeline-line {
        top: 20px;
        left: 9px;
        width: 2px;
        height: calc(100% + 48px);
    }
    
    .services-cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}


/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* Section 1: Hero */
.about-hero {
    background-color: #081B3A;
    padding: 160px 0 100px; /* Offset for fixed navbar */
}

.about-hero-content {
    max-width: 800px;
}

.about-hero-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.about-hero-subtitle {
    color: #D4A017;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 32px;
}

.about-hero-text {
    color: #D1D5DB;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 700px;
}

/* Section 2: Experience & Credentials */
.about-stats {
    background-color: #F3F4F6;
    padding: 80px 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.about-stat-item {
    padding-left: 24px;
    border-left: 3px solid #D4A017;
}

.about-stat-value {
    color: #1F2937;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.about-stat-label {
    color: #4B5563;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section 3: Founder Profile */
.about-founder {
    background-color: #FFFFFF;
    padding: 100px 0;
}

.about-founder-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

.about-founder-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 24px;
}

.about-founder-eyebrow {
    display: block;
    color: #D4A017;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.about-founder-name {
    color: #1F2937;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.about-founder-role {
    color: #4B5563;
    font-size: 1.25rem;
    font-weight: 400;
}

.about-founder-bio {
    color: #4B5563;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 95%;
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 30px;
}

.about-highlight-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: #1F2937;
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-highlight-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #D4A017;
    border-radius: 50%;
}

.about-founder-specialization {
    margin-top: 10px;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Section 3.1: Founder Photo */

.about-founder-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    align-items: start;
}

.founder-image {
    width: 100%;
    height: 500px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.founder-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.founder-stats span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

@media (max-width: 768px) {

    .about-founder-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-founder-photo {
        text-align: center;
    }

    .founder-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .founder-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Section 4: Our Approach */
.about-approach {
    background-color: #081B3A;
    padding: 100px 0;
}

.about-approach-title {
    color: #FFFFFF;
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 64px;
}

.about-process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.about-process-step {
    flex: 1;
    text-align: center;
}

.about-step-title {
    color: #D4A017;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.about-step-desc {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-process-arrow {
    color: #D4A017;
    font-size: 1.5rem;
    padding-top: 2px;
    opacity: 0.5;
}

/* Section 5: Industries We Serve */
.about-industries {
    background-color: #F3F4F6;
    padding: 100px 0;
}

.about-industries-title {
    color: #1F2937;
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 64px;
}

.about-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-industry-card {
    background-color: #FFFFFF;
    color: #1F2937;
    padding: 32px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.about-industry-card:hover {
    border-bottom-color: #D4A017;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05);
}

/* Section 6: Closing CTA */
.about-cta {
    background-color: #081B3A;
    padding: 120px 0;
    text-align: center;
}

.about-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-title {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 32px;
    line-height: 1.2;
}

.about-cta-text {
    color: #D1D5DB;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 48px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 120px 0 80px;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-process-flow {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .about-process-step {
        max-width: 320px;
    }

    .about-process-arrow {
        transform: rotate(90deg);
        padding: 0;
        margin: -8px 0;
    }

    .about-industry-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

/* Base overrides for backgrounds specific to contact page to ensure utility class compatibility */
.bg-white { background-color: #FFFFFF; }
.dark-text { color: #1F2937; }
.light-text { color: #FFFFFF; }

.contact-page-wrapper {
    width: 100%;
}

/* Reusable Section Titles for Contact Page */
.contact-section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 48px;
    text-align: center;
}
.bg-navy .contact-section-title {
    color: #FFFFFF;
}
.bg-light .contact-section-title {
    color: #1F2937;
}

/* SECTION 1: Hero */
.contact-hero {
    padding: 160px 0 100px; /* Account for navbar */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-hero-container {
    display: flex;
    justify-content: flex-start;
}
.contact-hero-content {
    max-width: 800px;
}
.contact-hero-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    line-height: 1.1;
}
.contact-hero-text {
    color: #D1D5DB;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 750px;
}
.contact-hero-buttons {
    display: flex;
    gap: 16px;
}

/* SECTION 2: Contact Information */
.contact-details {
    padding: 100px 0;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-info-item {
    background-color: #FFFFFF;
    border-left: 3px solid #D4A017;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.contact-info-full-width {
    grid-column: 1 / -1;
}
.contact-info-label {
    color: #D4A017;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.contact-info-value {
    color: #1F2937;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}
.contact-info-link {
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-info-link:hover {
    color: #D4A017;
}

/* SECTION 3: How We Can Support You */
.contact-support {
    padding: 100px 0;
}
.contact-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-service-tile {
    background-color: #F3F4F6;
    padding: 40px 32px;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.contact-service-tile:hover {
    border-top-color: #D4A017;
    background-color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
    transform: translateY(-4px);
}
.contact-service-name {
    color: #1F2937;
    font-size: 1.125rem;
    margin-bottom: 16px;
    line-height: 1.4;
}
.contact-service-desc {
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* SECTION 4: Send Us an Enquiry (Form) */
.contact-form-section {
    padding: 100px 0;
}
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 48px;
    border-top: 4px solid #D4A017;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.contact-enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.contact-form-group {
    display: flex;
    flex-direction: column;
}
.contact-form-label {
    color: #1F2937;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.contact-form-input,
.contact-form-select,
.contact-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    background-color: #F9FAFB;
    color: #1F2937;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 0; /* Ensures sharp edges for consulting look */
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #D4A017;
    background-color: #FFFFFF;
}
.contact-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231F2937%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}
.contact-form-submit-row {
    margin-top: 16px;
}
.contact-submit-btn {
    width: auto;
    min-width: 200px;
}

/* SECTION 5: Why Organizations Work With Us */
.contact-why-us {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.contact-stat-block {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #D4A017;
    transition: background-color 0.3s ease;
}
.contact-stat-block:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
.contact-stat-highlight {
    color: #D4A017;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
}
.contact-stat-text {
    color: #D1D5DB;
    font-size: 1.05rem;
    font-weight: 500;
}

/* SECTION 6: Closing CTA */
.contact-cta {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-cta-content {
    max-width: 800px;
    margin: 0 auto;
}
.contact-cta-headline {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 24px;
    line-height: 1.2;
}
.contact-cta-text {
    color: #D1D5DB;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* =========================================
   CONTACT PAGE RESPONSIVE MODIFICATIONS
   ========================================= */

@media (max-width: 1024px) {
    .contact-service-grid,
    .contact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 80px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-service-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .contact-submit-btn {
        width: 100%;
    }
    
    .contact-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   INDUSTRIES & PROJECT EXPOSURE SECTION 
   ========================================= */

.project-section {
    padding: 100px 0;
    background-color: #F3F4F6; /* Fallback matching bg-light-grey */
}

.project-header {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

/* Base text overrides mapping to Light Section requirements */
.project-section .section-title {
    color: #1F2937;
}

.project-section .section-intro {
    color: #4B5563;
}

/* Category Structural Styles */
.project-category {
    margin-bottom: 80px;
}

.project-category:last-child {
    margin-bottom: 0;
}

.project-category-header {
    margin-bottom: 32px;
    border-left: 3px solid #D4A017;
    padding-left: 20px;
}

/* Typography matching existing website hierarchy */
.project-category-title {
    font-size: 1.5rem; /* Matches general h3/card headings */
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.project-category-desc {
    font-size: 1rem;
    color: #4B5563; /* Matches body text styling for light sections */
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}

/* Responsive Grids */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.project-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-dual-sector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
}

.project-dual-sector .project-category {
    margin-bottom: 0; /* Reset inside the dual container */
}

/* Unified Card Design */
.project-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #D4A017;
}

/* Placeholders & Media */
.project-image-placeholder {
    aspect-ratio: 16 / 9;
    background-color: #E5E7EB;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-icon {
    width: 32px;
    height: 32px;
    stroke: #9CA3AF;
    opacity: 0.6;
}

/* Captions */
.project-caption {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* =========================================
   RESPONSIVE MODIFICATIONS
   ========================================= */

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-dual-sector {
        grid-template-columns: 1fr;
        gap: 80px;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 80px 0;
    }
    
    .project-header {
        margin-bottom: 60px;
    }
    
    .project-category {
        margin-bottom: 60px;
    }
    
    .project-grid,
    .project-grid-two {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-dual-sector {
        gap: 60px;
        margin-bottom: 60px;
    }
}

/* =========================================
   ABOUT PAGE: VISION, MISSION & VALUES
   ========================================= */

.about-vmv-section {
    background-color: #F3F4F6; /* Light Grey background */
    padding: 100px 0;
}

/* Grid Layout: 
   Vision and Mission are equal width (1fr). 
   Values is slightly wider (1.3fr) to accommodate the 4 points elegantly. */
.about-vmv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 32px;
    align-items: stretch; /* Ensures all cards match the height of the tallest card */
}

/* Premium Consulting Card Style */
.about-vmv-card {
    background-color: #FFFFFF;
    padding: 48px 40px;
    border-top: 4px solid #D4A017; /* Muted Gold accent */
    box-shadow: 0 4px 24px rgba(8, 27, 58, 0.04);
    display: flex;
    flex-direction: column;
}

/* Typography */
.about-vmv-title {
    color: #081B3A; /* Deep Navy Blue */
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.about-vmv-text {
    color: #4B5563; /* Readable dark grey for body text */
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

/* Values List Formatting (Clean, Icon-free hierarchy) */
.about-vmv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.about-vmv-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #D4A017; /* Subtle visual anchor replacing icons */
}

.about-vmv-item-title {
    color: #081B3A;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.about-vmv-item-desc {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE MODIFICATIONS
   ========================================= */

/* Tablet Layout: 2 Cards per row, Values spans the full width below */
@media (max-width: 1024px) {
    .about-vmv-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-vmv-values {
        grid-column: 1 / -1;
    }
}

/* Mobile Layout: Stacked single column */
@media (max-width: 768px) {
    .about-vmv-section {
        padding: 80px 0;
    }

    .about-vmv-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-vmv-card {
        padding: 40px 24px;
    }
}

/* Additions for css/styles.css */

/* =========================================
   EXPERIENCE / LOGO GRID SECTION
   ========================================= */

.experience-section {
    padding: 100px 0;
    /* Uses existing global background class, fallback provided just in case */
    background-color: var(--color-light-grey, #F3F4F6);
}

.experience-header {
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.experience-eyebrow {
    display: block;
    color: var(--color-mustard, #D4A017);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.experience-section .section-title {
    color: #1F2937;
    margin-bottom: 16px;
}

.experience-section .section-intro {
    color: #4B5563;
    line-height: 1.6;
    margin: 0 auto;
}

/* Grid Layout */
.experience-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 32px;
    align-items: center;
    justify-items: center;
}

.experience-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
}

/* Logo Styling & Hover Effects */
.experience-logo {
    max-height: 75px; /* Maintains visual consistency of 55-65px */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    will-change: transform, filter; /* Smooth rendering */
}

.experience-logo:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.03);
}


/* =========================================
   INSIGHTS PAGE KNOWLEDGE CENTRE STYLES
   ========================================= */

/* GLOBAL & UTILITY FOR INSIGHTS */
.insights-section-heading {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-center { text-align: center; }
.dark-text { color: #1F2937; }
.light-text { color: #FFFFFF; }

.insights-eyebrow {
    display: block;
    color: #D4A017;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.insights-read-link {
    color: #D4A017;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.insights-read-link:hover {
    text-decoration: underline;
    text-decoration-color: #D4A017;
    text-underline-offset: 4px;
}

/* 1. DARK HERO */
.insights-hero {
    position: relative;
    height: 80vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-color: #081B3A; 
    overflow: hidden;
    padding-top: 80px; 
}

.insights-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/insights-hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
}

.insights-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(8, 27, 58, 0.88) 0%, rgba(8, 27, 58, 0.72) 100%);
    z-index: 2;
}

.insights-hero-container {
    position: relative;
    z-index: 3;
}

.insights-hero-content {
    max-width: 800px;
}

.insights-hero-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.insights-hero-subtitle {
    color: #CBD5E1;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0;
}

/* 2. LIGHT INTRODUCTION */
.insights-intro {
    background-color: #F3F4F6;
    padding: 120px 0;
}

.insights-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.insights-intro-text {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.8;
    margin: 0 auto;
}

/* 3. DARK FEATURED PERSPECTIVE */
.insights-featured {
    background-color: #081B3A;
    padding: 120px 0;
}

.insights-featured-card {
    display: flex;
    background-color: #1F2937; /* Premium Charcoal Light for contrast against deep navy */
    border-radius: 8px;
    overflow: hidden;
    align-items: stretch;
}

.insights-featured-image-wrapper {
    flex: 0 0 40%;
    background-color: #2a3441; /* Placeholder base */
    position: relative;
}

/* Universal Image Placeholder enforcing 16:9 */
.insights-image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    background-color: #E5E7EB; /* Default grey placeholder */
    object-fit: cover;
}
/* Ensure the left side placeholder fills height on desktop */
.insights-featured-image-wrapper .insights-image-placeholder {
    height: 100%; 
    background-color: #374151; /* Darker placeholder for dark section */
}

.insights-featured-body {
    flex: 0 0 60%;
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insights-featured-label {
    display: inline-block;
    color: #D4A017;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.insights-featured-title {
    color: #FFFFFF;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.insights-featured-summary {
    color: #CBD5E1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* 4. LIGHT SECTION: ARTICLE GRID */
.insights-grid-section {
    background-color: #F3F4F6;
    padding: 120px 0;
}

.insights-article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.insights-article-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(8, 27, 58, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.insights-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(8, 27, 58, 0.08);
}

.insights-card-image-wrapper {
    width: 100%;
}

.insights-card-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insights-card-category {
    color: #D4A017;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.insights-card-title {
    color: #1F2937;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.insights-card-summary {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* 5. DARK SECTION: BROWSE BY TOPIC */
.insights-topics-section {
    background-color: #081B3A;
    padding: 120px 0;
}

.insights-topic-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 48px auto 0 auto;
}

.insights-topic-pill {
    display: inline-block;
    padding: 16px 32px;
    background-color: transparent;
    border: 1px solid #D4A017;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.insights-topic-pill:hover {
    background-color: #D4A017;
    color: #FFFFFF;
}

/* 6. LIGHT CTA */
.insights-cta {
    background-color: #F3F4F6;
    padding: 120px 0;
}

.insights-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.insights-cta-text {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* =========================================
   PAGE ARTICLE TEMPLATE SPECIFIC STYLES
   ========================================= */

/* 1. ARTICLE HERO */
.article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end; /* Aligns content to the bottom */
    background-color: #081B3A; 
    overflow: hidden;
    padding-top: 140px; 
    padding-bottom: 90px;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a222d;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 27, 58, 0.95) 0%, rgba(8, 27, 58, 0.4) 60%, rgba(8, 27, 58, 0.2) 100%);
    z-index: 2;
}

.article-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.article-hero-content {
    max-width: 900px;
}

.article-eyebrow {
    display: inline-block;
    color: #D4A017;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.article-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.article-subtitle {
    color: #CBD5E1;
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0;
    font-weight: 400;
}

.article-divider {
    width: 70px;
    height: 2px;
    background: #D4A017;
    margin-top: 40px;
    opacity:0.9; 
    border-radius: 2px;
}

/* 2. ARTICLE BODY */
.article-body-section {
    background-color: #FFFFFF;
    padding: 100px 0;
}

.article-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* Typography & Prose Styling */
.article-prose h2 {
    color: #1F2937;
    font-size: 2.25rem;
    font-weight: 600;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-prose h3 {
    color: #1F2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-prose p {
    color: #334155;
    font-size: 1.1875rem; /* 19px for premium readability */
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.article-prose strong {
    font-weight: 600;
    color: #1F2937;
}

.article-prose ul, 
.article-prose ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-prose li {
    color: #334155;
    font-size: 1.1875rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.article-prose ul li::marker {
    color: #D4A017;
}

.article-prose a {
    color: #D4A017;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.article-prose a:hover {
    color: #B8860B; /* Darker mustard */
}

/* Inline Images */
.article-inline-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 3rem 0;
    display: block;
    background-color: #F3F4F6;
}

/* Tables */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    font-size: 1.05rem;
}

.article-table th, 
.article-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    color: #334155;
}

.article-table th {
    font-weight: 600;
    color: #1F2937;
    border-bottom: 2px solid #1F2937;
    background-color: #F9FAFB;
}

/* 4. HIGHLIGHT QUOTE */
.article-pull-quote {
    background-color: #F3F4F6;
    border-left: 4px solid #D4A017;
    padding: 2.5rem 3rem;
    margin: 3.5rem 0;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #1F2937;
    font-weight: 400;
    font-style: italic;
}

/* 5. KEY TAKEAWAYS */
.article-takeaways-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #E5E7EB;
}

.article-takeaways-heading {
    color: #1F2937;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.article-takeaways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.article-takeaway-card {
    background: #F8FAFC;
    border: 1px solid #DCE3EA;
    border-left: 4px solid #D4A017;
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.article-takeaway-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.article-takeaway-text {
    color: #1F2937;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
}

/* 6. ABOUT SYSTRANSFORM'S PERSPECTIVE */
.article-perspective-box {
    background: #F8FAFC;
    border: 1px solid #DCE3EA;
    border-top: 4px solid #D4A017;
    padding: 2.75rem;
    border-radius: 4px;
    margin-top: 5rem;
}

.article-perspective-title {
    color: #1F2937;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.article-perspective-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* 7. RELATED INSIGHTS */
.article-related-section {
    background-color: #081B3A;
    padding: 100px 0;
}

.article-related-heading {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    margin-bottom: 1rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-related-card {
    background: #1F2937;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid #D4A017;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.article-related-card:hover {
    transform: translateY(-4px);
    border-left-color: #F2C94C;
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.article-related-content {
    padding: 2.0rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-related-category {
    color: #D4A017;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-related-title {
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.article-read-link {
    color: #D4A017;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: all .25s ease;
}

.article-read-link:hover {
    color: #F2C94C;
    letter-spacing: .03em;
}

.article-related-summary {
    color: #CBD5E1;
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* 8. CALL TO ACTION */
.article-cta-section {
    background-color: #F3F4F6;
    padding: 120px 0;
}

.article-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-cta-heading {
    color: #1F2937;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-cta-text {
    color: #4B5563;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.article-cta-btn {
    padding: 1.25rem 2.5rem;
}

.home-insights-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* =========================================
   404 ERROR PAGE STYLES
   ========================================= */

.not-found-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Accounts for fixed navbar */
    padding-bottom: 80px;
    background-color: #081B3A; /* Enforcing the Navy background */
    overflow: hidden;
}

/* Subtle engineering grid overlay for visual depth */
.not-found-blueprint-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.not-found-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.not-found-content {
    max-width: 700px;
}

.not-found-error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 700;
    color: #D4A017;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.not-found-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.not-found-text {
    font-size: 1.125rem;
    color: #CBD5E1;
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto 48px auto;
}

.not-found-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.not-found-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
}

.not-found-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Secondary Button overrides specifically for the dark background */
.not-found-section .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    background-color: transparent;
}

.not-found-section .btn-secondary:hover {
    border-color: #D4A017;
    color: #D4A017;
    background-color: transparent;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .split-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .grid-2, .grid-2-col, .grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .visual-flow-container {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
        margin: 16px 0;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-2-col, .grid-3x3 {
        grid-template-columns: 1fr;
    }
    .subpage-hero {
        padding-top: 100px;
    }
    .service-lists {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-charcoal-light);
        flex-direction: column;
        padding: 24px var(--container-padding);
        gap: 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-list.active {
        display: flex;
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .metrics-grid, .contact-methods {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 32px 24px;
    }
}

/* =========================================
   RESPONSIVE MODIFICATIONS FOR EXPERIENCE
   ========================================= */

/* Tablet Responsive */
@media (max-width: 1024px) {
    .experience-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 24px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .experience-section {
        padding: 80px 0;
    }
    
    .experience-header {
        margin-bottom: 48px;
    }

    .experience-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .experience-logo {
        max-height: 50px; /* Slightly scaled down for mobile screens */
    }
}

/* =========================================
   RESPONSIVE MODIFICATIONS FOR SERVICES PAGE NAVIGATION (SERVICE BUTTONS)
   ========================================= */

/* Tablet Layout: Naturally wraps into rows if needed, or explicitly forced to 3 columns */
@media (max-width: 1024px) {
    .services-hero-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile Layout: 2 columns x 3 rows */
@media (max-width: 768px) {
    .services-hero-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
    }
    
    .services-hero-nav-link {
        padding: 14px 10px;
        font-size: 0.9rem;
    }
}

/* =========================================
   RESPONSIVE DESIGN FOR INSIGHTS PAGE
   ========================================= */

@media (max-width: 1024px) {
    /* Tablet Spacing Reduction */
    .insights-intro,
    .insights-featured,
    .insights-grid-section,
    .insights-topics-section,
    .insights-cta {
        padding: 80px 0;
    }

    .insights-featured-body {
        padding: 56px 40px;
    }

    .insights-featured-title {
        font-size: 1.75rem;
    }
    
    /* Keep 2 columns for grid as requested */
    .insights-article-grid {
        gap: 24px;
        margin-top: 48px;
    }

    .insights-card-content {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    /* Mobile Spacing & Layout */
    .insights-hero {
        height: auto;
        min-height: 50vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .insights-hero-title {
        font-size: 2.25rem;
    }

    .insights-featured-card {
        flex-direction: column;
    }

    .insights-featured-image-wrapper {
        flex: auto;
        width: 100%;
    }
    
    .insights-featured-image-wrapper .insights-image-placeholder {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .insights-featured-body {
        flex: auto;
        padding: 40px 24px;
    }

    .insights-article-grid {
        grid-template-columns: 1fr;
    }

    .insights-topic-flex {
        flex-direction: column;
        gap: 16px;
    }

    .insights-topic-pill {
        width: 100%;
    }

    .insights-btn-full {
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1024px) {
    .article-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Hide the 3rd related card on tablet to maintain grid symmetry */
    .article-related-card:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-hero {
        min-height: 50vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .article-title {
        font-size: 2.25rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-body-section {
        padding: 60px 0;
    }

    .article-content-wrapper {
        padding: 0 20px;
    }

    .article-prose p, 
    .article-prose li {
        font-size: 1.0625rem;
        line-height: 1.7;
    }

    .article-prose h2 {
        font-size: 1.75rem;
    }

    .article-pull-quote {
        padding: 1.5rem;
        font-size: 1.25rem;
        margin: 2.5rem 0;
    }

    .article-takeaways-grid {
        grid-template-columns: 1fr;
    }

    .article-related-section,
    .article-cta-section {
        padding: 80px 0;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-related-card:nth-child(3) {
        display: flex; /* Bring back 3rd card on mobile */
    }

    .article-related-content {
        padding: 2rem;
    }

    .article-cta-btn {
        width: 100%;
        display: block;
    }
    
    /* Responsive tables */
    .article-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .home-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Homepage Hero - Mobile
========================================= */

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
        align-items: center;
        
        /* Combines your specific gradient transparency with the portrait image */
        background: 
            linear-gradient(
                90deg, 
                rgba(8, 27, 58, 0.92) 0%, 
                rgba(8, 27, 58, 0.82) 40%, 
                rgba(8, 27, 58, 0.72) 70%, 
                rgba(8, 27, 58, 0.78) 100%
            ),
            url('../images/hero-home-mob.png') !important;
            
        background-size: cover !important;
        /* Shifts the focal point to the right */
        background-position: 70% center !important;
        background-repeat: no-repeat !important;
    }
    
    /* VERY IMPORTANT: Hide the separate overlay div on mobile so it doesn't double-darken the image */
    .hero-section .hero-background-overlay {
        display: none !important;
    }

    .hero-content {
        max-width: 100%;
        text-align:left;
    }

    .hero-heading {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.2;
    }

    .hero-subtext {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 220px;
    }
}

/* =========================================
   RESPONSIVE MODIFICATIONS FOR 404 page
   ========================================= */

@media (max-width: 768px) {
    .not-found-section {
        min-height: 70vh;
        padding-top: 100px;
    }
    
    .not-found-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .not-found-btn {
        width: 100%;
        justify-content: center;
    }
}