/* ===================================================
   Silver Tread Journeys -- Minimalist Flexbox CSS
   =================================================== */

/* CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote, pre {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}

/* ================================
   TYPOGRAPHY
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #203040;
  background-color: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #203040;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.subheadline {
  font-size: 1.125rem;
  color: #388072;
  margin-bottom: 28px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

p, li, blockquote {
  font-size: 1rem;
  color: #29394d;
}
blockquote {
  font-style: italic;
  color: #203040;
  opacity: 0.9;
  border-left: 3px solid #D0BFA8;
  padding-left: 18px;
  margin-bottom: 10px;
}
small {
  font-size: 0.86rem;
  color: #aaa;
}
b, strong {
  font-weight: 500;
}

/* ================================
   BRAND COLORS (CSS CUSTOM PROPS)
   ================================ */
:root {
  --color-primary: #203040;
  --color-secondary: #D0BFA8;
  --color-accent: #388072;
  --color-accent-dark: #26705c;
  --color-bg: #ffffff;
  --color-grey-light: #F4F6F8;
  --color-grey: #e4e6ed;
  --text-dark: #203040;
  --text-light: #ffffff;
  --shadow: 0 2px 16px rgba(32, 48, 64, 0.06), 0 1.5px 6px rgba(32, 48, 64, 0.04);
  --radius: 10px;
  --radius-sm: 5px;
}

/* ================================
   LAYOUT CONTAINERS
   ================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
}
section:last-child {
  margin-bottom: 0;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-grey);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #203040;
  font-size: 1rem;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.button.button-primary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 26px;
  letter-spacing: 0.03em;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(38, 112, 92, 0.08);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  border: none;
  cursor: pointer;
  outline: none;
  margin-left: 6px;
}
.button.button-primary:hover,
.button.button-primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(38,112,92,.15);
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  padding: 10px 10px 8px 10px;
  border-radius: 50%;
  transition: background 0.18s;
  z-index: 111;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #f4f6f8;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32, 48, 64, 0.08);
  backdrop-filter: blur(2px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-bg);
  box-shadow: var(--shadow);
  padding: 35px 32px 32px 32px;
  margin-top: 0;
  width: 80vw;
  max-width: 320px;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,.2,.05,1.0);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0);
}
.mobile-nav a {
  font-size: 1.14rem;
  color: #203040;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  margin-bottom: 18px;
  width: 100%;
  padding: 10px 0 8px 0;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:last-child {
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4F6F8;
  color: var(--color-accent);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin: 18px 28px 0 0;
  padding: 6px;
  border-radius: 50%;
  z-index: 1000;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ececec;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .button.button-primary {
    display: none;
  }
}


/* ================================
   HERO SECTION / GENERIC SPACING
   ================================ */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.text-section {
  max-width: 700px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ================================
   FEATURES GRID & FLEX SECTIONS
   ================================ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  background: var(--color-grey-light);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  min-width: 210px;
  transition: box-shadow 0.18s, background 0.18s;
}
.feature-item img {
  height: 38px;
  width: 38px;
  filter: grayscale(0.2);
}
.feature-item:hover {
  background: #fff;
  box-shadow: 0 6px 24px rgba(32,48,64,0.09), 0 1.5px 6px rgba(32, 48, 64, .06);
}

/* ================================
   CARD & CARD CONTAINERS
   ================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px 30px;
  flex: 1 1 220px;
  min-width: 220px;
  transition: box-shadow 0.19s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(32,48,64,0.12), 0 3px 16px rgba(32, 48, 64, .08);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ================================
   TESTIMONIAL CARDS
   ================================ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
  margin: 20px 0 20px 0;
  flex-direction: column;
  align-items: flex-start;
  max-width: 530px;
  min-width: 0;
  transition: box-shadow 0.19s;
}
.testimonial-card blockquote {
  color: #203040;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.testimonial-card p {
  color: #388072;
  font-size: 0.98rem;
  margin-top: 0;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(56,128,114,0.13), 0 2px 12px rgba(32,48,64,0.10);
}

/* ================================
   UTILITY FLEX CLASSES
   ================================ */
.features, .feature-list, .tip-list, .faqs, .safety-guidelines, .resource-links, .checklists, .story-list, .route-categories, .map-highlights, .route-descriptions {
  margin-bottom: 24px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}

ul li, ol li {
  margin-bottom: 13px;
  padding-left: 0;
}
li:last-child {
  margin-bottom: 0;
}

/* ================================
   FORM ELEMENTS & BUTTONS
   ================================ */
.button {
  display: inline-block;
  font-style: normal;
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  background: #FAFAFA;
  color: var(--color-primary);
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.15s;
}
.button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(56, 128, 114, 0.11);
}
.button-primary:hover,
.button-primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(38, 112, 92, 0.13);
}

.button-secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-grey);
  font-weight: 500;
  padding: 9px 22px;
}
.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #F7F7F7;
}

.button-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.button-outline:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}


/* ================================
   FOOTER
   ================================ */
footer {
  background: #fff;
  border-top: 1px solid var(--color-grey);
  padding: 40px 0 24px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  font-size: 1rem;
  color: #203040;
  opacity: 0.84;
  transition: color 0.19s, opacity 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 600px;
}
.footer-logo {
  margin: 0 auto 12px auto;
  height: 34px;
  width: auto;
}
.footer-contact div {
  color: #555;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
  margin-left: 8px;
}
.footer-contact a:hover {
  opacity: 0.8;
}

@media (max-width: 650px) {
  .footer-contact {
    align-items: flex-start;
    font-size: 0.97rem;
  }
}

/* ================================
   RESPONSIVE MEDIA QUERIES
   ================================ */
@media (max-width: 900px) {
  section {
    padding: 32px 8px;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .footer-logo {
    height: 28px;
  }
  section {
    padding: 24px 4px;
    margin-bottom: 38px;
  }
}
@media (max-width: 450px) {
  .testimonial-card, .feature-item, .card {
    padding: 12px 8px !important;
  }
}


/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  background: #fff;
  border-top: 1px solid #d0bfa8;
  box-shadow: 0 -2px 24px rgba(32,48,64,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  justify-content: center;
  padding: 22px 14px 18px 14px;
  font-size: 1rem;
  transition: transform 0.38s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-banner-message {
  flex: 1 1 290px;
  color: #203040;
  font-size: 1rem;
}
.cookie-banner .button {
  margin: 0 7px 0 0;
  min-width: 120px;
}
.cookie-banner .button:last-child {
  margin-right: 0;
}

/* Cookie modal (preferences) */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 10000;
  min-width: 315px;
  max-width: 95vw;
  background: #fff;
  box-shadow: 0 8px 48px rgba(32,48,64,0.15), 0 1.5px 7px rgba(168,153,128,0.06);
  border-radius: var(--radius);
  padding: 34px 30px 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.26s, transform 0.24s;
}
.cookie-modal.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
  color: #203040;
  font-size: 1.2rem;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: #e5e5e5;
  border-radius: 14px;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 4px rgba(32,48,64,0.12);
}
.cookie-toggle input:checked + .cookie-slider {
  transform: translateX(18px);
  background: var(--color-accent);
}
.cookie-category.essential .cookie-toggle {
  background: #D0BFA8 !important;
  cursor: not-allowed !important;
}
.cookie-category.essential .cookie-slider {
  background: var(--color-accent-dark);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 20px 8px 15px 8px;
  }
}

/* ================================
   LINKS, LISTS, ETC.
   ================================ */
a {
  color: var(--color-accent);
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-accent-dark);
}
ul, ol {
  margin-left: 0;
  padding-left: 0;
}
.resource-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.resource-links a {
  text-decoration: underline;
}

/* ================================
   ICONS IN CONTACT DETAILS
   ================================ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}
.contact-details a {
  color: var(--color-accent);
}

/* ================================
   MISC and SCROLLBARS
   ================================ */
::-webkit-scrollbar {
  width: 7px;
  background: #fafbfc;
}
::-webkit-scrollbar-thumb {
  background: #eaeaea;
  border-radius: 10px;
}

/* ================================
   ANIMATIONS
   ================================ */
@media (prefers-reduced-motion: no-preference) {
  .button, .main-nav a {
    transition: color 0.2s, box-shadow 0.18s, background 0.19s;
  }
  .feature-item, .testimonial-card, .card {
    transition: box-shadow 0.19s, background 0.18s;
  }
  .cookie-banner {
    transition: transform 0.36s, opacity 0.36s;
  }
  .cookie-modal {
    transition: opacity 0.26s, transform 0.28s;
  }
}

/* ===============================
   ACCESSIBILITY
   =============================== */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { width: 100% !important; max-width: 100% !important; box-shadow: none !important; }
}