/* ------------------------------------------------------------------
   Outer Cape Nature Guides — styles
   Earthy, coastal palette. Responsive, no build step required.
------------------------------------------------------------------ */

:root {
  --green-900: #1f3d2b;
  --green-700: #2f5d43;
  --green-500: #4a8262;
  --sand: #f4efe4;
  --sand-dark: #e7dfcc;
  --ink: #22241f;
  --muted: #5c6157;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(31, 61, 43, 0.12);
  --radius: 14px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

a { color: var(--green-700); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark { font-size: 1.4rem; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-500); }

.btn-ghost {
  background: transparent;
  color: var(--green-900);
  border: 2px solid var(--green-700);
}
.btn-ghost:hover { background: rgba(47, 93, 67, 0.08); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%);
  padding: 56px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--green-900);
}
.hero-text p { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }

.section-title {
  font-size: 2rem;
  color: var(--green-900);
  margin: 0 0 8px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--green-500);
  border-radius: 2px;
  margin-top: 10px;
}
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.section-cta { margin-top: 32px; }

.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; }

.contact-list { list-style: none; padding: 0; font-size: 1.08rem; }
.contact-list li { margin-bottom: 8px; }

/* ---------- Trips grid ---------- */
.trip-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.trip-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(31, 61, 43, 0.18);
}
.trip-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.trip-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.trip-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.trip-card-body h3 { margin: 0 0 4px; color: var(--green-900); font-size: 1.3rem; }
.trip-card:hover .trip-card-body h3 { color: var(--green-500); }
.trip-meta { color: var(--green-500); font-weight: 600; margin: 0 0 12px; font-size: 0.95rem; }

/* ---------- Trip detail page ---------- */
.trip-hero { position: relative; }
.trip-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.trip-detail { padding: 48px 0 64px; }
.trip-detail .trip-meta { font-size: 1.05rem; margin-bottom: 20px; }
.trip-detail h1 { color: var(--green-900); font-size: 2.2rem; margin: 0 0 6px; }
.trip-back { display: inline-block; margin-bottom: 20px; font-weight: 600; text-decoration: none; }
.trip-back:hover { text-decoration: underline; }
.trip-detail .prose { margin-bottom: 32px; }
@media (max-width: 820px) {
  .trip-hero img { height: 260px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 0;
  text-align: center;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-text h1 { font-size: 2.1rem; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--green-900);
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; padding: 12px; }
}
