/* =========================================================
   TEXAS TO AFRICA — STORIES PAGE
   stories.css
========================================================= */


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #080a08;
    color: #f1eadc;
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

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


/* =========================================================
   COLORS
========================================================= */

:root {
    --black: #080a08;
    --black-light: #111410;
    --green: #183d29;
    --green-dark: #0d2418;

    --gold: #c99a55;
    --gold-light: #e2b873;

    --cream: #f1eadc;
    --cream-dark: #e8dfcf;

    --muted: #9f9d95;

    --border: rgba(201, 154, 85, 0.28);
}


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

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    z-index: 1000;

    background: rgba(8, 10, 8, 0.96);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.header-inner {
    width: min(1400px, 94%);
    height: 100%;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    position: absolute;
    left: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    height: 100%;
}


.brand img {
    width: 62px;
    height: 62px;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid rgba(201, 154, 85, 0.45);
}


.brand-text {
    display: flex;
    flex-direction: column;
}


.brand-name {
    font-family: "Cormorant Garamond", serif;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 3px;

    line-height: 1;
}


.brand-tagline {
    margin-top: 5px;

    font-size: 8px;

    letter-spacing: 2px;

    color: var(--gold-light);
}


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

.main-nav {
    display: flex;
    align-items: center;

    gap: 32px;
}


.main-nav a {
    position: relative;

    font-family: "Montserrat", sans-serif;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 1px;

    color: #ddd8cd;

    transition: color 0.25s ease;
}


.main-nav a:hover {
    color: var(--gold-light);
}


.main-nav a.active {
    color: var(--gold-light);
}


.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -12px;

    height: 2px;

    background: var(--gold);
}


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

.menu-toggle {
    display: none;

    position: absolute;

    right: 0;

    width: 44px;
    height: 44px;

    padding: 8px;

    background: transparent;

    border: 1px solid rgba(201, 154, 85, 0.35);

    cursor: pointer;
}


.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--gold-light);

    transition: 0.25s ease;
}


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

.stories-hero {
    position: relative;

    min-height: 620px;

    padding-top: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 6, 0.25),
            rgba(5, 8, 6, 0.72)
        ),
        url("../images/hero/hero.png");

    background-size: cover;

    background-position: center;
}


/* DARK OVERLAY */

.stories-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.82) 100%
        );
}


/* HERO CONTENT */

.stories-hero-content {
    position: relative;

    z-index: 2;

    width: min(900px, 90%);

    margin-top: 50px;
}


.stories-eyebrow {
    display: block;

    margin-bottom: 18px;

    color: var(--gold-light);

    font-family: "Montserrat", sans-serif;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 5px;
}


.stories-hero h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(65px, 10vw, 120px);

    font-weight: 600;

    line-height: 0.85;

    letter-spacing: 2px;

    color: white;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.7);
}


.stories-hero p {
    max-width: 650px;

    margin: 28px auto 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    line-height: 1.5;

    color: #eee8dc;
}


/* =========================================================
   INTRO
========================================================= */

.stories-intro {
    padding: 105px 25px;

    background: #f1eadc;

    color: var(--green);
}


.stories-intro-inner {
    width: min(850px, 100%);

    margin: auto;

    text-align: center;
}


.section-label {
    display: block;

    margin-bottom: 15px;

    color: #9c7338;

    font-family: "Montserrat", sans-serif;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 4px;
}


.stories-intro h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(45px, 6vw, 70px);

    line-height: 1;

    font-weight: 600;

    margin-bottom: 25px;
}


.stories-intro p {
    max-width: 720px;

    margin: auto;

    font-family: "Cormorant Garamond", serif;

    font-size: 21px;

    line-height: 1.75;

    color: #55584f;
}


/* =========================================================
   STORIES SECTION
========================================================= */

.stories-section {
    padding: 105px 5% 120px;

    background: #080a08;
}


.stories-section-inner {
    width: min(1350px, 100%);

    margin: auto;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-bottom: 50px;
}


.section-heading span {
    height: 1px;

    flex: 1;

    background: var(--border);
}


.section-heading h2 {
    flex-shrink: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 34px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 4px;

    color: var(--cream);
}


/* =========================================================
   STORIES GRID
========================================================= */

.stories-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   STORY CARD
========================================================= */

.story-card {
    min-width: 0;

    background: #111410;

    border: 1px solid rgba(201, 154, 85, 0.22);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.story-card:hover {
    transform: translateY(-7px);

    border-color: rgba(201, 154, 85, 0.6);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   STORY IMAGE
========================================================= */

.story-image {
    position: relative;

    display: block;

    width: 100%;

    height: 320px;

    overflow: hidden;

    background: #151814;
}


.story-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.story-card:hover .story-image img {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.story-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(201, 154, 85, 0.16),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #1c2b21,
            #09100c
        );
}


.story-image-placeholder span {
    color: var(--gold-light);

    font-family: "Montserrat", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 4px;
}


.story-image-placeholder strong {
    margin-top: 8px;

    color: white;

    font-family: "Cormorant Garamond", serif;

    font-size: 48px;

    font-weight: 600;

    letter-spacing: 2px;
}


/* =========================================================
   CATEGORY
========================================================= */

.story-category {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 2;

    padding: 7px 12px;

    background: var(--gold);

    color: #10110d;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   STORY CONTENT
========================================================= */

.story-card-content {
    padding: 28px;
}


.story-date {
    display: block;

    margin-bottom: 10px;

    color: var(--gold-light);

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.story-card h3 {
    margin-bottom: 13px;

    font-family: "Cormorant Garamond", serif;

    font-size: 36px;

    font-weight: 600;

    line-height: 1.05;

    color: white;
}


.story-card h3 a {
    transition: color 0.25s ease;
}


.story-card h3 a:hover {
    color: var(--gold-light);
}


.story-subtitle {
    margin-bottom: 25px;

    color: #999d96;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   READ STORY
========================================================= */

.read-story {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--gold-light);

    font-family: "Montserrat", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.read-story strong {
    font-size: 17px;

    font-weight: 400;

    transition:
        transform 0.2s ease;
}


.read-story:hover strong {
    transform: translateX(5px);
}


.read-story:hover {
    color: white;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.stories-empty {
    max-width: 750px;

    margin: auto;

    padding: 75px 35px;

    text-align: center;

    background: #111410;

    border: 1px solid rgba(201, 154, 85, 0.25);
}


.stories-empty-icon {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: 42px;
}


.stories-empty > span {
    display: block;

    color: var(--gold-light);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;
}


.stories-empty h3 {
    margin: 12px 0 15px;

    font-family: "Cormorant Garamond", serif;

    font-size: 42px;

    line-height: 1;

    color: white;
}


.stories-empty p {
    max-width: 600px;

    margin: auto;

    color: #999;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.stories-cta {
    padding: 110px 25px;

    background:
        linear-gradient(
            rgba(10, 25, 17, 0.94),
            rgba(10, 25, 17, 0.98)
        );

    text-align: center;

    border-top: 1px solid rgba(201, 154, 85, 0.18);
}


.stories-cta-inner {
    width: min(850px, 100%);

    margin: auto;
}


.stories-cta-label {
    display: block;

    margin-bottom: 15px;

    color: var(--gold-light);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 4px;
}


.stories-cta h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(52px, 7vw, 78px);

    font-weight: 600;

    line-height: 1;

    color: white;
}


.stories-cta p {
    max-width: 600px;

    margin: 22px auto 35px;

    color: #b5b8b1;

    font-size: 14px;
}


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

.stories-cta-buttons {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}


.stories-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 26px;

    background: var(--gold);

    border: 1px solid var(--gold);

    color: #11130e;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.stories-button:hover {
    transform: translateY(-3px);

    background: white;

    border-color: white;
}


.stories-button-outline {
    background: transparent;

    color: var(--gold-light);
}


.stories-button-outline:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: #11130e;
}


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

.site-footer {
    padding: 50px 5% 25px;

    background: #050605;

    border-top: 1px solid var(--border);
}


.footer-inner {
    width: min(1350px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 35px;
}


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

.footer-brand {
    display: flex;

    align-items: center;

    gap: 14px;
}


.footer-brand img {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    object-fit: cover;
}


.footer-brand div {
    display: flex;

    flex-direction: column;
}


.footer-brand strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 20px;

    letter-spacing: 3px;
}


.footer-brand span {
    margin-top: 3px;

    color: var(--gold-light);

    font-size: 8px;

    letter-spacing: 2px;
}


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

.footer-links {
    display: flex;

    align-items: center;

    gap: 22px;

    flex-wrap: wrap;
}


.footer-links a {
    color: #999c96;

    font-size: 10px;

    letter-spacing: 0.5px;

    transition: color 0.25s ease;
}


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


/* =========================================================
   EMAIL
========================================================= */

.footer-email {
    color: var(--gold-light);

    font-size: 11px;

    transition: color 0.25s ease;
}


.footer-email:hover {
    color: white;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {
    grid-column: 1 / -1;

    margin-top: 10px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: #666;

    font-size: 9px;

    letter-spacing: 0.5px;
}


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

@media (max-width: 1050px) {

    .header-inner {
        width: 92%;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .stories-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .footer-email {
        justify-self: end;
    }

    .footer-links {
        justify-self: end;
    }

}


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

@media (max-width: 760px) {

    /* HEADER */

    .site-header {
        height: 72px;
    }

    .header-inner {
        width: 92%;
        justify-content: flex-end;
    }

    .brand {
        left: 0;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .brand-tagline {
        font-size: 6px;
        letter-spacing: 1.5px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: rgba(8, 10, 8, 0.98);

        border-bottom: 1px solid var(--border);
    }

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

    .main-nav a {
        padding: 17px 25px;

        font-size: 12px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav a.active::after {
        display: none;
    }


    /* HERO */

    .stories-hero {
        min-height: 520px;

        padding-top: 72px;

        background-position: center;
    }

    .stories-hero-content {
        width: 92%;

        margin-top: 20px;
    }

    .stories-eyebrow {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .stories-hero h1 {
        font-size: 64px;
    }

    .stories-hero p {
        margin-top: 20px;

        font-size: 20px;
    }


    /* INTRO */

    .stories-intro {
        padding: 75px 20px;
    }

    .stories-intro h2 {
        font-size: 46px;
    }

    .stories-intro p {
        font-size: 18px;
    }


    /* STORIES */

    .stories-section {
        padding: 75px 20px 85px;
    }

    .section-heading {
        gap: 14px;

        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 24px;

        letter-spacing: 2px;
    }

    .stories-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .story-image {
        height: 260px;
    }

    .story-card-content {
        padding: 24px;
    }

    .story-card h3 {
        font-size: 34px;
    }


    /* CTA */

    .stories-cta {
        padding: 80px 20px;
    }

    .stories-cta h2 {
        font-size: 52px;
    }

    .stories-cta-buttons {
        flex-direction: column;

        width: 100%;
    }

    .stories-button {
        width: 100%;
    }


    /* FOOTER */

    .site-footer {
        padding: 40px 20px 25px;
    }

    .footer-inner {
        display: flex;

        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 25px;
    }

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

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

    .footer-email {
        justify-self: auto;
    }

    .copyright {
        width: 100%;

        text-align: center;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .brand-text {
        max-width: 160px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-tagline {
        font-size: 5px;
    }

    .stories-hero {
        min-height: 480px;
    }

    .stories-hero h1 {
        font-size: 55px;
    }

    .stories-hero p {
        font-size: 18px;
    }

    .stories-intro h2 {
        font-size: 40px;
    }

    .stories-intro p {
        font-size: 17px;
    }

    .story-image {
        height: 220px;
    }

    .story-card h3 {
        font-size: 30px;
    }

    .story-subtitle {
        font-size: 12px;
    }

    .stories-cta h2 {
        font-size: 45px;
    }

}