/* Color Palette, Typography & Functional Mappings */
:root {
    /* Core Palette Tokens */
    --clay: #a95443;
    --graphite: #333333;
    --mint: #f5f2eb;
    --olive: #566270; /* Your new Steel Slate */
    --white: #ffffff;
    --green: #527e7c;

    /* Global Typography Reset */
    --font-sans: monospace;

    /* Structural Theme Mappings */
    --bg-dark-base: var(--white);
    --bg-dark-section: var(--mint);
    --bg-card: var(--white);

    /* Typography Mapping */
    --text-main: var(--graphite);
    --text-muted: var(--olive);
    --text-white: var(--white);

    /* Interactive & Accent Mapping */
    --accent-primary: var(--clay);
    --accent-hover: #bc6453;

    /* Legacy / Component Layout Fallbacks */
    --pastel-blue: var(--clay);
    --pastel-teal: var(--olive);
    --pastel-purple: var(--clay);
    --pastel-green: var(--olive);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark-base);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--olive);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-nav) {
    color: var(--text-main);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover:not(.btn-nav) {
    color: var(--accent-primary);
}

.btn-nav {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: var(--accent-primary);
    color: var(--white);
}

/* Section Ownership */
section {
    padding: 8rem 0;
}

section:nth-child(even) {
    background-color: var(--bg-dark-section);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* General Section Headings */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-primary);
}

.section-subtitle {
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* The Advantage Section */
.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Services Section - Clean Stacked Layout */
.services-list {
    display: flex;
    flex-direction: column;
    max-width: 800px;
}

.service-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--olive);
}

.service-item:first-child {
    padding-top: 0;
}

.service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-item h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Case Studies - Minimalist Directory Index */
.case-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--text-main);
}

.case-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2rem 0;
    border-bottom: 1px solid var(--olive);
    color: var(--text-main);
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.case-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: right;
    max-width: 60%;
    transition: color 0.2s ease;
}

/* Unified Hover State */
.case-item:hover .case-title,
.case-item:hover .case-desc {
    color: var(--accent-primary);
}

.section-subheading {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-main);
}

.heading-spacing {
    margin-bottom: 2rem;
}

.mb-large {
    margin-bottom: 4rem;
}

.list-padding {
    padding-left: 1.5rem;
}

.case-study-list-item,
.phase-item {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.phase-list {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.phase-item {
    margin-bottom: 0.5rem;
}

.kpi-heading {
    margin-bottom: 2rem;
    color: var(--text-main);
    font-size: 1.5rem;
}

.kpi-list-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kpi-item-row {
    background-color: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--olive);
    border-left: 4px solid var(--accent-primary);
}

.kpi-item-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.kpi-item-value {
    margin: 0;
    font-size: 1.05rem;
    color: var(--accent-primary);
}

.kpi-arrow-divider {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 0.5rem;
}

/* Contact / Form Section */
.contact-container p {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.escalation-form {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--olive);
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.input-group input,
.input-group textarea {
    background-color: var(--white);
    border: 1px solid var(--olive);
    padding: 1rem;
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(169, 84, 67, 0.1);
}

.btn-submit {
    background-color: var(--accent-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    background-color: var(--green);
    padding: 3rem 0;
    border-top: 1px solid var(--olive);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--mint);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
    section {
        padding: 5rem 0;
    }
    .escalation-form {
        padding: 2rem;
    }
    .case-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    .case-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }

    .case-desc {
        text-align: left;
        max-width: 100%;
    }
}

/* --- Case Studies & Details Section: Minimalist Architecture --- */

/* Directory Index (Home Page) */
.case-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--text-main);
}

.case-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2rem 0;
    border-bottom: 1px solid var(--olive);
    color: var(--text-main);
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.case-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: right;
    max-width: 60%;
    transition: color 0.2s ease;
}

.case-item:hover .case-title,
.case-item:hover .case-desc {
    color: var(--accent-primary);
}

/* Detailed Case Study Page Components */
.case-study-tag {
    padding-top: 2rem;
    display: block;
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.case-study-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.article-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--olive);
    color: var(--text-main);
}

.article-date {
    color: var(--accent-primary);
}

.text-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.6;
}

/* Clean List for Interventions */
.clean-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
}

.clean-list li {
    font-size: 1.1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--olive);
    color: var(--text-muted);
}

.clean-list li:last-child {
    border-bottom: none;
}

.clean-list strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

/* Data Ledger for KPIs */
.ledger-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--text-main);
    max-width: 800px;
}

.ledger-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--olive);
}

.ledger-title {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
}

.ledger-value {
    font-size: 1.25rem;
    color: var(--accent-primary);
    text-align: right;
}

/* Updated Responsive adjustments */
@media (max-width: 768px) {
    .case-study-title {
        font-size: 2.5rem;
    }
    .case-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
    .case-desc {
        text-align: left;
        max-width: 100%;
    }
    .ledger-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .ledger-value {
        text-align: left;
    }
}

.info-item {
    margin-bottom: 2rem;
}

.info-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text {
    margin: 0;
    font-size: 1.2rem;
}

.info-link {
    color: var(--accent-primary);
    text-decoration: none;
}
