/*
Theme Name:     Hello Elementor Child
Theme URI:      https://4directionsmedia.com/
Description:    A child theme for the Hello Elementor theme.
Author:         Your Name
Author URI:     https://4directionsmedia.com/
Template:       hello-elementor
Version:        1.0.0
Text Domain:    hello-elementor-child
*/

/* ========================
   LOCAL FONTS (@font-face)
======================== */

/* --- Open Sans (Body Text) --- */
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/Open_Sans/static/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/Open_Sans/static/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Poppins (Headings) --- */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body.menu-open { overflow: hidden; }

/* ========================
   VARIABLES & RESET
======================== */
:root {
    --primary-blue: #00205B;
    --primary-red: #8B0000; /* Deep Red */
    --primary-red-hover: #600000;
    --text-dark: #222222;
    --text-gray: #555555;
    --text-light: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --section-spacing: 100px; /* Increased spacing for modern feel */
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7; /* Increased for readability */
    background-color: #fdfdfd;
}

/* Typography Scale */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800; /* Extra bold */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

h1 {
    /* Clamps font size: Min 40px, Preferred 5vw, Max 65px */
    font-size: clamp(40px, 5vw, 50px); 
    color: #fff; /* H1 is usually on blue bg */
}

h2 {
    font-size: clamp(36px, 4vw, 50px);
}

h3 { font-size: 1.75rem; font-weight: 700; }
p { margin-bottom: 1.5rem; color: var(--text-gray); font-size: 1.1rem;}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utility Classes */
.container {
    max-width: 1300px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 25px;
}

.section { padding: var(--section-spacing) 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px; /* Slight roundness */
}

.btn-red {
    background-color: var(--primary-red);
    color: #fff;
    border: 2px solid var(--primary-red);
}
.btn-red:hover { 
    background-color: var(--primary-red-hover); 
    border-color: var(--primary-red-hover);
}

.btn-white-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}
.btn-white-outline:hover { 
    background: #fff; 
    color: var(--primary-blue); 
}


/* ========================
   HEADER
======================== */
.header {
    background: #fff;
    padding: 20px 0;
    position: sticky; /* Modern sticky header */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 30px; }

.main-nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.main-nav ul li a:hover { color: var(--primary-red); }


/* ========================
   HERO SECTION
======================== */
.hero-section {
    display: flex;
    min-height: 90vh; /* Taller hero */
    overflow: hidden;
}

.hero-split { flex: 1; position: relative; background-position: center; }

.hero-left {
    background-color: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    background-image: url(images/blue-pattern.png);
    background-position: center;
}

.hero-content { max-width: 600px; position: relative; padding: 40px; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.2rem; }

/* ========================
   HERO SECTION CORNER ACCENTS
======================== */
.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    
    /* This color overlay creates the "lighter blue" effect */
    background-color: rgba(255, 255, 255, 0.15); 
    
    /* CSS Masking to shape the color */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    
    /* Ensure no borders or old styles remain */
    border: none;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover Effect: Brighten slightly */
.hero-content:hover .corner-accent {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Specific Image Mappings */
.top-left {
    top: -20px; 
    left: -20px;
    -webkit-mask-image: url('images/upper-left.png');
    mask-image: url('images/upper-left.png');
}

.top-right {
    top: -20px; 
    right: -20px;
    -webkit-mask-image: url('images/upper-right.png');
    mask-image: url('images/upper-right.png');
}

.bottom-left {
    bottom: -20px; 
    left: -20px;
    -webkit-mask-image: url('images/lower-left.png');
    mask-image: url('images/lower-left.png');
}

.bottom-right {
    bottom: -20px; 
    right: -20px;
    -webkit-mask-image: url('images/lower-right.png');
    mask-image: url('images/lower-right.png');
}

/* ========================
   HEADER & NAVIGATION
======================== */
.header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Menu (Desktop Default) */
.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; gap: 30px; align-items: center; }

.nav-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}
.nav-link:hover { color: var(--primary-red); }

/* Buttons inside Nav */
.mobile-cta { display: none; } /* Hidden on Desktop */
.desktop-cta { display: inline-block; }

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-blue);
    transition: all 0.3s ease-in-out;
}

/* ========================
   MOBILE NAV STYLES (Full Screen)
======================== */
@media (max-width: 900px) {
    /* 1. Hamburger Icon */
    .hamburger {
        display: block; 
        z-index: 2000; /* Ensure it sits on top of the full-screen menu */
        margin-left: auto; /* Force it to the right if flex spacing fails */
    }
    
    /* Hamburger Animation to 'X' */
    .hamburger.active .bar { background-color: var(--primary-red); } /* Optional: Change color when active */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* 2. Full Screen Menu Container */
    .nav-menu {
        position: fixed;
        left: 100%; /* Start off-screen to the right */
        top: 0;
        width: 100%;
        height: 100vh; /* Full Viewport Height */
        background-color: #fff;
        flex-direction: column;
        justify-content: center; /* Center links vertically */
        align-items: center;     /* Center links horizontally */
        gap: 30px; /* Space between links */
        transition: 0.4s ease-in-out;
        z-index: 1500; /* Sit above everything else */
    }

    /* Slide in from right */
    .nav-menu.active { 
        left: 0; 
    }

    /* 3. Link Styling for Full Screen */
    .nav-menu li { 
        margin: 0; 
        opacity: 0; /* Hide initially for stagger effect */
        transform: translateY(20px);
        transition: 0.3s;
    }

    /* Animate links appearing when menu is open */
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
    /* Stagger the delay slightly for each item */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.5s; }

    .nav-link {
        font-size: 1.5rem; /* Larger font for mobile focus */
        font-weight: 800;
        color: var(--primary-blue);
    }

    /* Show CTA inside menu */
    .mobile-cta { display: block; margin-top: 20px; }
    .desktop-cta { display: none; }
    
    /* Lock body scroll when menu is open (Optional - requires JS update) */
    body.menu-open { overflow: hidden; }
}


/* ========================
   UPDATED FOOTER STYLES
======================== */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-group {
    background: rgba(255, 255, 255, 0.05); /* Very subtle box */
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-red); /* Branding accent */
}

.group-label {
    color: #bbb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    display: inline-block;
}

.c-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 0.95rem;
}
.c-item:last-child { margin-bottom: 0; }

.c-item i {
    color: var(--primary-red);
    margin-top: 5px; /* Align icon with first line of text */
    min-width: 20px;
    text-align: center;
}

/* Phone Stack */
.phone-stack {
    display: flex;
    flex-direction: column;
}
.phone-stack a:hover { color: var(--primary-red); text-decoration: none; }

/* Email Links */
.email-link {
    padding: 8px;
    border-radius: 4px;
    transition: 0.2s;
    background: rgba(255,255,255,0.02);
}
.email-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}
.email-link span { word-break: break-all; font-size: 0.9rem; }


/* ========================
   APPROACH & WHY CHOOSE
======================== */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-container.reverse { direction: rtl; }
.split-container.reverse > * { direction: ltr; }

/* SUBTITLE WITH IMAGE BACKGROUND */
.sub-title {
    display: inline-block; /* Changed to inline-block to wrap text */
    position: relative;
    color: var(--primary-red) !important;
    font-size: 1rem; /* Slightly larger font */
    font-weight: 800; /* Extra bold */
    margin-bottom: 30px; /* Increased space below */
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 30px; /* Added padding to give the text room */
    z-index: 1; /* Ensure text is on top */
}

/* The graphic behind the text */
.sub-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the graphic */
    width: 100%;
    height: 100%;
    /* Ensure the graphic has a minimum size so it's visible */
    min-width: 160px; 
    min-height: 70px;
    background-image: url('/images/nez-arrow.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Keeps the whole graphic visible */
    z-index: -1; /* Place it behind the text */
}


/* Image Collage Placeholder Styling */
.image-block { position: relative; }
.image-block img { border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.collage .img-main { width: 90%; }
.collage .img-overlay {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 50%;
    border: 5px solid #fff;
}


/* ========================
   SERVICES GRID
======================== */
.services-preview { background-color: #f8f9fa; }

.section-header { margin-bottom: 60px; }
.divider-center { 
    width: 60px; height: 4px; background: var(--primary-red); margin: 0 auto; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider min-width for text */
    gap: 30px;
}

.service-card {
    height: 450px; /* Increased height to fit text comfortably */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* Removed cursor: pointer since they are not links anymore */
    cursor: default; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card .overlay {
    position: absolute;
    inset: 0;
    /* Made the overlay slightly darker so the text is easy to read */
    background: linear-gradient(to top, rgba(0,32,91,0.95), rgba(0,32,91,0.4));
    transition: 0.3s;
}

/* Optional: Darken slightly more on hover for focus */
.service-card:hover .overlay {
    background: linear-gradient(to top, rgba(0,32,91,1), rgba(0,32,91,0.6));
}

.card-content {
    position: absolute;
    bottom: 0;
    padding: 30px;
    width: 100%;
    z-index: 2;
    color: #fff;
    /* Align content to bottom, but push up slightly */
    transform: translateY(0); 
}

/* Icon Styles */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.icon-wrapper i {
    color: #fff;
    font-size: 1.2rem;
}

.service-card h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0; /* Remove default margin */
}


/* ========================
   FINAL FOOTER STYLES
======================== */

/* 1. CTA Image Section */
.footer-cta-image {
    position: relative;
    background-size: cover;
    background-position: center;
    /* Adjust height as needed */
    padding: 120px 0; 
    color: #fff;
    text-align: center;
}

/* Optional overlay if text is hard to read */
.footer-cta-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.cta-content { position: relative; z-index: 2; }
.cta-content h2 { 
    color: #fff; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    margin-bottom: 25px;
}

/* 2. Main Info (Dark Navy) */
.footer-main-info {
    background-color: #0d1b45; /* Dark Navy */
    color: #fff;
    padding: 60px 0;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
}

/* Brand Column */
.logo-box {
    background: #fff;
    padding: 10px;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid #ccc;
}
.logo-box img {
    height: 50px; /* Adjust based on logo aspect ratio */
    width: auto;
    display: block;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.contact-row.align-top { align-items: flex-start; }
.contact-row i { color: #fff; min-width: 20px; text-align: center; }

/* Navigation & Resources Headers */
.f-col-nav h4, .f-col-resources h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Nav List */
.f-col-nav ul li { margin-bottom: 8px; }
.f-col-nav ul li a { color: #fff; opacity: 0.9; font-size: 0.95rem; }
.f-col-nav ul li a:hover { text-decoration: underline; opacity: 1; }

/* Resources Text */
.resource-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #fff;
}

.small {
    font-size: 12px;
    color: #fff;
}

/* Social Circles */
.social-row { display: flex; gap: 10px; }
.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #1f3a75; /* Lighter blue circle */
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 0.9rem;
}
.social-circle:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

/* 3. Email Strip (Medium Navy) */
.footer-email-strip {
    background-color: #162a63; /* Medium Blue/Navy */
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.email-flex {
    display: flex;
    justify-content: space-between; /* Spreads them evenly */
    align-items: center;
    flex-wrap: wrap;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.email-item a { color: #fff; font-size: 0.95rem; }
.email-item a:hover { text-decoration: underline; }

.divider-vertical {
    width: 1px;
    height: 40px;
    background-color: #fff;
    opacity: 0.3;
}

/* 4. Copyright Bar (Darkest Navy) */
.footer-copyright {
    background-color: #070f26; /* Almost Black/Navy */
    color: rgba(255,255,255,0.6);
    padding: 20px 0;
    font-size: 0.8rem;
}

footer h4 {
    color: #fff;
}

/* Update this block in your style.css */
.sub-title::before {
    /* ... other styles ... */
    /* Assuming images folder is in the same directory as style.css */
    background-image: url('images/nez-arrow.jpg'); 
}

/* ========================
   ABOUT PAGE STYLES
======================== */

/* Page Hero (Simpler than Home) */
.page-hero {
    position: relative;
    height: 350px; /* Shorter height */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.page-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 91, 0.7); /* Blue overlay */
}
.hero-container { position: relative; z-index: 2; text-align: center; }

/* Red Identity Bar */
.identity-bar {
    background-color: var(--primary-red);
    color: #fff;
    padding: 25px 0;
}
.identity-bar h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

/* ========================
   FOUNDERS SECTION UPDATES
======================== */
.founders-section { background-color: #f9f9f9; }

/* Founders Section (Reverted to Original Layout) */
.founders-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center; /* Center vertically again */
}

/* Ensure no flex column layout here */
.founders-img-col {
    display: block; 
}

/* Photo Frame Effect */
.photo-frame {
    position: relative;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: 0.3s;
}
.photo-frame:hover,.secondary-frame:nth-child(even):hover { transform: rotate(0deg); z-index: 10; }

.photo-frame img { width: 100%; height: auto; display: block; }

/* Secondary Frames (The new images) */
.secondary-frame {
    transform: rotate(-1deg); /* Slight opposite tilt for variety */
    width: 90%; /* Make them slightly smaller/varied width */
    margin: 0 auto;
}
.secondary-frame:nth-child(even) { transform: rotate(1deg); }

.caption-box {
    background-color: var(--primary-red);
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: -30px; 
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .tab-link { width: 100%; margin-bottom: 10px; }
    .founders-layout { grid-template-columns: 1fr; }
    .founders-img-col { margin: 0 auto 40px auto; max-width: 350px; }
}

/* Photo Frame Effect */
.photo-frame {
    position: relative;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: rotate(-2deg); /* Artistic tilt */
    transition: 0.3s;
}
.photo-frame:hover { transform: rotate(0deg); }

.photo-frame img { width: 100%; height: auto; display: block; }

.caption-box {
    background-color: var(--primary-red);
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: -30px; /* Pull it up over the image slightly */
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.caption-box h4 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.3;
}
.caption-box span { font-size: 0.8rem; opacity: 0.9; text-transform: uppercase; }

/* Bio Text */
.founders-text-col h2 { margin-bottom: 30px; }
.bio-content p { margin-bottom: 20px; font-size: 1.05rem; }

/* ========================
   MVV SIDE-BY-SIDE SECTION
======================== */
.mvv-section { 
    background-color: #fff; 
    padding: 80px 0;
}

.mvv-layout {
    display: grid;
    /* 1. Change to equal columns so the split is exactly in the center */
    grid-template-columns: 1fr 1fr; 
    /* 2. Remove grid gap so the tracks meet in the middle */
    gap: 0; 
    align-items: flex-start;
}

/* Left Column Styling */
.mvv-left-col {
    /* 3. Add padding here to create visual separation instead of gap */
    padding-right: 50px; 
}

.mvv-left-col h2 {
    font-size: 3rem; 
    line-height: 1.1;
    margin-top: 10px;
}
.mvv-left-col .sub-title {
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
}

/* Right Column Styling */
.mvv-right-col {
    /* 4. Add padding here so the content starts slightly inside the line, 
          OR remove this padding if you want it to touch the line exactly. 
          Based on the screenshot, a small buffer matches the visual better. */
    padding-left: 50px; 
}

/* Tabs */
.mvv-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-link {
    background-color: #F2F2F2; 
    color: var(--primary-blue);
    border: none;
    padding: 12px 0; /* Vertical padding only */
    width: 100%; /* Equal width buttons */
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background-color: #e0e0e0;
}

/* Active State (Deep Red) */
.tab-link.active {
    background-color: var(--primary-red);
    color: #fff;
}

/* Tab Content */
.mvv-content-wrapper {
    min-height: 120px;
}
.tab-content {
    display: none; 
    animation: fadeIn 0.5s;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================
   FOUNDERS SECTION (Restored)
======================== */
.founders-section { background-color: #f9f9f9; }

.founders-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: flex-start;
}

.founders-img-col {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the stacked images */
}

.caption-box {
    background-color: var(--primary-red);
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: -30px; 
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .mvv-layout { grid-template-columns: 1fr; gap: 40px; }
    .founders-layout { grid-template-columns: 1fr; }
    .founders-img-col { margin: 0 auto 40px auto; max-width: 350px; }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .mvv-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .founders-layout { grid-template-columns: 1fr; text-align: center; }
    .founders-img-col { margin: 0 auto 40px auto; max-width: 300px; }
    .photo-frame { transform: rotate(0); }
}

/* ========================
   SERVICES PAGE STYLES
======================== */
.services-page-section {
    background-color: #fff;
    padding: 80px 0;
}

.services-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    align-items: start;
}

/* Card Container */
.service-item-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Gap between Image and Text Row */
}

/* 1. Top Image Styling */
.svc-top-image img {
    width: 100%;
    height: 220px; /* Uniform height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.no-img-placeholder {
    width: 100%; height: 220px; background: #eee; border-radius: 12px;
}

/* 2. Content Row (Icon Left, Text Right) */
.svc-content-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Red Icon Circle */
.svc-icon-col {
    flex-shrink: 0;
}
.svc-icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
    
    /* Font Settings for Dashicons */
    color: #fff;
    font-size: 26px; /* Adjust icon size here */
    line-height: 1;
}

/* Ensure the <i> tag inherits correctly */
.svc-icon-circle i {
    color: inherit;
    font-size: inherit;
    width: auto;
    height: auto;
    line-height: inherit;
}

/* Text Column */
.svc-text-col {
    flex-grow: 1;
}

.svc-text-col h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    color: #000;
    margin-bottom: 12px;
    font-weight: 800;
}

.svc-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.svc-desc p { margin-bottom: 10px; }
.svc-desc p:last-child { margin-bottom: 0; }

/* ========================
   DASHICON FIX
======================== */
.svc-icon-circle i {
    /* Force the correct font family for Dashicons */
    font-family: "dashicons" !important;
    
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    
    /* Ensure size and color inherit from parent circle */
    font-size: inherit;
    color: inherit;
}

/* Responsive */
@media (max-width: 1000px) {
    .services-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .services-archive-grid { grid-template-columns: 1fr; }
    .svc-content-row { gap: 15px; }
}

/* ========================
   MOBILE RESPONSIVENESS
======================== */
@media (max-width: 900px) {
    /* Stack Main Info */
    .footer-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    
    /* Stack Email Strip */
    .email-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
    .divider-vertical { display: none; } /* Hide vertical lines on mobile */
    
    .social-row { margin-top: 10px; }

    .hero-split.hero-right {
       display: none;
    }

    .corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    
    /* This color overlay creates the "lighter blue" effect */
    background-color: rgba(255, 255, 255, 0.15); 
    
    /* CSS Masking to shape the color */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    
    /* Ensure no borders or old styles remain */
    border: none;
    transition: all 0.3s ease;
    z-index: 1;
    }

    /* Hover Effect: Brighten slightly */
    .hero-content:hover .corner-accent {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

    /* Specific Image Mappings */
    .top-left {
        top: 10px; 
        left: 10px;
        -webkit-mask-image: url('images/upper-left.png');
        mask-image: url('images/upper-left.png');
    }

    .top-right {
        top: 10px; 
        right: 10px;
        -webkit-mask-image: url('images/upper-right.png');
        mask-image: url('images/upper-right.png');
    }

    .bottom-left {
        bottom: 10px; 
        left: 10px;
        -webkit-mask-image: url('images/lower-left.png');
        mask-image: url('images/lower-left.png');
    }

    .bottom-right {
        bottom: 10px; 
        right: 10px;
        -webkit-mask-image: url('images/lower-right.png');
        mask-image: url('images/lower-right.png');
    }

}

/* ========================
   CONTACT PAGE STYLES
======================== */
.contact-page-section {
    background-color: #fff;
    padding: 80px 0;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

/* Left Column: Info */
.contact-info-col .sub-title {
    color: var(--primary-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    max-width: 200px;
}

.contact-info-col h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Info Blocks */
.c-info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.c-icon {
    width: 50px;
    height: 50px;
    background-color: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.c-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.c-details p, .c-details a {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    display: block;
}

.c-details a:hover {
    color: var(--primary-red);
}

/* Right Column: Form Wrapper */
.form-wrapper {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Gravity Forms Basic Clean-up (Optional) */
.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper textarea {
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
}
.gform_wrapper input[type=submit] {
    background-color: var(--primary-red) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.gform_wrapper input[type=submit]:hover {
    background-color: var(--primary-red-hover) !important;
}

/* Mobile */
@media (max-width: 900px) {
    .contact-layout-grid { grid-template-columns: 1fr; gap: 50px; }
    .form-wrapper { padding: 25px; }
}


/* ========================
   MEDIA QUERIES
======================== */
@media (max-width: 900px) {
    .hero-section { flex-direction: column; }
    .split-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    
    .footer-col-center, .footer-col-right { text-align: left; }
    .contact-list li { justify-content: flex-start; }
    .footer-nav li.separator { margin: 15px 0; width: 100%; }
}

/* ========================
   MOBILE SERVICE CARD FIXES
======================== */
@media (max-width: 600px) {
    
    .services-grid {
        /* Reduce the gap between cards to give them more internal width */
        gap: 10px; 
        /* Ensure it stays 2 columns */
        grid-template-columns: 1fr 1fr; 
    }

    .service-card {
        /* Fix the height so they aren't super tall skyscrapers */
        height: 280px; 
    }

    .card-content {
        /* Reduce padding significantly */
        padding: 15px 12px; 
        width: 100%;
    }

    /* Shrink the Icon */
    .icon-wrapper {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
    }
    .icon-wrapper i {
        font-size: 0.9rem;
    }

    /* Adjust Title */
    .service-card h3 {
        font-size: 0.65rem; /* Much smaller to prevent aggressive wrapping */
        margin-bottom: 6px;
        line-height: 1.2;
    }

    /* Adjust Body Text */
    .service-card p {
        font-size: 11px; /* As requested */
        line-height: 1.4;
        opacity: 0.95;
  
    }
}

/* ========================
   NEW INTERNAL SPLIT HERO
======================== */
.internal-hero-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 450px; /* Adjust height as needed */
    position: relative;
}

/* Left Side: Blue Brand Area */
.internal-hero-left {
    flex: 1;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    min-width: 300px;
    position: relative;
    background-image: url(images/blue-pattern.png);
    background-position: center;
}

.footer-email-strip {
    background-image: url(images/blue-pattern-subtle.png);
    background-position: center;
}

/* Right Side: Image Area */
.internal-hero-right {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-position: top;
}

/* Framed Title Wrapper */
.hero-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 30px 50px; /* Space between text and corners */
}

.hero-title-wrapper h1 {
    color: #fff;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Reuse your existing corner accents, but positioned for this frame */
.hero-title-wrapper .corner-accent {
    width: 40px; /* Smaller corners for the title frame */
    height: 40px;
    background-color: rgba(255,255,255,0.2); /* Subtle white */
    position: absolute;
    /* Reset hover effects from homepage so they stay static */
    transform: none !important; 
    opacity: 1;
}

.hero-title-wrapper:hover .corner-accent {
    background-color: #fff; /* Brighten on hover */
}

/* Specific positioning for the Title Frame */
.hero-title-wrapper .top-left { top: 0; left: 0; }
.hero-title-wrapper .top-right { top: 0; right: 0; }
.hero-title-wrapper .bottom-left { bottom: 0; left: 0; }
.hero-title-wrapper .bottom-right { bottom: 0; right: 0; }


/* Red Identity Bar (Universal) */
.identity-bar {
    background-color: var(--primary-red);
    color: #fff;
    padding: 18px 0;
    width: 100%;
}
.identity-bar h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .internal-hero-section { flex-direction: column-reverse; /* Image on top mobile? Or stack normally */ }
    .internal-hero-section { flex-direction: column; } /* Blue on top, Image below */
    .internal-hero-right { height: 300px; } /* Give image height on mobile */
    .hero-title-wrapper { padding: 20px 30px; }
}

.footer-cta-image {
    background-size: cover; /* Ensures image covers the area */
    background-position: 50% 0%; /* Start at top */
    /* Make sure the container has a set height, e.g., 400px */
}