/* ===== BRAND BASE — Jason Abouassi ===== */
/* Used by: about.html, skills.html, role-fit.html, contact.html */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

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

/* ===== VARIABLES ===== */
:root {
    --bg:      #E4E1D8;
    --bg-card: #D9D6CC;
    --text:    #0c0c0c;
    --muted:   #5a5752;
    --border:  rgba(0,0,0,0.11);
    --max:     1100px;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.05;
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== LAYOUT ===== */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 44px;
}

.page-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 88px 44px 120px;
}

/* ===== NAV ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(228,225,216,0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 44px;
    height: 68px;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.55; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
}
.nav-links a {
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-resource-mobile { display: none; }

.nav-cta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    border: 1px solid var(--text);
    padding: 8px 18px;
    transition: all 0.22s;
    flex-shrink: 0;
}
.nav-cta:hover {
    background: var(--text);
    color: var(--bg);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 13px 30px;
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    transition: all 0.22s;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn:hover {
    background: transparent;
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--text);
}

/* ===== UTILITIES ===== */
.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.section-title {
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
    margin-bottom: 48px;
    letter-spacing: -0.015em;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: opacity 0.2s;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}
.text-link:hover { opacity: 0.55; }

/* ===== PAGE HERO ===== */
.page-hero {
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 72px;
}

.page-hero h1 {
    font-size: clamp(3rem, 5.5vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.025em;
    margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 44px 0;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 44px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 0.55; }

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.22s;
}
.footer-social-link:hover {
    border-color: var(--text);
    color: var(--text);
}
.footer-social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-nav a {
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-copy {
    font-size: 0.71rem;
    color: var(--muted);
}

/* ===== ABOUT GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.82;
}
.about-text p:last-of-type { margin-bottom: 0; }

.about-image-primary {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    object-fit: cover;
}

/* ===== THEMES GRID ===== */
.themes-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
    background: var(--border);
    gap: 1px;
}

.theme-row {
    background: var(--bg);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0;
    transition: background 0.22s;
    border: none;
}
.theme-row:hover { background: var(--bg-card); }

.theme-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: rgba(0,0,0,0.1);
    padding: 32px 28px;
    border-right: 1px solid var(--border);
    line-height: 1;
    display: flex;
    align-items: flex-start;
}

.theme-content {
    padding: 28px 36px;
}

.theme-name {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.theme-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.68;
}

/* ===== WHO THIS IS FOR ===== */
.for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.for-col-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
}

.for-list {
    list-style: none;
}
.for-list li {
    font-size: 0.98rem;
    color: var(--muted);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.55;
}
.for-list li::before {
    content: "—";
    color: var(--text);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
    font-family: 'Cormorant Garamond', serif;
}

/* ===== CONTACT ===== */
.contact-block {
    max-width: 640px;
}

.contact-email-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: opacity 0.2s;
    display: inline-block;
    margin: 8px 0 32px;
}
.contact-email-link:hover { opacity: 0.55; }

.contact-body {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 44px;
    align-items: center;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid var(--border);
    font-size: 0.77rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    transition: all 0.22s;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}
.contact-social-link:hover {
    border-color: var(--text);
    color: var(--text);
}
.contact-social-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-image-primary { max-width: 340px; }
    .for-grid { grid-template-columns: 1fr; gap: 44px; }
    .footer-right { align-items: flex-start; }
    .footer-nav { justify-content: flex-start; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 620px) {
    .wrap,
    .page-section,
    .footer-inner { padding-left: 22px; padding-right: 22px; }
    .nav-inner { padding: 0 22px; }
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(228,225,216,0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        z-index: 998;
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 16px 22px; font-size: 0.82rem; }

    .nav-resource-mobile { display: block; }
    .nav-cta { display: none; }

    .section-title { font-size: 2.4rem; }
    .page-hero h1 { font-size: 2.8rem; }

    .theme-row { grid-template-columns: 72px 1fr; }
    .theme-num { padding: 24px 18px; font-size: 1.8rem; }
    .theme-content { padding: 20px 22px; }

    .contact-social { flex-direction: column; align-items: flex-start; }

    .footer-inner { flex-direction: column; }
    .footer-right { align-items: flex-start; }
    .footer-nav { justify-content: flex-start; }
}
