/* CSS Variables for Warm Palette & Typography */
:root {
    --bg-base: #FAECE3;
    --bg-alt: #F1D9C9;
    --bg-dark: #3E2723;
    --text-main: #3E2723;
    --text-light: #FAECE3;
    --text-muted: #8D6E63;
    --accent-primary: #D84315;
    --accent-hover: #BF360C;
    --accent-light: #FF8A65;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --rhythm-sm: 1.5rem;
    --rhythm-md: 3.5rem;
    --rhythm-lg: 6rem;
    --rhythm-xl: 9rem;
}

/* Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Elements */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--text-main);
    line-height: 1.1;
}

.serif-headline {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-serif-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
}

.section-serif-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-primary);
    margin-top: 1rem;
}

.text-center.section-serif-title::after {
    margin-left: auto;
    margin-right: auto;
}

.technical-sub {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Global Utilities */
.fluid-obj {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.primary-engage-btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-engage-btn:hover {
    background-color: var(--accent-hover);
}

/* Header Navigation */
.bastion-header {
    position: sticky;
    top: 0;
    background-color: rgba(250, 236, 227, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

.header-inner-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forge-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-main);
}

.primary-nav-matrix {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.primary-nav-matrix a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.primary-nav-matrix a:hover {
    color: var(--accent-primary);
}

.action-trigger {
    background: var(--text-main);
    color: var(--bg-base) !important;
    padding: 0.5rem 1rem;
}

.ghost-link {
    opacity: 0.6;
}

/* Hero Section */
.hero-domain {
    position: relative;
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--rhythm-md) 5%;
    overflow: hidden;
}

.abstract-geo {
    position: absolute;
    z-index: -1;
    background: var(--accent-light);
    opacity: 0.15;
}

.geo-one {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    top: -10%;
    left: -10%;
    filter: blur(60px);
}

.geo-two {
    width: 400px;
    height: 800px;
    transform: rotate(45deg);
    bottom: -20%;
    right: 30%;
}

.hero-content-cluster {
    padding-right: 3rem;
    z-index: 2;
}

.hero-action-bay {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-micro-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1rem;
}

.hero-visual-casing {
    height: 70vh;
    box-shadow: -20px 20px 0px var(--bg-alt);
}

/* Intelligence (About) Section */
.firm-intelligence-sect {
    display: flex;
    flex-wrap: wrap;
    padding: var(--rhythm-lg) 5%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    gap: 4rem;
}

.firm-intelligence-sect h2, 
.firm-intelligence-sect p {
    color: var(--text-light);
}

.firm-intelligence-sect .section-serif-title::after {
    background-color: var(--accent-light);
}

.intel-text-column {
    flex: 1 1 500px;
}

.intel-text-column p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #D7CCC8;
}

.inline-data-link {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.stat-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.telemetry-node .counter-val, .telemetry-node .counter-suffix {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-light);
    display: inline-block;
}

.telemetry-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.intel-image-column {
    flex: 1 1 400px;
    min-height: 400px;
}

/* Methodology Section */
.deployment-methodology {
    padding: var(--rhythm-xl) 5%;
    background-color: var(--bg-base);
}

.methodology-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.phase-module {
    background: #fff;
    padding: 3rem 2rem;
    border-top: 4px solid var(--text-main);
    box-shadow: 0 10px 30px rgba(62,39,35,0.05);
}

.deep-content-node {
    border-top-color: var(--accent-primary);
    grid-row: span 2;
}

.phase-indicator {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

.phase-module h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.method-image-spanner {
    width: 100%;
    height: 400px;
}

/* Tactical Advantages */
.tactical-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-alt);
}

.tactical-inner {
    padding: var(--rhythm-lg) 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.adv-cell h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-hover);
}

.adv-cell p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Testimonials */
.feedback-domain {
    padding: var(--rhythm-md) 5%;
    background-color: var(--bg-base);
}

.text-center {
    text-align: center;
}

.testimonial-cluster {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4rem;
}

.testimony-pod {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--bg-alt);
    padding: 2.5rem;
    position: relative;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.testimony-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-sector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.contact-form-casing {
    padding: var(--rhythm-lg) 10%;
}

.contact-form-casing h2 {
    color: var(--text-light);
}

.contact-sub {
    margin-bottom: 3rem;
    color: #D7CCC8;
}

.secure-form .input-group {
    margin-bottom: 1.5rem;
}

.secure-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

.secure-form input,
.secure-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem;
    color: var(--text-light);
    font-family: var(--font-sans);
}

.secure-form input:focus,
.secure-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.bastion-footer {
    background-color: #2D1A17;
    color: #D7CCC8;
    padding: var(--rhythm-md) 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-logo {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.noise-disclaimer {
    font-size: 0.7rem;
    opacity: 0.5;
}

.footer-contact-col h4,
.footer-legal-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-contact-col p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact-col a,
.footer-legal-col a {
    color: #D7CCC8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-col a:hover,
.footer-legal-col a:hover {
    color: var(--accent-light);
}

.footer-legal-col a {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Simple Internal Pages */
.legal-doc-wrap {
    max-width: 800px;
    margin: var(--rhythm-lg) auto;
    padding: 0 2rem;
    min-height: 60vh;
}

.legal-doc-wrap h1 {
    margin-bottom: 2rem;
}

.legal-doc-wrap p {
    margin-bottom: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-domain {
        grid-template-columns: 1fr;
        padding-top: 6rem;
    }
    .hero-content-cluster {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .tactical-advantages, .contact-sector {
        grid-template-columns: 1fr;
    }
    .tactical-visual, .contact-visual-casing {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .primary-nav-matrix {
        display: none; /* Simplified for mobile in this demo */
    }
    .serif-headline {
        font-size: 2.5rem;
    }
    .advantage-matrix {
        grid-template-columns: 1fr;
    }
}
