/* ===================================================================
   High Peak Tours — shared stylesheet
   Palette: deep pine, sunset terracotta, warm cream, charcoal ink
=================================================================== */

:root {
  --pine: #1f3a2e;
  --pine-dark: #142720;
  --terracotta: #c9682f;
  --terracotta-dark: #a8531f;
  --cream: #faf5ec;
  --cream-dim: #f0e8d8;
  --ink: #2a2a24;
  --ink-soft: #55554a;
  --line: #e2d8c4;
  --white: #ffffff;

  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 39, 32, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(20, 39, 32, 0.2);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--pine-dark);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--terracotta-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

.section {
  padding: 72px 0;
}
.section--tight {
  padding: 48px 0;
}
.section--alt {
  background: var(--cream-dim);
}
.section--pine {
  background: var(--pine);
  color: var(--cream);
}
.section--pine h1, .section--pine h2, .section--pine h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.section--pine .eyebrow {
  color: #e9b98a;
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
}
.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--pine-dark);
}
/* Outline buttons sit on dark surfaces (hero photos, the pine callout
   band) elsewhere in the site — pine-dark text on those backgrounds is
   effectively invisible, so those contexts need light text/border. */
.section--pine .btn--outline,
.hero .btn--outline,
.callout .btn--outline {
  color: var(--white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
}
.btn--light {
  background: var(--white);
  color: var(--pine-dark);
}
.btn--light:hover {
  background: var(--cream);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--pine-dark);
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand__text small {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a.active,
.nav a:hover {
  color: var(--terracotta-dark);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pine-dark);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
  .header-cta .btn--outline {
    display: none;
  }
}

/* ---------- Hero ---------- */
/* Background-image is set per-variant below (not via a --custom-property
   substituted into the `background` shorthand) — Safari/WebKit has a
   long-standing bug where var() doesn't reliably resolve inside shorthand
   properties like `background`. Longhand background-image + explicit
   background-size/position/repeat works consistently everywhere. */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--pine-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 110px 0 90px;
}
.hero--home {
  background-image: linear-gradient(180deg, rgba(15,29,22,0.5), rgba(15,29,22,0.72)), url('../img/hero-bir-billing.jpg');
}
.hero--inner {
  background-image: linear-gradient(180deg, rgba(15,29,22,0.5), rgba(15,29,22,0.72)), url('../img/hero-paragliding-sunset.jpg');
}
.hero__content {
  max-width: 640px;
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 6px 24px rgba(0,0,0,0.55);
}
.hero__lede {
  font-size: 1.15rem;
  color: #f1ead9;
  max-width: 520px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 4px 18px rgba(0,0,0,0.5);
}
.hero__meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.95rem;
  color: #f1ead9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 3px 14px rgba(0,0,0,0.5);
}
.hero__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero .eyebrow {
  color: #f0c496;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 3px 14px rgba(0,0,0,0.5);
}

.page-hero {
  padding: 64px 0 56px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card__img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}
.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card__body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.card__link {
  font-weight: 700;
  font-size: 0.9rem;
}

.service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--terracotta);
}
.service__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--terracotta-dark);
}
.service h3 {
  font-size: 1.1rem;
}
.service p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Route list (cab services) ---------- */
.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
@media (max-width: 700px) {
  .route-list { grid-template-columns: 1fr; }
}
.route-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--pine-dark);
}
.route-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ---------- Itinerary ---------- */
.tour-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}
.tour-block__header {
  padding: 28px 32px;
  background: var(--pine);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tour-block__header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
}
.tour-block__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #dfe8e0;
}
.tour-block__body {
  padding: 32px;
}
.tour-block__intro {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.day {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.day:last-child {
  border-bottom: none;
}
.day__num {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--terracotta-dark);
  font-size: 0.95rem;
  line-height: 1.3;
}
.day__num span {
  display: block;
  font-size: 1.6rem;
  color: var(--pine-dark);
}
.day__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--pine-dark);
  font-weight: 700;
}
.day__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .day { grid-template-columns: 1fr; gap: 6px; }
  .day__num { display: flex; align-items: baseline; gap: 8px; }
  .day__num span { font-size: 1.1rem; }
}

/* ---------- Callout / CTA banner ---------- */
.callout {
  background: var(--pine);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.callout h2 { color: var(--white); }
.callout p { color: #dfe8e0; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.contact-card a {
  font-weight: 700;
  font-size: 1.1rem;
}
.contact-card p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: none;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark);
  color: #cfd9d1;
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer a {
  color: #cfd9d1;
}
.site-footer a:hover {
  color: var(--white);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.footer-brand svg { width: 32px; height: 32px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #9fb0a6;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
.whatsapp-float:hover {
  transform: scale(1.06);
}

/* ---------- Misc ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.tag-list a {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine-dark);
}
.tag-list a:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  text-decoration: none;
}

.note {
  background: var(--cream-dim);
  border-left: 4px solid var(--terracotta);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--pine);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
