/* THEME: GHOST EXECUTIVE (VIOLET)
   FONT: Manrope (Modern, Geometric, Technical)
*/
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* --- MODERN PALETTE --- */
    /* Light Mode: Crisp, Clean, Expensive */
    --bg: #ffffff;
    --text-main: #1e293b;       /* Slate 800 - Softer than black */
    --text-muted: #64748b;      /* Slate 500 */
    --border: #e2e8f0;          /* Slate 200 */
    --surface: #f8fafc;         /* Slate 50 - Very subtle contrast */
    
    /* The "Ghost" Violet Accent - Unique & Trustworthy */
    --accent: #7c3aed;          /* Violet 600 */
    --accent-glow: rgba(124, 58, 237, 0.15); 
    
    /* Functional */
    --nav-glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.dark {
    /* Dark Mode: Deep, Technical, "Hacker" but Pro */
    --bg: #0f172a;              /* Slate 900 */
    --text-main: #f1f5f9;       /* Slate 100 */
    --text-muted: #94a3b8;      /* Slate 400 */
    --border: #1e293b;          /* Slate 800 */
    --surface: #1e293b;         /* Slate 800 */
    
    --accent: #a78bfa;          /* Violet 400 - Brighter for dark mode */
    --accent-glow: rgba(167, 139, 250, 0.2);
    
    --nav-glass: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg);
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: var(--text-main);
    letter-spacing: -0.02em; /* Tight "Tech" tracking */
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--accent); }

/* --- HEADER & NAV (Fixed) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-glass);
    backdrop-filter: blur(12px); /* Smooth Glass Effect */
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO STYLING --- */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-icon {
    color: var(--accent); /* Uses your Violet color */
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

/* Hover effect for the whole brand */
.logo-link:hover {
    opacity: 0.8;
}

/* Desktop vs Mobile Logo Text */
/* Desktop vs Mobile Logo Text */
@media (max-width: 768px) {
    .logo-text {
        display: none; /* Hides the text, leaving only the icon */
    }
}

/* Desktop Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.main-nav a:hover, 
.main-nav li.active a {
    color: var(--accent);
}

/* Nav Controls (Theme Toggle & Hamburger) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hide Checkbox (We use JS now, but keep CSS clean) */
#nav-toggle { display: none; }
.nav-toggle-label { display: none; }


/* --- LAYOUT & GRIDS --- */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 24px;
    min-height: 80vh;
}

/* Compact Grid for Categories & Domains */
.domain-grid, .category-grid, .article-list {
    display: grid;
    /* Responsive: Auto-fit but keep minimum 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

/* Cards: Compact & Modern */
.domain-card, .category-card, .article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.domain-card:hover, .category-card:hover, .article-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    background: var(--bg); /* Pop out effect */
}

/* Make category headings tighter */
.category-card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.article-card h2 { font-size: 1.4rem; }

.article-summary, .domain-card p, .category-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- SINGLE ARTICLE LAYOUT (Fixed Sticky TOC) --- */
.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* Sidebar | Content */
    gap: 60px;
    align-items: start; /* CRITICAL: Prevents sidebar from stretching, fixes sticky */
    position: relative;
}

.article-toc {
    position: sticky;
    top: 90px; /* Offset for header */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 16px;
    
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.article-toc strong {
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-bottom: 10px; line-height: 1.3; }
.article-toc a { font-size: 0.9rem; color: var(--text-muted); }
.article-toc a:hover { color: var(--accent); }

/* --- MARKDOWN CONTENT STYLING (Expert Look) --- */
.article-content {
    max-width: 800px; /* Optimal reading width */
}

.article-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 40px;
    font-style: normal;
}

/* Headings inside markdown */
.article-content h2 { 
    margin-top: 3rem; 
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.article-content h3 { margin-top: 2rem; font-size: 1.4rem; }

/* Code Blocks */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}
code {
  background-color: var(--surface);
  padding: 2px 4px;
  border-radius: 4px;
      border: 1px solid var(--border);

}


/* Blockquotes */
blockquote {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
    padding: 1.5rem;
    font-style: italic;
    color: var(--text-main);
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 6rem;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-links h4 { font-size: 0.9rem; text-transform: uppercase; color: var(--text-muted); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 850px) {
    /* Font Sizing */
    h1 { font-size: 2rem; }
    
    /* Layout */
    .article-layout { grid-template-columns: 1fr; gap: 30px; }
    
    /* TOC moves to top on mobile */
    .article-toc { 
        position: relative; 
        top: 0; 
        border: 1px solid var(--border); 
        padding: 16px; 
        border-radius: 8px;
        background: var(--surface);
    }
    
    /* Footer */
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    
    /* MOBILE NAV (The Fix) */
    .nav-toggle-label {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        color: var(--text-main);
        /* Ensure it doesn't get pushed out */
        margin-left: 10px;
    }

    .main-nav {
        position: fixed;
        top: 70px; /* Below header */
        left: 0;
        width: 100%;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0;
        z-index: 999; /* CRITICAL FIX: Forces menu to the very front */
        
        /* Hide by default */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    /* Open State (Toggled by JS) */
    .main-nav.open {
        max-height: 400px; /* Enough for links */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 24px;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
}
/* --- HOMEPAGE SPECIFIC STYLES --- */

/* Hero: Executive Briefing Style */
.home-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: 3.5rem; /* Big impact */
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.home-hero .highlight {
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}

.home-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Headers */
.section-head {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 80px;
}
.section-head p { font-size: 1.1rem; color: var(--text-muted); }

/* Domain Cards (Risk Radar) */
.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Latest Intelligence Section */
.home-latest {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 16px;
    display: inline-block;
}

/* The Ghost CTA (Connect Box) */
.home-connect {
    margin-top: 100px;
    margin-bottom: 60px;
    text-align: center;
}

.connect-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 60px 30px;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.connect-box h2 { font-size: 2rem; margin-bottom: 16px; }
.connect-box p { font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-button {
    background: var(--text-main); /* Black/Slate */
    color: var(--bg); /* White */
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    display: inline-block;
}

.cta-button:hover {
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .home-hero h1 { font-size: 2.5rem; }
    .connect-box { padding: 40px 20px; }
}
/* --- NEW SALES PAGES CSS --- */

/* 1. Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}
.solution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
}
.solution-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-us-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
}
.outcome-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    font-weight: 700;
}

/* 2. Audit / Landing Page */
.landing-container { max-width: 1200px; /* WAS 800px -> Changed to 1200px */
    margin: 0 auto; 
    text-align: center; 
    padding: 0 20px; }
.pill-alert {
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}
.audit-hero h1 { font-size: 3rem; margin-top: 1rem; }
.audit-comparison table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    text-align: left;
}
.audit-comparison th, .audit-comparison td { padding: 1rem; border-bottom: 1px solid var(--border); }
.audit-comparison .highlight { background: rgba(124, 58, 237, 0.05); border-left: 2px solid var(--accent); }
/* 2. Constrain Text Sections (Hero, Problem, Single Price) */
/* This keeps the reading experience clean while letting grids go wide */
.audit-hero, 
.audit-problem .problem-content, 
.audit-deliverables .check-list, 
.audit-pricing .price-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
        margin-top: 10px;
}

/* 3. Ensure the Tier Grid uses the full width */
.audit-comparison-tier {
    width: 100%;
    max-width: 1200px;
    margin: 5rem auto;
}
/* Pricing Card */
.price-card {
    background: var(--bg);
    border: 2px solid var(--accent);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.2);
}
.price { font-size: 3rem; font-weight: 800; color: var(--text-main); }
.period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

/* 3. Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--accent-glow); color: white; }

.nav-cta-button {
    background: var(--text-main);
    color: var(--bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.nav-cta-button:hover { background: var(--accent); color: white; }

/* 4. Exit Popup */
/* .popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
} */
.popup-overlay.visible { display: flex; }
.popup-content {
    background: var(--bg);
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 1px solid var(--accent);
}
.close-btn {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted);
}
/* --- AUDIT PAGE UPGRADES --- */

.sub-hero { font-size: 1.2rem; color: var(--text-main); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.risk-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Problem Comparison */
.audit-problem { background: var(--surface); padding: 4rem 2rem; margin: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-content { max-width: 900px; margin: 0 auto; text-align: center; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; text-align: left; }
.compare-bad { border-right: 1px solid var(--border); padding-right: 2rem; }
.compare-bad h4 { color: #ef4444; margin-top: 0; } /* Red for bad */
.compare-good h4 { color: #10b981; margin-top: 0; } /* Green for good */
.comparison-grid ul { list-style: none; padding: 0; }
.comparison-grid li { margin-bottom: 12px; font-size: 1rem; }

/* Scope Grid */
.scope-grid { text-align: left; background: var(--bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); max-width: 700px; margin: 2rem auto; }
.scope-grid ul { margin: 0; padding-left: 1.5rem; }
.scope-grid li { margin-bottom: 10px; color: var(--text-main); }

/* Outcome Cards */
.outcome-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.outcome-cards .card { text-align: center; padding: 2rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.outcome-cards .icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

/* Package Details List */
.package-details { list-style: none; padding: 0; text-align: left; margin: 2rem 0; font-size: 1.1rem; }
.package-details li { margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }

/* Solutions Upgrades */
.sol-desc { font-size: 1.1rem; min-height: 60px; }
.sol-features { margin-top: 1.5rem; padding-left: 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.sol-features li { margin-bottom: 8px; }

/* Mobile Fixes for New Elements */
@media (max-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr; }
    .compare-bad { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 2rem; padding-right: 0; }
}
/* --- UPDATED AUDIT STYLES --- */

/* 4-Card Grid Adjustment */

.highlight-card {
    border: 1px solid var(--accent);
    background: rgba(124, 58, 237, 0.03); /* Subtle violet tint */
}

/* --- FIXED PRICING TIERS --- */

.audit-comparison-tier {
    margin: 5rem 0;
    text-align: center;
}

.tier-grid {
    display: grid;
    /* This ensures cards are at least 300px wide but share space equally */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem; /* Extra space for the floating badge */
    text-align: left;
    align-items: start; /* Prevents stretching if content lengths differ */
}

/* Card Base */
.tier-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%; /* Makes all cards same height */
    display: flex;
    flex-direction: column;
    overflow: visible; /* CRITICAL FIX: Allows badge to sit outside */
}

/* Hover Effect */
.tier-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* The "Featured" Card (Essential) */
.tier-card.featured {
    border: 2px solid var(--accent);
    background: var(--bg); /* White background to pop against grey surface */
    box-shadow: 0 15px 40px -10px rgba(124, 58, 237, 0.15);
    z-index: 2; /* Sits above others */
}

/* The Badge (Most Popular) */
.tier-badge {
    position: absolute;
    top: -16px; /* Floating above the card */
    left: 50%;
    transform: translateX(-50%); /* Perfectly centered */
    background: var(--accent);
    color: #ffffff;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    white-space: nowrap;
}

/* Header Typography */
.tier-header h4 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tier-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    min-height: 48px; /* Aligns the lists even if desc text is short */
    margin-bottom: 20px;
}

/* Features List */
.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.tier-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tier-features .check {
    color: var(--accent);
    font-weight: bold;
}

/* Buttons */
.tier-action {
    margin-top: auto;
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: var(--bg);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .tier-grid {
        grid-template-columns: 1fr; /* Stack them */
        padding: 0 1rem;
    }
    
    .tier-card.featured {
        order: -1; /* Ensure Essential shows first on mobile */
        margin-top: 20px;
    }
}
/* FAQ Grid */
/* FAQ Grid */
.audit-faq { margin: 5rem 0; background: var(--surface); padding: 4rem 2rem; border-radius: 12px; }
.audit-faq h3 { text-align: center; margin-bottom: 3rem; }
.faq-grid { 
    display: grid; 
    /* Changed minmax to 250px so it fits on smaller phones */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 3rem; 
}

/* Add mobile specific fix for FAQ padding */
@media (max-width: 480px) {
    .audit-faq {
        padding: 2rem 1rem; /* Reduce padding to save horizontal space */
        margin: 3rem 0;
    }
    
    .faq-grid {
        /* Force single column on very small screens to stop overflow */
        grid-template-columns: 1fr; 
    }
}
.faq-item h4 { margin-top: 0; font-size: 1.1rem; color: var(--text-main); }
.faq-item p { font-size: 0.95rem; color: var(--text-muted); }
/* --- CONTACT PAGE STYLES --- */

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.contact-header {
    text-align: center;
    padding: 60px 0 40px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-header h1 { font-size: 3rem; margin-bottom: 16px; }
.contact-header p { font-size: 1.2rem; color: var(--text-muted); }

/* Split Layout */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

/* Left Side: Info */
.info-block { margin-bottom: 2.5rem; }
.info-block h3 { font-size: 1.2rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-block p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

.direct-channels { 
    margin-top: 3rem; 
    padding-top: 2rem; 
    border-top: 1px solid var(--border); 
}
.direct-channels ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.direct-channels li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.direct-channels a { font-weight: 600; color: var(--text-main); font-size: 1.05rem; }
.direct-channels a:hover { color: var(--accent); text-decoration: underline; }

/* Right Side: Action Card */
.contact-action {
    position: relative;
}

.action-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.action-card h3 { font-size: 1.5rem; margin-bottom: 5px; text-align: center; }
.form-sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }

.divider { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Form Elements */
.executive-form .form-group { margin-bottom: 1.2rem; }
.executive-form label { 
    display: block; 
    margin-bottom: 6px; 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--text-main); 
}

.executive-form input, 
.executive-form select, 
.executive-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.executive-form input:focus, 
.executive-form select:focus, 
.executive-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Mobile Fix */
@media (max-width: 850px) {
    .contact-split { grid-template-columns: 1fr; gap: 3rem; }
    .contact-header h1 { font-size: 2.2rem; }
    .action-card { padding: 1.5rem; }
}
/* --- MICROSOFT FORMS & BOOKINGS STYLES --- */

/* Fix the Iframe styling */
.ms-forms-container {
    margin-top: 2rem;
}

.ms-forms-container iframe {
    border-radius: 8px;
    background: var(--bg); /* Blends with your site */
    border: 1px solid var(--border) !important;
}

/* Make the Bookings button stand out */
.calendar-embed-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* Mobile Adjustments for Iframe */
@media (max-width: 768px) {
    .ms-forms-container iframe {
        height: 600px; /* Taller on mobile to fit the form */
    }
}
/* --- SUCCESS PAGE STYLES --- */

.success-container {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.success-badge {
    background: #dcfce7; /* Light Green */
    color: #166534;       /* Dark Green Text */
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.success-sub {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.success-msg {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.upsell-box {
    background: var(--surface); /* Uses your theme grey */
    border: 2px solid var(--accent); /* Uses your theme violet */
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.upsell-box h2 {
    margin-top: 0;
    color: var(--text-main);
}

.upsell-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}


/* Checklist popup */

/* --- CORNER WIDGET STYLES --- */

.corner-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 9999;
    
    /* Animation setup */
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Class to trigger the slide-in */
.corner-widget.show {
    transform: translateY(0);
    opacity: 1;
}

.corner-widget.hidden {
    display: none;
}

.widget-header h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.widget-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Compact Form Styling */
.widget-form input,
.widget-form textarea {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--text-main);
}

/* Mobile Fix: Make it a bottom bar on phones */
@media (max-width: 480px) {
    .corner-widget {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
    }
}