/* ============================================
   MontesHQ — v1
   Modern editorial design, mobile-first
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f6f2ed;
    --color-bg-alt: #ece6df;
    --color-text: #2c2826;
    --color-text-muted: #7a7067;
    --color-accent: #b8926a;
    --color-white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.nav--scrolled {
    background-color: rgba(246, 242, 237, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 2rem;
}

.nav__logo {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-white);
    transition: color 0.4s ease;
}

.nav--scrolled .nav__logo {
    color: var(--color-text);
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__links a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.4s ease;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s var(--ease-out);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav--scrolled .nav__links a {
    color: var(--color-text-muted);
}

.nav--scrolled .nav__links a:hover {
    color: var(--color-text);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: 0 1.5rem;
}

.hero__pre {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: heroFadeUp 1.2s var(--ease-out) 0.5s forwards;
}

.hero__sub {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    margin-top: 1.5rem;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease-out) 0.9s forwards;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-hint span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.15); }
}

/* --- Intro --- */
.intro {
    padding: 6rem 1.5rem;
    display: flex;
    justify-content: center;
}

.intro__inner {
    max-width: 680px;
}

.intro__text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    text-align: center;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header__label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* --- Travels --- */
.travels {
    padding: 2rem 1.5rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Travel Grid --- */
.travel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.travel-grid__item {
    width: 100%;
}

.travel-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.travel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.travel-card:hover img {
    transform: scale(1.03);
}

.travel-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.travel-card__location {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-white);
}

.travel-card__date {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Desktop grid layout */
@media (min-width: 768px) {
    .travel-grid {
        gap: 1.5rem;
    }

    .travel-grid__item--full {
        width: 100%;
    }

    .travel-grid__item--half {
        width: calc(50% - 0.75rem);
    }

    .travel-grid__item--offset {
        width: 65%;
        margin-left: auto;
    }

    .travel-grid__item--offset-right {
        width: 65%;
        margin-right: auto;
    }

    .travel-card__location {
        font-size: 1.3rem;
    }
}

/* --- Journey Timeline --- */
.journey {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.journey .section-header {
    margin-bottom: 3rem;
}

.journey__timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.journey__year {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journey__year-label {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.journey__entries {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.journey__entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.journey__place {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text);
}

.journey__detail {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-align: right;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.journey__base {
    text-align: center;
    margin-top: 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .journey__entries {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 2.5rem;
    }
}

/* Travels countries strip */
.travels__countries {
    text-align: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.travels__countries-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.travels__countries-list {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 2;
    color: var(--color-text-muted);
}

.travels__countries-list em {
    font-style: italic;
    color: var(--color-accent);
}

/* --- About --- */
.about {
    background-color: var(--color-bg-alt);
    padding: 6rem 1.5rem;
}

.about__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about__image-col img {
    width: 100%;
    border-radius: 2px;
}

.about__text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.about__bio {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: 520px;
}

.about__links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.about__links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-accent);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.about__links a:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* Desktop about layout */
@media (min-width: 768px) {
    .about {
        padding: 8rem 2rem;
    }

    .about__inner {
        flex-direction: row;
        gap: 5rem;
        align-items: center;
    }

    .about__image-col {
        flex: 1;
        max-width: 55%;
    }

    .about__text-col {
        flex: 1;
    }
}

/* --- Footer --- */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer__copy {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* --- Large desktop --- */
@media (min-width: 1200px) {
    .intro {
        padding: 8rem 2rem;
    }

    .travels {
        padding: 3rem 2rem 8rem;
    }

    .travel-grid__item--full .travel-card {
        height: 520px;
    }

    .travel-grid__item--half .travel-card {
        height: 420px;
    }

    .travel-grid__item--offset .travel-card,
    .travel-grid__item--offset-right .travel-card {
        height: 460px;
    }
}

/* --- Tablet adjustments --- */
@media (min-width: 768px) and (max-width: 1199px) {
    .travel-grid__item--full .travel-card {
        height: 380px;
    }

    .travel-grid__item--half .travel-card {
        height: 320px;
    }

    .travel-grid__item--offset .travel-card,
    .travel-grid__item--offset-right .travel-card {
        height: 340px;
    }
}
