/* =============================================
   Suncrest Stake Trek 2026
   Design: Sandstone (B2)
   ============================================= */

/* --- Fonts --- */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/libre-baskerville-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/libre-baskerville-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/libre-baskerville-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

/* --- Custom Properties --- */
:root {
  --bg: #FAF6EE;
  --bg-alt: #F0E8DA;
  --text: #3D3229;
  --text-secondary: #6B5E52;
  --accent: #8B7355;
  --cta: #B53526;
  --cta-hover: #8C2A1E;
  --nav-bg: #FDFAF5;
  --border: #D4C5B2;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 2px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-brand:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-links a.btn-register {
  background: var(--cta);
  color: #fff;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  transition: background 0.2s;
}

.nav-links a.btn-register:hover { background: var(--cta-hover); color: #fff; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero (home page only) --- */
.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(rgba(61, 50, 41, 0.55), rgba(61, 50, 41, 0.55)),
              url('/images/trail-panorama.jpg') center/cover no-repeat;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 1.5rem 0;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-cta:hover { background: var(--cta-hover); }

/* --- Page Header (subpages) --- */
.page-header {
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* --- Content Sections --- */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section a:not(.portal-card) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section a:not(.portal-card):hover { color: var(--text); }

/* --- Packing Lists --- */
.packing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.packing-category {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
}

.packing-category h3 {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.packing-category ul {
  list-style: none;
  padding: 0;
}

.packing-category li {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  padding-left: 1.6rem;
  position: relative;
  line-height: 1.5;
}

.packing-category li:last-child {
  margin-bottom: 0;
}

.packing-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
}

.packing-note {
  margin-top: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.packing-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .packing-grid { grid-template-columns: 1fr; }
}

/* --- Schedule --- */
.schedule-day {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--accent);
}

.schedule-day:first-of-type {
  border-top: none;
  margin-top: 1.5rem;
  padding-top: 0;
}

.section .schedule-day h2 {
  font-size: 1.25rem;
  margin: 0 0 0.15rem 0;
  padding-bottom: 0;
  border-bottom: none;
}

.schedule-day .day-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-left: 0.5rem;
}

.section .schedule-day h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.schedule-list {
  list-style: none;
  padding: 0;
}

.schedule-list li {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0;
  padding: 0.5rem 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(212, 197, 178, 0.4);
  align-items: baseline;
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list li.no-time {
  grid-template-columns: 1fr;
  padding-left: 9.75rem;
}

.schedule-list .time {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.schedule-day .packing-note {
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .schedule-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .schedule-list li.no-time {
    padding-left: 0;
  }
  .schedule-list .time {
    text-align: left;
  }
}

/* --- Maps --- */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.map-placeholder {
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--bg-alt);
}

/* --- Portal Cards --- */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  text-decoration: none;
  transition: border-left-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 100px;
}

.portal-card:hover {
  border-left-color: var(--text);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.portal-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.portal-card p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  text-decoration: none;
}

.portal-card.card-cta {
  border-left: none;
  background: var(--cta);
  text-align: center;
  align-items: center;
}

.portal-card.card-cta h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-card.card-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.portal-card.card-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  box-shadow: 0 3px 12px rgba(181, 53, 38, 0.2);
}

/* --- Registration --- */
.register-section {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

.register-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.register-section p {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

/* --- Registration Form --- */
.trek-form {
  max-width: 680px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.form-optional {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5E52' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-group input[type="number"] {
  max-width: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-actions {
  margin-top: 2rem;
}

.form-actions .btn-cta {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-message.success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.form-message.error {
  background: #fbe9e7;
  border: 1px solid #ef9a9a;
  color: #c62828;
}

.field-error {
  font-size: 0.82rem;
  color: #c62828;
  margin-top: 0.35rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef9a9a;
}

/* --- Photo Gallery --- */
.photo-gallery {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.photo-gallery h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  min-width: 0;
  width: 100%;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.photo-grid figure:hover img {
  transform: scale(1.03);
}

.photo-grid figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: #fff;
  text-align: center;
}

.photo-grid .photo-wide {
  grid-column: 1 / -1;
}

.photo-grid .photo-wide img {
  height: 300px;
}

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 200px; }
  .photo-grid .photo-wide img { height: 200px; }
}

/* --- Page Banner --- */
.page-banner {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .page-banner { height: 180px; }
}

/* --- Feature Image --- */
.feature-image {
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-image figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: #fff;
  text-align: center;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav-links .btn-register {
    margin: 0.75rem 2rem;
    display: inline-block;
    width: auto;
  }

  .hero { min-height: 55vh; }

  .map-grid { grid-template-columns: 1fr; }

  .portal-grid { grid-template-columns: 1fr; }
}
