
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #F9F9F8;
    --surface: #FFFFFF;
    --navy: #0A192F;
    --navy-light: #162B4A;
    --crimson: #8C1D1D;
    --text-main: #1A1A1A;
    --text-muted: #5E6A78;
    --border: #D1D5DB;
    --border-light: #E5E7EB;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    --grid-max: 1400px;
}

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

html { scroll-behavior: smooth; }

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

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

h1 { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }
h4 { font-size: 1.4rem; margin-bottom: 1rem; }

p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-large { font-size: 1.25rem; line-height: 1.8; }
.text-small { font-size: 0.9rem; }
.dropcap::first-letter { font-family: var(--font-heading); font-size: 4rem; float: left; line-height: 1; padding-right: 0.5rem; color: var(--crimson); }

a { color: var(--navy); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--crimson); }

/* Layout & Grid */
.container {
    width: 92%;
    max-width: var(--grid-max);
    margin: 0 auto;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

section { padding: var(--space-xl) 0; position: relative; border-bottom: 1px solid var(--border-light); }
.section-dark { background-color: var(--navy); color: var(--surface); border-bottom: none; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: var(--surface); }
.section-dark .text-muted { color: #A0AABF; }
.section-light { background-color: var(--surface); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 249, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.logo span { color: var(--crimson); }

.desktop-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--crimson);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block; width: 25px; height: 2px; background-color: var(--navy); margin-bottom: 5px; transition: 0.3s;
}

/* Hero Sections */
.hero-primary {
    padding: 200px 0 120px;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hero-primary::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; width: 50%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(10, 25, 47, 0.02) 10px, rgba(10, 25, 47, 0.02) 20px);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--crimson);
    margin-bottom: 1.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--navy);
    background-color: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn:hover {
    background-color: var(--navy);
    color: var(--surface);
}
.btn-solid {
    background-color: var(--navy);
    color: var(--surface);
}
.btn-solid:hover {
    background-color: var(--crimson);
    border-color: var(--crimson);
}
.btn-crimson {
    border-color: var(--crimson);
    background-color: var(--crimson);
    color: var(--surface);
}
.btn-crimson:hover {
    background-color: transparent;
    color: var(--crimson);
}

/* Structural Elements (Thematic) */
.architectural-line {
    width: 1px;
    height: 100px;
    background-color: var(--crimson);
    margin: 2rem 0;
}
.section-header { margin-bottom: var(--space-lg); max-width: 800px; }

/* Cards & Modules */
.service-card {
    border-top: 2px solid var(--navy);
    padding: 2.5rem 0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover { transform: translateY(-5px); }
.service-card .card-num { font-family: var(--font-heading); font-size: 2rem; color: var(--text-muted); margin-bottom: 1rem; }
.service-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.service-card p { flex-grow: 1; font-size: 1rem; margin-bottom: 2rem; }
.service-card .btn { align-self: flex-start; }

.insight-card {
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.insight-img { width: 100%; height: 240px; background-color: var(--border-light); position: relative; overflow: hidden; }
.insight-img::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(10,25,47,0.1), transparent);
}
.insight-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.insight-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--crimson); margin-bottom: 1rem; }
.insight-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.insight-card p { flex-grow: 1; font-size: 1rem; }

/* Process / Timeline */
.process-list { list-style: none; counter-reset: process-counter; margin: 3rem 0; border-left: 1px solid var(--border); padding-left: 3rem; }
.process-list li { position: relative; margin-bottom: 4rem; }
.process-list li::before {
    counter-increment: process-counter;
    content: "0" counter(process-counter);
    position: absolute;
    left: -4.5rem;
    top: 0;
    background: var(--bg-color);
    color: var(--crimson);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 0;
}
.process-list h3 { font-size: 1.8rem; margin-bottom: 1rem; }

/* Data / Impact blocks */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 0;}
.stat-box { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 4rem; color: var(--navy); line-height: 1; margin-bottom: 0.5rem; }
.section-dark .stat-value { color: var(--surface); }
.section-dark .stat-grid { border-color: rgba(255,255,255,0.2); }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin: 3rem 0; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--navy); background-color: rgba(0,0,0,0.02); }
.data-table tr:last-child td { border-bottom: 2px solid var(--navy); }

/* Blockquote */
blockquote { font-family: var(--font-heading); font-size: 2rem; line-height: 1.4; color: var(--navy); border-left: 4px solid var(--crimson); padding-left: 2rem; margin: 4rem 0; font-style: italic; }
blockquote footer { font-family: var(--font-body); font-size: 1rem; font-style: normal; margin-top: 1rem; color: var(--text-muted); }

/* Sidebar Layout */
.page-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 5rem; padding: 4rem 0; }
.sidebar-nav { position: sticky; top: 120px; }
.sidebar-nav ul { list-style: none; border-left: 1px solid var(--border); padding-left: 1.5rem; }
.sidebar-nav li { margin-bottom: 1rem; }
.sidebar-nav a { display: block; font-size: 1rem; color: var(--text-muted); transition: all 0.3s ease; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--navy); font-weight: 500; transform: translateX(5px); }

/* Footer */
.site-footer { background-color: var(--navy-light); color: var(--surface); padding: 6rem 0 2rem; border-top: 4px solid var(--crimson); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; display: block; color: var(--surface); }
.footer-logo span { color: var(--crimson); }
.footer-col h4 { color: var(--surface); font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: #A0AABF; font-size: 0.95rem; }
.footer-col a:hover { color: var(--surface); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: #A0AABF; }

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
    background-color: var(--surface); z-index: 999; display: flex; flex-direction: column;
    padding: 2rem; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-overlay a { font-family: var(--font-heading); font-size: 2rem; color: var(--navy); margin-bottom: 1.5rem; display: block; }
.mobile-nav-overlay .active { color: var(--crimson); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; }

/* Form */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; font-weight: 500; }
.form-control { width: 100%; padding: 1rem; border: 1px solid var(--border); background-color: var(--bg-color); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--navy); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar-nav { display: none; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2rem; }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    section { padding: 4rem 0; }
    .hero-primary { padding: 120px 0 60px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    .process-list { padding-left: 1rem; border-left: none; }
    .process-list li::before { position: relative; left: 0; display: inline-block; margin-bottom: 1rem; }
    
    .stat-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    /* eliminate horizontal scrolling completely */
    body { width: 100%; overflow-x: hidden; }
    .container { width: 90%; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}
