/* ==========================================================================
   GetCamped — Trail & Summit Editorial Design System
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* CSS Variables & Tokens */
:root {
  /* Brand Colors */
  --color-cream: #F5EFE4;
  --color-pine: #1B2D1F;
  --color-pine-light: #2C4231;
  --color-sunset: #E55934;
  --color-sunset-hover: #CE4724;
  --color-orange-accessible: #C83E1B; /* Darker rust orange for text on cream (WCAG AA) */
  --color-gold: #D9A441;
  --color-white: #FFFFFF;
  --color-light-gray: #EDE6D8;
  --color-border: rgba(27, 45, 31, 0.15);

  /* Typography */
  --font-serif: 'Fraunces', serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 5.5rem;

  /* Layout Constants */
  --max-width: 1200px;
  --max-width-narrow: 850px;
  --header-height: 80px;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;

  /* Shadow & Transitions */
  --shadow-sm: 0 2px 8px rgba(27, 45, 31, 0.05);
  --shadow-md: 0 4px 20px rgba(27, 45, 31, 0.08);
  --shadow-lg: 0 10px 30px rgba(27, 45, 31, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-pine);
  line-height: 1.6;
  font-size: 16px;
  font-feature-settings: "kern", "liga", "clig";
  overflow-x: hidden;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-pine);
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-variation-settings: "opsz" 100;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

p {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(27, 45, 31, 0.85);
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  font-family: var(--font-sans);
  color: rgba(27, 45, 31, 0.9);
}

a {
  color: var(--color-orange-accessible);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: var(--transition);
}

a:hover {
  color: var(--color-sunset-hover);
  text-decoration-thickness: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--color-sunset);
  color: var(--color-pine); /* High contrast pine text on sunset orange (4.7:1) */
  border-color: var(--color-sunset);
}

.btn-primary:hover {
  background-color: var(--color-sunset-hover);
  border-color: var(--color-sunset-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-pine);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-pine);
  border-color: var(--color-pine);
}

.btn-secondary:hover {
  background-color: var(--color-pine);
  color: var(--color-cream);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.15rem 2.25rem;
  font-size: 1.15rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4em 0.85em;
  border-radius: 50px;
  background-color: var(--color-gold);
  color: var(--color-pine);
  margin-bottom: var(--space-sm);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--color-pine);
  color: var(--color-pine);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

@media (min-width: 768px) {
  .container, .container-narrow {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-xxl) 0;
  }
}

.section-dark {
  background-color: var(--color-pine);
  color: var(--color-cream);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark p {
  color: var(--color-cream);
}

.section-dark p {
  color: rgba(245, 239, 228, 0.85);
}

.section-dark a {
  color: var(--color-gold);
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* Hero Split Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-preview-frame {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xs);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-preview-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius-lg) - 4px);
  display: block;
  object-fit: cover;
}

/* Card Component */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(27, 45, 31, 0.3);
}

.card-dark {
  background-color: var(--color-pine-light);
  border: 1px solid rgba(245, 239, 228, 0.15);
  color: var(--color-cream);
}

.card-dark:hover {
  border-color: rgba(245, 239, 228, 0.35);
}

/* Header & Nav */
header {
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--color-pine);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-pine);
}

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

.cta-header {
  display: none;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
  .cta-header {
    display: inline-flex;
  }
}

/* Mobile Drawer */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-cream);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: var(--space-md);
  gap: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-pine);
}

/* Accordions */
.accordion {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.accordion summary {
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-sunset);
  transition: var(--transition);
}

.accordion[open] summary::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: var(--space-sm) 0;
  color: rgba(27, 45, 31, 0.8);
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 98;
  box-shadow: 0 -4px 15px rgba(27, 45, 31, 0.08);
}

.sticky-mobile-cta .cta-text {
  display: flex;
  flex-direction: column;
}

.sticky-mobile-cta .cta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(27, 45, 31, 0.6);
}

.sticky-mobile-cta .cta-price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-pine);
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none;
  }
}

/* Footer */
.site-footer {
  background-color: var(--color-pine);
  color: var(--color-cream);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(245, 239, 228, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-info p {
  font-size: 0.85rem;
  color: rgba(245, 239, 228, 0.5);
}

.credits a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.text-center { text-align: center; }
.align-start { align-items: start; }