/*
    Einstein House — Pixel-Perfect Styles
    Matching Figma: KXi17wcML4wGeMaNXd95YG
    Font: Inter | Accent: Teal #00EBD1
*/

@font-face {
    font-family: poppins;
    src: url('../fonts/poppins/Poppins-Regular.eot');
    src: url('../fonts/poppins/Poppins-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/poppins/Poppins-Regular.woff2') format('woff2'),
        url('../fonts/poppins/Poppins-Regular.woff') format('woff'),
        url('../fonts/poppins/Poppins-Regular.svg#Poppins-Regular') format('svg');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: poppins;
    src: url('../fonts/poppins/Poppins-Medium.eot');
    src: url('../fonts/poppins/Poppins-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/poppins/Poppins-Medium.woff2') format('woff2'),
        url('../fonts/poppins/Poppins-Medium.woff') format('woff'),
        url('../fonts/poppins/Poppins-Medium.svg#Poppins-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: poppins;
    src: url('../fonts/poppins/Poppins-SemiBold.eot');
    src: url('../fonts/poppins/Poppins-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2'),
        url('../fonts/poppins/Poppins-SemiBold.woff') format('woff'),
        url('../fonts/poppins/Poppins-SemiBold.svg#Poppins-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: poppins;
    src: url('../fonts/poppins/Poppins-Bold.eot');
    src: url('../fonts/poppins/Poppins-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/poppins/Poppins-Bold.woff2') format('woff2'),
        url('../fonts/poppins/Poppins-Bold.woff') format('woff'),
        url('../fonts/poppins/Poppins-Bold.svg#Poppins-Bold') format('svg');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

::-moz-selection {
    background: #00ebd1;
    color: #000;
    -webkit-text-fill-color: #000;
}

::selection {
    background: #00ebd1;
    color: #000;
    -webkit-text-fill-color: #000;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOKENS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
    --accent: #00EBD1;
    --black: #191919;
    --white: #FFFFFF;
    --gray-bg: #F4F4F4;
    --dark-bg: #191919;
    --footer-bg: #111111;
    --text: #1A1A1A;
    --text-muted: #555555;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    --radius-card: 14px;
    --font: 'poppins', sans-serif;
    --max-w: 1610px;
    --hdr-h: 72px;
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    max-width: 100%;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

a {
    text-decoration: none;
    color: inherit;
}

.zoom-img-container {
    overflow: hidden;
    border-radius: inherit;
}

.zoom-img-container img:hover {
    transform: scale(1.08);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(20px, 3.3vw, 48px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TEAL BUTTON (pill shape)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn-teal {
    display: inline-block;
    padding: 8px 37px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    max-width: max-content;
    max-height: 40px;
}

.btn-teal:hover {
    opacity: 0.82;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Start large with ample padding as requested by design */
    min-height: 180px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background: transparent;
}

#site-header.scrolled {
    min-height: 80px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 1610px;
    max-width: 100%;
}

.logo img {
    height: 99px;
    width: auto;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolled .logo img {
    height: 52px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 72px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    /* letter-spacing: 0.04em; */
    color: var(--text);
    transition: color 0.2s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BANNER — Top cinematic hero (Banner.jpg)
   Figma: "CARRYING HIS LEGACY FORWARD"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#banner {
    position: relative;
    height: 945px;
    margin-top: 0;
    /* sit below the fixed header */
    display: flex;
    align-items: flex-end;
    /* content anchored to bottom */
    background: url('../img/hero-einstein-house.jpg') center / cover no-repeat;
    background-color: #2a2a2a;
    /* fallback while image loads */
    overflow: hidden;
}

#banner:before {
    content: "";
    position: absolute;
    width: 1921px;
    height: 318px;
    left: 0px;
    top: 0px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 15.02%, #FFFFFF 86.01%);
    transform: rotate(-180deg);
    z-index: 1;
}

/* Two-layer overlay:
   1. White fade at the very top (sky softening)
   2. Subtle dark gradient on the left for text contrast */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.35) 50%, rgba(0, 0, 0, 0) 96.79%), linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
}

.banner-content {
    position: absolute;
    z-index: 1;
    text-align: left;
    padding-bottom: 60px;
    top: 295px;
    left: 165px;
    max-width: 850px;
}

/* Headline: mixed-color "CARRYING HIS LEGACY FORWARD" */
.banner-title {
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.banner-desc {
    font-weight: 500;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.5;
    letter-spacing: 0;
    color: #ffffff;
    margin-top: 34px;
    font-style: italic;
    max-width: 95%;
}

.banner-desc p {
    position: relative;
}

/*.banner-desc p:before {
    content: "“";
    color: var(--accent);
    left: -50px;
    top: -25px;
    position: absolute;
}

.banner-desc p:after {
    content: "“";
    color: var(--accent);
    position: relative;
    line-height: 0;
    height: 0;
    position: absolute;
    bottom: 0;
}

.banner-desc p:before,
.banner-desc p:after {
    font-weight: 300;
    font-size: 64px;
}
*/

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

.banner-teal {
    color: var(--accent);
}

/* Outlined teal pill button */
.btn-teal-outline {
    display: inline-block;
    padding: 7px 22px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 100px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    margin-top: 41px;
    background: var(--accent);
    color: var(--dark);
    max-height: 40px;
}

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

/* HUJI logo — bottom right corner */
.banner-huji {
    position: absolute;
    bottom: 25px;
    right: 40px;
    z-index: 2;
}

.banner-huji img {
    height: 112px;
    width: auto;
    filter: brightness(0) invert(1);
    /* force white */
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 767px) {
    #banner {
        height: 420px;
        margin-top: var(--hdr-h);
    }

    .banner-huji {
        bottom: 16px;
        right: 20px;
    }

    .banner-huji img {
        height: 36px;
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO — Trust & Credibility
   (Group 2351)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--hdr-h);
    background: url('../img/stewardship-blueprint-sketch.jpg') center / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* removed empty hero-overlay */

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 0;
    padding-bottom: 80px;
    display: flex;
    flex-flow: column;
    padding-inline: 0;
    width: 1475px;
    padding: 60px;
}

#hero h2 {
    font-size: clamp(36px, 4.5vw, 65px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 1.9vw, 28px);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 auto 85px;
    max-width: 1140px;
}

/* Stats row */
.hero-stats {
    margin: 0 auto;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
}

/* removed empty stat-item:not(:last-child) */

.stat-value {
    font-size: clamp(24px, 3.5vw, 50px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0;
    text-transform: uppercase;
}

.stat-label {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.04em;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VISION — The Vision & The Trust
   (Group 2343)
   3-col: text | portrait | manuscript
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#vision {
    padding: clamp(70px, 7.6vw, 110px) 0;
    background: var(--white);
    overflow: hidden;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2px;
    align-items: start;
}

.vision-text {
    margin-top: 127px;
    margin-inline-start: 15px;
}

.vision-text h2 {
    font-size: clamp(32px, 4.5vw, 65px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 17px;
}

.vision-text p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--black);
}

.vision-images {
    position: relative;
    display: flex;
    justify-content: end;
    gap: 80px;
}

/* Center portrait — rounded top (pill cap) */
.vision-portrait img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    width: 387px;
    height: 505px;
    border-radius: 20px;
    margin-top: 13px;
    /* cursor: zoom-in; */
}

.vision-portrait img:hover {
    transform: scale(1.04) translateY(-10px);
}

/* Right manuscript — slight tilt */
.vision-manuscript {
    /*transform: rotate(6deg);*/
    transform-origin: bottom left;
    margin-top: 160px;
}

.vision-manuscript img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    width: 387px;
    height: 473px;
    border-radius: 20px;
    /*cursor: zoom-in;*/
}

.vision-manuscript img:hover {
    transform: scale(1.04) rotate(-2deg);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MONUMENT — A Living Monument to Imagination
   (Frame 2192)
   Desktop: 2×2 CSS grid | Mobile: Swiper
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#monument {
    padding: clamp(70px, 6.25vw, 90px) 0;
    background: var(--gray-bg);
}

#monument .container {
    max-width: 1584px;
    margin: 0 auto;
}

.monument-header {
    text-align: center;
    margin-bottom: 78px;
}

.monument-header h2 {
    font-size: clamp(32px, 4.5vw, 65px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 24px;
}

.monument-tagline {
    line-height: 1.6;
    font-size: 20px;
    font-weight: 400;
}

/* Cards — horizontal layout: image LEFT | text RIGHT */
.monument-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 280px;
    align-items: center;
    padding: 30px;
    display: flex !important;
}

.monument-card-img {
    flex-shrink: 0;
    width: 305px;
    height: 220px;
}

.monument-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.monument-card:hover .monument-card-img img {
    transform: scale(1.1);
}

.monument-card-body {
    padding: 0 0 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.monument-card-body h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: none;
}

.monument-card-body p,
.monument-card-body ul {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
}

.monument-card-body ul {
    list-style: none;
    padding: 0;
}

.monument-card-body ul li+li {
    margin-top: 2px;
}

/* ── DESKTOP: CSS grid 2×2 (no Swiper) ── */
@media (min-width: 768px) {
    .monument-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        transform: none !important;
        transition: none !important;
    }

    .monument-swiper .swiper-slide {
        width: auto !important;
    }

    .monument-pagination {
        display: none !important;
    }
}

/* ── MOBILE: Swiper active ── */
@media (max-width: 767px) {
    .monument-swiper {
        padding-bottom: 44px !important;
    }

    .monument-card {
        flex-direction: column;
        min-height: auto;
    }

    .monument-card-img {
        width: 100%;
        height: 180px;
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STEWARDSHIP — Stewardship Across Generations
   (Frame 2204)
   50/50 split: white text LEFT | dark image RIGHT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#stewardship {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    min-height: 700px;
    padding: clamp(70px, 8vw, 115px) clamp(20px, 1.5vw, 21px);
}

#stewardship .container {
    display: flex;
    gap: 25px;
    padding: 0;
}

.stewardship-left {
    background: var(--white);
    /* padding: 100px 80px 100px 80px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Clamp left padding to max container edge */
@media (min-width: 1280px) {
    .stewardship-left {
        /* padding-left: calc((100vw - var(--max-w)) / 2 + 48px); */
        max-width: 725px;
    }
}

.stewardship-left h2 {
    font-size: clamp(32px, 4.5vw, 65px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 24px;
    margin-top: 20px;
}

.stewardship-intro {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 430px;
}

/* Blockquote with teal left border */
.stewardship-blockquote {
    border-left: 5px solid var(--accent);
    padding-inline-start: 34px;
    margin-bottom: 26px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--black);
    padding-inline-start: 35px;
}

.stewardship-note {
    margin-top: 35px;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
}

/* Right image: full-bleed, covers entire right cell */
.stewardship-right {
    overflow: hidden;
    position: relative;
    width: 738px;
    height: 685px;
}

.stewardship-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PARTNERS — Infinite Ticker
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#partners {
    padding: 56px 0;
    background: var(--white);
    overflow: hidden;
}

.partners-track-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partners-swiper {
    overflow: visible;
}

.partners-swiper .swiper-wrapper {
    align-items: center;
    transition-timing-function: linear !important;
}

.partners-swiper .swiper-slide {
    width: auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-swiper .swiper-slide img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.35s, opacity 0.35s;
}

.partners-swiper .swiper-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT — Dark section with form
   (Group 2352)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#contact {
    background: var(--dark-bg);
    padding: clamp(60px, 8vw, 60px) 0;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 5vw, 100px);
    align-items: center;
}

.contact-quote {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
}

/* Form */
.contact-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    display: block;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.required-star {
    color: var(--accent);
    margin-left: 2px;
}

.form-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 18px;
    color: var(--white);
    font-family: var(--font);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.form-field input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 235, 209, 0.1);
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Error States */
.form-field input.is-invalid {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
}

.error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-msg.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-submit {
    align-self: flex-start;
    margin-top: 32px;
}

.contact-row .form-submit .btn-teal {
    padding: 12px 32px;
    height: auto;
    max-height: none;
}

/* Success Message */
.form-success-msg {
    margin-top: 40px;
    padding: 24px;
    background: rgba(0, 235, 209, 0.1);
    border-left: 4px solid var(--accent);
    color: var(--white);
    font-size: 18px;
    border-radius: 4px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   (bottom of Group 2352)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: clamp(24px, 2vw, 28px) 0;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    font-size: 15px;
    color: rgb(255 255 255 / 70%);
    font-weight: 400;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.footer-links a {
    font-size: 15px;
    color: rgb(255 255 255 / 70%);
    transition: color 0.2s;
    font-weight: 400;
}

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

.footer-brand img {
    height: 48px;
    width: auto;
    object-fit: scale-down;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HAMBURGER BUTTON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hamburger {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1002;
    /* above menu overlay */
}

.ham-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease,
        background 0.25s ease;
}

#mobile-menu .ham-line {
    background: #ffffff;
}

/* Lines animate to × when active */
.hamburger.is-active .ham-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .ham-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active .ham-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* White lines when menu is open (dark overlay behind) */
.hamburger.is-active .ham-line {
    background: var(--white);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE MENU OVERLAY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    /* above header (1000) so it covers fully */
    background: var(--black);
    padding: calc(var(--hdr-h) + 48px) 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition:
        opacity 0.38s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 0s linear 0.38s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.38s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 0s linear 0s;
}

/* Nav list */
.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* stagger-in hidden state */
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #fff;
    padding: 10px 0;
}

/* Staggered entrance when menu opens */
.mobile-menu.is-open .mobile-nav li{
    opacity: 1;
    transform: none;
    transition-delay: 0.26s;
}

.mobile-nav-link {
    display: block;
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    padding: 20px 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--accent);
}

/* Tagline at bottom of menu */
.mobile-menu-tagline {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.mobile-menu.is-open .mobile-menu-tagline {
    opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 1024px) {

    /* Ensure the hamburger is visible on mobile */
    .hamburger {
        display: flex;
    }

    /* CRITICAL FIX: 
       Ensure the header doesn't clip the z-index of the button.
       If your header has a lower z-index than the menu, the button disappears.
    */
    #site-header {
        position: absolute;
        z-index: 1005;
        /* Must be higher than .mobile-menu (1001) */
        min-height: 100px;
    }

    /* Color Management:
       When the menu is open, we force the lines to white 
       using the .is-active class you likely toggle via JS.
    */
    .hamburger.is-active .ham-line {
        background: #ffffff !important;
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   404 ERROR PAGE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body.error404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scoped Header Overrides */
body.error404 header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.error404 #site-header {
    border: 0;
    padding: 0;
    color: #ffffff;
    backdrop-filter: none;
}

/* Background Logic */
body.error404 .page-bg {
    position: fixed;
    inset: 0;
    background: url('../img/hero-einstein-house.jpg') center center / cover no-repeat;
    z-index: 0;
    display: none;
}

body.error404 .page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

/* Scoped Main Content */
body.error404 main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    gap: 10px;
}

body.error404 .error-number {
    font-size: clamp(120px, 20vw, 220px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.18);
    position: relative;
}

body.error404 .error-number .accent {
    color: #00BFA5;
    -webkit-text-stroke: 0;
    /* Solid color for the accent digit */
}

/* Scoped UI Elements */
body.error404 .label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #00BFA5;
    margin-bottom: 28px;
}

body.error404 .btn-home {
    display: inline-block;
    padding: 14px 36px;
    background: #00BFA5;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.25s ease;
    margin-top: 20px;
}

body.error404 .btn-home:hover {
    background: #00d9bc;
    transform: translateY(-2px);
}

body.error404 .nav-links a{
    /* color: #fff; */
}

body.error404 .ham-line {
    /* background: #ffffff; */
}

body.error404 .logo img {
    height: 52px;
    /* filter: brightness(100); */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DEFAULT PAGE TEMPLATE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Page-hero ── */
body.wp-singular .page-hero {
    background: url('assets/img/hero-einstein-house.jpg') center 30% / cover no-repeat;
    position: relative;
    padding: 160px 0 72px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

body.wp-singular .page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

body.wp-singular .page-hero:before {
    content: "";
    position: absolute;
    width: 100%;
    /* Changed from fixed 1921px for better responsiveness */
    height: 318px;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 15.02%, #FFFFFF 86.01%);
    transform: rotate(-180deg);
    z-index: 1;
}

body.wp-singular .page-hero .container {
    position: relative;
    z-index: 2;
    /* Increased to stay above the :before gradient */
}

/* ── Typography & UI ── */
body.wp-singular .page-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #00BFA5;
    margin-bottom: 16px;
}

body.wp-singular .page-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 20px;
}

/* ── Content Body ── */
body.wp-singular .content-body {
    padding: 72px 0 80px;
    background: #fff;
}

body.wp-singular .content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

/* ── Article Specifics ── */
body.wp-singular .article-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

body.wp-singular .article-content blockquote {
    border-left: 3px solid #00BFA5;
    margin: 36px 0;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: #222;
    line-height: 1.65;
}

/* ── Sidebar ── */
body.wp-singular .sidebar {
    position: sticky;
    top: 100px;
}

body.wp-singular .sidebar-card {
    background: #F4F4F4;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
}

/* ── Responsive logic ── */
@media (max-width: 860px) {
    body.wp-singular .content-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    body.wp-singular .sidebar {
        position: static;
    }
}