@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Space+Mono&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #334155;
    --accent-color: #1e293b;
    --brand-gold: #c29b40;
    --border-color: #e2e8f0;
    --header-font: 'Outfit', sans-serif;
    --body-font: 'Inter', sans-serif;
    --meta-font: 'Space Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--header-font);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: var(--text-color);
    font-size: clamp(3rem, 10vw, 5rem);
}

h2 {
    text-align: left;
}

p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

strong {
    font-weight: 600;
    color: var(--text-color);
}

em {
    font-family: var(--header-font);
    font-style: normal;
    color: var(--brand-gold);
    background: linear-gradient(120deg, rgba(194, 155, 64, 0.1) 0%, rgba(194, 155, 64, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 80%;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Metadata Entry Style */
.entry-meta {
    font-family: var(--meta-font);
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--brand-gold);
    display: block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Header */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--header-font);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-gold);
}


/* Hamburger Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    nav {
        flex-wrap: wrap;
        /* Allow wrapping if needed, though we will position absolute */
        position: relative;
    }

    /* Ensure controls stay on top of the full-screen menu */
    .logo,
    .hamburger-btn {
        position: relative;
        z-index: 2001;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100vw;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        background: #ffffff;
        padding: 40px 24px;
        padding-top: 100px;
        /* Space for the header logo/X */
        gap: 40px;
        justify-content: flex-start;
        align-items: center;
        z-index: 2000;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Increase font size for mobile menu items for better UX */
    .nav-links .nav-link {
        font-size: 1.5rem;
    }

    .nav-links .btn {
        font-size: 1.15rem;
        padding: 16px 40px !important;
        width: auto;
    }
}


/* Drawings Styles */
.drawing-frame {
    margin: 60px 0;
    text-align: center;
}

.drawing-frame img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    mix-blend-mode: darken;
    opacity: 0.95;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--text-color);
    color: #fff;
    text-decoration: none;
    font-family: var(--header-font);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    border-radius: 2px;
}

.btn:hover {
    background: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 155, 64, 0.2);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .split-layout.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Strategic Steps Redesign */
.logic-visual {
    margin: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.filter-step {
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-step:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.filter-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-gold);
    opacity: 0.3;
    transition: var(--transition);
}

.filter-step:hover::before {
    opacity: 1;
}

.filter-step span {
    font-family: var(--meta-font);
    font-size: 0.85rem;
    color: var(--brand-gold);
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.filter-step h4 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.2;
}

.filter-step p {
    font-size: 1rem !important;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 80px 0;
    text-align: center;
    background: #fafafa;
}

.footer-signature {
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-email {
    font-size: 1.5rem;
    font-family: var(--header-font);
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-top: 24px;
}

.contact-email:hover {
    color: var(--brand-gold);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    p {
        font-size: 1.15rem;
    }
}