/* ========================================
   ROOT VARIABLES
======================================== */

:root {
    --black: #000;
    --black-soft: #080808;
    --gray: #999;
    --white: #f5f5f3;
    --border: #242424;
    --max-width: 1280px;
}


/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}


/* ========================================
   GLOBAL CONTAINER
======================================== */

.container {
    width: min(calc(100% - 80px), var(--max-width));
    margin: 0 auto;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.nav-container {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ========================================
   LOGO
======================================== */

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;        /* Takes full height of the 84px header container */
    padding: 10px 0;     /* Gives respiratory room on top and bottom so it never touches edges */
    text-decoration: none;
    line-height: 0;      /* Prevents font baseline offset issues */
}

.header-logo {
    height: 160px;        /* Set your preferred logo height */
    width: auto;         /* Keeps original aspect ratio */
    max-height: 100%;    /* Constrains the image safely inside the padding boundary */
    object-fit: contain;
    display: block;
}
/* ========================================
   DESKTOP NAVIGATION
======================================== */

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.main-nav a {
    position: relative;
    color: #dcdcdc;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
}


/* ========================================
   MOBILE MENU BUTTON
======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--white);
    margin: 6px 0;
}


/* ========================================
   HERO SECTION
======================================== */

.hero,
.page-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    padding: 180px 0 100px;
    background-color: var(--black-soft);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay so hero text stays legible over any photo */
.hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
}

.hero .container,
.page-hero .container {
    position: relative;
    z-index: 1;
}

/* Per-page hero background images — same treatment/size, unique image per page.
   Swap these files in /assets/ with your own; sizing/position is handled above. */
.hero-home {
    background-image: url('assets/hero-home.png');
}

.hero-about {
    background-image: url('assets/hero-about.png');
}

.hero-services {
    background-image: url('assets/hero-services.png');
}

.hero-connect {
    background-image: url('assets/hero-connect.png');
}

.hero-content {
    max-width: 900px;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(60px, 9vw, 128px);
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: -0.055em;
}

.hero h1 span,
.page-hero h1 span {
    color: var(--gray);
}


/* ========================================
   EYEBROW TEXT
======================================== */

.eyebrow {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 30px;
}


/* ========================================
   HERO TEXT
======================================== */

.hero-text {
    max-width: 620px;
    margin-top: 45px;
    color: var(--gray);
    font-size: 20px;
    line-height: 1.8;
}


/* ========================================
   BUTTONS
======================================== */

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 45px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background: transparent;
    color: var(--white);
}

.button-primary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.button-secondary {
    background: transparent;
    color: var(--white);
}

.button-secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}


/* ========================================
   GENERAL CONTENT SECTIONS
======================================== */

.intro-section,
.content-section,
.services-section,
.connect-section {
    padding: 150px 0;
    border-top: 1px solid var(--border);
}


/* ========================================
   TWO-COLUMN LAYOUT
======================================== */

.intro-grid,
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}


/* ========================================
   SECTION HEADINGS
======================================== */

.intro-grid h2,
.two-column h2,
.connect-grid h2 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


/* ========================================
   LARGE TEXT
======================================== */

.large-text {
    font-size: 27px;
    line-height: 1.55;
    color: var(--white);
    margin-bottom: 30px;
}


/* ========================================
   CONTENT COPY
======================================== */

.content-copy p:not(.large-text) {
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 25px;
}


/* ========================================
   STATEMENT SECTION
======================================== */

.statement-section {
    padding: 180px 0;
    border-top: 1px solid var(--border);
}

.statement {
    max-width: 1000px;
}

.statement h2 {
    font-size: clamp(50px, 7vw, 100px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.05em;
}


/* ========================================
   PAGE HERO
======================================== */

.page-intro {
    max-width: 700px;
    color: var(--gray);
    font-size: 20px;
    line-height: 1.8;
    margin-top: 45px;
}


/* ========================================
   VALUES SECTION
======================================== */

.values-section {
    padding: 130px 0;
    border-top: 1px solid var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}

.value-card {
    min-height: 250px;
    padding: 35px 30px 20px 0;
    border-right: 1px solid var(--border);
}

.value-card:not(:first-child) {
    padding-left: 30px;
}

.value-card:last-child {
    border-right: 0;
}

.value-card span {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
}

.value-card h3 {
    font-size: 24px;
    font-weight: 400;
    margin: 55px 0 15px;
}

.value-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}


/* ========================================
   SERVICES
======================================== */

.services-section {
    padding-top: 80px;
}

.service-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 50px;
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.service-number {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
}

.service-content {
    max-width: 850px;
}

.service-content h2 {
    font-size: clamp(40px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -0.04em;
    margin-bottom: 25px;
}

.service-content p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.9;
}


/* ========================================
   CALL TO ACTION
======================================== */

.cta-section {
    padding: 160px 0;
    border-top: 1px solid var(--border);
}

.cta-content h2 {
    font-size: clamp(50px, 7vw, 100px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.05em;
    margin-bottom: 50px;
}


/* ========================================
   CONNECT PAGE
======================================== */

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

.connect-copy {
    max-width: 500px;
    margin-top: 35px;
    color: var(--gray);
    font-size: 16px;
}


/* ========================================
   CONTACT FORM
======================================== */

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #333;
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    padding: 12px 0;
    outline: 0;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--white);
}

.form-thanks h3 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
}

.form-thanks p {
    color: var(--gray);
    font-size: 16px;
    max-width: 500px;
}

/* ========================================
   DIRECT STATEMENT
======================================== */

.direct-statement {
    display: inline-block;
    color: var(--white);
    font-size: clamp(30px, 5vw, 65px);
    font-weight: 300;
    letter-spacing: -0.04em;
}

/* ========================================
   DIRECT CONTACT
======================================== */

.contact-direct {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--black-soft);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 90px 0;
}

.footer-brand p {
    max-width: 350px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 12px; /* Matches .footer-nav span spacing */
}

/* ========================================
   FOOTER LOGO
======================================== */

.footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-logo {
    height: 40px;       /* Adjust this height to fit your design preferences */
    width: auto;        /* Maintains aspect ratio */
    display: block;
}

/* ========================================
   FOOTER NAVIGATION
======================================== */

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.footer-nav div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-nav span {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--gray);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

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


/* ========================================
   FOOTER BOTTOM
======================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    color: #FFFFFF;
    font-size: 16px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .container {
        width: min(calc(100% - 40px), var(--max-width));
    }

    /* Mobile Navigation */

    .main-nav {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        width: 100%;
        background: var(--black);
        border-bottom: 1px solid var(--border);
        padding: 30px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Two Column Layouts */

    .intro-grid,
    .two-column,
    .connect-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Values */

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .value-card {
        border-bottom: 1px solid var(--border);
    }

    .value-card:nth-child(2) {
        border-right: 0;
    }

    .value-card:nth-child(3) {
        padding-left: 0;
    }

    /* Services */

    .service-row {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    /* Footer */

    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 40px);
    }

    /* Hero */

    .hero,
    .page-hero {
        min-height: 70vh;
        padding-top: 140px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 58px;
    }

    /* hero-text now matches page-intro's 20px at all breakpoints — no override needed */

    /* Hero Buttons */

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    /* Content Sections */

    .intro-section,
    .content-section,
    .services-section,
    .connect-section {
        padding: 100px 0;
    }

    /* Statement */

    .statement-section {
        padding: 120px 0;
    }

    /* Values */

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card,
    .value-card:not(:first-child) {
        padding-left: 0;
        padding-right: 0;
        border-right: 0;
    }

    /* Services */

    /* service-content h2 now uses clamp() — floors at 40px automatically */

    .service-row {
        padding: 50px 0;
    }

    /* CTA */

    .cta-section {
        padding: 120px 0;
    }

    /* Footer */

    .footer-top {
        padding: 70px 0;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    /* Email */

    .email-link {
        font-size: 32px;
    }
}