/*
Theme Name: Peru Reservation
Theme URI: https://perureservation.com
Author: Peru Reservation / David Ccahuana Aguilar
Author URI: https://perureservation.com
Description: Tema para agencia de viajes y operador turístico especializado en trekking y aventura en Cusco y los Andes peruanos. Preparado para plantillas de WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peru-reservation
Tags: travel, tourism, adventure, trekking, responsive-layout, translation-ready, custom-menu
*/

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM TOKENS
   ========================================================================== */
:root {
    --orange: #ff6700;
    --orange-hover: #e05b00;
    --green: #2d5f3e;
    --bright-green: #00a859;
    --gold: #fbbf24;
    --muted: #64748b;
    --ink: #0f172a;
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --radius: 12px;
    --shadow: 0 6px 20px rgb(0 0 0 / 9%);
    --container-max: 1220px;
}

/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: #000;
    background: #fff;
    font: 14px/1.6 var(--font-body);
}

img {
    max-width: 100%;
    vertical-align: middle;
}

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

button {
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px;
}

h1, h2, h3, p {
    margin: 0;
}

h2 {
    font: 600 22px/1.3 var(--font-heading);
}

/* ==========================================================================
   3. WORDPRESS CORE & ACCESSIBILITY CLASSES
   ========================================================================== */
.screen-reader-text,
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 12px;
    z-index: 10000;
    background: #fff;
    color: var(--ink);
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.2s ease;
}

.screen-reader-text:focus,
.skip-link:focus {
    top: 15px;
}

.alignwide {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.admin-bar header.site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.site-header {
        top: 46px;
    }
}

/* ==========================================================================
   4. LAYOUT & SHARED COMPONENTS
   ========================================================================== */
.container {
    width: min(var(--container-max), calc(100% - 40px));
    margin-inline: auto;
}

.button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 14px 28px;
    font: 700 14px/20px 'Inter', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

.button.primary {
    color: #fff;
    background: var(--bright-green);
}

.button.primary:hover {
    background: var(--green);
}

.button.outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 28px;
}

.button.outline:hover {
    background: rgb(255 255 255 / 18%);
}

.button.gold {
    background: #f59e0b;
    color: #fff;
}

.button.gold:hover {
    background: var(--orange);
}

.section-heading {
    text-align: center;
}

.eyebrow {
    color: var(--orange);
    font: 600 12px/26px var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading > p:last-child {
    max-width: 1000px;
    margin: 18px auto 0;
    font: 15px/23px 'Roboto', sans-serif;
}

.stars {
    color: #f59e0b;
    font-style: normal;
}

/* ==========================================================================
   5. HEADER & NAVIGATION (header.php)
   ========================================================================== */
.announcement {
    background: #ff8220;
    text-align: center;
    color: #fff;
    padding: 5px 15px;
    font: 11px/18px var(--font-heading);
}

.announcement a {
    color: #ffe134;
    font-weight: 700;
}

.site-header {
    background: #fff;
    position: relative;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 24px;
    position: relative;
}

.logo {
    width: 230px;
    height: 64px;
    object-fit: contain;
}

.menu-toggle {
    display: grid;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--green);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-content {
    display: none;
    position: absolute;
    left: -20px;
    right: -20px;
    top: 100%;
    padding: 24px;
    z-index: 5;
    background: #fff;
    box-shadow: var(--shadow);
}

.header-content.is-open {
    display: block;
}

.utility {
    display: grid;
    gap: 8px;
    font: 11px/1.5 var(--font-heading);
    color: #374151;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    font: 600 12px/1.5 var(--font-heading);
}

.site-nav img {
    width: 16px;
    height: 16px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons img {
    display: block;
    box-sizing: border-box;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
    object-fit: contain;
    background: #f1f7f3;
    border: 1px solid #e0ebe4;
    border-radius: 50%;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.social-icons img:hover {
    transform: translateY(-2px);
    background-color: #e3f0e7;
    border-color: #a9c9b4;
}

.whatsapp,
.enquire {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 14px;
    background: #22c55e;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
}

.enquire {
    background: var(--orange);
}

/* ==========================================================================
   MENÚ DE ANCHO COMPLETO MINIMALISTA Y CENTRADO
   ========================================================================== */
.header-menu {
    width: 100%;
    background: #000000;
    border-top: 1px solid rgb(255 255 255 / 10%);
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    position: relative;
    z-index: 40;
}

.header-menu-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.header-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu-list .menu-item {
    margin: 0;
}

.header-menu-list .menu-item a {
    position: relative;
    display: inline-block;
    padding: 14px 4px;
    color: #e5e7eb;
    font: 600 12px/1 var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.header-menu-list .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease, left 0.25s ease;
}

.header-menu-list .menu-item a:hover {
    color: #ffffff;
}

.header-menu-list .menu-item a:hover::after,
.header-menu-list .menu-item.current-menu-item a::after {
    width: 100%;
    left: 0;
}

.header-menu-list .menu-item.current-menu-item a {
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 999px) {
    .header-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-menu::-webkit-scrollbar {
        display: none;
    }

    .header-menu-container {
        justify-content: flex-start;
        width: 100%;
        padding-inline: 20px;
        min-height: 44px;
    }

    .header-menu-list {
        justify-content: flex-start;
        gap: 20px;
        width: max-content;
    }

    .header-menu-list .menu-item a {
        font-size: 11px;
        padding: 12px 2px;
    }
}

/* ==========================================================================
   6. HERO SECTION (template-parts/section-hero.php)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 700px;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: #133d3a url('img/banner-poster.png') center/cover;
    color: #fff;
    padding: 80px 20px;
}

.hero-video,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    object-fit: cover;
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgb(0 18 24 / 65%), rgb(0 18 24 / 30%)),
        linear-gradient(0deg, rgb(0 0 0 / 35%), transparent);
}

.hero-content {
    width: min(900px, 100%);
    text-align: center;
}

.hero-eyebrow {
    color: #e5a93c;
    font: 700 12px/20px var(--font-heading);
    letter-spacing: 1.4px;
}

h1 {
    font: 900 clamp(32px, 4.1vw, 56px)/1 var(--font-heading);
    letter-spacing: -1.4px;
    margin-top: 16px;
}

h1 span {
    color: var(--gold);
}

.hero-subtitle {
    font: 700 18px/28px 'Inter', sans-serif;
    margin-top: 20px;
}

.hero-description {
    max-width: 576px;
    margin: 12px auto 0;
    color: #e5e7eb;
    font: 16px/24px 'Inter', sans-serif;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    margin-top: 32px;
}

.hero-rating small {
    font-size: 12px;
    color: #d1d5db;
}

/* ==========================================================================
   7. TRUST STRIP (template-parts/section-trust.php)
   ========================================================================== */
.trust-strip {
    background: #ebebeb;
}

.trust-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 22px;
    color: #374151;
    font: 10px/1.4 var(--font-heading);
}

.trust-inner > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-label {
    font-size: 11px;
    letter-spacing: 1.7px;
}

.trust-inner b {
    font-size: 13px;
}

.trust-inner img {
    width: 48px;
    height: 36px;
    object-fit: contain;
}

.trust-inner small {
    display: block;
    font-size: 9px;
    font-weight: 400;
}

/* ==========================================================================
   8. ABOUT SECTION (template-parts/section-about.php)
   ========================================================================== */
.about {
    padding-block: 48px;
    display: grid;
    gap: 30px;
    align-items: center;
}

.welcome {
    font-size: 16px;
    margin-bottom: 14px;
}

.welcome::before {
    content: '';
    display: inline-block;
    width: 35px;
    height: 2px;
    background: var(--orange);
    margin-right: 10px;
    vertical-align: middle;
}

.about h2 {
    font: 700 31px/1.2 var(--font-body);
}

.about h3 {
    font-size: 24px;
    line-height: 1.25;
    margin-block: 9px 14px;
    font-weight: 600;
}

.about img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 496 / 287;
}

/* ==========================================================================
   9. TOURS SECTION & TOUR CARDS (template-parts/section-tours.php)
   ========================================================================== */
.tours-section {
    padding-block: 20px 48px;
}

.tour-toolbar {
    text-align: right;
    color: #167650;
    font-size: 13px;
    margin: 24px 0 8px;
}

.tour-grid {
    display: grid;
    gap: 30px 18px;
}

.tour-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgb(0 0 0 / 18%);
}

.tour-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 292 / 260;
}

.tour-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-image > img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 18px;
    background: var(--orange);
    color: #fff;
    font: 600 11px/16.5px var(--font-heading);
}

.tour-body {
    padding: 12px 16px 16px;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font: 12px/16px 'Inter', sans-serif;
    gap: 8px;
}

.tour-meta img,
.tour-facts img {
    width: auto;
    max-width: 15px;
    height: 14px;
    margin-right: 4px;
}

.tour-body h3 {
    font: 600 14px/1.5 var(--font-body);
    text-transform: uppercase;
    margin: 8px 0;
    min-height: 42px;
}

.tour-description {
    font-size: 11px;
    line-height: 18px;
    min-height: 56px;
    color: #374151;
}

.tour-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 10px;
    margin-block: 12px;
}

.tour-facts strong {
    font-weight: 600;
}

.tour-facts span {
    display: block;
    padding-left: 19px;
    color: #005f99;
}

.tour-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #6ba3c8;
    padding-top: 12px;
}

.price small {
    display: block;
    font: 10px/13px 'Inter', sans-serif;
    color: var(--muted);
}

.price strong {
    display: block;
    font: 700 20px/28px 'Inter', sans-serif;
    color: var(--ink);
}

.price span {
    color: #444;
    font-size: 10px;
}

.tour-button {
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font: 500 10px/16px 'Inter', sans-serif;
    padding: 9px 12px;
    transition: background 0.3s ease;
}

.tour-button:hover {
    background: var(--orange);
}

.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}

/* ==========================================================================
   10. DESTINATIONS SECTION (template-parts/section-destinations.php)
   ========================================================================== */
.destinations {
    padding-block: 16px 80px;
}

.destination-grid {
    display: grid;
    gap: 24px;
    margin-top: 42px;
}

.destination-card {
    position: relative;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
}

.destination-card > img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.destination-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgb(0 0 0 / 85%));
}

.destination-label {
    position: absolute;
    left: 28px;
    bottom: 24px;
    z-index: 1;
}

.destination-label h3 {
    font: 700 26px/1.3 'Inter', sans-serif;
}

.destination-label img {
    height: 14px;
    width: auto;
    margin-right: 6px;
}

/* ==========================================================================
   11. ADVENTURE CALL-TO-ACTION (template-parts/section-adventure.php)
   ========================================================================== */
.adventure {
    background: #333 url('img/292-541-imgAndesMountainsBackgroundLandscapeAtSunsetWithHiker.png') center/cover;
    color: #fff;
    box-shadow: 0 20px 25px rgb(0 0 0 / 12%);
    background-position: center -100px
}

.adventure-inner {
    min-height: 355px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-block: 40px;
}

.adventure-inner > div {
    max-width: 650px;
}

.adventure h2 {
    font-weight: 800;
    font-size: 28px;
}

.adventure p {
    font: 14px/20px var(--font-heading);
    margin: 16px 0;
}

/* ==========================================================================
   12. TESTIMONIALS & CERTIFICATIONS
   ========================================================================== */
.testimonials {
    padding-block: 65px 30px;
    text-align: center;
}

.reviews-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 25px 0;
}

.testimonials .button {
    font-size: 12px;
}

.certifications {
    padding-block: 35px 55px;
    text-align: center;
}

.certifications h2 {
    color: #167650;
    font-size: 16px;
    margin-bottom: 22px;
}

.certifications img {
    width: min(1100px, 100%);
    object-fit: contain;
}

/* ==========================================================================
   13. FOOTER & FOOTER LANDSCAPE (footer.php)
   ========================================================================== */
.site-footer {
    position: relative;
    background: transparent;
}

.footer-landscape {
    width: 100%;
    display: block;
    height: auto;
    min-height: 170px;
    aspect-ratio: 2168 / 725;
    object-fit: cover;
    object-position: center bottom;
}

.footer-body {
    background: #164335;
    color: #fff;
    padding: 55px 0 30px;
}

.footer-grid {
    display: grid;
    gap: 35px;
}

.footer-grid p {
    font: 13px/23px var(--font-heading);
    margin-top: 22px;
    overflow-wrap: anywhere;
}

.footer-grid h2 {
    font: 700 15px/23px var(--font-heading);
    margin-bottom: 24px;
}

.footer-nav {
    display: grid;
    gap: 8px;
    font: 13px/22px var(--font-heading);
}

.footer-nav a:hover,
.footer-grid a:hover {
    text-decoration: underline;
}

.footer-legal {
    margin-top: 45px;
    border-top: 1px solid #fff;
    padding-top: 20px;
    text-align: center;
}

.footer-legal p:first-child {
    font: 600 10px/22px var(--font-heading);
    text-transform: uppercase;
}

.footer-legal p:last-child {
    font: 13px/20px 'Inter', sans-serif;
    margin-top: 20px;
}

/* ==========================================================================
   14. MODAL DIALOG (template-parts/modal-tour.php)
   ========================================================================== */
dialog {
    border: 0;
    border-radius: 16px;
    padding: 36px;
    width: min(540px, calc(100% - 32px));
    box-shadow: var(--shadow);
}

dialog::backdrop {
    background: rgb(0 0 0 / 65%);
}

dialog h2 {
    padding-right: 18px;
}

dialog p {
    margin-bottom: 18px;
}

dialog h2 + p {
    margin-top: 18px;
}

.dialog-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 28px;
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (min-width: 600px) {
    .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .destination-card:last-child {
        grid-column: 1 / -1;
    }

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

@media (min-width: 1000px) {
    .menu-toggle {
        display: none;
    }

    .header-content {
        display: block;
        position: static;
        padding: 0;
        box-shadow: none;
    }

    .utility {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        font-size: 10px;
    }

    .site-nav {
        justify-content: flex-end;
        gap: 20px;
        margin-top: 12px;
    }

    .hero {
        min-height: 861px;
    }

    .trust-inner {
        justify-content: space-between;
        flex-wrap: nowrap;
        min-height: 73px;
    }

    .trust-label {
        max-width: 310px;
    }

    .about {
        grid-template-columns: 1.35fr 1fr;
        gap: 45px;
        padding-block: 45px;
        min-height: 348px;
    }

    .about h3 {
        font-size: 23px;
    }

    .tour-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 80px;
    }

    .tours-section {
        padding-bottom: 55px;
    }

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

    .destination-card {
        grid-column: span 4;
        min-height: 330px;
    }

    .destination-card:nth-child(4) {
        grid-column: span 7;
    }

    .destination-card:last-child {
        grid-column: span 5;
    }

    .destinations {
        padding-bottom: 160px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }

    .footer-grid > div + div {
        border-left: 1px solid rgb(255 255 255 / 40%);
        padding-left: 40px;
    }

    .footer-landscape {
        height: auto;
        min-height: unset;
        max-height: none;
    }
}

@media (min-width: 1000px) and (max-width: 1250px) {
    .header-inner {
        gap: 15px;
    }

    .utility {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .site-nav {
        gap: 12px;
    }

    .social-icons {
        display: none;
    }
}

/* ==========================================================================
   16. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .reveal-pending {
        opacity: 1;
        transform: none;
    }
}

/* Destination card interaction, including keyboard navigation. */
.destination-card > img {
    transition: transform .4s ease, filter .4s ease;
}
.destination-card:hover > img,
.destination-card:focus-within > img {
    transform: scale(1.07);
    filter: brightness(.82);
}
.destination-card .destination-card-link {
    color: inherit;
    text-decoration: none;
}
.destination-card .destination-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.destination-card:focus-within {
    outline: 3px solid var(--gold, #d7ab52);
    outline-offset: 4px;
}
.destination-card::after { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .destination-card > img { transition: none; }
    .destination-card:hover > img,
    .destination-card:focus-within > img { transform: none; }
}

.social-icons a { display: inline-flex; border-radius: 50%; }
.social-icons a:focus-visible { outline: 2px solid #1f6b3f; outline-offset: 3px; }
.social-icons a:focus-visible img { background-color: #e3f0e7; }
