/* =========================================================
   IAA — Instituto de Arqueología Amazónica
   Main stylesheet
========================================================= */

:root {
    --earth: #49382c;
    --earth-dark: #2b211a;
    --earth-light: #735a45;

    --stone: #c9c0b1;
    --sand: #e9e0d0;
    --cream: #f5f1e8;
    --white: #fffdf8;

    --gold: #b58a42;
    --gold-light: #d3b06b;

    --forest: #304936;
    --forest-dark: #1d3023;

    --text: #302b26;
    --muted: #756d64;

    --border: rgba(73, 56, 44, .16);

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;

    --container: 1180px;
    --header-height: 78px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    line-height: 1.05;
    font-weight: 600;
}

h1 {
    margin: 0 0 25px;
    font-size: clamp(3.5rem, 7vw, 7.5rem);
}

h2 {
    margin: 0 0 30px;
    font-size: clamp(2.8rem, 5vw, 5rem);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin: 0 0 20px;
}

p.large {
    font-size: 1.22rem;
    line-height: 1.75;
}

p.small {
    font-size: .85rem;
}

.muted {
    color: var(--muted);
}

.subtitle {
    margin-top: -20px;
    color: var(--gold);
    font-weight: 600;
}

.heading-line {
    width: 70px;
    height: 2px;
    background: var(--gold);
}

.section-heading {
    margin-bottom: 65px;
}

.section-heading.light {
    color: var(--white);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 25px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    color: var(--earth-dark);
    background: var(--white);
}

.button-outline-light {
    color: white;
    border-color: rgba(255,255,255,.7);
}

.button-outline-light:hover {
    color: var(--earth-dark);
    background: white;
}

.button-gold {
    color: white;
    background: var(--gold);
}

.button-gold:hover {
    background: #9e7635;
}

.button-earth {
    color: white;
    background: var(--earth);
}

.button-earth:hover {
    background: var(--earth-dark);
}

.button-full {
    width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: var(--header-height);
    color: white;
    background: rgba(43, 33, 26, .93);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(calc(100% - 48px), 1320px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 23px;
}

.main-navigation a {
    position: relative;
    color: rgba(255,255,255,.88);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
    content: "";
}

.main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    margin: 6px auto;
    background: white;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background: var(--earth-dark);
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        url("assets/images/hero-kuelap.jpg")
        center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(26,20,16,.88) 0%,
            rgba(26,20,16,.65) 42%,
            rgba(26,20,16,.2) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
}

.hero-label {
    margin-bottom: 25px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
}

.hero h1 em {
    color: #e1c383;
    font-style: normal;
}

.hero-lead {
    max-width: 720px;
    margin-bottom: 40px;
    color: rgba(255,255,255,.88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-scroll {
    position: absolute;
    z-index: 3;
    right: 45px;
    bottom: 45px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,.75);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 70px;
    height: 1px;
    background: var(--gold);
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.intro h2 {
    font-size: clamp(2.5rem, 4vw, 4.4rem);
}

.intro-text {
    padding-top: 15px;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
    padding: 65px 0;
    color: white;
    background: var(--forest);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.timeline-item {
    position: relative;
    padding: 10px 45px;
    border-left: 1px solid rgba(255,255,255,.25);
}

.timeline-item:first-child {
    border-left: 0;
    padding-left: 0;
}

.timeline-year {
    display: block;
    margin-bottom: 5px;
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 2.5rem;
}

.timeline-text {
    display: block;
    color: rgba(255,255,255,.82);
    font-size: .9rem;
}


/* =========================================================
   INSTITUTION
========================================================= */

.section-earth {
    background:
        linear-gradient(
            135deg,
            #e9e0d0,
            #f5f1e8
        );
}

.two-column {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 90px;
}

.institution-card {
    padding: 45px;
    color: white;
    background: var(--earth);
}

.card-label {
    display: block;
    margin-bottom: 25px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.discipline-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.discipline-list li {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    font-size: .9rem;
}

.discipline-list li::before {
    margin-right: 10px;
    color: var(--gold-light);
    content: "•";
}

.alliances {
    max-width: 900px;
    margin-top: 100px;
    padding-top: 35px;
    border-top: 1px solid var(--border);
}


/* =========================================================
   FOUNDER
========================================================= */

.founder {
    background: var(--white);
}

.founder-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px;
    align-items: start;
}

.image-placeholder {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    text-align: center;
    background: var(--earth);
}

.image-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder span {
    position: relative;
    z-index: 1;
    padding: 30px;
    font-family: var(--serif);
    font-size: 1.5rem;
}

.founder-caption {
    padding: 15px 0;
    color: var(--muted);
    font-size: .8rem;
}

.recognition {
    margin-top: 40px;
    padding: 30px;
    border-left: 3px solid var(--gold);
    background: var(--sand);
}

.recognition h3 {
    margin-top: 0;
}

.heritage-notice {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 35px;
    margin-top: 100px;
    padding: 45px;
    color: white;
    background: var(--forest);
}

.heritage-year {
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 4rem;
    line-height: 1;
}

.heritage-notice h3 {
    margin-top: 0;
}


/* =========================================================
   MEDIA
========================================================= */

.media-section {
    padding: 100px 0;
    background: var(--sand);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.media-card {
    min-height: 190px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    background: var(--earth);
    transition: transform .25s ease, background .25s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    background: var(--forest);
}

.media-card span {
    color: var(--gold-light);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.media-card strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.25;
}


/* =========================================================
   EXPEDITIONS
========================================================= */

.section-dark {
    color: white;
    background: var(--earth-dark);
}

.expedition-intro {
    max-width: 850px;
    margin-bottom: 70px;
}

.expedition-intro p {
    color: rgba(255,255,255,.76);
}

.expedition-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.expedition-gallery figure {
    margin: 0;
}

.expedition-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
}

.expedition-gallery figcaption {
    padding: 12px 0;
    color: var(--gold-light);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.publications {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 90px;
    margin-top: 100px;
    padding-top: 70px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.publications h3 {
    margin-top: 0;
    font-size: 3rem;
}

.publications p {
    color: rgba(255,255,255,.76);
}

.text-link {
    color: var(--gold-light);
    font-weight: 700;
}

.text-link:hover {
    color: white;
}


/* =========================================================
   PROJECT
========================================================= */

.project {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.project-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 43%;
    height: 620px;
    overflow: hidden;
    opacity: .28;
}

.project-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--cream),
        transparent
    );
    content: "";
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    position: relative;
    z-index: 1;
    width: 65%;
    margin-bottom: 80px;
}

.project-content h2 {
    max-width: 780px;
}

.research-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.research-grid article {
    min-height: 250px;
    padding: 35px;
    background: rgba(245,241,232,.94);
}

.research-grid span {
    color: var(--gold);
    font-size: .8rem;
    font-weight: 700;
}

.research-grid h3 {
    margin: 25px 0 12px;
}

.research-grid p {
    color: var(--muted);
    font-size: .9rem;
}

.project-closing {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 60px;
    padding: 35px;
    background: var(--sand);
}

.project-closing p {
    max-width: 750px;
    margin: 0;
}


/* =========================================================
   ACTIVITIES
========================================================= */

.activities {
    background: var(--white);
}

.activities-intro {
    max-width: 750px;
}

.activity-list {
    margin-top: 65px;
}

.activity-list article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 35px;
    padding: 35px 0;
    border-top: 1px solid var(--border);
}

.activity-number {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 2.3rem;
}

.activity-list h3 {
    margin: 0 0 8px;
}

.activity-list p {
    max-width: 650px;
    color: var(--muted);
}


/* =========================================================
   VIDEO
========================================================= */

.video-section {
    padding: 100px 0;
    color: white;
    background: var(--forest-dark);
}

.video-heading {
    margin-bottom: 45px;
}

.video-heading h2 {
    max-width: 700px;
}

.video-section video {
    width: 100%;
    max-height: 700px;
    background: #000;
}


/* =========================================================
   CONTRIBUTE
========================================================= */

.contribute {
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--earth-dark),
            var(--earth)
        );
}

.contribute-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.contribute h2 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.contribute p {
    color: rgba(255,255,255,.75);
}

.contribution-options {
    display: grid;
    gap: 1px;
    background: rgba(255,255,255,.15);
}

.contribution-options article {
    padding: 35px;
    background: rgba(255,255,255,.04);
}

.contribution-icon {
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 2rem;
}

.contribution-options h3 {
    margin: 15px 0;
}

.contribute-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 80px;
    padding: 35px;
    background: var(--gold);
}

.contribute-cta strong {
    font-family: var(--serif);
    font-size: 1.8rem;
}

.contribute-cta p {
    margin: 5px 0 0;
    color: white;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: var(--sand);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.contact-info h2 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.contact-details {
    margin-top: 45px;
}

.contact-details > div {
    margin-bottom: 25px;
}

.contact-details span {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.contact-details a {
    font-weight: 600;
}

.contact-details p {
    margin: 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 40px;
}

.social-links a {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold);
    font-size: .85rem;
    font-weight: 600;
}

.contact-form-wrapper {
    padding: 45px;
    background: var(--white);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: var(--earth);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 0;
    outline: 0;
    color: var(--text);
    background: var(--cream);
    transition: border-color .2s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.5;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    color: rgba(255,255,255,.75);
    background: #211914;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr;
    gap: 80px;
    padding: 75px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-brand > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 18px;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand strong {
    color: white;
    font-size: .85rem;
}

.footer-brand small {
    margin-top: 4px;
    color: var(--gold-light);
    font-size: .7rem;
}

.site-footer h3 {
    margin-top: 0;
    color: white;
    font-size: 1.3rem;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
}

.site-footer a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom .container {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .75rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .main-navigation {
        gap: 13px;
    }

    .main-navigation a {
        font-size: 9px;
    }

    .intro-grid,
    .two-column,
    .founder-grid,
    .contribute-grid,
    .contact-grid,
    .publications {
        gap: 55px;
    }

}


@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: none;
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--earth-dark);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        font-size: 11px;
    }

    .intro-grid,
    .two-column,
    .founder-grid,
    .contribute-grid,
    .contact-grid,
    .publications {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .timeline-item,
    .timeline-item:first-child {
        padding: 10px 0 10px 25px;
        border-left: 1px solid rgba(255,255,255,.25);
    }

    .media-grid {
        grid-template-columns: 1fr 1fr;
    }

    .expedition-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .project-content {
        width: 100%;
    }

    .project-image {
        width: 70%;
        opacity: .15;
    }

    .research-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    :root {
        --header-height: 68px;
    }

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .section {
        padding: 80px 0;
    }

    .brand-text {
        display: none;
    }

    .hero {
        min-height: 750px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-scroll {
        display: none;
    }

    .institution-card,
    .contact-form-wrapper {
        padding: 28px;
    }

    .discipline-list {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        min-height: 430px;
    }

    .heritage-notice {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .media-grid,
    .expedition-gallery,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        display: none;
    }

    .project-closing,
    .contribute-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-list article {
        grid-template-columns: 55px 1fr;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom .container {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

}