/* ============================================
   Working Theory Co — Styles
   https://aworkingtheory.com

   Design: 1440px canvas, 128px side margins
   Font:   EB Garamond 400/600
   Colors: #F4F2ED background, #222 text, #E0D7C0 rules
   ============================================ */

/* --- Variables --- */
:root {
    --color-background: #F4F2ED;
    --color-text: #222222;
    --color-separator: #E0D7C0;
    --font-family: 'EB Garamond', Georgia, serif;
    --content-max-width: 1184px;   /* 1440 - 128*2 */
    --content-padding: 128px;
    --section-gap: 101px;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Base --- */
html {
    font-size: 16px;
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.333;
}

/* --- Separator --- */
.separator {
    border: none;
    height: 1px;
    background-color: var(--color-separator);
    margin: 0;
}

/* ============================================
   Hero
   50/50 split at viewport center.
   Left padding tracks the centered content area
   so the logo aligns with headings below.
   ============================================ */
.hero {
    width: 100%;
    background-color: var(--color-background);
    overflow: hidden;
}

.hero-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* Left half — logo + subtitle SVGs */
.hero-text {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 48px 80px max(var(--content-padding), calc((100vw - var(--content-max-width)) / 2));
    gap: 80px;
}

.hero-logo {
    width: 100%;
    max-width: 537px;
    height: auto;
    display: block;
}

.hero-subtitle {
    width: 100%;
    max-width: 291px;
    height: auto;
    display: block;
}

/* Right half — portrait photo */
.hero-photo {
    flex: 0 0 50%;
    overflow: hidden;
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    mix-blend-mode: multiply;
}

/* ============================================
   Main Content
   Centered container, max 1440px with padding
   ============================================ */
.main-content {
    max-width: calc(var(--content-max-width) + var(--content-padding) * 2);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* ============================================
   Sections — shared two-column layout
   Left column: title (fixed width)
   Right column: body (flexible)
   ============================================ */
.section {
    padding: 128px 0;
}

.section-layout {
    display: flex;
    flex-direction: row;
    gap: var(--section-gap);
}

.section-title {
    flex: 0 0 491px;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-body {
    flex: 1;
    max-width: 556px;
}

/* --- Intro --- */
.intro-text {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.333;
    margin-bottom: 1em;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* --- Services --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.333;
}

ul.service-description {
    margin: 0;
    padding-left: 1.5em;
}

ul.service-description li {
    padding-left: 0.25em;
}

/* --- Leadership / Roles --- */
.roles-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 487px;
}

.role-item {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
}

.role-logo-link {
    flex: 0 0 70px;
    display: block;
    transition: opacity 0.2s ease;
}

.role-logo-link:hover {
    opacity: 0.6;
}

.role-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.role-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.role-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

.role-description {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.333;
}

/* ============================================
   Subtle link — underline on hover
   ============================================ */
.subtle-link {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.subtle-link:hover {
    border-bottom-color: var(--color-text);
}

/* ============================================
   Contact CTA — pill button with copy-to-clipboard
   ============================================ */
.contact-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.contact-btn {
    padding: 16px 32px;
    background-color: rgba(224, 215, 192, 0.3);
    border-radius: 28px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn:hover {
    border-color: var(--color-separator);
    box-shadow:
        0px 1px 2px 0px rgba(0, 0, 0, 0.04),
        0px 3px 3px 0px rgba(0, 0, 0, 0.06),
        0px 7px 4px 0px rgba(0, 0, 0, 0.02);
}

/* ============================================
   Footer — Copyright
   ============================================ */
.footer {
    padding: 48px 0;
}

.footer-copy {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

/* --- Toast notification --- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--color-text);
    color: var(--color-background);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet (<=1200px) — tighten padding & gaps */
@media (max-width: 1200px) {
    :root {
        --content-padding: 64px;
        --section-gap: 60px;
    }

    .hero-text {
        padding-left: var(--content-padding);
        gap: 60px;
    }

    .section-title {
        flex: 0 0 350px;
        font-size: 40px;
    }

    .intro-text {
        font-size: 30px;
    }
}

/* Small tablet (<=960px) — single-column layout */
@media (max-width: 960px) {
    :root {
        --content-padding: 40px;
        --section-gap: 40px;
    }

    /* Hero stacks vertically */
    .hero-layout {
        flex-direction: column;
    }

    .hero-text {
        flex: none;
        padding: 48px var(--content-padding);
        gap: 48px;
    }

    .hero-logo {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 45%;
    }

    .hero-photo {
        flex: none;
    }

    .hero-photo-img {
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Sections stack vertically */
    .section-layout {
        flex-direction: column;
    }

    .section-title {
        flex: none;
        width: 100%;
        font-size: 36px;
        margin-bottom: 32px;
    }

    .section-body {
        max-width: 100%;
    }

    .roles-list {
        max-width: 100%;
    }

    .intro-text {
        font-size: 26px;
    }

    .service-title,
    .role-title {
        font-size: 28px;
    }

    .service-description,
    .role-description {
        font-size: 20px;
    }
}

/* Mobile (<=640px) — compact spacing */
@media (max-width: 640px) {
    :root {
        --content-padding: 48px;
        --section-gap: 24px;
    }

    /* Collapse the SVG's built-in dead space on small screens */
    .hero-logo {
        margin-bottom: -20%;
    }

    .hero-text {
        gap: 0;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .intro-text {
        font-size: 22px;
    }

    .services-list {
        gap: 32px;
    }

    .service-title,
    .role-title {
        font-size: 24px;
    }

    .service-description,
    .role-description {
        font-size: 18px;
    }

    .roles-list {
        gap: 48px;
    }

    .role-item {
        flex-direction: column;
        gap: 16px;
    }

    .role-logo-link {
        flex: none;
    }

    .role-logo {
        width: 60px;
        height: 60px;
    }

    .contact-btn {
        font-size: 16px;
        padding: 14px 24px;
    }
}
