/**
 * Zen Promotions - Master Screen Stylesheet
 * System Architecture: Typography, Grid, Breakpoint Constraints & Animation Scales
 */

/* 1. EMBEDDED TYPOGRAPHY ENGINE TARGETING SHORT FILENAMES */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

/* 2. ROOT SYSTEM COMPONENT TOKENS */
:root {
    --bg-main: #FAFAFA;
    --text-primary: #111111;
    --text-muted: #555555;
    --accent-gold: #B89B5E;
    --trust-green: #2E7D32;
    --trust-green-hover: #1B5E20;
    --border-color: #EAEAEA;
    --card-bg: #FFFFFF;
    --font-headings: 'Manrope', system-ui, sans-serif;
    --font-prose: 'Inter', system-ui, sans-serif;
    --nav-height: 70px;
}

.hideit{
	display: none;
}

/* Password Group Input Display Enhancements */
.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-wrapper .login-input-control,
.password-toggle-wrapper .contact-input-control {
    width: 100%;
    padding-right: 3.5rem; /* Leaves room for the action link text */
}

.password-display-trigger {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--accent-color, #B89B5E);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem;
}

.password-display-trigger:hover {
    color: var(--text-primary, #E5E5E5);
}

/* 3. HARD RESET & STRUCTURAL BASELINES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-prose);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    animation: layoutFadeIn 300ms linear forwards;
}

.header-logo-img-element {
    width: 100px;
    height: 66px;
	margin-right: 10px;
}
/* 4. MOTION TIMING CURVES */
@keyframes layoutFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-entrance {
    animation: contentCardEntrance 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 5. TYPOGRAPHY MATRIX LAYOUTS */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

/* 6. LAYOUT WRAPPERS & GRID MATRIX BUILDERS */
.content-viewport-container {
    min-height: calc(100vh - var(--nav-height) - 150px);
    margin-top: var(--nav-height);
    position: relative;
    width: 100%;
}

.section-structural-block {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.insight-block {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
}

/* 7. NAVIGATION HEADER COMPONENT MODULES */
.navbar-master {
    height: var(--nav-height);
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
	position: relative;
}

.navbar-desktop-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item-link {
    font-family: var(--font-prose);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 150ms ease;
	margin-right: 15px;
	position: relative; 
    padding: 0.25rem 0;
}

.nav-item-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Spans only the width of the text itself */
    height: 1.5px;
    background-color: var(--accent-gold);
    
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-link:hover, .nav-item-link.active-link {
    color: var(--text-primary);
}

.nav-item-link:hover::after {
    transform: scaleX(1);
}

.nav-item-link.active-link {
    color: var(--text-primary);
}

.nav-item-link.active-link::after {
    transform: scaleX(1);
    background-color: var(--text-primary);
    opacity: 0.8;
}

/* 8. GLOBAL ACTION CALL STRUCTURAL LINKS */
.btn-trust-green {
    display: inline-block;
    font-family: var(--font-prose);
    font-weight: 600;
    font-size: 0.95rem;
    background-color: var(--trust-green);
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
    text-align: center;
}

.btn-trust-green:hover {
    background-color: var(--trust-green-hover);
}

.btn-trust-green:active {
    transform: scale(0.98);
}

/* 9. UI HAMBURGER INTERFACE BUILDERS */
.ui-hamburger-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.ui-bar-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
}

/* 10. MOBILE PANEL SLIDE-OUT PANEL MODULES */
.mobile-navigation-panel {
    position: fixed;
    top: 0;
    right: -85%;
    min-width: 45%;
    width: 75%; /* Set a comfortable mobile default width cap */
    max-width: 380px; /* Ensures it never stretches too wide on landscape viewports */
    height: 100vh;
    background-color: var(--bg-main);
    
    /* Premium subtle dark border border instead of aggressive box shadows */
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0,0,0,0.03);
    
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    transition: right 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-navigation-panel.drawer-visible {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2.5rem;
}

.ui-drawer-close-trigger {
    background: transparent;
    border: none;
    font-family: var(--font-prose);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.ui-drawer-close-trigger:hover {
    color: var(--text-primary);
}

.mobile-navigation-links-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.mobile-navigation-links-stack a {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-navigation-links-stack a:hover {
    color: var(--text-primary);
}

.appwhite {
    color: #ffffff !important;
}

.mobile-navigation-links-stack a.mobile-active {
    color: var(--text-primary);
    border-left: 2px solid var(--accent-gold);
    padding-left: 0.75rem;
    margin-left: -0.75rem; /* Optical alignment adjustment */
}

.mobile-drawer-cta-wrapper {
    margin-top: 1rem;
}

.mobile-fullwidth-btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* 1. Reset standard hover states and prepare the transition track */
.mobile-navigation-links-stack a {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    
    /* Create a smooth transition baseline for the border, padding, and color */
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: color 250ms ease, border-color 250ms ease, padding-left 250ms ease;
}

/* 2. The Interactive Hover Effect */
.mobile-navigation-links-stack a:not(.mobile-active):hover {
    color: var(--text-primary);
    border-left: 2px solid rgba(184, 155, 94, 0.4); /* Faded version of your gold accent */
    padding-left: 0.75rem;
}

/* 3. Keep your existing active styles locked in place */
.mobile-navigation-links-stack a.mobile-active {
    color: var(--text-primary);
    border-left: 2px solid var(--accent-gold); /* Solid gold active line */
    padding-left: 0.75rem;
}

/* NEW: ASSET BASELINE PINNING MECHANICS */
.mobile-drawer-footer {
    margin-top: auto; /* Magic line: pushes the footer block right to the bottom */
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-footer-headline {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    font-weight: 700;
    margin: 0;
}

.drawer-footer-link {
    font-family: var(--font-prose);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
}

.drawer-copyright {
    font-family: var(--font-prose);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: block;
}

/* 11. DESKTOP SPLIT AND MOBILE VERTICAL STACK HERO CORE HERO SPACE STRUCTURAL GRID RULES */
.hero-split-grid {
    display: grid;
    grid-template-columns: 45fr 55fr; /* Hard specification ratio requirement */
    min-height: calc(100vh - var(--nav-height));
    width: 100%;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-text-block {
    padding: 4rem 4rem 4rem 2rem;
}

.hero-text-block h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.75rem;
}

.hero-text-block p.hero-subheading {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-checklist {
    list-style: none;
    margin-bottom: 2.5rem;
}

.hero-checklist li {
    font-family: var(--font-prose);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.hero-cta-group {
    position: relative;
}

.hero-button-subtext {
    display: block;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    max-width: 420px;
}

.hero-image-block {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - var(--nav-height));
    position: relative;
    overflow: hidden;
}

.hero-img-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Hard specific environmental crop specification requirements mapping rules */
    clip-path: inset(10% 25% 10% 10%); 
}

/* 12. GENERIC PLAIN STRUCTURAL COMPONENTS PLACEMENT BLOCKS */
.trust-signals-banner {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 2.5rem 0;
}

.trust-signals-flex {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-signal-item {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* 13. TWO-COLUMN INLINE SECTION MATRIX */
.content-image-split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.inline-image-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.inline-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 14. EXPLICIT STEP CONTAINER COLUMNS LISTS MATRIX */
.procedural-timeline-stack {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.procedural-step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
    position: relative;
}

.step-card-meta-subtitle {
    display: block;
    font-family: var(--font-prose);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 15. NATIVE FAQS ELEMENT DETAILS ACCORDION SCHEMAS */
.faq-accordion-tree {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion-tree details {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
    transition: border-color 150ms ease;
}

.faq-accordion-tree details[open] {
    border-color: var(--accent-gold);
}

.faq-accordion-tree summary {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

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

.faq-accordion-tree summary::after {
    content: '＋';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.faq-accordion-tree details[open] summary::after {
    content: '－';
}

.faq-answer-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.editorial-break-image {
    margin: 4rem 0;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 4px;
}

.editorial-break-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 16. INGESTION USER MANAGEMENT BLOCK INPUT FORMS MODULES */
.form-structural-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3.5rem;
    border-radius: 4px;
    margin-top: 3rem;
}

.form-field-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field-group label {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-field-group input[type="text"],
.form-field-group input[type="email"],
.form-field-group input[type="password"],
.form-field-group textarea {
    width: 100%;
    font-family: var(--font-prose);
    font-size: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-primary);
    border-radius: 4px;
    transition: border-color 150ms ease;
}

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

.form-selection-array {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0;
}

.selection-array-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-prose);
    font-size: 1rem;
}

.honeypot-anti-bot-field {
    display: none !important;
    visibility: hidden !important;
}

/* 17. SECURE AUTHENTICATED PORTAL DROPZONE OBJECTS */
.secure-upload-dropzone-box {
    border: 2px dashed var(--border-color);
    background-color: var(--bg-main);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 4px;
    margin: 3rem 0;
    transition: border-color 150ms ease;
}

.secure-upload-dropzone-box:hover {
    border-color: var(--accent-gold);
}

.upload-system-progress-track {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.upload-progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--trust-green);
    transition: width 100ms linear;
}

/* 18. SECTIONS AND ANCHORS HELPER POINTERS */
.block-quote-empathy {
    border-left: 3px solid var(--accent-gold);
    padding-left: 2rem;
    margin: 3rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
}

.bullet-directional-list {
    list-style: none;
    margin-bottom: 2rem;
}

.bullet-directional-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.bullet-directional-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.text-alignment-center { text-align: center; }
.margin-top-small { margin-top: 1.5rem; }

/* 19. REUSABLE SESSION DOCK COOKIE SYSTEM BAR LAYOUT */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111111;
    color: #FFFFFF;
    padding: 1.5rem 2rem;
    z-index: 10000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner-text {
    font-family: var(--font-prose);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: #FFFFFF;
    color: #111111;
    border: none;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-prose);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.btn-cookie-accept:hover {
    background-color: #EAEAEA;
}

.cookie-policy-link {
    color: #EAEAEA;
    font-size: 0.88rem;
    text-decoration: underline;
}

/* 20. FOOTER MASTER BRAND LAYOUT ROW SYSTEM elements */
.footer-master {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
}

.footer-master-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.pre-footer{
	padding-left:20px;
	padding-right:20px;
}


.footer-brand-column {
    text-align: center;
}

.footer-brand-title {
    display: block;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.footer-brand-tagline {
    font-family: var(--font-prose);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-navigation-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link-item {
    font-family: var(--font-prose);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-link-item:hover {
    color: var(--text-primary);
}

.footer-system-copyright {
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 2rem;
    text-align: center;
}

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

/* 21. MASTER SYSTEM RESPONSIVE CONSTANT BREAKPOINTS MEDIA LAYER SHIFTS */
@media (max-width: 1024px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-text-block {
        padding: 4rem 2rem;
        order: 2; /* Move content blocks directly beneath visual frames on viewport step-downs */
    }
    
    .hero-text-block h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-block {
        order: 1; /* Move image frame to the top position stack layout rows */
        height: 40vh; /* Lock hard responsive constraint height values */
        min-height: auto;
        width: 100%;
    }
    
    .hero-img-element {
        clip-path: none; /* Completely disable desktop-specific environmental crops */
        object-position: 50% 35%; /* Force exact target object framing variables alignment points */
    }
    
    .content-image-split-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Menu changes type here*/
@media (min-width: 1101px) {
		.navbar-brand {
			display:none;
		}
}

@media (max-width: 1100px) {
	    .navbar-desktop-links, .navbar-desktop-action {
			display: none; /* Strip standard layout tracking options on mobile breakpoints */
		}
		.header-logo-img-element{
		display: flex;
		  justify-content: center;
		  margin-left:50px;
		}
		
	.navbar-brand {
		font-family: var(--font-headings);
		font-weight: 800;
		letter-spacing: 0.05em;
		font-size: 1.25rem;
		color: var(--text-primary);
		text-decoration: none;
	    text-align: left;
		position: absolute;
    left: 50%;
    transform: translateX(-50%);
	}
}

@media (max-width: 768px) {
	.navbar-desktop-links, .navbar-desktop-action {
        display: none; /* Strip standard layout tracking options on mobile breakpoints */
    }
	.header-logo-img-element{
	display: flex;
	  justify-content: center;
	  margin-left:5px;
	}
	.navbar-brand {
		font-family: var(--font-headings);
		font-weight: 800;
		letter-spacing: 0.05em;
		font-size: 1.25rem;
		color: var(--text-primary);
		text-decoration: none;		
		position: absolute;
    left: 50%;
    transform: translateX(-50%);
	}
}	
@media (max-width: 540px) {
		.navbar-brand {
			display:none;
		}
}
@media (max-width: 1100px) {
    .ui-hamburger-trigger {
        display: flex; /* Execute interactive drawer targets navigation triggers toggles instead */
    }
}




@media (max-width: 768px) {
    .section-structural-block {
        padding: 4rem 1.5rem;
    }
    
    .trust-signals-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-structural-container {
        padding: 2rem 1.5rem;
    }
    
    .form-selection-array {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-navigation-row {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
}
/* ==========================================================================
   STAGE 2: SCOPED PAGE-LEVEL LAYOUT STYLES
   ========================================================================== */

/* --- 1. INDEX.PHP (HOME) SCOPED SELECTORS --- */
.home-hero-grid {
    display: grid;
    grid-template-columns: 45fr 55fr;
    min-height: calc(100vh - var(--nav-height));
    width: 100%;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.home-hero-text-panel {
    padding: 4rem 4rem 4rem 2rem;
}

.home-hero-main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
}

.home-hero-subheading-prose {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.home-checklist-stack {
    list-style: none;
    margin-bottom: 3rem;
}

.home-checklist-item {
    font-family: var(--font-prose);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-check-icon {
    color: var(--accent-gold);
    font-weight: 700;
}

.home-cta-execution-block {
    position: relative;
}

.home-hero-cta-btn {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.home-cta-compliance-subtext {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 450px;
}

.home-hero-image-panel {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - var(--nav-height));
    position: relative;
    overflow: hidden;
}

.home-hero-img-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0% 0% 0% 12% cubic-bezier(0.16, 1, 0.3, 1));
}

.home-trust-signals-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 2.5rem 0;
}

.home-trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.home-trust-item-node {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.home-trust-item-node::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.home-narrative-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.home-narrative-prose {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}


/* --- 2. HOW-IT-WORKS.PHP SCOPED SELECTORS --- */
.works-main-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.works-main-subtitle-prose {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
}

.works-timeline-master-stack {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.works-procedural-step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 4px;
    transition: transform 200ms ease, border-color 200ms ease;
}

.works-procedural-step-card:hover {
    border-color: rgba(184, 155, 94, 0.4);
}

.works-step-meta-tag {
    display: block;
    font-family: var(--font-prose);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.works-step-headline {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.works-step-body-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

.works-split-interaction-layout {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    margin-top: 4rem;
}

.works-split-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
}

.works-split-text-frame {
    padding: 6rem 4rem 6rem 6rem;
}

.works-split-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.works-split-body-prose {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.works-split-cta-trigger {
    padding: 1rem 2rem;
}

.works-split-image-frame {
    width: 100%;
    height: 100%;
    max-height: 550px;
    overflow: hidden;
}

.works-split-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- 3. STAGE 2 RESPONSIVE MEDIAS OVERRIDES --- */
@media (max-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .home-hero-text-panel {
        padding: 4rem 2rem;
        order: 2;
    }
    
    .home-hero-main-title {
        font-size: 2.75rem;
    }
    
    .home-hero-image-panel {
        order: 1;
        height: 45vh;
        min-height: auto;
    }
    
    .home-hero-img-element {
        clip-path: none;
    }
    
    /* FIXES START HERE */
    .works-split-interaction-layout {
        height: auto; /* Ensures container grows with text content */
    }

    .works-split-text-frame {
        padding: 4rem 2rem;
        order: 2; /* Drops text below the image */
        height: auto;
    }
    
    .works-split-image-frame {
        order: 1; /* Puts image cleanly on top */
        height: 40vh;
        max-height: 400px; /* Safe mobile limit */
        width: 100%;
    }

    .works-split-img-element {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .home-trust-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .works-procedural-step-card {
        padding: 2rem 1.5rem;
    }
    
    .works-main-title {
        font-size: 2.25rem;
    }
	.works-split-grid-container {
        grid-template-columns: 1fr !important; /* Force single column stack */
        height: auto;
    }
}

/* ==========================================================================
   STAGE 3: CONFIDENTIAL INTAKE, FAQ, AND COMPLIANCE INFRASTRUCTURE STYLES
   ========================================================================== */

/* --- 1. FAQ.PHP SCOPED STYLES --- */
.faq-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.faq-main-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.faq-accordion-stack {
    margin: 4rem auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-wrapper-node {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem 2rem;
    overflow: hidden;
    transition: border-color 200ms ease;
}

.faq-wrapper-node[open] {
    border-color: var(--accent-gold);
}

.faq-trigger-title {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none; /* Hide native browser marker */
    position: relative;
    padding-right: 2rem;
}

.faq-trigger-title::-webkit-details-marker {
    display: none; /* Webkit marker cleanup */
}

.faq-trigger-title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 200ms ease;
}

.faq-wrapper-node[open] .faq-trigger-title::after {
    content: '−';
    color: var(--accent-gold);
}

.faq-body-panel {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.faq-prose-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.faq-footer-cta-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-gold);
    padding: 3rem;
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-cta-headline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.faq-cta-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}


/* --- 2. LETS-CHAT.PHP SCOPED STYLES --- */
.chat-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.chat-main-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.chat-secure-form-element {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 4rem;
    border-radius: 4px;
    max-width: 720px;
    margin: 4rem auto 0 auto;
}

.chat-form-group-node {
    margin-bottom: 2rem;
}

.chat-input-field-label {
    display: block;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.chat-required-marker {
    color: #A94442;
    margin-left: 0.25rem;
}

.chat-optional-marker {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.chat-form-input-control,
.chat-form-input-control:focus,
.chat-form-textarea-control,
.chat-form-textarea-control:focus {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-prose);
    font-size: 1rem;
    padding: 1rem;
    border-radius: 4px;
    transition: border-color 200ms ease;
    box-shadow: none;
    outline: none;
}

.chat-form-input-control:focus,
.chat-form-textarea-control:focus {
    border-color: var(--accent-gold);
}

select.chat-form-input-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B89B5E'><path d='M0 3h12l-6 6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
    cursor: pointer;
}

/* Container for each radio option */
.chat-form-radio-label {
    display: flex;
    align-items: center; /* Vertically centres the radio button with the text */
    gap: 0.5rem;         /* Space between the radio button and the text label */
    margin-bottom: 0.75rem; /* Spacing between each option line */
    cursor: pointer;
    font-family: var(--font-prose);
    color: var(--text-primary);
    font-size: 1rem;
}

/* Overrides the 100% width from .chat-form-input-control for radio buttons */
input[type="radio"].chat-form-input-control {
    width: auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Optional wrapper styling to add space around the entire group */
.chat-form-radio-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column; /* Stack options vertically */
}

.chat-form-textarea-control {
    resize: vertical;
}

.chat-security-disclaimer-note {
    background-color: rgba(184, 155, 94, 0.05);
    border-left: 3px solid var(--accent-gold);
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.chat-action-submit-wrapper {
    display: flex;
    justify-content: flex-end;
}

.chat-submit-trigger-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.05rem;
    text-align: center;
}

.chat-error-alert-box {
    max-width: 720px;
    margin: 3rem auto -2rem auto;
    background-color: #F2DEDE;
    border: 1px solid #EBCCD1;
    color: #A94442;
    padding: 1.25rem;
    border-radius: 4px;
    font-weight: 500;
}

.chat-success-container {
    max-width: 650px;
    margin: 6rem auto;
    padding: 4rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.chat-success-icon-shield {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 2.5rem auto;
}
/* ==========================================================================
   Anti-Bot Perimeter Utilities (Clips elements cleanly out of visual layout)
   ========================================================================== */
.sys-telemetry-token-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- 3. LEGAL POLICY COMMON VIEWPORT SCOPED STYLES --- */
.legal-layout-viewport {
    max-width: 740px;
    margin: 2rem auto;
}

.legal-meta-date {
    display: block;
    font-family: var(--font-prose);
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.legal-main-heading {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.legal-intro-prose {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.legal-sub-heading {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-body-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}


/* --- 4. STAGE 3 COMPONENT RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
    .faq-main-title, .chat-main-title, .legal-main-heading {
        font-size: 2.25rem;
    }
    
    .faq-accordion-stack {
        margin: 2.5rem 0;
    }
    
    .faq-wrapper-node {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-footer-cta-card, .chat-secure-form-element, .chat-success-container {
        padding: 2rem 1.5rem;
    }
    
    .chat-secure-form-element {
        margin-top: 2.5rem;
    }
}

/* ==========================================================================
   FINAL STAGE: SYSTEM UTILITIES, LOGINS, VAULTS, AND RESPONSE PORTS
   ========================================================================== */

/* --- 1. 404.PHP SCOPED INTERFACE CODES --- */
.error-viewport-frame {
    padding: 6rem 0;
}

.error-status-badge {
    display: inline-block;
    font-family: var(--font-prose);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(184, 155, 94, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.error-main-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.error-sub-prose {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
}


/* --- 2. LOGIN.PHP SCOPED INTERFACE CODES --- */
.login-master-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3.5rem;
    border-radius: 4px;
    max-width: 480px;
    margin: 4rem auto;
}

.login-main-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.login-sub-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.login-group-node {
    margin-bottom: 1.5rem;
}

.login-field-label {
    display: block;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-input-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-family: var(--font-prose);
    font-size: 1rem;
    outline: none;
    transition: border-color 200ms ease;
}

.login-input-control:focus {
    border-color: var(--accent-gold);
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.login-footer-assistance {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* --- 3. UPLOAD.PHP SCOPED INTERFACE CODES --- */
.upload-dashboard-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-identity-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    gap: 2rem;
}

.upload-main-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-sub-prose {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
}

.upload-status-indicator {
    font-family: var(--font-prose);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2E7D32;
    background-color: rgba(46, 125, 50, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.upload-dropzone-panel {
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.upload-placeholder-content-view h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem 0;
}

.upload-placeholder-content-view p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.upload-placeholder-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    line-height: 1;
}

.upload-parameters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.upload-param-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 4px;
}

.upload-param-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-param-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}


/* --- 4. THANK-YOU.PHP SCOPED INTERFACE CODES --- */
.thanks-layout-viewport {
    padding: 5rem 0;
}

.thanks-shield-graphic {
    width: 72px;
    height: 72px;
    background-color: rgba(184, 155, 94, 0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 2rem auto;
}

.thanks-main-title {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.thanks-body-prose {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 2.5rem auto;
}


/* --- 5. SYSTEM FINAL RESPONSIVE OVERRIDES --- */
@media (max-width: 1024px) {
    .upload-identity-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .login-master-card {
        padding: 2rem 1.5rem;
    }
    
    .upload-parameters-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .thanks-main-title, .upload-main-title {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   STAGE 4: BRAND PSYCHOLOGY, CAPACITY ALERTS, AND NEW SITE MODULES
   ========================================================================== */

/* --- 1. HOME CAPACITY & QUALIFICATION CARD ELEMENTS --- */
.home-capacity-alert-box {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.home-capacity-badge {
    display: inline-block;
    font-family: var(--font-prose);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2E7D32;
    background-color: rgba(46, 125, 50, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.home-capacity-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-capacity-prose {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-qualification-matrix {
    margin-top: 4rem;
}

.home-matrix-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 4px;
}

.home-matrix-negative {
    border-top: 3px solid #A94442;
}

.home-matrix-positive {
    border-top: 3px solid var(--accent-gold);
}

.home-matrix-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-matrix-subprose {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.home-matrix-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-matrix-list li {
    font-family: var(--font-prose);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-primary);
}

.matrix-icon-cross {
    color: #A94442;
    font-weight: bold;
}

.matrix-icon-check {
    color: var(--accent-gold);
    font-weight: bold;
}

/* --- 2. NEW PAGES SCOPED INTERFACE CODES --- */
/* Services Portal Selector Handles */
.services-main-title { font-size: 3rem; margin-bottom: 1rem; }
.services-main-subtitle { font-size: 1.15rem; color: var(--text-muted); }
.services-offerings-stack { display: flex; flex-direction: column; gap: 2rem; margin: 4rem 0; }
.services-item-card { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 3rem; border-radius: 4px; position: relative; }
.services-meta-index { font-family: var(--font-headings); font-size: 3rem; font-weight: 800; color: rgba(184, 155, 94, 0.1); position: absolute; right: 3rem; top: 2rem; }
.services-card-title { font-size: 1.5rem; margin-bottom: 1rem; max-width: 80%; }
.services-card-prose { color: var(--text-muted); line-height: 1.65; margin: 0; font-size: 1rem; }
.services-summary-anchor { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 4px; }
.services-anchor-prose { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--text-muted); }

/* Apply Warning Notice Box */
.chat-capacity-warning-notice {
    background-color: rgba(184, 155, 94, 0.05);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-gold);
    padding: 1.25rem 1.5rem;
    max-width: 720px;
    margin: 2rem auto -2rem auto;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* General Contact Elements */
.contact-card-frame { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 3.5rem; max-width: 600px; margin: 0 auto; border-radius: 4px; }
.contact-main-heading { font-size: 2.25rem; margin-bottom: 0.5rem; }
.contact-sub-prose { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }
.contact-field-row { margin-bottom: 1.5rem; }
.contact-field-label { display: block; font-family: var(--font-headings); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-input-control, .contact-textarea-control { width: 100%; background-color: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.85rem; border-radius: 4px; font-family: var(--font-prose); outline: none; }
.contact-textarea-control { resize: vertical; }
.contact-input-control:focus, .contact-textarea-control:focus { border-color: var(--accent-gold); }
.contact-submit-trigger { width: 100%; padding: 1rem; font-size: 1rem; }
.contact-success-alert { background-color: rgba(46, 125, 50, 0.1); border: 1px solid rgba(46, 125, 50, 0.2); color: #2E7D32; padding: 1.25rem; border-radius: 4px; font-weight: 500; }

/* Deletion Layout Elements */
.deletion-layout-viewport { max-width: 680px; margin: 0 auto; }
.deletion-main-title { font-size: 2.5rem; margin-bottom: 1rem; }
.deletion-intro-prose { font-size: 1.1rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 3rem; }
.deletion-form-element { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 3rem; border-radius: 4px; }
.deletion-input-group { margin-bottom: 1.5rem; }
.deletion-field-label { display: block; font-family: var(--font-headings); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.deletion-input-control { width: 100%; background-color: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.85rem; border-radius: 4px; outline: none; font-family: var(--font-prose); }
.deletion-input-control:focus { border-color: var(--accent-gold); }
.deletion-warning-subtext { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.5; }
.deletion-submit-btn { width: 100%; padding: 1rem; font-size: 1rem; }
.deletion-success-alert-box { background-color: rgba(46, 125, 50, 0.1); border: 1px solid rgba(46, 125, 50, 0.2); color: #2E7D32; padding: 2rem; border-radius: 4px; font-weight: 500; line-height: 1.6; }

/* Global System Footer Disclaimer Styling Override */
.footer-system-disclaimer { border-top: 1px solid var(--border-color); padding-top: 2rem; margin-top: 2rem; text-align: left; }
.disclaimer-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin: 0; max-width: 1100px; }

/* Fluid Process List overrides for How It Works */
.works-process-fluid-card { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 3rem; border-radius: 4px; margin-top: 3rem; }
.works-fluid-title { font-size: 1.75rem; margin-bottom: 2rem; }
.works-fluid-list { padding-left: 1.25rem; }
.works-fluid-list li { font-family: var(--font-prose); font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.25rem; }
.works-fluid-list li strong { color: var(--text-primary); display: block; font-family: var(--font-headings); font-size: 1.1rem; margin-bottom: 0.25rem; }

/* --- 3. STAGE 4 RESPONSIVE MATRIX ADJUSTMENTS --- */
@media (max-width: 768px) {
    .services-main-title, .deletion-main-title { font-size: 2.25rem; }
    .services-item-card, .contact-card-frame, .deletion-form-element, .works-process-fluid-card { padding: 2rem 1.5rem; }
    .services-meta-index { display: none; }
    .home-capacity-title { font-size: 1.6rem; }
}

/* --- 4. signing in css --- */
/* Custom Global Interface Error and Status Notifications Matrix */
.alert-box-framework {
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

/* Critical Fault / Access Failure Themes */
.alert-theme-danger {
    background-color: rgba(169, 68, 66, 0.08);
    border: 1px solid #A94442;
    color: #A94442;
}

.alert-theme-danger a {
    color: var(--text-primary, #E5E5E5);
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.75rem;
}

/* Operational Verification / Success Themes */
.alert-theme-success {
    background-color: rgba(184, 155, 94, 0.05);
    border: 1px solid var(--border-color, #333333);
    color: var(--text-primary, #E5E5E5);
}

.alert-theme-success h3 {
    color: var(--accent-color, #B89B5E);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.alert-theme-success p {
    margin: 0;
}

.alert-theme-success .btn-inline-action {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
}

.footer-client-link {
    font-size: 0.85rem;
    opacity: 0.7;
}

.upload-help-panel{
    margin-top:2rem;
    padding:1rem 1.25rem;
    border:1px solid #e2e8f0;
    border-radius:8px;
    background:#fafafa;
}

.upload-help-panel summary{
    cursor:pointer;
    font-size:1.05rem;
    color:#b89b5e;
    margin-bottom:.75rem;
}

.upload-help-panel p{
    margin:.75rem 0;
}
/*Insights*/

        /* Modern Premium Minimal Design Tokens */
        :root {
            --bg-base: #fbfbfd;
            --text-main: #1d1d1f;
            --text-muted: #6e6e73;
            --border-subtle: #e5e5ea;
            --accent: #86868b;
            --focus-bg: #ffffff;
        }
/*        @media (prefers-color-scheme: dark) {
            :root {
                --bg-base: #000000;
                --text-main: #f5f5f7;
                --text-muted: #86868b;
                --border-subtle: #222224;
                --accent: #d2d2d7;
                --focus-bg: #121212;
            }
        }*/
        
        body { 
            background-color: var(--bg-base); 
            color: var(--text-main); 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
            margin: 0; 
            padding: 0; 
            transition: background 0.4s, color 0.4s; 
        }
        
        .hub-container { max-width: 800px; margin: 80px auto; padding: 0 24px; }
        
        /* Typography */
        .hub-header h1 { font-family: "Times New Roman", Georgia, serif; font-size: 38px; font-weight: 400; margin-bottom: 12px; letter-spacing: -0.5px; }
        .hub-intro { font-size: 17px; line-height: 1.5; color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }
        
        /* Category Navigation Filters */
        .filter-nav { display: flex; gap: 20px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 16px; margin-bottom: 40px; overflow-x: auto; white-space: nowrap; 
		overflow-x: auto; /* Adds a native scrollbar when text overflows the container width */
    overflow-y: hidden; /* Prevents vertical layout shifting or jumping */
    
    /* Optimizes touch sweeping gesture mechanics on trackpads and mobile glass surfaces */
    -webkit-overflow-scrolling: touch;}
        .filter-nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
        .filter-nav a:hover, .filter-nav a.active { color: var(--text-main); }

        /* Article List Layout */
        .article-row { display: block; text-decoration: none; color: inherit; padding: 32px 0; border-bottom: 1px solid var(--border-subtle); transition: opacity 0.2s; }
        .article-row:hover { opacity: 0.85; }
        .article-meta { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; display: flex; gap: 12px; }
        .article-row h2 { font-family: "Times New Roman", Georgia, serif; font-size: 24px; font-weight: 400; margin: 0 0 10px 0; line-height: 1.25; }
        .article-excerpt { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .read-link { font-size: 14px; display: inline-block; margin-top: 14px; color: var(--text-main); font-weight: 500; }
        
        .empty-state { padding: 40px 0; color: var(--text-muted); font-style: italic; }
        
        /* Header / Layout Elements subject to Immersive Mode hiding */ 
        .site-masthead, .site-footer { max-width: 680px; margin: 0 auto; padding: 30px 24px; display: flex; justify-content: space-between; align-items: center; transition: opacity 0.4s, visibility 0.4s; }
        .site-masthead a, .site-footer a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
        .site-masthead a:hover { color: var(--text-main); }

        .article-container { max-width: 680px; margin: 30px auto 80px auto; padding: 0 24px; box-sizing: border-box; }
        
        /* Functional Meta Elements - Now Sticky */
		.article-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-muted);
            
            /* Sticky Magic */
            position: sticky;
            top: 68px; /* Clear the 68px fixed global header menu in normal reading mode */
            z-index: 500; /* Keeps bar layered firmly above standard paragraph texts */
            background-color: var(--bg-base);
            padding: 20px 0; /* Creates an elegant, persistent breathing room at the top */
            margin-bottom: 24px;
            transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease, top 0.4s ease;
        }

        .focus-toggle-btn { 
            background: none; 
            border: 1px solid var(--border-subtle); 
            color: var(--text-muted); 
            padding: 6px 12px; 
            border-radius: 20px; 
            cursor: pointer; 
            font-size: 12px; 
            transition: all 0.2s; 
        }
        .focus-toggle-btn:hover { 
            color: var(--text-main); 
            border-color: var(--text-main); 
        }      
        
        /* Article Reading Space Typography */
        .article-header h1 { font-family: "Times New Roman", Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1.2; margin: 0 0 40px 0; letter-spacing: -0.5px; }
        
        .insight-content-body { font-size: 16px; line-height: 1.65; letter-spacing: -0.01em; }
        
        /* Explicitly style the allowed tags generated from database input */
        .insight-content-body p { margin-top: 0; margin-bottom: 24px; 
    color: var(--text-muted);}
        .insight-content-body h2 { font-family: "Times New Roman", Georgia, serif; font-size: 22px; font-weight: 400; margin-top: 48px; margin-bottom: 16px; line-height: 1.3; }
        .insight-content-body strong { font-weight: 600; color: var(--text-main); }
        
        .divider { border: 0; border-top: 1px solid var(--border-subtle); margin: 60px 0; }
        .soft-closing-cta { font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 580px; }
        .soft-closing-cta a { color: var(--text-main); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

        /* Immersive Mode Structural Triggers */
        body.immersive-active { background-color: var(--focus-bg); }
        body.immersive-active .site-masthead,
        body.immersive-active .site-footer { opacity: 0; visibility: hidden; pointer-events: none; }
        
        body.immersive-active .hide-in-focus { 
            opacity: 0; 
            visibility: hidden; 
            pointer-events: none; 
            transition: opacity 0.4s, visibility 0.4s; /* Smooth fade out */
            height: 10px;
        }

        /* Add a very fine underline to the sticky bar only when in focus mode to ground it */
		body.immersive-active .article-toolbar {
            top: 0; /* Snap back to the absolute top of the screen now that the header is hidden */
            background-color: var(--focus-bg);
            border-bottom: 1px solid var(--border-subtle);
            padding: 16px 0; /* Slightly tighter framing when focusing */
        }
        
        /* Custom formatting inside the insight body */

        /* 1. Elegant Blockquotes & Indents */
        .insight-content-body blockquote {
            margin: 40px 0;
            padding-left: 24px;
            border-left: 2px solid var(--border-subtle);
            font-family: "Times New Roman", Georgia, serif;
            font-style: italic;
            font-size: 19px;
            color: var(--text-main);
            line-height: 1.6;
        }

        /* 2. Clean, Minimalist Lists (Bullet Points) */
        .insight-content-body ul {
            margin-top: 0;
            margin-bottom: 28px;
            padding-left: 20px;
            list-style-type: square; /* Clean geometric square instead of a generic round dot */
        }

        .insight-content-body li {
            margin-bottom: 12px;
            line-height: 1.6;
            padding-left: 4px;
			font-size: 1.15rem;
    color: var(--text-muted);
        }

        /* Quick fix for a common PHP quirk: prevent double spacing inside lists caused by nl2br */
        .insight-content-body ul br {
            display: none;
        }
        header.site-masthead a {
            display: inline-block;
            margin-top: 20px; /* Adjust this number to make the gap larger or smaller */
        }


/* Global Minimalist Scroll to Top Link */
        .scroll-top-link {
            position: fixed;
            bottom: 40px;
            right: 40px;
            font-size: 13px;
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 0.5px;
            z-index: 490; /* Keeps it right beneath the main sticky top bar stack level */
            
            /* Visual Masking Fixes */
            background-color: var(--bg-base); /* Blocks out text rolling underneath completely */
            padding: 8px 16px; /* Provides breathing room around the indicator arrow */
            border: 1px solid var(--border-subtle); /* Keeps it anchored to the architectural styling */
            border-radius: 30px; /* Elegant pill capsule shape */
            
            /* Initially hidden and shifted down slightly */
            opacity: 0;
            visibility: hidden;
            transform: translateY(8px);
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.2s, background-color 0.4s, border-color 0.4s;
        }

        .scroll-top-link:hover {
            color: var(--text-main);
            border-color: var(--text-main);
        }

        /* Triggered cleanly via lightweight JS */
        .scroll-top-link.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Ensure the button hides cleanly if the user triggers focus mode */
        body.immersive-active .scroll-top-link {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none;
        }
		
/* Executive Letter Container Style */
.executive-letter {
    background-color: var(--border-subtle);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 48px;
    border-left: 3px solid var(--accent); /* Elegant architectural anchor accent */
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Subtle override to ensure readability inside the letter box on dark mode */
body.immersive-active .executive-letter {
    background-color: rgba(255, 255, 255, 0.03);
}
@media (prefers-color-scheme: dark) {
    .executive-letter {
        background-color: rgba(255, 255, 255, 0.02);
    }
}

/* Target multiple elements together for shared styles */
.article-container h2,
.article-container h3,
.article-container strong,
.article-container em,
.article-container a,
.article-container i,
.article-container ul,
.article-container li,
.article-container blockquote {
  /* Example: Add a shared font or spacing 
  font-family: 'Georgia', serif;*/
}

/* Target elements individually for unique styles */
.article-container h2 {
}

/* ==========================================================================
   Article Container Typography & Spacing Fixes
   ========================================================================== */

.article-container p {
	margin-top: 1.2em;
}

/* 1. Typography Adjustments for Headings */
.article-container h2 {
    font-weight: 600 !important;
    text-transform: uppercase; /* Automatically forces text to ALL CAPS */
}

.article-container h3 {
    margin-top: 1.5em; /* Increases the standard default gap above by 50% */
}

/* 2. Collapsing <br /> Tags Near Block-Level Elements */
/* Hides line breaks immediately following or preceding headings, lists, and quotes */
.article-container h2 + br, .article-container h2 + br + br,
.article-container h3 + br, .article-container h3 + br + br,
.article-container ul + br, .article-container ul + br + br,
.article-container li + br, .article-container li + br + br,
.article-container blockquote + br, .article-container blockquote + br + br {
    display: none;
}

.article-container a {

    font-weight: 500; /* Subtle weight shift (Option 3) */
    color: var(--text-primary); /* Automatically pulls #111111 or your dark-theme equivalent */
    text-decoration: none;
    display: inline;
    position: relative;
    transition: color 200ms ease;
    /* --- THE PREMIUM SKIPPING UNDERLINE (Option 1) --- */
    /* Creates a razor-thin gold line sitting perfectly below the baseline text track */
    background-image: linear-gradient(var(--accent-gold), var(--accent-gold));
    background-position: 0% 95%; /* Dropped slightly lower for breathing room */
    background-repeat: no-repeat;
    background-size: 100% 1.5px; /* Thin 1.5px line width */
    
    /* Magical native property that prevents the gold line from cutting through g, j, p, q, y */
    text-decoration-skip-ink: auto; 
    
    transition: background-size 300ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

/* --- THE INTERACTIVE HOVER EXPERIENCE --- */
.article-container a:hover {
    color: var(--accent-gold); /* Smoothly transitions text to match the accent gold */
    
    /* Smoothly scales the line thickness up to 2.5px on hover for tactile feedback */
    background-size: 100% 2.5px; 
}


.padtopzero{
	padding-top: 0;
}
.padbottomten{
	padding-bottom: 10px;
}

/* 1. Hardware accelerate the entire split section container */
.works-split-interaction-layout {
    contain: strict; /* Force the browser to treat this layout box as an isolated island */
    content-visibility: auto; /* Skip rendering calculations until it's about to enter view */
    contain-intrinsic-size: auto 550px; /* Force-reserve the space so the text doesn't wait */
    transform: translateZ(0); /* Force GPU rasterization layer routing */
    transition: none !important;
}

@media (max-width: 768px) {
	.works-split-interaction-layout {
		contain-intrinsic-size: auto 900px;
	}
}
/* 2. Break the flex/grid inheritance rendering lag */
.works-split-grid-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    contain: layout size;
}

/* 3. Stop the image frame from blocking the text thread */
.works-split-image-frame {
    overflow: visible !important;
    contain: paint;
}


/* Base Container Setup */
.article-image-container {
    margin: 1.5rem auto;
    display: block;
    width: 100%;
}

.article-body-img { 
  display: block; 
  width: 100%; 
  max-height: 500px; /* Limits the height */
  object-fit: cover; /* Prevents squashing by cropping to fit. Can also be 'contain' */
  height: auto; 
}

/* Align Right & Wrap Text around it (Desktop up) */
@media (min-width: 600px) {
    .article-image-container.align-right {
        float: right;
        margin: 0 0 1.5rem 1.5rem;
        width: 47%;
    }
    
    /* Align Left & Wrap Text around it */
    .article-image-container.align-left {
        float: left;
        margin: 0 1.5rem 1.5rem 0;
        width: 47%;
    }
}

/* Optional Caption Styling */
figcaption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding-top: 0.5rem;
}

.cat-count {
    font-size: 0.75rem;
    vertical-align: super;
    margin-left: 4px;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 400;
}

.filter-nav a.active .cat-count {
    color: var(--text-main);
    opacity: 0.8;
}

/* Base Filter Wrapper Settings */
.filter-nav {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    
    /* Native smooth kinetic scrolling for mobile feel */
    -webkit-overflow-scrolling: touch; 
    
    padding-bottom: 12px; /* Increased slightly to give the scrollbar breathing room */
}

/* --- PREMIUM MINIMALIST SCROLLBAR STYLING --- */
/* Firefox Scrollbar styling */
@supports (scrollbar-width: thin) {
    .filter-nav {
        scrollbar-width: thin;
        scrollbar-color: var(--border-subtle) transparent;
    }
}

/* Chrome, Safari, and Edge Scrollbar styling */
.filter-nav::-webkit-scrollbar {
    height: 4px; /* Super thin, sleek horizontal scrollbar line */
    display: block; /* Restores the track! */
}

.filter-nav::-webkit-scrollbar-track {
    background: transparent; /* Seamless blend into your background */
}

.filter-nav::-webkit-scrollbar-thumb {
    background-color: var(--border-subtle); /* Matches your elegant border tokens */
    border-radius: 10px;
}

.filter-nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent); /* Gently darkens when hovered */
}

/* Link element settings */
.filter-nav a {
    display: inline-block;
    flex-shrink: 0; /* Prevents text from squishing up */
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
}

.filter-nav a.active {
    color: var(--text-main);
    border-bottom-color: var(--text-main); /* Minimal line indicator */
}

