/* =========================================================
   VINCINITY FOUNDATION
   CLEAN EDITORIAL NGO DESIGN
   ========================================================= */

:root {

    --navy: #123b5d;
    --navy-dark: #0b2941;
    --blue: #285b7d;

    --green: #173f35;
    --green-dark: #102e27;

    --ivory: #f7f1e7;
    --paper: #fffdf8;

    --terracotta: #c56b4e;
    --gold: #d5a85b;

    --ink: #252b29;
    --muted: #70766f;

    --line: rgba(37, 43, 41, 0.14);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --condensed: "Barlow Condensed", sans-serif;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ================= HEADER ================= */

.site-header {

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    height: 86px;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 253, 248, 0.94);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(18, 59, 93, 0.1);
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-mark {

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--navy);

    color: white;

    font-family: var(--serif);

    font-size: 20px;
}


.brand-name {

    display: flex;
    flex-direction: column;

    line-height: 1;
}


.brand-name span {

    font-size: 21px;
    font-weight: 700;

    letter-spacing: 0.09em;

    color: var(--navy);
}


.brand-name small {

    margin-top: 5px;

    font-family: var(--condensed);

    font-size: 11px;

    letter-spacing: 0.32em;

    color: var(--muted);
}


.main-nav {

    display: flex;
    gap: 36px;

    margin-left: auto;
    margin-right: 40px;
}


.main-nav a {

    font-size: 14px;
    font-weight: 600;

    color: var(--ink);

    position: relative;
}


.main-nav a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: var(--navy);

    transition: width 0.25s ease;
}


.main-nav a:hover::after {
    width: 100%;
}


.donate-button {

    background: var(--navy);

    color: white;

    padding: 12px 24px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.04em;

    transition: 0.25s ease;
}


.donate-button:hover {
    background: var(--green);
    transform: translateY(-2px);
}


.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    font-size: 25px;

    cursor: pointer;
}


/* ================= HERO ================= */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    padding: 150px 8vw 100px;

    background:
        url("https://images.unsplash.com/photo-1494386346843-e12284507169?auto=format&fit=crop&w=2000&q=85")
        center / cover;
}


.hero-overlay {

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 30, 46, 0.9),
            rgba(8, 30, 46, 0.55),
            rgba(8, 30, 46, 0.1)
        );
}


.hero-content {

    position: relative;
    z-index: 2;

    max-width: 720px;

    color: white;
}


.eyebrow,
.section-number {

    font-family: var(--condensed);

    font-size: 13px;

    letter-spacing: 0.2em;

    font-weight: 500;
}


.hero h1 {

    font-family: var(--serif);

    font-size: clamp(55px, 7vw, 100px);

    line-height: 0.98;

    font-weight: 500;

    margin: 25px 0;
}


.hero h1 em {

    display: block;

    color: #e6c47c;

    font-style: italic;
}


.hero-text {

    max-width: 550px;

    font-size: 18px;

    color: rgba(255,255,255,0.88);

    margin-bottom: 35px;
}


.hero-actions {

    display: flex;
    align-items: center;

    gap: 30px;
}


.primary-button {

    display: inline-block;

    background: var(--gold);

    color: var(--navy-dark);

    padding: 15px 26px;

    font-weight: 700;

    font-size: 13px;

    transition: 0.25s ease;
}


.primary-button:hover {
    transform: translateY(-2px);
}


.text-link {

    font-size: 14px;

    border-bottom: 1px solid rgba(255,255,255,0.7);

    padding-bottom: 4px;
}


/* ================= QUOTE ================= */

.quote-strip {

    width: 100%;

    overflow: hidden;

    background: var(--green);

    color: white;

    height: 46px;

    display: flex;
    align-items: center;
}


.quote-track {

    display: flex;

    width: max-content;

    animation: quoteMove 30s linear infinite;
}


.quote-track span {

    white-space: nowrap;

    font-family: var(--condensed);

    font-size: 17px;

    letter-spacing: 0.12em;

    padding-right: 40px;

    opacity: 0.9;
}


@keyframes quoteMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ================= GENERAL SECTIONS ================= */

.section {

    padding: 120px 8vw;
}


.section-heading {

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 70px;

    align-items: end;

    margin-bottom: 65px;
}


.section-heading h2,
.timeline-heading h2 {

    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 72px);

    line-height: 1.05;

    font-weight: 500;

    margin-top: 18px;
}


.section-heading h2 em,
.timeline-heading h2 em {

    color: var(--navy);

    font-style: italic;
}


.section-heading > p {

    max-width: 470px;

    color: var(--muted);

    font-size: 16px;
}


/* ================= STORIES ================= */

.stories {
    background: var(--paper);
}


.story-feature {

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    min-height: 590px;
}


.story-image {

    background:
        url("images/piccc.jpg")
        center / cover;
}


.story-content {

    background: var(--navy);

    color: white;

    padding: clamp(40px, 6vw, 85px);

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.story-label {

    font-family: var(--condensed);

    letter-spacing: 0.18em;

    font-size: 12px;

    color: #d9b96d;
}


.story-content h3 {

    font-family: var(--serif);

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.05;

    font-weight: 500;

    margin: 20px 0;
}


.story-content p {

    color: rgba(255,255,255,0.76);

    margin-bottom: 18px;

    max-width: 500px;
}


.story-link {

    margin-top: 15px;

    color: #e6c47c;

    font-weight: 700;

    font-size: 14px;
}


/* ================= WORK ================= */

.work {

    background: var(--ivory);
}


.work-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


.work-card {

    background: var(--paper);

    border: 1px solid var(--line);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.work-card:hover {

    transform: translateY(-7px);

    box-shadow: 0 20px 50px rgba(18,59,93,0.1);
}


.card-image {

    height: 230px;

    background-size: cover;
    background-position: center;
}


.education-image {
    background-image:
        url("https://images.unsplash.com/flagged/photo-1574097656146-0b43b7660cb6?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}


.planet-image {
    background-image:
        url("https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=1000&q=80");
}


.women-image {
    background-image:
        url("https://images.unsplash.com/photo-1591260315238-79ee54d55fc5?q=80&w=867&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}


.career-image {
    background-image:
        url("https://images.unsplash.com/photo-1781092176313-8b8b1e9927c7?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}


.health-image {
    background-image:
        url("https://images.unsplash.com/photo-1648964388258-e71b58683ed0?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}


.livelihood-image {
    background-image:
        url("https://images.unsplash.com/photo-1565383690591-1ee1b6582cef?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}


.card-content {

    padding: 30px;
}


.card-content > span {

    font-family: var(--condensed);

    color: var(--navy);

    font-size: 13px;

    letter-spacing: 0.15em;
}


.card-content h3 {

    font-family: var(--serif);

    font-size: 29px;

    line-height: 1.1;

    margin: 14px 0;
}


.card-content p {

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 22px;
}


.card-content a {

    color: var(--navy);

    font-size: 13px;

    font-weight: 700;
}


/* ================= ABOUT ================= */

.about {

    background: var(--navy-dark);

    color: white;
}


.about-inner {

    display: grid;

    grid-template-columns: 0.3fr 1fr;

    gap: 70px;
}


.about .section-number {
    color: #d9b96d;
}


.about-main h2 {

    font-family: var(--serif);

    font-size: clamp(45px, 6vw, 80px);

    line-height: 1.05;

    font-weight: 500;
}


.about-main h2 em {

    color: #d9b96d;

    font-style: italic;
}


.large-copy {

    max-width: 850px;

    margin: 35px 0 55px;

    color: rgba(255,255,255,0.8);

    font-size: 20px;
}


.about-columns {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    border-top: 1px solid rgba(255,255,255,0.18);

    padding-top: 30px;
}


.about-columns h4 {

    color: #d9b96d;

    margin-bottom: 10px;
}


.about-columns p {

    color: rgba(255,255,255,0.68);

    font-size: 14px;
}


/* ================= TIMELINE ================= */

.timeline-section {

    background: var(--paper);

    padding: 110px 8vw;
}


.timeline-heading {

    margin-bottom: 65px;
}


.timeline {

    border-top: 1px solid var(--line);
}


.timeline-item {

    display: grid;

    grid-template-columns: 120px 1fr;

    gap: 50px;

    padding: 35px 0;

    border-bottom: 1px solid var(--line);
}


.timeline-item > span {

    font-family: var(--serif);

    font-size: 24px;

    color: var(--navy);
}


.timeline-item h3 {

    font-family: var(--serif);

    font-size: 28px;

    margin-bottom: 8px;
}


.timeline-item p {

    max-width: 700px;

    color: var(--muted);
}


/* ================= DONATION ================= */

.donation-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: var(--green-dark);

    color: white;

    padding: 110px 8vw;
}


.donation-left {

    padding: 40px 60px 40px 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.donation-left .section-number {

    color: #d9b96d;
}


.donation-left h2 {

    font-family: var(--serif);

    font-size: clamp(48px, 6vw, 78px);

    line-height: 1.03;

    font-weight: 500;

    margin: 25px 0;
}


.donation-left h2 em {

    display: block;

    color: #d9b96d;

    font-style: italic;
}


.donation-left > p {

    max-width: 540px;

    color: rgba(255,255,255,0.7);

    font-size: 17px;
}


.donation-note {

    margin-top: 40px;

    padding-left: 20px;

    border-left: 2px solid #d9b96d;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.donation-note strong {
    color: #d9b96d;
}


.donation-note span {

    color: rgba(255,255,255,0.65);

    font-size: 13px;
}


.donation-form-box {

    background: var(--paper);

    color: var(--ink);

    padding: 45px;

    max-width: 560px;

    width: 100%;

    justify-self: end;
}


.donation-form-box h3 {

    font-family: var(--serif);

    font-size: 34px;

    margin-bottom: 25px;
}


.donation-form-box label {

    display: block;

    font-size: 12px;

    font-weight: 700;

    margin: 15px 0 7px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.donation-form-box input {

    width: 100%;

    border: 1px solid #d7d7d0;

    background: white;

    padding: 13px 14px;

    font-family: var(--sans);

    font-size: 14px;

    outline: none;
}


.donation-form-box input:focus {

    border-color: var(--navy);
}


.amount-row {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 7px;

    margin-bottom: 9px;
}


.amount-option {

    border: 1px solid #d7d7d0;

    background: white;

    padding: 11px 5px;

    cursor: pointer;

    font-weight: 600;
}


.amount-option.active {

    background: var(--navy);

    color: white;

    border-color: var(--navy);
}


.qr-placeholder {

    margin-top: 24px;

    height: 150px;

    border: 1px dashed #bdbdb5;

    display: grid;

    place-items: center;

    background: #faf9f4;
}


.qr-inner {

    width: 95px;
    height: 95px;

    border: 6px solid var(--navy);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    position: relative;
}


.qr-inner span {

    font-weight: 800;

    font-size: 25px;

    color: var(--navy);
}


.qr-inner p {

    font-size: 8px;

    text-align: center;

    margin-top: 2px;
}


.qr-instruction {

    color: var(--muted);

    font-size: 11px;

    margin-top: 8px;
}


.submit-donation {

    width: 100%;

    border: none;

    background: var(--navy);

    color: white;

    padding: 16px;

    margin-top: 20px;

    font-family: var(--sans);

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;
}


.submit-donation:hover {

    background: var(--green);
}


.form-message {

    text-align: center;

    font-size: 12px;

    margin-top: 12px;

    color: var(--green);
}


/* ================= FOOTER ================= */

footer {

    background: #081f31;

    color: white;

    padding: 55px 8vw 25px;
}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 15px;
}


.footer-brand strong {

    letter-spacing: 0.08em;

    font-size: 14px;
}


.footer-brand p {

    color: rgba(255,255,255,0.5);

    font-size: 12px;

    margin-top: 3px;
}


.footer-links {

    display: flex;

    gap: 25px;

    margin: 40px 0;
}


.footer-links a {

    font-size: 13px;

    color: rgba(255,255,255,0.7);
}


.footer-bottom {

    border-top: 1px solid rgba(255,255,255,0.12);

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    color: rgba(255,255,255,0.45);

    font-size: 11px;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .site-header {
        height: 75px;
    }

    .brand-name span {
        font-size: 18px;
    }

    .main-nav {

        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        gap: 0;

        margin: 0;

        background: var(--paper);

        border-bottom: 1px solid var(--line);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 16px 7vw;

        border-bottom: 1px solid var(--line);
    }

    .donate-button {
        margin-left: auto;
        margin-right: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .story-feature {
        grid-template-columns: 1fr;
    }

    .story-image {
        min-height: 400px;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .donation-page {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .donation-left {
        padding-right: 0;
    }

    .donation-form-box {
        justify-self: start;
    }
}


@media (max-width: 600px) {

    .site-header {
        padding: 0 20px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-name span {
        font-size: 16px;
    }

    .brand-name small {
        font-size: 9px;
    }

    .donate-button {
        padding: 10px 15px;
        font-size: 12px;
    }

    .hero {
        padding: 130px 25px 80px;
    }

    .hero h1 {
        font-size: 53px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .section {
        padding: 80px 25px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-section {
        padding: 80px 25px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .donation-page {
        padding: 80px 25px;
    }

    .donation-form-box {
        padding: 28px 20px;
    }

    .amount-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

}


/* ===== STORIES PAGE ADDITIONS ===== */

.stories-intro {
    padding: 100px 8% 75px;
    background: var(--paper, #f8f7f2);
}

.stories-label,
.story-copy > span,
.stories-final-cta > p {
    color: var(--blue, #315e79);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.stories-intro h1 {
    margin: 18px 0;
    color: var(--navy, #123247);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(45px, 7vw, 78px);
    font-weight: 400;
    line-height: 1.1;
}

.stories-intro > p:last-child {
    max-width: 600px;
    color: var(--muted, #697780);
    line-height: 1.9;
}

.stories-activities {
    width: 84%;
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 90px;
}

.story-row {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
    gap: 8%;
    padding: 45px 0;
    border-top: 1px solid var(--line, #d9dedc);
}

.story-row:last-child {
    border-bottom: 1px solid var(--line, #d9dedc);
}

.story-row.reverse .story-image {
    order: 2;
}

.story-row.reverse .story-copy {
    order: 1;
}

.story-image {
    min-width: 0;
    height: 360px;
    overflow: hidden;
    background: var(--blue-light, #e9f0f3);
}

.story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.035);
}

.story-copy h2 {
    margin: 14px 0 20px;
    color: var(--navy, #123247);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(29px, 3.5vw, 41px);
    font-weight: 400;
    line-height: 1.2;
}

.story-copy p {
    color: var(--muted, #697780);
    font-size: 13px;
    line-height: 1.9;
}

.story-copy a,
.stories-final-cta a {
    display: inline-block;
    margin-top: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--blue, #315e79);
    font-size: 12px;
    font-weight: 700;
}

.stories-final-cta {
    padding: 85px 8%;
    background: var(--blue-light, #e9f0f3);
    text-align: center;
}

.stories-final-cta h2 {
    margin: 18px 0 28px;
    color: var(--navy, #123247);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(40px, 6vw, 65px);
    font-weight: 400;
    line-height: 1.15;
}

.stories-final-cta a {
    padding: 12px 20px;
    border: 0;
    background: var(--navy, #123247);
    color: #fff;
}

@media (max-width: 700px) {
    .stories-intro {
        padding: 65px 6% 45px;
    }

    .stories-activities {
        width: 88%;
        padding-bottom: 60px;
    }

    .story-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 0;
    }

    .story-row.reverse .story-image,
    .story-row.reverse .story-copy {
        order: initial;
    }

    .story-image {
        height: 270px;
    }

    .story-copy h2 {
        font-size: 33px;
    }

    .stories-final-cta {
        padding: 65px 6%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-image img {
        transition: none;
    }
}










/* FIX: Homepage story image and text layout */
.story-feature .story-image {
    height: auto;
    min-height: 590px;
    overflow: hidden;
}

.story-feature .story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keep the homepage layout balanced on smaller screens */
@media (max-width: 900px) {
    .story-feature .story-image {
        min-height: 400px;
        height: 400px;
    }
}

@media (max-width: 600px) {
    .story-feature .story-image {
        min-height: 300px;
        height: 300px;
    }
}



/* UPI payment button spacing fix */
.donation-form-box a.submit-donation {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    margin: 16px 0;
    padding: 14px 22px;
    line-height: 1.5;
    white-space: normal;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
}