/* =========================================================
   Toubkal Hiking Team — Design tokens
   ========================================================= */
:root {
    --navy-950: #0a1730;
    --navy-900: #0e1f3f;
    --navy-800: #142a52;
    --navy-700: #1c3766;
    --teal-400: #22d3ee;
    --teal-500: #06b6d4;
    --blue-500: #2563eb;
    --gradient-cta: linear-gradient(90deg, var(--teal-500), var(--blue-500));
    --whatsapp: #25d366;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 10px 30px -12px rgba(14, 31, 63, 0.18);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .brand-text, .navbar-brand {
    font-family: var(--font-display);
}

a { text-decoration: none; }

.container { max-width: 1240px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    background: var(--navy-950);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.navbar { padding: .9rem 0; }

.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.navbar-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: #fff; font-size: 1.05rem; }
.brand-text small { color: var(--teal-400); font-size: .72rem; letter-spacing: .04em; }

.navbar-nav .nav-link {
    color: rgba(255,255,255,.78);
    font-weight: 600;
    font-size: .93rem;
    padding: .5rem 1rem !important;
    border-radius: 999px;
    transition: all .2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.btn-nav-cta {
    background: var(--gradient-cta);
    color: #fff !important;
    font-weight: 700;
    padding: .55rem 1.3rem;
    border-radius: 999px;
    font-size: .9rem;
    border: none;
}
.btn-nav-cta:hover { filter: brightness(1.08); color: #fff; }

.navbar-toggler { border: none; box-shadow: none !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-gradient {
    background: var(--gradient-cta);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: .8rem 1.8rem;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.btn-gradient:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: .8rem 1.8rem;
    border-radius: var(--radius-sm);
}
.btn-whatsapp:hover { background: #1fb457; color: #fff; }

.btn-outline-navy {
    border: 1.5px solid var(--navy-700);
    color: var(--navy-900);
    font-weight: 700;
    padding: .8rem 1.8rem;
    border-radius: var(--radius-sm);
    background: transparent;
}
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }

.btn-outline-light-custom {
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.8rem;
    border-radius: var(--radius-sm);
    background: transparent;
}
.btn-outline-light-custom:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, rgba(10,23,48,.55), rgba(10,23,48,.85)), var(--hero-img, none);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 7rem 0 6rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34,211,238,.12);
    border: 1px solid rgba(34,211,238,.35);
    color: var(--teal-400);
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}
.hero-section h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.hero-section .lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 620px; }
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hero-stats .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--teal-400); }
.hero-stats .stat-label { font-size: .8rem; color: rgba(255,255,255,.7); }

/* Page hero (inner pages) */
.page-hero {
    background: radial-gradient(ellipse at top, var(--navy-800), var(--navy-950));
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .8rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 680px; margin: 0 auto; }
.page-hero .hero-eyebrow { margin-bottom: 1rem; }

/* =========================================================
   Sections & cards
   ========================================================= */
.section { padding: 5rem 0; }
.section-eyebrow {
    color: var(--teal-500);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .6rem;
    display: block;
    text-align: center;
}
.section-title { text-align: center; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.section-subtitle { text-align: center; color: var(--gray-600); max-width: 620px; margin: 0 auto 3rem; }

.card-surface {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

/* Trek cards */
.trek-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.trek-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -14px rgba(14,31,63,.28); }
.trek-card-img { position: relative; height: 190px; overflow: hidden; }
.trek-card-img img { width: 100%; height: 100%; object-fit: cover; }
.trek-card-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.badge-pill { padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-popular { background: #fff; color: var(--navy-900); }
.badge-available { background: rgba(255,255,255,.9); color: var(--navy-900); }
.badge-easy { background: #d1fae5; color: #065f46; }
.badge-moderate { background: #fef3c7; color: #92400e; }
.badge-hard { background: #fee2e2; color: #991b1b; }

.trek-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.trek-card-title { font-weight: 800; font-size: 1.08rem; margin-bottom: .5rem; color: var(--navy-950); }
.trek-card-price { font-weight: 800; color: var(--teal-500); }
.trek-card-price small { color: var(--gray-400); font-weight: 500; font-size: .72rem; }
.trek-card-desc { color: var(--gray-600); font-size: .88rem; margin-bottom: .8rem; flex: 1; }
.trek-card-includes { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .82rem; color: var(--gray-600); }
.trek-card-includes li { margin-bottom: .35rem; }
.trek-card-includes i { color: var(--success); margin-right: .4rem; }

/* Blog cards */
.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card-img { position: relative; height: 200px; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-cat { position: absolute; top: 12px; left: 12px; background: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--navy-900); }
.blog-card-featured { position: absolute; top: 12px; right: 12px; background: var(--warning); color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.blog-card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--gray-400); margin-bottom: .7rem; }
.blog-card-title { font-weight: 800; font-size: 1.1rem; margin-bottom: .6rem; color: var(--navy-950); }
.blog-card-excerpt { color: var(--gray-600); font-size: .88rem; flex: 1; margin-bottom: .9rem; }
.blog-tags .tag { display: inline-block; background: var(--gray-100); color: var(--gray-600); font-size: .74rem; padding: .2rem .6rem; border-radius: 999px; margin: 0 .3rem .3rem 0; }
.read-more-link { color: var(--teal-500); font-weight: 700; font-size: .88rem; }

/* Feature icons */
.icon-box {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(37,99,235,.15));
    color: var(--teal-500);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card { padding: 1.8rem; }
.testimonial-quote { color: var(--gray-600); font-style: italic; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.avatar-circle {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--gradient-cta); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* =========================================================
   Trek detail page
   ========================================================= */
.trek-hero {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.trek-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,23,48,.35), rgba(10,23,48,.9));
}
.trek-hero-inner { position: relative; z-index: 2; padding: 2.5rem 0; width: 100%; }
.trek-hero .breadcrumb-link { color: rgba(255,255,255,.75); font-size: .88rem; }
.trek-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: .8rem 0; }
.trek-meta-pills { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.trek-meta-pills span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; }

.gallery-main { border-radius: var(--radius-lg); overflow: hidden; height: 420px; margin-bottom: .8rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; overflow-x: auto; }
.gallery-thumbs img { width: 90px; height: 66px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .75; border: 2px solid transparent; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--teal-500); }

.sticky-booking { position: sticky; top: 90px; }
.booking-card { padding: 1.8rem; }
.booking-card .price-big { font-size: 2.1rem; font-weight: 800; color: var(--navy-950); }
.booking-card .price-big small { font-size: .9rem; color: var(--gray-400); font-weight: 600; }

.quick-facts-list { list-style: none; padding: 0; margin: 0; }
.quick-facts-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; color: var(--gray-600); }
.quick-facts-list li:last-child { border-bottom: none; }
.quick-facts-list i { color: var(--teal-500); width: 18px; }

.included-list, .excluded-list { list-style: none; padding: 0; }
.included-list li, .excluded-list li { display: flex; gap: .7rem; padding: .5rem 0; font-size: .92rem; }
.included-list i { color: var(--success); }
.excluded-list i { color: var(--danger); }

.pricing-tier-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    text-align: center;
    height: 100%;
    position: relative;
}
.pricing-tier-card.popular { border-color: var(--teal-500); }
.pricing-tier-card .most-popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-cta); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .25rem .8rem; border-radius: 999px; white-space: nowrap;
}
.pricing-tier-card .tier-price { font-size: 1.8rem; font-weight: 800; color: var(--navy-950); margin: .6rem 0 .1rem; }
.pricing-tier-card .tier-label { color: var(--gray-600); font-size: .88rem; }
.pricing-tier-card .tier-save { color: var(--success); font-size: .82rem; font-weight: 700; }

/* Itinerary accordion */
.itinerary-day {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: .8rem;
    overflow: hidden;
}
.itinerary-day-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
}
.itinerary-day-num {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--gradient-cta); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0; font-size: .9rem;
}
.itinerary-day-title { font-weight: 700; flex: 1; }
.itinerary-day-meta { font-size: .78rem; color: var(--gray-400); }
.itinerary-day-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 1.3rem; }
.itinerary-day-body.open { max-height: 300px; padding-bottom: 1.1rem; }
.itinerary-day-body p { color: var(--gray-600); font-size: .9rem; margin: 0; }
.itinerary-day-header .chevron { transition: transform .3s ease; color: var(--gray-400); }
.itinerary-day.active .chevron { transform: rotate(180deg); }

/* Guests selector & form */
.guests-selector { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .6rem 1rem; }
.guests-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--gray-100); font-weight: 800; font-size: 1.1rem; }
.guests-btn:disabled { opacity: .4; }
.booking-total { border: 1px dashed var(--gray-200); border-radius: var(--radius-sm); padding: .6rem 1rem; background: var(--gray-50, #f8fafc); }
.form-control, .form-select {
    padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.form-label { font-weight: 700; font-size: .88rem; color: var(--navy-950); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1.1rem 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--gray-600); font-size: .92rem; }
.faq-answer.open { max-height: 300px; margin-top: .7rem; }

/* =========================================================
   Blog detail page
   ========================================================= */
.blog-hero-img { border-radius: var(--radius-lg); overflow: hidden; height: 420px; margin-bottom: 2rem; }
.blog-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { font-size: 1.03rem; color: var(--gray-800); }
.blog-content h2 { font-weight: 800; font-size: 1.5rem; margin-top: 2rem; margin-bottom: .8rem; }
.blog-content h3 { font-weight: 700; font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: .6rem; }
.blog-content p { margin-bottom: 1.1rem; color: var(--gray-600); }
.blog-meta-row { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--gray-400); font-size: .88rem; margin: 1rem 0 1.8rem; }

/* =========================================================
   About page
   ========================================================= */
.team-card { text-align: center; padding: 1.8rem; }
.team-avatar {
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--gradient-cta); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800;
    margin: 0 auto 1rem;
}
.value-card { text-align: center; padding: 1.6rem; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-info-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem;
}
.map-frame { border-radius: var(--radius-lg); overflow: hidden; height: 380px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; margin-top: 4rem; }
.footer-brand { display: block; margin-bottom: 1rem; }
.footer-brand strong { color: #fff; font-size: 1.15rem; display: block; }
.footer-brand small { color: var(--teal-400); font-size: .78rem; }
.footer-about { font-size: .9rem; margin-bottom: 1.2rem; }
.tripadvisor-box { background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; font-weight: 600; color: #fff; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .7rem; font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--teal-400); }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact i { color: var(--teal-400); margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem; }
.social-icons a:hover { background: var(--teal-500); }

.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient-cta); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .3s ease;
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* =========================================================
   Filters bar
   ========================================================= */
.filter-bar { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.6rem; margin-top: -3.5rem; position: relative; z-index: 5; margin-bottom: 2.5rem; }
.filter-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.filter-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--teal-400); }
.filter-stats .label { font-size: .8rem; color: rgba(255,255,255,.7); }

/* Alerts */
.form-alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 600; font-size: .9rem; margin-bottom: 1.2rem; display: none; }
.form-alert.success { background: #d1fae5; color: #065f46; display: block; }
.form-alert.error { background: #fee2e2; color: #991b1b; display: block; }

/* Utility */
.text-teal { color: var(--teal-500); }
.bg-navy { background: var(--navy-950); }
@media (max-width: 991px) {
    .sticky-booking { position: static; margin-top: 2rem; }
}
