:root {
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #64748B;
    --primary: #0A192F; /* Deep navy */
    --accent: #D4AF37; /* Gold accent */
    --accent-hover: #B5952F;
    --border: #E2E8F0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 2rem;
    --space-4: 4rem;
    --space-5: 8rem;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.125rem; }
.lead { font-size: 1.25rem; font-weight: 300; color: var(--text-main); line-height: 1.8; }

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* Header & Nav */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-top {
    background: var(--primary);
    color: var(--bg-white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    text-align: right;
}
.header-top a { color: var(--accent); text-decoration: underline; margin-left: 1rem; }
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-mark {
    width: 32px; height: 32px;
    background: var(--primary);
    color: var(--accent);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.25rem;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0.25rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover {
    background: var(--bg-white);
    color: var(--primary);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}
.btn-accent:hover {
    background: transparent;
    color: var(--accent);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}
.btn-outline-white {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}
.btn-outline-white:hover {
    background: var(--bg-white);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer;
}

@media (max-width: 992px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); flex-direction: column; padding: 2rem; border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .nav-links.show { display: flex; }
    .menu-toggle { display: block; }
    .header-btn { display: none; }
}

/* Hero Sections */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0; width: 40%;
    background: var(--primary);
    z-index: 0;
}
.hero-content {
    position: relative; z-index: 1;
    padding: 6rem 0;
}
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(10, 25, 47, 0.05);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-image-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 500px;
}
.hero-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    box-shadow: -20px 20px 0 var(--accent);
}

@media (max-width: 992px) {
    .hero::after { display: none; }
    .hero-image-wrapper { display: none; }
}

.page-header {
    background: var(--primary);
    color: var(--bg-white);
    padding: 8rem 0 4rem;
    text-align: center;
}
.page-header h1 { color: var(--bg-white); }
.page-header p { color: rgba(255,255,255,0.8); max-width: 700px; margin: 1rem auto 0; }

/* Sections */
section { padding: 6rem 0; }
.section-dark { background: var(--primary); color: var(--bg-white); }
.section-dark h2, .section-dark h3 { color: var(--bg-white); }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-title { margin-bottom: 4rem; }
.section-title h2 { margin-bottom: 1rem; }
.section-title p { max-width: 600px; }
.section-title.text-center p { margin-left: auto; margin-right: auto; }

/* Cards & Modules */
.service-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); transition: width 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.service-card:hover::before { width: 100%; }
.service-icon {
    font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; display: block;
}
.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.service-card p { margin-bottom: 1.5rem; font-size: 1rem; }
.link-arrow {
    display: inline-flex; align-items: center; color: var(--primary); font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em;
}
.link-arrow::after { content: '→'; margin-left: 0.5rem; transition: transform 0.3s ease; }
.link-arrow:hover::after { transform: translateX(5px); }
.section-dark .link-arrow { color: var(--accent); }
.section-dark .service-card .link-arrow { color: var(--primary); }

/* Value Proposition */
.value-list { list-style: none; margin-top: 2rem; }
.value-list li {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem;
}
.value-list li::before {
    content: '✓'; color: var(--accent); font-weight: bold; font-size: 1.25rem;
}
.value-list h4 { margin-bottom: 0.25rem; font-size: 1.125rem; }
.value-list p { font-size: 0.9375rem; margin-bottom: 0; }

/* Methodology Steps */
.step-item {
    display: flex; gap: 2rem; margin-bottom: 3rem;
}
.step-number {
    font-family: var(--font-heading); font-size: 4rem; font-weight: 800; color: var(--accent); opacity: 0.5; line-height: 1; min-width: 60px;
}
.step-content h3 { margin-bottom: 0.5rem; }

@media (max-width: 576px) {
    .step-item { flex-direction: column; gap: 1rem; }
}

/* Stats */
.stat-box { border-left: 2px solid var(--accent); padding-left: 1.5rem; margin-bottom: 2rem;}
.stat-number { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.section-dark .stat-number { color: var(--bg-white); }
.stat-label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-size: 0.875rem; }
.section-dark .stat-label { color: rgba(255,255,255,0.7); }

/* Footer */
footer {
    background: var(--primary);
    color: var(--bg-white);
    padding: 6rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem;
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-col h4 { color: var(--bg-white); font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s ease; }
.footer-col p { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--accent); }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; color: var(--bg-white); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.5); font-size: 0.875rem; }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* Images */
img { max-width: 100%; height: auto; }
.img-styled { border-radius: 0; box-shadow: 15px 15px 0 rgba(10, 25, 47, 0.05); object-fit: cover; width: 100%; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; }
.form-control { width: 100%; padding: 1rem; border: 1px solid var(--border); font-family: var(--font-body); background: var(--bg-light); transition: border-color 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 150px; resize: vertical; }

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }

/* Niche Specific - Operations Architecture Diagram */
.ops-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--primary);
    padding: 3rem;
    color: white;
}
.ops-node {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem;
    position: relative;
    background: rgba(255,255,255,0.02);
}
.ops-node::before {
    content: ''; position: absolute; left: 2rem; top: -1.5rem; width: 2px; height: 1.5rem; background: var(--accent);
}
.ops-node:first-child::before { display: none; }
.ops-node h4 { color: var(--accent); margin-bottom: 0.5rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.875rem; }
.ops-node p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.9375rem; }

/* Tables for Data/Insights */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; overflow-x: auto; display: block; }
.data-table th { text-align: left; padding: 1.5rem 1rem; background: var(--bg-light); color: var(--primary); border-bottom: 2px solid var(--primary); font-family: var(--font-heading); font-weight: 600; white-space: nowrap; }
.data-table td { padding: 1.5rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-main); }
.data-table tr:hover td { background: var(--bg-light); }

/* Article */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { margin: 3rem 0 1.5rem; }
.article-content h3 { margin: 2rem 0 1rem; }
.article-content p { margin-bottom: 1.5rem; font-size: 1.125rem; }
.article-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; font-size: 1.125rem; color: var(--text-muted); }
.blockquote { border-left: 4px solid var(--accent); padding-left: 2rem; margin: 3rem 0; font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); font-style: italic; }

/* Framework Matrix */
.framework-matrix {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.matrix-cell { background: var(--bg-white); padding: 2rem; text-align: center; }
.matrix-cell h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.5rem; }
.matrix-cell p { font-size: 0.875rem; margin: 0; }

/* Process Timeline */
.process-timeline { border-left: 2px solid var(--border); padding-left: 2rem; margin-left: 1rem; }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: 0.25rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg-white); border: 2px solid var(--accent); }
.timeline-item h4 { margin-bottom: 0.5rem; color: var(--primary); }

/* Shared Header/Footer Generation */
/* (This will be included in the HTML files) */

/* Accessibility: reduced motion + color-scheme support (audit fix, 2026-08-23) */
:root { color-scheme: light dark; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
