/* ==========================================================================
   MERIDIAN TPO SOLUTIONS - EXECUTIVE STYLESHEET
   ========================================================================== */

:root {
    /* Executive Color Palette */
    --color-navy: #0A192F;
    --color-slate: #172A45;
    --color-charcoal: #333333;
    --color-silver: #C0C0C0;
    --color-white: #FFFFFF;
    --color-offwhite: #F8F9FA;
    --color-accent: #8892B0; /* Muted tech blue for subtle accents */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;

    /* Rhythm */
    --space-sm: 1.2rem;
    --space-md: 3.5rem;
    --space-lg: 6.5rem;
    --space-xl: 9vw;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, .brand-typography {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.2;
}

.light-text {
    color: var(--color-white) !important;
}

.text-center {
    text-align: center;
}

.section-serif-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Buttons */
.action-btn-primary, .action-btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.action-btn-primary {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.action-btn-primary:hover {
    background-color: var(--color-slate);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.action-btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.action-btn-secondary:hover {
    background-color: var(--color-offwhite);
}

/* Header */
.meridian-sys-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-silver);
    padding: 1rem 5%;
}

.header-inner-bounds {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-mark-svg {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-typography {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.structural-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item-node {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.nav-item-node:hover {
    color: var(--color-navy);
}

.call-to-action-nav {
    border: 1px solid var(--color-silver);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
}

/* Hero */
.split-deployment-hero {
    display: flex;
    min-height: 85vh;
    background-color: var(--color-offwhite);
    border-bottom: 4px solid var(--color-navy);
}

.hero-text-payload {
    flex: 1;
    padding: var(--space-xl) 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certification-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--color-silver);
    color: var(--color-navy);
    padding: 0.3rem 0.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.primary-infrastructure-heading {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: 1.5rem;
}

.hero-technical-subtext {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: var(--color-charcoal);
}

.hero-action-cluster {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual-payload {
    flex: 1;
    display: none;
}

.hero-cover-img {
    height: 100%;
}

@media(min-width: 992px) {
    .hero-visual-payload {
        display: block;
    }
}

/* Corporate Profile (About) */
.deep-corporate-module {
    padding: var(--space-xl) 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media(min-width: 992px) {
    .deep-corporate-module {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.body-serif-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.inline-doc-link {
    color: var(--color-navy);
    text-decoration: underline;
    text-decoration-color: var(--color-silver);
    text-underline-offset: 4px;
}

.metric-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-silver);
}

.data-node {
    display: flex;
    flex-direction: column;
}

.node-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1;
}

.node-label {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-cover-img {
    aspect-ratio: 4/5;
    box-shadow: -20px 20px 0 var(--color-silver);
}

/* Capabilities (Services) */
.capabilities-matrix-zone {
    background-color: var(--color-navy);
    padding: var(--space-lg) 5%;
    color: var(--color-white);
}

.matrix-header {
    max-width: 800px;
    margin: 0 auto var(--space-md) auto;
    text-align: center;
}

.matrix-sub-desc {
    color: var(--color-silver);
    font-size: 1.1rem;
}

.systems-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.system-card-node {
    background-color: var(--color-slate);
    border: 1px solid rgba(192,192,192,0.1);
    transition: transform 0.3s ease;
}

.system-card-node:hover {
    transform: translateY(-5px);
}

.system-card-img {
    height: 240px;
}

.system-card-data {
    padding: 2rem;
}

.system-title {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.system-desc {
    color: var(--color-silver);
    font-size: 0.95rem;
}

/* Technical Edge (Benefits) */
.engineering-benefits-band {
    padding: var(--space-lg) 5%;
    background-color: var(--color-offwhite);
}

.benefits-flex-wrap {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.benefit-item {
    flex: 1 1 300px;
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-top: 3px solid var(--color-silver);
}

.benefit-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.benefit-text {
    font-size: 0.95rem;
}

/* Endorsements (Testimonials) */
.endorsement-registry {
    padding: var(--space-xl) 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feedback-block {
    padding: 2.5rem;
    border: 1px solid var(--color-silver);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
}

.quote-text::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-silver);
    position: absolute;
    top: -2rem;
    left: -1rem;
    opacity: 0.3;
}

.quote-author-cluster {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--color-navy);
}

.author-title {
    font-size: 0.8rem;
    color: var(--color-accent);
}

/* Contact Form */
.bid-request-terminal {
    background-color: var(--color-slate);
    padding: var(--space-xl) 5%;
}

.terminal-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    background-color: var(--color-white);
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.terminal-context {
    flex: 1 1 400px;
}

.terminal-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.micro-faq {
    list-style: none;
    padding-top: 2rem;
    border-top: 1px solid var(--color-silver);
}

.micro-faq li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.terminal-form-wrapper {
    flex: 1 1 400px;
}

.data-intake-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy);
}

.technical-input {
    padding: 1rem;
    border: 1px solid var(--color-silver);
    font-family: var(--font-body);
    background-color: var(--color-offwhite);
}

.technical-input:focus {
    outline: none;
    border-color: var(--color-navy);
}

.form-submit-override {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.meridian-global-footer {
    background-color: var(--color-navy);
    color: var(--color-silver);
    padding: 5rem 5% 2rem;
    font-size: 0.9rem;
}

.footer-data-columns {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-heading {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col-contact p, .footer-col-location p {
    margin-bottom: 0.5rem;
}

.footer-col-legal {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-tag {
    margin-top: 1rem;
    font-style: italic;
}

.footer-sub-bar {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.tiny-disclaimer {
    font-size: 0.75rem;
    max-width: 600px;
    color: rgba(192,192,192,0.6);
}

/* Mobile Nav Toggle (Hidden on desktop, generic fallback if needed, but keeping it simple for this build) */
@media (max-width: 768px) {
    .structural-nav-links {
        display: none;
    }
    .terminal-inner {
        padding: 2rem;
    }
    .profile-cover-img {
        box-shadow: none;
    }
}
