/* Home page blocks (index.php). Cards, buttons, headings and FAQ come from css/tour-card.css */

.home { padding-top: 0; }

/* ---------- Hero ---------- */
.hm-hero {
    position: relative; display: flex; align-items: center; min-height: 640px;
    background: #2a2118 url('/assets/Hatshepsut.webp') center / cover no-repeat;
}
.hm-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 8, 5, .82) 0%, rgba(10, 8, 5, .58) 42%, rgba(10, 8, 5, .15) 75%, rgba(10, 8, 5, .05) 100%);
}
.hm-hero-inner { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 140px 32px 70px; color: #fff; }
.hm-hero-inner > * { max-width: 640px; }
.hm-title {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: #fff;
    font-size: clamp(44px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -.5px; margin: 0 0 16px;
}
.hm-lead { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); margin: 0 0 26px; }
.hm-search {
    display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 7px 7px 7px 18px;
    background: #fff; border-radius: 999px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.hm-search i { color: var(--tc-gold-dark); }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 15px 'Montserrat', sans-serif; color: var(--tc-text); background: transparent; padding: 8px 0; }
.hm-search button {
    border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer;
    background: linear-gradient(135deg, #D4B254, #B8932F); color: #fff; font: 700 14px 'Montserrat', sans-serif;
}
.hm-hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: none; }
.hm-hero-facts li { display: inline-flex; align-items: center; gap: 8px; font: 600 13px 'Montserrat', sans-serif; color: rgba(255, 255, 255, .92); }
.hm-hero-facts i { color: var(--tc-gold-light); }

/* ---------- Blocks ---------- */
.hm-block { padding-top: 64px; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hm-head .sec-h2 { margin-bottom: 4px; font-size: 34px; }
.hm-sub { margin: 0; color: var(--tc-muted); font-size: 15px; }
.hm-more { flex-shrink: 0; color: var(--tc-gold-dark); font: 600 14px 'Montserrat', sans-serif; text-decoration: none; white-space: nowrap; }
.hm-more:hover { color: var(--tc-gold-dark); text-decoration: underline; }
.hm-more i { font-size: 12px; margin-left: 4px; }

/* Trip types */
.hm-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-type { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--tc-cream); }
.hm-type:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.hm-type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hm-type:hover img { transform: scale(1.05); }
.hm-type::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75) 100%); }
.hm-type-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.hm-type-body strong { font: 600 22px/1.15 'Cormorant Garamond', Georgia, serif; }
.hm-type:first-child .hm-type-body strong { font-size: 32px; }
.hm-type-body small { font: 600 12.5px 'Montserrat', sans-serif; color: rgba(255, 255, 255, .88); }
.hm-type:hover { color: #fff; }

/* Offers + Nile: horizontal rows of cards */
.hm-offers, .hm-nile { margin-top: 64px; padding: 56px 0 60px; background: #fbf8f2; }
.hm-offers + .hm-block, .hm-nile + .hm-block { padding-top: 64px; }
.hm-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.hm-row > .tc { scroll-snap-align: start; }
.hm-row-4 { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }

/* Cities */
.hm-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hm-city { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--tc-border); background: #fff; color: var(--tc-text); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.hm-city:hover { border-color: var(--tc-gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .06); color: var(--tc-text); }
.hm-city img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.hm-city span { display: flex; flex-direction: column; gap: 2px; }
.hm-city strong { font: 600 19px/1.1 'Cormorant Garamond', Georgia, serif; }
.hm-city small { font-size: 12px; color: var(--tc-muted); }

/* Why */
.hm-why { margin-top: 64px; padding: 56px 0; background: #14110c; color: #fff; }
.hm-why .sec-h2 { color: #fff; text-align: center; margin-bottom: 30px; }
.hm-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-why-list li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.hm-why-list i { font-size: 22px; color: var(--tc-gold-light); }
.hm-why-list strong { font: 600 16px 'Montserrat', sans-serif; }
.hm-why-list span { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.hm-why-list a { color: var(--tc-gold-light); }
.hm-why + .hm-block { padding-top: 64px; }

/* Reviews */
.hm-star { color: var(--tc-gold); }
.hm-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-review { margin: 0; padding: 22px; border-radius: 16px; border: 1px solid var(--tc-border); background: #fff; display: flex; flex-direction: column; gap: 8px; }
.hm-review-stars { color: var(--tc-gold); letter-spacing: 2px; }
.hm-review blockquote { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--tc-muted); }
.hm-review figcaption { margin-top: auto; font-weight: 600; font-size: 13.5px; }

/* FAQ + about */
.home .sec-faq { max-width: none; }
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 20px; }
.hm-about { padding: 26px; border-radius: 18px; background: var(--tc-cream); }
.hm-about .sec-h2 { font-size: 26px; }
.hm-about p { font-size: 15px; line-height: 1.75; color: var(--tc-muted); }
.hm-about a:not(.sec-btn) { color: var(--tc-gold-dark); font-weight: 600; }
.hm-about .sec-btn { width: 100%; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .hm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-type:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
    .hm-row { grid-auto-columns: calc((100% - 22px) / 2.2); }
    .hm-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-reviews { grid-template-columns: 1fr; }
    .hm-faq-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    .hm-hero { min-height: 0; background-image: url('/assets/Hatshepsut-800.webp'); }
    .hm-hero::before { background: linear-gradient(180deg, rgba(10, 8, 5, .35) 0%, rgba(10, 8, 5, .6) 45%, rgba(10, 8, 5, .88) 100%); }
    .hm-hero-inner { padding: 150px 16px 30px; }
    .hm-title { font-size: 38px; margin-bottom: 12px; }
    .hm-lead { font-size: 14.5px; margin-bottom: 18px; }
    .hm-search { padding: 5px 5px 5px 14px; }
    .hm-search input { font-size: 14px; }
    .hm-search button { padding: 11px 16px; font-size: 13px; }
    .hm-hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 18px; }
    .hm-hero-facts li { font-size: 12px; }

    .hm-block { padding-top: 44px; }
    .hm-head { margin-bottom: 16px; }
    .hm-head .sec-h2 { font-size: 27px; }
    .hm-sub { font-size: 13.5px; }
    .hm-more { font-size: 13px; }

    .hm-types { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hm-type:first-child { grid-column: span 2; }
    .hm-type { border-radius: 12px; }
    .hm-type-body { padding: 10px 12px; }
    .hm-type-body strong { font-size: 17px; }
    .hm-type:first-child .hm-type-body strong { font-size: 24px; }
    .hm-type-body small { font-size: 11px; }

    .hm-offers, .hm-nile { margin-top: 44px; padding: 40px 0 44px; }
    .hm-offers + .hm-block, .hm-nile + .hm-block, .hm-why + .hm-block { padding-top: 44px; }
    .hm-row, .hm-row-4 {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
        overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none;
    }
    .hm-row::-webkit-scrollbar { display: none; }

    .hm-cities { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hm-city { padding: 8px; gap: 9px; }
    .hm-city img { width: 46px; height: 46px; }
    .hm-city strong { font-size: 16px; }
    .hm-city small { font-size: 11px; }

    .hm-why { margin-top: 44px; padding: 40px 0; }
    .hm-why .sec-h2 { font-size: 27px; margin-bottom: 20px; }
    .hm-why-list { grid-template-columns: 1fr; gap: 10px; }
    .hm-why-list li { padding: 16px; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
    .hm-why-list i { grid-row: span 2; margin-top: 2px; font-size: 19px; }
    .hm-why-list span { font-size: 13.5px; }
}

/* 7 trip types: the last two share the bottom row as wide tiles */
@media (min-width: 1025px) {
    .hm-types-7 .hm-type:nth-child(n+6) { grid-column: span 2; aspect-ratio: 8 / 3; }
}
/* Popular tours scroll sideways on phones like the other rows */
@media (max-width: 768px) {
    .tc-grid.hm-popular {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
        overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .tc-grid.hm-popular::-webkit-scrollbar { display: none; }
    .hm-popular > .tc, .hm-row > .tc { scroll-snap-align: start; }
}

/* ---------- Eclipse 2027 panel in the hero ---------- */
.hm-hero.has-eclipse .hm-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center; }
.hm-hero.has-eclipse .hm-hero-inner > * { max-width: none; }
.hm-hero.has-eclipse .hm-hero-main { max-width: 620px; }
.hm-eclipse {
    padding: 22px; border-radius: 22px; color: #fff;
    background: rgba(12, 10, 8, .62); border: 1px solid rgba(232, 213, 164, .35);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hm-eclipse-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.hm-eclipse-sun {
    width: 46px; height: 46px; border-radius: 50%; background: #0b0906;
    box-shadow: 0 0 0 2px rgba(255, 236, 190, .9), 0 0 18px 6px rgba(255, 214, 130, .55), 0 0 40px 14px rgba(255, 190, 90, .25);
}
.hm-eclipse-kicker { font: 700 10px 'Montserrat', sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: var(--tc-gold-light); }
.hm-eclipse h2 { margin: 2px 0; font: 600 25px/1.1 'Cormorant Garamond', Georgia, serif; color: #fff; }
.hm-eclipse-top p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .75); }
.hm-eclipse-count { text-align: center; padding: 8px 10px; border-radius: 12px; background: rgba(232, 213, 164, .12); border: 1px solid rgba(232, 213, 164, .3); }
.hm-eclipse-count strong { display: block; font: 700 22px/1 'Montserrat', sans-serif; color: var(--tc-gold-light); }
.hm-eclipse-count span { font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.hm-eclipse-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hm-eclipse-list a {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transition: background .2s;
}
.hm-eclipse-list a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hm-eclipse-list img { width: 56px; height: 44px; border-radius: 8px; object-fit: cover; }
.hm-eclipse-name { font: 600 13px/1.3 'Montserrat', sans-serif; display: flex; flex-direction: column; gap: 2px; }
.hm-eclipse-name small { font-weight: 500; font-size: 11.5px; color: rgba(255, 255, 255, .65); }
.hm-eclipse-name em { font-style: normal; color: #ff9b8a; font-weight: 700; }
.hm-eclipse-price { text-align: right; font: 700 15px 'Montserrat', sans-serif; white-space: nowrap; }
.hm-eclipse-price small { display: block; font-size: 10px; font-weight: 500; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hm-eclipse-all {
    display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 999px;
    background: linear-gradient(135deg, #D4B254, #B8932F); color: #fff; font: 700 13.5px 'Montserrat', sans-serif; text-decoration: none;
}
.hm-eclipse-all:hover { color: #fff; filter: brightness(1.05); }
.hm-eclipse-all i { font-size: 11px; }

@media (max-width: 1100px) {
    .hm-hero.has-eclipse .hm-hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .hm-eclipse { max-width: 560px; }
}
@media (max-width: 768px) {
    .hm-hero.has-eclipse .hm-hero-inner { gap: 22px; padding-bottom: 24px; }
    .hm-eclipse { padding: 16px; border-radius: 18px; }
    .hm-eclipse-top { grid-template-columns: auto 1fr; gap: 10px 12px; margin-bottom: 12px; }
    .hm-eclipse-sun { width: 36px; height: 36px; }
    .hm-eclipse h2 { font-size: 21px; }
    .hm-eclipse-top p { font-size: 11px; }
    .hm-eclipse-count { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 7px; }
    .hm-eclipse-count strong { display: inline; font-size: 18px; }
    .hm-eclipse-list a { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 7px; }
    .hm-eclipse-list img { width: 48px; height: 40px; }
    .hm-eclipse-name { font-size: 12.5px; }
}
/* Phones: eclipse tours scroll sideways so the hero stays short */
@media (max-width: 768px) {
    .hm-hero.has-eclipse .hm-hero-inner { padding-top: 104px; }
    .hm-eclipse-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .hm-eclipse-list::-webkit-scrollbar { display: none; }
    .hm-eclipse-list li { flex: 0 0 82%; scroll-snap-align: start; }
    .hm-eclipse-list a { height: 100%; }
}
@media (max-width: 1100px) {
    .hm-hero.has-eclipse .hm-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hm-hero-main, .hm-eclipse { min-width: 0; }
}
@media (max-width: 768px) { .tc-grid.hm-popular, .hm-eclipse-list { scroll-padding: 0 16px; } }
