/*
Theme Name: SOI Premium Custom
Author: Teqshure
Description: High-end minimalist agency theme featuring native vanilla JS scroll animations, absolute DOM minimalism, and rapid PageSpeed optimizations.
Version: 1.0.0
Text Domain: soi-premium-custom
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #F2EBE2;       /* Warm luxury off-white */
    --text-primary: #000000;     /* Maximum contrast body */
    --heading-accent: #0B1F3A;   /* Midnight blue */
    --accent-silver: #C0C0C0;    /* Silver */
    
    /* Dual Theme Constants */
    --bg-dark: #0B1F3A;
    --text-light: #F2EBE2;
    --border-light: rgba(192, 192, 192, 0.4);
    --border-dark: rgba(242, 235, 226, 0.2);
    
    /* Typography */
    --font-headings: 'Cinzel', serif;
    --font-subheadings: 'Montserrat', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    
    /* Spacing & Borders */
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--heading-accent);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--accent-silver);
}

.center-title::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Subheadings */
.subheading {
    font-family: var(--font-subheadings);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--accent-silver);
    display: block;
    margin-bottom: 0.75rem;
}

.subheading.dark {
    color: var(--heading-accent);
}

/* Base Link */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Lists */
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ==========================================================================
   Sophisticated Gallery Split Layout (Museum Mat Framing & Badge Overlaps)
   ========================================================================== */
.gallery-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6rem;
    align-items: center; /* Avoids image vertical stretching */
}

.gallery-split.reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.gallery-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-text-card {
    padding: 4.5rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px rgba(11, 31, 58, 0.01);
    position: relative;
    z-index: 10;
}

.gallery-text-card.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--border-dark);
}

.gallery-text-card.dark-theme h2 {
    color: var(--text-light);
}

.gallery-text-card.dark-theme h2::after {
    background-color: var(--accent-silver);
}

.gallery-text-card.dark-theme p {
    color: rgba(242, 235, 226, 0.85);
}

.gallery-img-col {
    position: relative;
    z-index: 5;
}

.gallery-img-frame {
    background-color: #FFFFFF;
    padding: 2.2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.gallery-img-inner {
    aspect-ratio: 4/3; /* Fixed aspect ratio to prevent photo distortion */
    overflow: hidden;
    background-color: var(--bg-dark);
    position: relative;
}

.gallery-img-inner.vertical {
    aspect-ratio: 3/4;
}

.gallery-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

/* Overlapping strategic badge card */
.gallery-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    padding: 1.25rem;
    min-width: 170px;
    z-index: 15;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.gallery-split.reverse .gallery-img-badge {
    right: auto;
    left: -20px;
}

.gallery-img-badge-title {
    font-family: var(--font-subheadings);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-silver);
    display: block;
    margin-bottom: 0.25rem;
}

.gallery-img-badge-value {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
}

/* Interactive Hover States */
.gallery-img-col:hover .gallery-img-frame {
    transform: translateY(-5px);
    border-color: var(--accent-silver);
    box-shadow: 0 25px 55px rgba(11, 31, 58, 0.05);
}

.gallery-img-col:hover .gallery-img-inner img {
    transform: scale(1.03);
    opacity: 1;
}

.gallery-img-col:hover .gallery-img-badge {
    transform: scale(1.03) translate(-3px, -3px);
}

/* ==========================================================================
   Redesigned About Page Layouts
   ========================================================================== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    margin-bottom: 6rem;
    align-items: center;
}

.about-intro-statement {
    font-family: var(--font-headings);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--heading-accent);
    line-height: 1.45;
    font-weight: 400;
    border-left: 2px solid var(--accent-silver);
    padding-left: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 4rem 0 6rem 0;
}

.pillar-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    border-color: var(--heading-accent);
    box-shadow: 0 15px 40px rgba(11, 31, 58, 0.03);
    transform: translateY(-5px);
}

.pillar-icon-text {
    font-family: var(--font-headings);
    font-size: 2rem;
    color: var(--accent-silver);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.pillar-card:hover .pillar-icon-text {
    color: var(--heading-accent);
}

.pillar-card h3 {
    color: var(--heading-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pillar-card p {
    margin-bottom: 0;
    font-size: 1.05rem;
    color: #444444;
}

/* The Bridge Matrix Block (Global vs African alignment) */
.matrix-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 7rem 0;
    margin: 6rem 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.matrix-section h2 {
    color: var(--text-light);
}

.matrix-section h2::after {
    background-color: var(--accent-silver);
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3.5rem;
}
.matrix-grid > .acf-innerblocks-container,
.matrix-grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    width: 100%;
}
.matrix-grid:has(> .acf-innerblocks-container),
.matrix-grid:has(> .block-editor-inner-blocks) {
    display: block !important;
}

.matrix-card {
    background-color: rgba(242, 235, 226, 0.03);
    border: 1px solid var(--border-dark);
    padding: 3.5rem;
    height: 100%;
}

.matrix-card h3 {
    color: var(--text-light);
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.matrix-card ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    color: rgba(242, 235, 226, 0.85);
}

.matrix-card ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-silver);
}

/* Staggered Framework Flow */
.framework-timeline {
    margin-top: 4rem;
}

.framework-timeline-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-light);
}

.framework-timeline-row:last-child {
    border-bottom: none;
}

.framework-number {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-silver);
    line-height: 1;
}

.framework-timeline-row:hover .framework-number {
    color: var(--heading-accent);
}

.framework-content h3 {
    margin-bottom: 1rem;
    color: var(--heading-accent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* Image wrapper helper for premium hover */
.img-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background-color: var(--bg-dark);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.img-wrapper:hover img {
    transform: scale(1.03);
    opacity: 1;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Background Preset Utilities */
.soi-block-bg--midnight {
    background-color: #00001A !important;
    color: #F2EBE2 !important;
}
.soi-block-bg--midnight h1,
.soi-block-bg--midnight h2,
.soi-block-bg--midnight h3,
.soi-block-bg--midnight h4,
.soi-block-bg--midnight h5,
.soi-block-bg--midnight h6 {
    color: #F2EBE2 !important;
}
.soi-block-bg--midnight h2::after {
    background-color: var(--accent-silver) !important;
}

.soi-block-bg--sand {
    background-color: #F2EBE2 !important;
    color: #000000 !important;
}
.soi-block-bg--sand h1,
.soi-block-bg--sand h2,
.soi-block-bg--sand h3,
.soi-block-bg--sand h4,
.soi-block-bg--sand h5,
.soi-block-bg--sand h6 {
    color: #0B1F3A !important;
}
.soi-block-bg--sand h2::after {
    background-color: var(--accent-silver) !important;
}

.soi-block-bg--white {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}
.soi-block-bg--white h1,
.soi-block-bg--white h2,
.soi-block-bg--white h3,
.soi-block-bg--white h4,
.soi-block-bg--white h5,
.soi-block-bg--white h6 {
    color: #0B1F3A !important;
}
.soi-block-bg--white h2::after {
    background-color: var(--accent-silver) !important;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    font-family: var(--font-subheadings);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.1rem 2.2rem;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--heading-accent);
    color: var(--text-light);
    border-color: var(--heading-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--heading-accent);
    border-color: var(--heading-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--heading-accent);
    color: var(--text-light);
    border-color: var(--heading-accent);
}

/* Light button variants for dark background blocks */
.btn-primary-light {
    background-color: var(--bg-primary);
    color: var(--bg-dark);
    border-color: var(--bg-primary);
}

.btn-primary-light:hover {
    background-color: transparent;
    color: var(--bg-primary);
    border-color: var(--bg-primary);
}

.btn-secondary-light {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary-light:hover {
    background-color: var(--bg-primary);
    color: var(--bg-dark);
    border-color: var(--bg-primary);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Gutenberg Core Button Styles Integration */
.wp-block-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.wp-block-button {
    display: inline-block;
}

.wp-block-button__link {
    font-family: var(--font-subheadings);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.1rem 2.2rem !important;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent !important;
    border-radius: 0px !important;
    text-decoration: none;
    line-height: 1.25;
}

/* 1. Default (Fill) Styles */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--heading-accent) !important;
    color: var(--text-light) !important;
    border-color: var(--heading-accent) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: transparent !important;
    color: var(--heading-accent) !important;
    border-color: var(--heading-accent) !important;
}

/* 2. Outline Styles */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--text-primary) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--heading-accent) !important;
    color: var(--text-light) !important;
    border-color: var(--heading-accent) !important;
}

/* 3. Contrast Overrides inside Dark Sections */
.soi-block-bg--midnight .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--bg-primary) !important;
    color: var(--bg-dark) !important;
    border-color: var(--bg-primary) !important;
}

.soi-block-bg--midnight .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: transparent !important;
    color: var(--bg-primary) !important;
    border-color: var(--bg-primary) !important;
}

.soi-block-bg--midnight .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--text-light) !important;
    border: 1px solid var(--text-light) !important;
}

.soi-block-bg--midnight .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--bg-primary) !important;
    color: var(--bg-dark) !important;
    border-color: var(--bg-primary) !important;
}

/* 4. Mobile Responsiveness */
@media (max-width: 767px) {
    .soi-hero .wp-block-buttons,
    .soi-cta-massive .wp-block-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .soi-hero .wp-block-button,
    .soi-cta-massive .wp-block-button {
        width: 100%;
    }
    .soi-hero .wp-block-button__link,
    .soi-cta-massive .wp-block-button__link {
        width: 100% !important;
        text-align: center;
    }
}

/* ==========================================================================
   5. NAVIGATION HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(242, 235, 226, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.3);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(242, 235, 226, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
    height: 65px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.15em;
    color: var(--heading-accent);
}

.logo-sub {
    font-family: var(--font-subheadings);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-top: 0.15rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-menu li {
    display: flex;
    align-items: center;
}


.nav-link {
    font-family: var(--font-subheadings);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--heading-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--heading-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--heading-accent);
    font-weight: 600;
}

/* Nav Bar CTA Button */
.nav-btn-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

a.nav-btn {
    font-family: var(--font-subheadings);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.65rem 1.4rem;
    background-color: var(--heading-accent) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--heading-accent) !important;
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
    text-decoration: none !important;
}

a.nav-btn:hover {
    background-color: transparent !important;
    color: var(--heading-accent) !important;
    border-color: var(--heading-accent) !important;
    text-decoration: none !important;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--heading-accent);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    height: 95vh;
    min-height: 600px;
    position: relative;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(11, 31, 58, 0.9) 0%,
        rgba(11, 31, 58, 0.7) 50%,
        rgba(11, 31, 58, 0.9) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin-top: 50px;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-family: var(--font-body);
    font-style: italic;
    color: rgba(242, 235, 226, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    border-left: 2px solid var(--accent-silver);
    padding-left: 1.5rem;
    line-height: 1.5;
}

/* ==========================================================================
   Page Hero Banner (for About, Services, Blog, Contact, and future pages)
   ========================================================================== */
.page-hero {
    height: 45vh;
    min-height: 350px;
    position: relative;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: 80px; /* Accounts for the fixed header */
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.35;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(11, 31, 58, 0.9) 0%,
        rgba(11, 31, 58, 0.75) 100%
    );
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.page-hero h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.page-hero .subheading {
    color: var(--accent-silver);
}

/* ==========================================================================
   7. SECTIONS & LAYOUT BLOCKS (HOME)
   ========================================================================== */

/* Positioning Intro */
.positioning-intro .grid-2 {
    gap: 6rem;
}

.positioning-text {
    font-size: 1.4rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--heading-accent);
}

.positioning-intro h2::after {
    background-color: var(--heading-accent);
}

/* Problem Context */
.problem-context {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.problem-context h2 {
    color: var(--text-light);
}

.problem-context h2::after {
    background-color: var(--accent-silver);
}

.problem-context p {
    color: rgba(242, 235, 226, 0.85);
}

/* What We Do */
.cards-container {
    margin-top: 3.5rem;
}

.service-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--heading-accent);
    box-shadow: 0 15px 40px rgba(11, 31, 58, 0.06);
    transform: translateY(-5px);
}

.service-card-num {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    color: var(--accent-silver);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.service-card:hover .service-card-num {
    color: var(--heading-accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--heading-accent);
}

.service-card p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #333333;
}

/* How It Works (Timeline / Steps) */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: var(--accent-silver);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--heading-accent);
    border: 4px solid var(--bg-primary);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -8px;
}

.timeline-step {
    font-family: var(--font-subheadings);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-silver);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item h3 {
    color: var(--heading-accent);
    margin-bottom: 0.75rem;
}

.timeline-item p {
    color: #444444;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Closing Statement */
.closing-statement {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.closing-quote {
    font-family: var(--font-headings);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    color: var(--heading-accent);
    text-align: center;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Final CTA Section */
.final-cta {
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 31, 58, 0.95), rgba(11, 31, 58, 0.85));
    z-index: 2;
}

.final-cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.final-cta h2::after {
    background-color: var(--accent-silver);
    left: 50%;
    transform: translateX(-50%);
}

.final-cta p {
    color: rgba(242, 235, 226, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.3rem;
}

.final-cta .btn-group {
    justify-content: center;
}

/* ==========================================================================
   8. ABOUT PAGE
   ========================================================================== */

.about-content-wrapper {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-content-wrapper p {
    margin-bottom: 2rem;
    color: #222;
}

.about-content-wrapper p:first-of-type {
    font-size: 1.4rem;
    color: var(--heading-accent);
    line-height: 1.7;
}

.about-quote-block {
    margin: 3rem 0;
    padding: 2.5rem;
    border-left: 2px solid var(--heading-accent);
    background-color: rgba(11, 31, 58, 0.03);
}

.about-quote-block p {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--heading-accent);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.about-quote-block cite {
    font-family: var(--font-subheadings);
    font-size: 0.75rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-silver);
}

.about-framework {
    margin: 4rem 0;
    background: #FFF;
    border: 1px solid var(--border-light);
    padding: 3rem;
}

.about-framework h3 {
    color: var(--heading-accent);
    margin-bottom: 1.5rem;
}

.about-framework ul {
    margin-top: 1.5rem;
}

.about-framework li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.about-framework li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-silver);
    font-weight: bold;
}

.about-framework li strong {
    font-family: var(--font-subheadings);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--heading-accent);
    display: inline-block;
    margin-right: 0.5rem;
}

/* ==========================================================================
   9. SERVICES PAGE
   ========================================================================== */

.services-list-section {
    padding: 4rem 0;
}

.service-row {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row.alt .grid-2 {
    /* Alternate structure accomplished by changing flex/grid flow */
}

.service-desc-col h3 {
    margin-bottom: 1.5rem;
}

.service-desc-col p {
    color: #333;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.service-bullets {
    margin-bottom: 2.5rem;
}

.service-bullets li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--heading-accent);
}

.service-img-col .img-wrapper {
    aspect-ratio: 4/3;
}

/* ==========================================================================
   10. BLOG PAGE
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.blog-card {
    background-color: #FFF;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    border-color: var(--heading-accent);
    box-shadow: 0 15px 40px rgba(11, 31, 58, 0.05);
    transform: translateY(-5px);
}

.blog-card-img-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-family: var(--font-subheadings);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-silver);
    margin-bottom: 0.75rem;
    display: block;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--heading-accent);
    line-height: 1.35;
}

.blog-card p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    font-family: var(--font-subheadings);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--heading-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-more::after {
    content: "→";
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-read-more::after {
    transform: translateX(5px);
}

/* ==========================================================================
   11. CONTACT PAGE
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info-col h3 {
    margin-bottom: 1.5rem;
}

.contact-steps {
    margin-top: 2.5rem;
}

.contact-step-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
}

.contact-step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--accent-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--heading-accent);
}

.contact-step-item h4 {
    font-family: var(--font-subheadings);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--heading-accent);
    margin-bottom: 0.5rem;
}

.contact-step-item p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0;
}

/* Form Styles */
.contact-form-card {
    background-color: #FFF;
    border: 1px solid var(--border-light);
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.02);
}

.contact-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.contact-form-group label {
    font-family: var(--font-subheadings);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--heading-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid transparent;
    padding: 1.1rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--heading-accent);
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(11, 31, 58, 0.05);
}

textarea.contact-form-input {
    min-height: 150px;
    resize: vertical;
}

/* Form Submit State styling */
.form-message {
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-subheadings);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 3rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    max-width: 250px !important;
    height: auto !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s ease !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
}

.footer-logo:hover {
    opacity: 1 !important;
}

.footer-desc {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(242, 235, 226, 0.75);
    max-width: 380px;
}

.footer-title {
    font-family: var(--font-subheadings);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-silver);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(242, 235, 226, 0.75);
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-contact-info p {
    color: rgba(242, 235, 226, 0.75);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-subheadings);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-silver);
}

/* ==========================================================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Tablets & Small Desktops (992px) */
@media screen and (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-split,
    .gallery-split.reverse,
    .about-intro-grid,
    .matrix-grid,
    .matrix-grid > .acf-innerblocks-container,
    .matrix-grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
        grid-template-columns: 1fr !important;
        gap: 3.5rem !important;
    }

    .gallery-text-card {
        padding: 3rem;
    }

    .gallery-img-badge {
        position: static;
        margin-top: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .about-intro-statement {
        padding-left: 1.5rem;
    }

    .framework-timeline-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-badge {
        left: 12px !important;
        right: auto !important;
    }
    
    .service-row.alt .grid-2 {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

/* Small Tablets & Mobile Devices (768px) */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateY(-150%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        border-top: 1px solid var(--border-light);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.1rem;
    }

    .nav-btn-wrapper {
        margin-left: 0;
        margin-top: 1rem;
        width: 80%;
        max-width: 300px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .gallery-text-card {
        padding: 2.2rem 1.5rem;
    }

    .gallery-img-frame {
        padding: 1rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .matrix-card {
        padding: 2.5rem 1.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
}

/* Extra Small Devices (480px) */
@media screen and (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.5rem;
    }
    
    .about-framework {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   BLOCK EDITOR BACKEND OVERRIDES (Gutenberg Full Width & Canvas alignment)
   ========================================================================== */
.editor-styles-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.editor-styles-wrapper .block-editor-block-list__layout {
    max-width: 100% !important;
    width: 100% !important;
}
.editor-styles-wrapper .wp-block {
    max-width: 100% !important;
}
.editor-styles-wrapper .wp-block-post-content {
    max-width: 100% !important;
}
/* Ensure Gutenberg alignment controls work inside the editor */
.editor-styles-wrapper .wp-block[data-align="full"] {
    max-width: 100% !important;
}
.editor-styles-wrapper .wp-block[data-align="wide"] {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Glassy Content Split overrides on Midnight Background */
.soi-content-split.soi-block-bg--midnight .soi-content-split__card,
.soi-content-split.soi-block-contrast--light .soi-content-split__card,
.soi-content-split.soi-block-bg--midnight .soi-content-split__text-col .soi-content-split__card,
.soi-content-split.soi-block-contrast--light .soi-content-split__text-col .soi-content-split__card {
  background-color: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.soi-content-split.soi-block-bg--midnight .soi-content-split__title,
.soi-content-split.soi-block-contrast--light .soi-content-split__title {
  color: #FFFFFF !important;
}

.soi-content-split.soi-block-bg--midnight .soi-content-split__title::after,
.soi-content-split.soi-block-contrast--light .soi-content-split__title::after {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.soi-content-split.soi-block-bg--midnight .soi-content-split__body,
.soi-content-split.soi-block-contrast--light .soi-content-split__body {
  color: rgba(255, 255, 255, 0.8) !important;
}

.soi-content-split.soi-block-bg--midnight .soi-content-split__subheading,
.soi-content-split.soi-block-contrast--light .soi-content-split__subheading {
  color: rgba(255, 255, 255, 0.5) !important;
}

.soi-content-split.soi-block-bg--midnight .soi-content-split__frame,
.soi-content-split.soi-block-contrast--light .soi-content-split__frame {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile Hero Banner layout adjustments */
@media (max-width: 767px) {
  .soi-hero {
    height: auto !important;
    min-height: auto !important;
    padding: 120px 1.5rem 80px 1.5rem !important;
    display: block !important;
  }
  .soi-hero__content {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }
  .soi-hero__btn-group {
    flex-direction: column !important;
    width: 100% !important;
  }
  .soi-hero__btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Glassy CTA Massive alignment overrides */
.soi-cta-massive__btn-group {
  display: flex !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  margin-top: 3rem !important;
}
.soi-cta-massive__btn-group .wp-block-button {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .soi-cta-massive__btn-group {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 1rem !important;
  }
  .soi-cta-massive__btn-group .wp-block-button,
  .soi-cta-massive__btn-group .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Glassy Timeline dark/midnight style overrides */
.soi-timeline.soi-block-bg--midnight,
.soi-timeline.soi-block-contrast--light {
  background-color: #00001A !important;
  color: #F2EBE2 !important;
}
.soi-timeline.soi-block-bg--midnight .soi-timeline__step-title,
.soi-timeline.soi-block-contrast--light .soi-timeline__step-title {
  color: #F2EBE2 !important;
}
.soi-timeline.soi-block-bg--midnight .soi-timeline__step-desc,
.soi-timeline.soi-block-contrast--light .soi-timeline__step-desc {
  color: rgba(242, 235, 226, 0.85) !important;
}
.soi-timeline.soi-block-bg--midnight .soi-timeline__row,
.soi-timeline.soi-block-contrast--light .soi-timeline__row {
  border-bottom-color: rgba(242, 235, 226, 0.15) !important;
}

/* Glassy Page Header overrides when there is a background image */
.soi-page-header--has-bg {
  position: relative;
  background-color: #00001A !important;
  color: #F2EBE2 !important;
  padding: clamp(8rem, 12vw, 12rem) 0 clamp(6rem, 10vw, 8rem) 0 !important;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.soi-page-header--has-bg .soi-page-header__title {
  color: #F2EBE2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}
.soi-page-header--has-bg .soi-page-header__container {
  position: relative;
  z-index: 5;
}
.soi-page-header--has-bg p {
  color: rgba(242, 235, 226, 0.9) !important;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem) !important;
  max-width: 700px;
  margin: 1rem auto 0 auto !important;
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
}
.soi-page-header--has-bg .wp-block-buttons {
  display: flex !important;
  justify-content: center !important;
  margin-top: 2rem !important;
}
.soi-page-header--has-bg .wp-block-buttons .wp-block-button__link {
  border-color: #F2EBE2 !important;
  color: #F2EBE2 !important;
}
.soi-page-header--has-bg .wp-block-buttons .wp-block-button__link:hover {
  background-color: #F2EBE2 !important;
  color: #00001A !important;
}
.soi-page-header__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1;
}
.soi-page-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
}

/* Contact Form 7 premium overrides */
.soi-contact-split__form-group .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}
.wpcf7-not-valid-tip {
  color: #D32F2F !important;
  font-size: 0.8rem !important;
  font-family: "Montserrat", sans-serif !important;
  margin-top: 0.5rem !important;
  display: block !important;
}
.wpcf7-response-output {
  margin: 1.5rem 0 0 0 !important;
  padding: 1.25rem !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid transparent !important;
}
.wpcf7-mail-sent-ok {
  background-color: rgba(11, 31, 58, 0.03) !important;
  border-color: #0B1F3A !important;
  color: #0B1F3A !important;
}
.wpcf7-validation-errors, 
.wpcf7-acceptance-missing,
.wpcf7-aborted,
.wpcf7-spam-blocked {
  background-color: rgba(211, 47, 47, 0.03) !important;
  border-color: #D32F2F !important;
  color: #D32F2F !important;
}
.wpcf7-spinner {
  margin: 0 0 0 10px !important;
  vertical-align: middle !important;
}

/* Header logo icon styling */
.logo {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
}
.logo-icon {
  height: 42px !important;
  width: auto !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.logo:hover .logo-icon {
  transform: rotate(360deg);
}
.logo-text-wrap {
  display: flex !important;
  flex-direction: column !important;
}
.logo-sub {
  margin-top: 0 !important;
}

/* Premium Page Preloader styles */
.preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: #F2EBE2 !important; /* Sand background */
  z-index: 999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.6s !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.preloader-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2rem !important;
  text-align: center !important;
}
.preloader-logo {
  max-width: 280px !important;
  height: auto !important;
  animation: preloaderPulse 2.4s ease-in-out infinite !important;
}
.preloader-spinner {
  width: 40px !important;
  height: 1px !important;
  background-color: rgba(0, 0, 26, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}
.preloader-spinner::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background-color: #00001A !important; /* Midnight blue loader */
  animation: preloaderLine 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) infinite !important;
}
@keyframes preloaderPulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}
@keyframes preloaderLine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Nav Button final specificity overrides */
.nav-menu a.nav-btn,
a.nav-btn {
  color: #F2EBE2 !important; /* Sand text color */
  background-color: #00001A !important; /* Midnight background */
  border-color: #00001A !important;
  text-decoration: none !important;
}

.nav-menu a.nav-btn:hover,
a.nav-btn:hover {
  color: #00001A !important; /* Midnight text on hover */
  background-color: transparent !important;
  border-color: #00001A !important;
  text-decoration: none !important;
}

/* Footer inverted logo overrides */
.footer-logo {
  max-width: 250px !important;
  height: auto !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.85 !important;
  transition: opacity 0.3s ease !important;
  display: block !important;
  margin-bottom: 1.5rem !important;
}
.footer-logo:hover {
  opacity: 1 !important;
}









