/* ============================================================
   AMEERA AFRICA SAFARIS — Homepage layer (loads after styles.css)
   Uses the sitewide design tokens: espresso brown, amber gold, ivory.
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hm-head { max-width: 760px; margin-bottom: 2.2em; }
.hm-head h2 { margin-bottom: 0.35em; }
.hm-head--light h2, .hm-head--light .eyebrow { color: var(--ivory); }
.hm-link { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); text-transform: uppercase; }
.hm-link:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hm-hero { min-height: clamp(560px, calc(100vh - 170px), 740px); display: flex; flex-direction: column; justify-content: flex-end; }
.hm-hero .hero-inner { padding-bottom: 130px; padding-top: 56px; }
.hm-hero h1 { max-width: 17ch; }
.hm-hero .lede { max-width: 620px; }
.hm-hero-dest {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(36, 20, 7, 0.78); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(250, 247, 240, 0.18);
}
.hm-hero-dest a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px clamp(12px, 2vw, 28px);
  color: var(--ivory); border-right: 1px solid rgba(250, 247, 240, 0.14);
  transition: background .25s ease;
}
.hm-hero-dest a:last-child { border-right: 0; }
.hm-hero-dest a:hover, .hm-hero-dest a:focus-visible { background: rgba(217, 130, 42, 0.92); color: var(--green-dark); }
.hm-hero-dest span { font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.1; }
.hm-hero-dest small { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.8; }
.hm-hero .hero-slide-nav { bottom: 92px; }
@media (max-width: 760px) {
  .hm-hero { min-height: 640px; }
  .hm-hero .hero-inner { padding-bottom: 190px; }
  .hm-hero-dest { grid-template-columns: repeat(2, 1fr); }
  .hm-hero-dest a { border-bottom: 1px solid rgba(250, 247, 240, 0.14); padding: 11px 14px; }
  .hm-hero-dest a:nth-child(2n) { border-right: 0; }
  .hm-hero-dest a:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .hm-hero-dest small { display: none; }
  .hm-hero .hero-slide-nav { display: none; }
}

/* ---------- Trust strip ---------- */
.hm-trust { background: var(--green-dark); color: var(--ivory); }
.hm-trust-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.hm-trust-item { display: flex; flex-direction: column; gap: 2px; padding: 22px clamp(14px, 2vw, 28px); border-right: 1px solid rgba(250, 247, 240, 0.12); color: var(--ivory); }
.hm-trust-item:last-child { border-right: 0; }
.hm-trust-item strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--gold-light); line-height: 1.1; }
.hm-trust-item span { font-family: var(--font-body); font-size: 0.78rem; opacity: 0.82; }
a.hm-trust-item:hover strong { color: var(--ivory); }
@media (max-width: 760px) {
  .hm-trust-inner { grid-template-columns: 1fr 1fr; }
  .hm-trust-item { border-bottom: 1px solid rgba(250, 247, 240, 0.12); padding: 16px 14px; }
  .hm-trust-item:nth-child(2n) { border-right: 0; }
  .hm-trust-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Intro ---------- */
.hm-intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.hm-intro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hm-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(58, 32, 20, 0.15); }
.hm-points li { padding: 18px 0; border-bottom: 1px solid rgba(58, 32, 20, 0.15); display: flex; flex-direction: column; gap: 2px; }
.hm-points strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; color: var(--green-dark); }
.hm-points span { font-family: var(--font-body); font-size: 0.9rem; color: var(--grey); }
@media (max-width: 900px) { .hm-intro-grid { grid-template-columns: 1fr; } }

/* ---------- Destination tiles ---------- */
.hm-dest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.hm-dest { grid-column: span 2; background: var(--ivory); border: 1px solid rgba(58, 32, 20, 0.1); display: flex; flex-direction: column; }
.hm-dest:nth-child(4), .hm-dest:nth-child(5) { grid-column: span 3; }
.hm-dest-media { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: var(--green-mid); }
.hm-dest:nth-child(4) .hm-dest-media, .hm-dest:nth-child(5) .hm-dest-media { aspect-ratio: 16 / 8; }
.hm-dest-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.hm-dest-body h3 { margin: 0; font-size: 1.7rem; }
.hm-dest-body h3 a:hover { color: var(--gold); }
.hm-dest-body p { margin: 0; font-size: 1.08rem; color: var(--grey); line-height: 1.45; }
.hm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.hm-chips li { font-family: var(--font-body); font-size: 0.72rem; padding: 4px 10px; border: 1px solid rgba(58, 32, 20, 0.22); border-radius: 20px; color: var(--ink); }
.hm-dest-body small { font-family: var(--font-body); font-size: 0.78rem; color: var(--grey); }
.hm-dest-links { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; }
.hm-dest-links a:first-child { color: var(--gold); }
.hm-dest-links a:hover { color: var(--green); }
@media (max-width: 900px) {
  .hm-dest-grid { grid-template-columns: 1fr 1fr; }
  .hm-dest, .hm-dest:nth-child(4), .hm-dest:nth-child(5) { grid-column: span 1; }
  .hm-dest:nth-child(5) { grid-column: 1 / -1; }
  .hm-dest:nth-child(4) .hm-dest-media, .hm-dest:nth-child(5) .hm-dest-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) { .hm-dest-grid { grid-template-columns: 1fr; } .hm-dest:nth-child(5) { grid-column: auto; } }

/* ---------- Tour tabs ---------- */
.hm-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid rgba(58, 32, 20, 0.18); margin-bottom: 2em; }
.hm-tabs button {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px clamp(14px, 2.4vw, 30px); color: var(--grey); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.hm-tabs button:hover { color: var(--green-dark); }
.hm-tabs button[aria-selected="true"] { color: var(--green-dark); border-bottom-color: var(--gold); }
.hm-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.hm-panel + .hm-panel { margin-top: 3.5em; }
.hm-tabs-on .hm-panel[hidden] { display: none; }
.hm-tabs-on .hm-panel + .hm-panel { margin-top: 0; }
.hm-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 1.4em; }
.hm-panel-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 0.2em; }
.hm-panel-head p { margin: 0; color: var(--grey); font-size: 1.1rem; }
.hm-note { font-family: var(--font-body); font-size: 0.8rem; color: var(--grey); margin-top: 2em; }
.hm-tours .price-card-media { background-size: cover; background-position: center; }
.hm-beach-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(58, 32, 20, 0.1); }
.hm-beach-media { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--green-mid); }
.hm-beach-card > div { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.hm-beach-card h3 { margin: 0; font-size: 1.5rem; }
.hm-beach-card p { margin: 0; font-size: 1.05rem; color: var(--grey); line-height: 1.45; }

/* ---------- Collections ---------- */
.hm-coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-coll { position: relative; display: block; min-height: 420px; overflow: hidden; color: var(--ivory); background: var(--green-dark); }
.hm-coll-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.hm-coll:hover .hm-coll-media { transform: scale(1.05); }
.hm-coll-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 20, 7, 0.05) 30%, rgba(36, 20, 7, 0.88) 100%); }
.hm-coll-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.hm-coll-body strong { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.1; }
.hm-coll-body span { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; color: rgba(250, 247, 240, 0.88); }
.hm-coll-body em { font-style: normal; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }
@media (max-width: 900px) { .hm-coll-grid { grid-template-columns: 1fr; } .hm-coll { min-height: 320px; } }

/* ---------- Top things to do ---------- */
.hm-things { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
.hm-thing { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: stretch; }
.hm-thing-media { position: relative; display: block; min-height: 190px; background-size: cover; background-position: center; background-color: var(--green-mid); }
.hm-thing-n { position: absolute; left: 0; top: 0; padding: 6px 12px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; background: var(--gold); color: var(--green-dark); }
.hm-thing-body { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.hm-thing-where { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.hm-thing-body h3 { margin: 0; font-size: 1.45rem; }
.hm-thing-body h3 a:hover { color: var(--gold); }
.hm-thing-body p { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.5; color: var(--grey); }
.hm-thing-body .hm-link { margin-top: auto; }
@media (max-width: 1000px) { .hm-things { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hm-thing { grid-template-columns: 1fr; } .hm-thing-media { min-height: 200px; } }

/* ---------- Activities ---------- */
.hm-act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-act { position: relative; display: flex; align-items: flex-end; min-height: 190px; overflow: hidden; color: var(--ivory); background: var(--green-dark); }
.hm-act-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s ease; }
.hm-act:hover .hm-act-media { transform: scale(1.07); }
.hm-act-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 20, 7, 0) 35%, rgba(36, 20, 7, 0.82) 100%); }
.hm-act strong { position: relative; padding: 14px 16px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.15; }
@media (max-width: 900px) { .hm-act-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .hm-act-grid { grid-template-columns: 1fr; } .hm-act { min-height: 150px; } }

/* ---------- When to go ---------- */
.hm-plan-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hm-table-wrap { overflow-x: auto; }
.hm-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.9rem; }
.hm-table th, .hm-table td { text-align: left; padding: 14px 14px; border-bottom: 1px solid rgba(58, 32, 20, 0.14); vertical-align: top; line-height: 1.5; }
.hm-table thead th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); border-bottom: 2px solid var(--green-dark); }
.hm-table tbody th { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.hm-table tbody th a:hover { color: var(--gold); }
.hm-table td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--green-dark); }
@media (max-width: 900px) { .hm-plan-grid { grid-template-columns: 1fr; } }

/* ---------- Why Ameera ---------- */
.hm-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(250, 247, 240, 0.2); }
.hm-why { padding: 28px 24px 8px 0; margin-right: 24px; border-right: 1px solid rgba(250, 247, 240, 0.14); }
.hm-why:last-child { border-right: 0; margin-right: 0; }
.hm-why strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--gold-light); display: block; margin-bottom: 8px; line-height: 1.15; }
.hm-why p { color: rgba(250, 247, 240, 0.82); font-size: 1.05rem; line-height: 1.55; }
.hm-why-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
@media (max-width: 900px) {
  .hm-why-grid { grid-template-columns: 1fr 1fr; }
  .hm-why { border-right: 0; margin-right: 0; padding-right: 16px; border-bottom: 1px solid rgba(250, 247, 240, 0.14); }
}
@media (max-width: 560px) { .hm-why-grid { grid-template-columns: 1fr; } }

/* ---------- Enquiry ---------- */
.hm-enquire { position: relative; background: var(--green-dark); background-size: cover; background-position: center; color: var(--ivory); }
.hm-enquire-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 20, 7, 0.92) 0%, rgba(36, 20, 7, 0.74) 100%); }
.hm-enquire-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.hm-enquire h2, .hm-enquire .eyebrow { color: var(--ivory); }
.hm-enquire-copy p { color: rgba(250, 247, 240, 0.88); }
.hm-contact { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 0; }
.hm-contact li { border-top: 1px solid rgba(250, 247, 240, 0.2); }
.hm-contact li:last-child { border-bottom: 1px solid rgba(250, 247, 240, 0.2); }
.hm-contact a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-family: var(--font-body); font-size: 0.92rem; color: var(--ivory); }
.hm-contact a strong { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem; color: var(--gold-light); align-self: center; }
.hm-contact a:hover span { color: var(--gold-light); }
.hm-form-card { background: var(--ivory); color: var(--ink); padding: clamp(22px, 3vw, 36px); border-top: 4px solid var(--gold); }
.hm-form-card h3 { margin-bottom: 14px; }
.hm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hm-form-card .booking-submit {
  width: 100%; padding: 14px 20px; border: 0; background: var(--gold); color: var(--green-dark); cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.hm-form-card .booking-submit:hover { background: var(--gold-light); }
.hm-form-card .booking-submit:disabled { opacity: 0.7; cursor: wait; }
.hm-form-card .booking-note { font-family: var(--font-body); font-size: 0.74rem; color: var(--grey); margin: 10px 0 0; }
@media (max-width: 900px) { .hm-enquire-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hm-form-row { grid-template-columns: 1fr; } }

/* In-page anchors clear the sticky header */
#tours, #destinations, #enquire, #faqs, #best-time, #top-things-to-do, #activities, #about, #ways-to-safari { scroll-margin-top: 90px; }
.tour-grid-hidden { display: none; }

.hm-plan-btns { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 620px) {
  .hm-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hm-tabs::-webkit-scrollbar { display: none; }
  .hm-tabs button { white-space: nowrap; padding: 14px 16px; }
}

.hm-more { margin: 0.8em 0 0; }
