/* =====================================================================
   MADULSIMA — "From Tea Estates to Mountain Skies"
   Tourism Website Development Assignment — Stylesheet
   ---------------------------------------------------------------------
   Colour palette
     Deep forest green  #14291f   headings, footer
     Tea green          #3a6b4f   links, accents
     Soft green         #e4efe7   tints, table stripes
     Gold               #c9a227   accents, highlights
     Warm cream         #f8f5ec   page background
     Ink                #26261f   body text
   Typography
     Headings : "Playfair Display" (serif)
     Body     : "Source Sans 3" (sans-serif)
   ===================================================================== */

:root {
  --green-900: #14291f;
  --green-700: #1d3b2c;
  --green-500: #3a6b4f;
  --green-100: #e4efe7;
  --gold:      #c9a227;
  --gold-soft: #fbf6e7;
  --cream:     #f8f5ec;
  --ink:       #26261f;
  --muted:     #6b6b5f;
  --line:      #e3dfd2;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 4px 14px rgba(20, 41, 31, 0.08);
  --shadow-lg: 0 12px 26px rgba(20, 41, 31, 0.16);
}

/* ---------- Base & reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--green-900);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

p { margin-bottom: 1rem; }

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

a { color: var(--green-500); }
a:hover { color: var(--gold); }

.container { width: min(1100px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; top: 0; left: -999px;
  background: var(--gold); color: var(--green-900);
  padding: 0.6rem 1.2rem; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 236, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(20, 41, 31, 0.06);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 0.7rem 0;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--green-900); }
.brand:hover { color: var(--green-500); }

.brand-mark { width: 44px; height: 44px; color: var(--green-700); flex: none; }

.brand-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-tag {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

.nav-list { display: flex; gap: 0.4rem; list-style: none; flex-wrap: wrap; }

.nav-list a {
  display: block; padding: 0.55rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.nav-list a:hover { background: var(--green-100); color: var(--green-700); }

.nav-list a[aria-current="page"],
.nav-list a.active {
  background: var(--green-700); color: var(--white);
  border-color: var(--green-700);
}

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex; align-items: center;
  color: var(--white); text-align: center;
  /* Static fallback layer: shown before the video loads and if it is disabled */
  background:
    linear-gradient(180deg, rgba(20, 41, 31, 0.45), rgba(20, 41, 31, 0.78)),
    url("../src/images/madulsima_two.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

/* Keeps the hero text readable over the video — same dimming as the static hero */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20, 41, 31, 0.45), rgba(20, 41, 31, 0.78));
}

.hero-inner { position: relative; z-index: 2; padding: 5rem 0; }

/* Respect users who prefer reduced motion: fall back to the static hero image */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-overlay { display: none; }
}

.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--white); margin-bottom: 0.6rem;
}

.hero .tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-style: italic;
  color: #f2ead8; margin-bottom: 1.2rem;
}

.hero p { max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; color: #f2ead8; }

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-facts {
  margin-top: 2.2rem; list-style: none;
  display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap;
}
.hero-facts li {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: #e8dfc8;
}
.hero-facts strong { color: var(--gold); display: block; font-size: 1.15rem; }

/* Page heroes (sub-pages) */
.page-hero {
  padding: 5.5rem 0 4rem;
  color: var(--white);
  background-position: center; background-size: cover;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  margin-bottom: 0.4rem;
}
.page-hero .eyebrow { margin-bottom: 0.5rem; }

.hero-about {
  background-image:
    linear-gradient(180deg, rgba(20, 41, 31, 0.5), rgba(20, 41, 31, 0.8)),
    url("../src/images/madulsima_tea_estate.webp");
}
.hero-places {
  background-image:
    linear-gradient(180deg, rgba(20, 41, 31, 0.5), rgba(20, 41, 31, 0.8)),
    url("../src/images/besema_waterfall.webp");
}
.hero-contact {
  background-image:
    linear-gradient(180deg, rgba(20, 41, 31, 0.5), rgba(20, 41, 31, 0.82)),
    url("../src/images/madulsima_one.jpg");
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem;
  font-size: 0.88rem; margin-bottom: 1rem;
}
.breadcrumb li + li::before { content: "\203A"; margin-right: 0.45rem; color: var(--muted); }
.breadcrumb a { font-weight: 600; }
.breadcrumb [aria-current="page"] { color: var(--muted); font-weight: 600; }

.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb [aria-current="page"] { color: #e8dfc8; }
.page-hero .breadcrumb li + li::before { color: #cfc5a8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.62rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }

.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: #b8921f; color: var(--green-900); }

.btn-outline { border-color: var(--green-500); color: var(--green-500); background: transparent; }
.btn-outline:hover { background: var(--green-100); color: var(--green-700); border-color: var(--green-700); }

.btn-light { background: var(--cream); color: var(--green-900); }
.btn-light:hover { background: #fff; color: var(--green-900); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.88rem; }

/* ---------- Sections & layout ---------- */
.section { padding: 4rem 0; }
.section-alt {
  background: var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }
.section-head p { color: var(--muted); }

.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.4rem; align-items: center; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.3rem; }
.card-body p { margin: 0 0 0.6rem; color: var(--muted); flex: 1; }
.card-more { font-weight: 700; display: inline-flex; gap: 0.35rem; align-items: center; }

/* ---------- Figures & gallery ---------- */
figure { margin: 0; }

.figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.85rem; font-style: italic; color: var(--muted);
  border-top: 1px solid var(--line);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }

/* Stacked figures inside a split column (about page intro) */
.figure-stack { display: grid; gap: 1.2rem; }

/* ---------- Content lists (ordered & unordered) ---------- */
.howto-list { padding-left: 1.3rem; margin-bottom: 1.4rem; }
.howto-list li { margin-bottom: 0.5rem; }
.howto-list li:last-child { margin-bottom: 0; }

/* ---------- Feature list ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem; list-style: none;
}

.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow); text-align: center;
}
.feature-icon {
  width: 58px; height: 58px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon img { width: 30px; height: 30px; object-fit: contain; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Share box ---------- */
.share-box {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  border: 1px dashed var(--green-500); border-radius: 12px;
  background: var(--green-100);
  padding: 0.8rem 1.1rem; margin-top: 1rem;
}
.share-center { max-width: 480px; margin: 1.5rem auto 0; justify-content: center; }

.share-label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--green-700); font-size: 0.92rem;
}
.share-label svg { width: 18px; height: 18px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: transform 0.2s, opacity 0.2s;
}
.icon-btn:hover { transform: scale(1.1); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn.fb { background: #1877f2; }
.icon-btn.tw { background: #14171a; }

/* ---------- Place articles ---------- */
.place {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.2rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  margin-bottom: 2.6rem;
  scroll-margin-top: 90px;
}
.place h2 { font-size: 1.9rem; }
.place .place-media .gallery { grid-template-columns: 1fr 1fr; }

.action-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0 0; }

.note {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 0.9rem 1.1rem; margin-top: 1rem;
  font-size: 0.95rem;
}
.note strong { color: var(--green-900); }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; min-width: 460px; }
caption { padding: 0.8rem 1.1rem; font-weight: 700; color: var(--green-700); text-align: left; font-size: 1.02rem; }
thead th { background: var(--green-700); color: #fff; text-align: left; }
th, td { padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { text-align: left; color: var(--green-900); }
tbody tr:nth-child(even) { background: var(--green-100); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.8rem; box-shadow: var(--shadow);
}

fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem 1.3rem; margin-bottom: 1.4rem; }
legend { padding: 0 0.6rem; font-weight: 700; color: var(--green-700); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
label .req { color: #b03a2e; }

input, select, textarea {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1.5px solid #cfc9b4; border-radius: 8px;
  font: inherit; color: var(--ink); background: #fdfcf8;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(58, 107, 79, 0.22);
}

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Contact aside & map ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.2rem; align-items: start; }

.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.6rem;
}
.info-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }

.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.9rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 0.2rem; }
.contact-list a { font-weight: 600; }

.map-frame {
  width: 100%; height: 300px; border: 0;
  border-radius: 10px; box-shadow: var(--shadow); display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-700);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin: 0 0 0.4rem; }
.cta-band p { color: var(--green-100); margin: 0; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #d9e3db; margin-top: 3rem; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }

.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem; color: var(--white); margin-bottom: 0.6rem;
}
.footer-brand span { color: var(--gold); }

.site-footer h3 {
  color: var(--gold); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.9rem; font-family: "Source Sans 3", sans-serif;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a, .site-footer address a { color: #d9e3db; }
.footer-links a:hover, .site-footer address a:hover { color: var(--gold); }

.site-footer address { font-style: normal; line-height: 1.8; color: #d9e3db; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 1.1rem 0; font-size: 0.85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: #b9c9bd; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .place { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 62vh; }
}

@media (max-width: 620px) {
  .header-inner { flex-direction: column; gap: 0.4rem; }
  .nav-list { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .place { padding: 1.2rem; }
  .place .place-media .gallery { grid-template-columns: 1fr; }
  .hero-facts { gap: 1rem; }
  .cta-band { flex-direction: column; text-align: center; }
  .btn { width: 100%; }
}

/* ---------- Tour packages ---------- */
.hero-tours {
  background-image:
    linear-gradient(180deg, rgba(20, 41, 31, 0.5), rgba(20, 41, 31, 0.8)),
    url("../src/images/madulsima_tea_estate.webp");
}

.page-hero .tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  color: #f2ead8;
  margin-bottom: 1.1rem;
}

.tour {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.4rem;
  scroll-margin-top: 90px;
}

.tour-media {
  margin: 0.4rem 0 1.3rem;
  border-radius: 10px;
  overflow: hidden;
}
.tour-media img { width: 100%; height: 260px; object-fit: cover; display: block; }

.tour-head {
  display: flex; align-items: flex-start; gap: 1.1rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.tour-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--gold); flex: none;
}
.tour-head-text { flex: 1; min-width: 240px; }
.tour-head-text h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin-bottom: 0.3rem; }
.tour-tagline { color: var(--muted); margin: 0; }

.tour-badge {
  display: inline-block; margin-left: 0.6rem; vertical-align: 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.badge-signature { background: var(--gold); color: var(--green-900); }
.badge-value { background: var(--green-700); color: #fff; }

.tour-meta { list-style: none; display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.6rem 0 1.3rem; }
.tour-chip {
  background: var(--green-100); color: var(--green-700);
  font-weight: 700; font-size: 0.85rem;
  padding: 0.35rem 0.95rem; border-radius: 999px;
}
.tour-chip-gold { background: var(--gold-soft); color: #8a6d14; }

.day {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
}
.day-title { font-size: 1.08rem; color: var(--green-700); margin-bottom: 0.55rem; }
.day-label {
  display: inline-block; margin-right: 0.5rem;
  background: var(--green-700); color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px; padding: 0.18rem 0.6rem;
  vertical-align: 0.1rem;
}

.tour-section-title {
  font-size: 1.12rem; color: var(--green-900);
  margin: 1.2rem 0 0.6rem;
}

.check-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.3rem 1.4rem;
}
.check-list li {
  display: flex; gap: 0.5rem; align-items: flex-start;
  padding: 0.22rem 0; font-size: 0.97rem;
}
.check-list li::before {
  content: "✓"; color: var(--green-500); font-weight: 700; flex: none;
}

.tour-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  margin-top: 1.4rem; padding-top: 1.2rem;
}
.tour-price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem; color: var(--green-900); margin: 0;
}
.tour-price span { font-family: "Source Sans 3", sans-serif; font-size: 0.9rem; color: var(--muted); font-weight: 600; }

.tour-note { margin-top: 1rem; }

.cta-line { text-align: center; margin-top: 2.2rem; }

/* Tour mini cards (home page teaser) */
.tour-mini .card-body h3 { font-size: 1.18rem; }
.tour-mini-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0.3rem; }

@media (max-width: 620px) {
  .tour { padding: 1.2rem; }
  .tour-number { font-size: 2rem; }
}
