/* ==========================================================================
   Choquequirao Explorers — Main stylesheet
   v1.0 · Editorial · Brown/Gold palette · Serif typography
   ========================================================================== */

:root {
    /* Palette: Brown / Gold / Cream — editorial cultural */
    --brown-deep:     #3d2817;
    --brown-mid:      #5a3a17;
    --brown-warm:     #8b4513;
    --gold-inca:      #c9a64a;
    --gold-soft:      #d4b56b;
    --cream-base:     #faf7f0;
    --cream-warm:     #f5f1e8;
    --cream-dark:     #ebe4d3;
    --border-soft:    #d4c4a8;
    --text-base:      #3d2817;
    --text-soft:      #5a3a17;
    --text-muted:     #8c7556;
    --accent-deep:    #6b3410;

    --shadow-soft:    0 4px 18px rgba(61, 40, 23, 0.08);
    --shadow-strong:  0 8px 32px rgba(61, 40, 23, 0.18);
    --radius-sm:      2px;
    --radius:         4px;
    --radius-lg:      8px;
    --container-max:  1180px;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', 'Cormorant Garamond', serif;
    color: var(--text-base);
    background: var(--cream-base);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}
.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--brown-deep);
    margin: 0 0 18px 0;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.3px;
}
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }
h5 { font-size: 14px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-inca); }

p { margin: 0 0 18px 0; color: var(--text-soft); }
em, i { font-style: italic; color: var(--brown-warm); }
a { color: var(--brown-warm); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-inca); }
strong { color: var(--brown-deep); font-weight: 500; }

.eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold-inca);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
}
.sans { font-family: 'Inter', system-ui, sans-serif; }

blockquote {
    margin: 36px 0;
    padding: 28px 32px;
    background: var(--cream-warm);
    border-left: 3px solid var(--gold-inca);
    font-style: italic;
    font-size: 19px;
    line-height: 1.7;
    color: var(--brown-mid);
}
blockquote cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold-inca);
    text-transform: uppercase;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============ Topbar ============ */
.topbar {
    background: var(--brown-deep);
    color: var(--cream-base);
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', system-ui, sans-serif;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a {
    color: var(--gold-soft);
    margin-left: 16px;
}
.topbar a:hover { color: var(--cream-base); }
.topbar-right { color: var(--gold-inca); }

/* ============ Header ============ */
.header {
    background: var(--cream-base);
    padding: 22px 0;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-soft); }
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand {
    font-size: 22px;
    letter-spacing: 1.5px;
    color: var(--brown-deep);
    font-family: Georgia, serif;
}
.brand strong { font-weight: 500; }
.brand em {
    color: var(--gold-inca);
    font-style: italic;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--brown-mid);
}
.nav a {
    color: var(--brown-mid);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.nav a:hover { color: var(--gold-inca); border-bottom-color: var(--gold-inca); }
.nav a.current { color: var(--brown-deep); border-bottom-color: var(--gold-inca); }
.nav .cta {
    background: var(--gold-inca);
    color: var(--cream-base) !important;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    border: 0 !important;
    font-weight: 500;
    transition: background 0.2s;
}
.nav .cta:hover { background: var(--brown-warm); border: 0 !important; }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--brown-deep);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 880px) {
    .menu-toggle { display: block; }
    .nav {
        position: fixed;
        top: 0; right: -100%;
        background: var(--cream-base);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px;
        width: 280px;
        height: 100vh;
        transition: right 0.3s;
        box-shadow: var(--shadow-strong);
        z-index: 200;
        gap: 22px;
    }
    .nav.is-open { right: 0; }
    .nav-backdrop {
        position: fixed; inset: 0;
        background: rgba(61,40,23,0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 150;
    }
    .nav-backdrop.is-shown {
        opacity: 1;
        pointer-events: all;
    }
}

/* ============ Hero ============ */
.hero {
    position: relative;
    color: var(--cream-base);
    padding: 110px 0 130px;
    overflow: hidden;
    text-align: center;
    background: var(--brown-deep);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61,40,23,0.55) 0%, rgba(61,40,23,0.75) 100%);
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, #8b4513 0 4px, #6b3410 4px 8px);
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero h1 {
    font-size: 54px;
    line-height: 1.15;
    margin: 0 0 22px 0;
    color: var(--cream-base);
    letter-spacing: -0.8px;
    font-weight: 400;
}
.hero h1 em {
    color: var(--gold-soft);
    font-style: italic;
}
.hero p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(245,241,232,0.92);
    max-width: 540px;
    margin: 0 auto 36px auto;
    font-family: 'Inter', system-ui, sans-serif;
}
.hero .eyebrow {
    color: var(--gold-soft);
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .hero { padding: 70px 0 90px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 15px; }
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    cursor: pointer;
    font-weight: 500;
    line-height: 1;
}
.btn-gold {
    background: var(--gold-inca);
    color: var(--brown-deep);
}
.btn-gold:hover {
    background: var(--gold-soft);
    color: var(--brown-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.btn-ghost {
    border-color: var(--gold-inca);
    color: var(--gold-inca);
    background: transparent;
}
.btn-ghost:hover {
    background: var(--gold-inca);
    color: var(--brown-deep);
}
.btn-brown {
    background: var(--brown-deep);
    color: var(--cream-base);
}
.btn-brown:hover {
    background: var(--brown-warm);
    color: var(--cream-base);
}
.btn-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ Sections ============ */
section.section {
    padding: 80px 0;
}
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px auto;
}
.section-head h2 {
    font-style: italic;
    font-weight: 400;
}
.section-head p {
    font-size: 16px;
    color: var(--text-muted);
    font-family: 'Inter', system-ui, sans-serif;
}
.section-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--gold-inca);
    font-size: 14px;
    letter-spacing: 4px;
}

.bg-cream { background: var(--cream-base); }
.bg-warm { background: var(--cream-warm); }
.bg-brown { background: var(--brown-deep); color: var(--cream-base); }
.bg-brown h2, .bg-brown h3 { color: var(--cream-base); }
.bg-brown p { color: rgba(245,241,232,0.85); }
.bg-brown .eyebrow { color: var(--gold-soft); }

/* ============ Expedition cards ============ */
.expeditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.expedition-card {
    background: var(--cream-base);
    border: 1px solid var(--gold-inca);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.expedition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}
.expedition-card-img {
    height: 220px;
    background: var(--cream-dark);
    position: relative;
    overflow: hidden;
}
.expedition-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.expedition-card:hover .expedition-card-img img {
    transform: scale(1.05);
}
.expedition-card-body {
    padding: 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.expedition-card-tag {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold-inca);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.expedition-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
}
.expedition-card p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    flex: 1;
}
.expedition-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
}
.expedition-card-meta .price {
    color: var(--brown-deep);
    font-weight: 500;
}
.expedition-card-meta .price em {
    color: var(--text-muted);
    font-size: 11px;
    font-style: normal;
}
.expedition-card-cta {
    display: inline-block;
    margin-top: 18px;
    color: var(--gold-inca);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.expedition-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--brown-deep);
    color: var(--gold-soft);
    padding: 6px 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 2;
}

@media (max-width: 880px) {
    .expeditions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .expeditions-grid { grid-template-columns: 1fr; }
}

/* ============ Quote sections ============ */
.quote-section {
    text-align: center;
    padding: 70px 0;
}
.quote-section p {
    max-width: 680px;
    margin: 0 auto 18px auto;
    font-size: 22px;
    line-height: 1.7;
    font-style: italic;
    color: var(--cream-base);
}
.quote-section cite {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold-soft);
    text-transform: uppercase;
    font-style: normal;
}

/* ============ Includes / features list ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 40px 0;
}
.feature {
    text-align: center;
}
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    border: 1px solid var(--gold-inca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-inca);
    font-size: 24px;
}
.feature h4 {
    margin-bottom: 8px;
    color: var(--brown-deep);
}
.feature p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--text-soft);
}
@media (max-width: 700px) {
    .features-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ Citadel facts table ============ */
.facts-card {
    background: var(--cream-warm);
    border: 1px solid var(--border-soft);
    padding: 28px 32px;
    margin: 28px 0;
    border-radius: var(--radius);
}
.facts-card h3 {
    font-style: italic;
    font-weight: 400;
    margin-bottom: 18px;
    color: var(--brown-deep);
}
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
}
.facts-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.facts-list li:last-child { border-bottom: 0; }
.facts-list li span:first-child { color: var(--text-muted); }
.facts-list li span:last-child { color: var(--brown-deep); font-weight: 500; text-align: right; }

/* ============ Itinerary day blocks ============ */
.itinerary-day {
    background: var(--cream-base);
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--gold-inca);
    padding: 28px 32px;
    margin-bottom: 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.itinerary-day .day-label {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold-inca);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.itinerary-day h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--brown-deep);
    font-style: italic;
    font-weight: 400;
}
.itinerary-day p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-soft);
}

/* ============ Gallery ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 32px 0;
}
.gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 3/2;
    background: var(--cream-dark);
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 720px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .gallery { grid-template-columns: 1fr; }
}

/* ============ Includes / Two-column section ============ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 32px 0;
}
.two-col ul {
    font-family: 'Inter', system-ui, sans-serif;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14.5px;
}
.two-col li {
    padding: 10px 0 10px 26px;
    position: relative;
    color: var(--text-soft);
    border-bottom: 1px dashed var(--border-soft);
    line-height: 1.6;
}
.two-col li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold-inca);
    font-size: 14px;
}
.two-col li.excluded::before { content: "—"; color: var(--text-muted); }
.two-col h3 {
    color: var(--brown-deep);
    font-style: italic;
    font-weight: 400;
}
@media (max-width: 720px) {
    .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ CTA strip ============ */
.cta-strip {
    background: var(--brown-deep);
    color: var(--cream-base);
    padding: 70px 0;
    text-align: center;
}
.cta-strip h2 {
    color: var(--cream-base);
    font-style: italic;
    margin-bottom: 14px;
}
.cta-strip p {
    color: rgba(245,241,232,0.85);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    max-width: 580px;
    margin: 0 auto 28px auto;
}

/* ============ Page-hero (smaller hero for inner pages) ============ */
.page-hero {
    background: var(--brown-deep);
    color: var(--cream-base);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61,40,23,0.65) 0%, rgba(61,40,23,0.85) 100%);
    z-index: 1;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, #8b4513 0 4px, #6b3410 4px 8px);
    z-index: 0;
}
.page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.page-hero h1 {
    color: var(--cream-base);
    font-size: 44px;
    margin-bottom: 12px;
    font-weight: 400;
}
.page-hero h1 em { color: var(--gold-soft); }
.page-hero p {
    color: rgba(245,241,232,0.85);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
}

/* ============ Footer ============ */
.footer {
    background: var(--brown-deep);
    color: rgba(245,241,232,0.75);
    padding: 60px 0 24px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-brand {
    color: rgba(245,241,232,0.85);
}
.footer-brand .brand-mark {
    font-family: Georgia, serif;
    font-size: 22px;
    color: var(--cream-base);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}
.footer-brand .brand-mark em {
    color: var(--gold-inca);
    font-style: italic;
}
.footer-brand p {
    color: rgba(245,241,232,0.7);
    font-size: 13px;
    margin: 14px 0 0 0;
    line-height: 1.7;
}
.footer h5 {
    color: var(--gold-inca);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer ul li {
    padding: 5px 0;
    color: rgba(245,241,232,0.72);
}
.footer ul li a {
    color: rgba(245,241,232,0.72);
}
.footer ul li a:hover { color: var(--gold-soft); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201,166,74,0.4);
    color: var(--gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.footer-social a:hover {
    border-color: var(--gold-inca);
    background: var(--gold-inca);
    color: var(--brown-deep);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(201,166,74,0.2);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(245,241,232,0.55);
}
.footer-disclaimer {
    margin-top: 18px;
    font-size: 11px;
    color: rgba(245,241,232,0.5);
    line-height: 1.7;
}
.footer-disclaimer a { color: rgba(245,241,232,0.65); }

@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============ WhatsApp float ============ */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 50;
    transition: transform 0.2s;
}
.wa-float:hover {
    transform: scale(1.08);
    color: white;
}

/* ============ Hidden / utility ============ */
.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }

.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.text-center { text-align: center; }

/* ============ Image fallback (broken images) ============ */
img.is-broken {
    background-color: var(--cream-dark);
    background-image: linear-gradient(rgba(201,166,74,0.08), rgba(201,166,74,0.08)),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><rect width='200' height='100' fill='%23ebe4d3'/><text x='100' y='45' font-family='Georgia,serif' font-size='14' font-style='italic' fill='%238b4513' text-anchor='middle'>Photograph pending</text><text x='100' y='65' font-family='Inter,sans-serif' font-size='9' letter-spacing='1.5' fill='%238c7556' text-anchor='middle'>UPLOAD TO /ASSETS/IMG/</text></svg>");
    background-size: cover;
    background-position: center;
    border: 1px dashed var(--border-soft);
    color: transparent;
}
