/* =========================================
   GLOBAL VARIABLES & RESETS
   ========================================= */
:root {
    /* Typography */
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Newsreader', serif;
    
    /* Colors */
    --color-bg: #FAFAFA; /* Slight off-white background */
    --color-text-main: #111111;
    --color-text-muted: #666666;
    --color-black: #000000;
    --color-white: #FFFFFF;

    /* Spacing */
    --container-padding: 5%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Button Utilities */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-dark {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--color-black);
}

.btn-text {
    color: var(--color-black);
    background: transparent;
    padding: 12px 0;
    font-weight: 500;
    font-family: 'Poppins', monospace; 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.btn-text:hover {
    opacity: 0.6;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--container-padding);
    background-color: var(--color-bg);
}

.logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 300;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem var(--container-padding) 8rem;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 550px;
    object-fit: cover;
    /* Optional: adds a slight shadow to match the Figma depth */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}
/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.section {
    padding: 6rem var(--container-padding);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.mt-auto {
    margin-top: 6rem; /* Pushes the list down to match the design */
}

/* Typography Utilities */
.label {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.label-light {
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4rem;
}

.heading-md {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.heading-lg {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -1px;
}

.text-white {
    color: var(--color-white);
}

.text-sm-bold {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* =========================================
   LIST STYLES
   ========================================= */
.custom-list {
    list-style: none;
}

.custom-list li {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

/* Custom minimal bullet points */
.custom-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.text-list {
    margin: 1.5rem 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
}

.text-list li {
    margin-bottom: 0.8rem;
}

/* =========================================
   SPECIFIC SECTIONS
   ========================================= */
.problem-section {
    border-top: 1px solid #EAEAEA; /* Subtle divider from Hero */
    background-color: var(--color-bg);
}
.hide-on-desktop {
    display: none;
}

.philosophy-section {
    background-color: var(--color-bg);
    align-items: center; /* Vertically centers the right column text */
}

.dark-box {
    background-color: var(--color-black);
    padding: 5rem 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.philosophy-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

span.underline {
    position: relative;
    text-decoration: underline;
}

/* =========================================
   WHAT I DO SECTION - REVISED
   ========================================= */
.what-i-do-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns text to the bottom of the heading */
    margin-bottom: 4rem;
    gap: 2rem;
}

.what-i-do-desc {
    max-width: 450px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem; /* Aligns it visually with the heading baseline */
}

/* Change to 4 columns */
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.service-card {
    border-top: 1px solid #EAEAEA;
    padding-top: 2rem;
}

/* Updated Icon Styling for Font Awesome */
.service-icon {
    font-size: 1.5rem; /* Replaces width/height */
    margin-bottom: 2rem;
    color: var(--color-text-main);
    display: block;
}

.service-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-desc {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}


/* =========================================
   RESULTS SECTION
   ========================================= */
.results-section {
    background-color: var(--color-bg);
    padding-top: 2rem;
}

.subtitle-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 400px;
    line-height: 1.6;
}

.mt-2 {
    margin-top: 2rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-item {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #EAEAEA;
    padding: 2.5rem 0;
}

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

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

.result-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text-muted);
    font-style: italic;
    min-width: 40px;
}

.result-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-text p {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =========================================
   ADDITIONAL UTILITIES
   ========================================= */
.bg-black { background-color: var(--color-black); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.flex-center-vertical { display: flex; align-items: center; }

/* =========================================
   QUOTE BANNER
   ========================================= */
.quote-section {
    padding: 8rem var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.divider {
    width: 40px;
    height: 1px;
    background-color: var(--color-text-muted);
    margin: 3rem 0;
}

.quote-subtext {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    line-height: 1.8;
    max-width: 650px;
    text-transform: uppercase;
}

/* =========================================
   ABOUT PREVIEW
   ========================================= */
.about-preview {
    background-color: var(--color-bg);
}

.about-image img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1); /* Forces the B&W look */
}

/* =========================================
   IMPACT CTA
   ========================================= */
.impact-section {
    position: relative;
    overflow: hidden;
    padding: 12rem var(--container-padding);
    background-color: var(--color-white); /* Slightly lighter than the main bg */
}

/* Giant Background Text */
.impact-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw; 
    color: rgba(0, 0, 0, 0.02); /* Barely visible */
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.impact-content {
    position: relative;
    z-index: 1;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 6rem var(--container-padding) 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6rem;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* Elegant divider lines from Figma */
.line-bottom {
    border-bottom: 1px solid #EAEAEA;
}

/* Reusable small section labels */
.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 2rem;
}

/* Specific text sizing for About page intros */
.intro-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Portrait styling */
.portrait-container {
    margin-bottom: 1.5rem;
}

.portrait-img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1/1; /* Keeps it square-ish */
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1); /* Matches the dark aesthetic */
}

.location-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

/* Philosophy 3-Column Grid */
.grid-3-col-uneven {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.philo-intro {
    padding-right: 2rem;
}

.philo-card {
    background-color: var(--color-white); /* Pops against the FAFAFA body */
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.philo-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Approach Section */
.step-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-text-muted); /* Light gray like the design */
}

.workspace-img img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    background: #000000;
}

/* Final Note & Buttons */
.heading-xl {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 900px;
}

.justify-center {
    justify-content: center;
}

/* New outline button style */
.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* =========================================
   EXPERTISE PAGE SPECIFIC STYLES
   ========================================= */

/* Hero Image */
.hero-wide-image {
    width: 100%;
    margin-top: 4rem;
}

.hero-wide-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

/* Background Utility */
.bg-light-gray {
    background-color: #F5F5F5; /* Slightly darker than FAFAFA to make white cards pop */
}

/* New Expertise Cards */
.expertise-card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    border: 1px solid #EAEAEA;
}

.card-large-num {
    font-size: 3rem;
    font-weight: 300;
    color: #EEEEEE; /* Very faint gray */
    margin-bottom: 2rem;
    line-height: 1;
}

.card-icon-bottom {
    margin-top: auto; /* Pushes the icon to the very bottom */
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* Dark Quote Section */
.pt-section {
    padding-top: 8rem; /* Custom top padding for the dark block */
}

.vertical-divider {
    width: 1px;
    height: 60px;
    background-color: #333333;
    margin-bottom: 3rem;
}

.quote-container {
    max-width: 800px;
    line-height: 1.3;
    margin-bottom: 2rem;
}

/* White Button Utility */
.btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-white);
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 6rem; /* Space before gallery */
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* No gap as per design */
}

.image-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    display: block;
}

/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

/* Active Navbar Link */
.nav-links a.active-link {
    border-bottom: 1px solid var(--color-text-main);
    padding-bottom: 2px;
}

.contact-section {
    padding-top: 6rem;
    padding-bottom: 8rem;
    align-items: flex-start; /* Keeps columns aligned to the top */
}

/* Contact Details Info */
.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-text-main);
}

.mt-1 { margin-top: 1rem; }
.ml-1 { margin-left: 0.5rem; }

/* =========================================
   MINIMALIST FORM
   ========================================= */
.minimal-form {
    width: 100%;
    max-width: 550px;
    margin-left: auto; /* Pushes form slightly to the right to balance grid */
}

.form-group {
    margin-bottom: 3rem;
}

.form-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* The Bottom-Border Input Magic */
.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #CCCCCC;
    padding: 0.5rem 0 1rem 0;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-text-main);
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: #DDDDDD;
    font-weight: 300;
}

/* Removes the ugly default browser outline and darkens the bottom line */
.form-input:focus {
    outline: none;
    border-bottom: 1px solid var(--color-text-main);
}

.form-textarea {
    resize: vertical; /* Allows users to drag it taller, but not wider */
    min-height: 80px;
}

.form-submit {
    margin-top: 2rem;
    padding: 16px 36px;
    display: flex;
    align-items: center;
}

/* =========================================
   FORM SUCCESS ANIMATIONS
   ========================================= */
.hidden {
    display: none !important;
}

.form-success {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeUp 0.6s ease forwards;
}

.success-icon {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

/* Reusing the text button style but adding some margin */
.form-success .btn-text {
    margin-top: 2rem;
}

/* Smooth fade and slide up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add a transition to the form fields fading out */
#form-fields {
    transition: opacity 0.4s ease;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}
/* =========================================
   MOBILE HAMBURGER MENU
   ========================================= */

/* Hide hamburger by default (on desktop) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

@media (max-width: 900px) {
    /* Show hamburger */
    .hamburger {
        display: block;
    }

    /* Hide the desktop button to keep the header clean */
    .desktop-only {
        display: none !important;
    }

    .hide-on-mobile {
        display: none !important;
    }
    
    /* Reveal the mobile block */
    .hide-on-desktop {
        display: block !important;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-links {
        display: flex !important; /* THE FIX: This overrides the old display:none */
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        text-align: center;
        transform: translateY(-20%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease-in-out;
    }

    /* The active class triggered by JavaScript */
    .nav-links.nav-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .minimal-form {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: left;
        padding-top: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none; /* We can add a hamburger menu later */
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .hero-wide-image img {
        height: 300px;
    }
    
    .expertise-card {
        min-height: auto;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .image-gallery img {
        height: 300px;
    }
    
    .grid-3-col-uneven {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .philo-card {
        padding: 2rem;
    }
    
    .heading-xl {
        font-size: 2.5rem;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mt-auto {
        margin-top: 2rem;
    }
    
    .dark-box {
        padding: 3rem 2rem;
    }
    
    .what-i-do-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grid-4-col {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
        gap: 2rem;
    }

    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .result-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-grid {
        flex-direction: column;
    }
    
    .footer-links {
        gap: 3rem;
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .grid-4-col {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    .hero {
        padding: 2rem var(--container-padding);
    }
    .section {
        padding: 2rem var(--container-padding);
    }
    .what-i-do-header h2 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    .heading-xl {
        font-size: 2rem;
    }
}
