/* =============================================================
  CSS RESET & NORMALIZE
============================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
  height: 100%;
  line-height: 1.55;
  background: #F9F8F3;
  color: #2C2A25;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: #24497A;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover, a:focus {
  color: #4E6283;
  text-decoration: underline;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* =============================================================
  TYPOGRAPHY
============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #24497A;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h5,h6 {
  font-size: 1rem;
}

p, ul, ol, li, address {
  color: #3F403C;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: #24497A;
  font-family: 'Merriweather', Georgia, serif;
}

/* Typography hierarchy */
.section h2, .content-wrapper h2 {
  margin-top: 0;
  margin-bottom: 16px;
}
.section h1, .content-wrapper h1 {
  margin-top: 0;
  margin-bottom: 20px;
}
.section p:last-child, .content-wrapper p:last-child, ul:last-child, ol:last-child, li:last-child {
  margin-bottom: 0;
}

/* =============================================================
  LAYOUT CONTAINERS (Flexbox Only)
============================================================= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 rgba(36,73,122,0.05);
  /* classic spacious, soft look */
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(36,73,122,0.07);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(36,73,122,0.14);
}

.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F7E9CF;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(36,73,122,0.09);
  color: #224053;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  color: #24497A;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #252424;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 20px;
}

.region-filters, .theme-filters, .tag-filters {
  font-size: 1rem;
  color: #6D6D6D;
  margin-bottom: 24px;
  font-family: 'Merriweather', Georgia, serif;
}

ul, ol {
  padding-left: 28px;
  margin-bottom: 20px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 14px;
  line-height: 1.6;
}
ul li::before {
  content: '\2014';
  position: absolute;
  left: -20px;
  color: #B6C4B1;
  font-weight: 700;
  font-size: 1.2em;
}

/* OL (numbered) styling, reset marker */
ol {
  list-style: decimal inside;
}
ol li::before {
  display: none;
}

/* Section and card spacing */
.section + .section {
  margin-top: 16px;
}
.card + .card {
  margin-left: 0;
}

/* =============================================================
  HEADER/NAVIGATION (Desktop & Mobile)
============================================================= */
header {
  background: #fff;
  border-bottom: 1px solid #E8E8E3;
  font-family: 'Merriweather', Georgia, serif;
  padding: 0 0 0 0;
  box-shadow: 0 2px 8px rgba(36,73,122,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-size: 1.15rem;
  color: #24497A;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #F7E9CF;
  color: #1C3557;
  text-decoration: none;
}
.cta-btn {
  background: #24497A;
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 11px 30px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(36,73,122,0.06);
  transition: background 0.25s, box-shadow 0.25s;
  border: 2px solid #24497A;
  display: inline-block;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: #24497A;
  box-shadow: 0 4px 16px rgba(36,73,122,0.11);
  border-color: #24497A;
  text-decoration: none;
}
header img[alt='Mellow Dusk Trails'] {
  height: 46px;
  width: auto;
  display: block;
}

/* =============================================================
  MOBILE NAVIGATION (Burger Menu)
============================================================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #24497A;
  color: #fff;
  border-radius: 10px;
  font-size: 2rem;
  z-index: 2003;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 5px rgba(36,73,122,0.08);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #B6C4B1;
  color: #24497A;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 20px rgba(36,73,122,0.18);
  z-index: 2002;
  transition: transform 0.4s cubic-bezier(0.8,0,0.2,1);
  transform: translateX(100%);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: #24497A;
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 5px rgba(36,73,122,0.08);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B6C4B1;
  color: #24497A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.35rem;
  color: #24497A;
  padding: 13px 0;
  border-radius: 6px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7E9CF;
  color: #1C3557;
  text-decoration: none;
}

/* Show/hide mobile nav toggle and menu on small screens */
@media (max-width: 900px) {
  header nav,
  header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================================================
  MAIN CONTENT LAYOUT (Sections, Cards, etc.)
============================================================= */
main {
  width: 100%;
  padding-bottom: 44px;
  margin-top: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-card {
  margin-bottom: 20px;
}
.team-bio {
  background: #F7E9CF;
  border-radius: 10px;
  padding: 18px 18px 14px 18px;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 1px 8px rgba(183,171,139,0.06);
}
.team-bio strong {
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 0.01em;
  color: #24497A;
  margin-bottom: 6px;
  display: block;
}

/* Footer address/contact blocks */
footer address {
  font-style: normal;
  color: #24497A;
  margin-top: 18px;
  font-size: 1rem;
}
.footer-contact, .footer-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-contact span, .footer-hours span{color: #fff;}
.footer-contact img, .footer-hours img {
  height: 18px;
  width: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Cards for testimonials/etc. */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =============================================================
  FOOTER
============================================================= */
footer {
  background: #24497A;
  color: #fff;
  padding: 48px 0 10px 0;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
footer a {
  color: #fff;
  opacity: 0.93;
  transition: opacity 0.18s, text-decoration 0.18s;
}
footer a:hover, footer a:focus {
  text-decoration: underline;
  opacity: 1;
}
footer nav {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
}
.footer-copy {
  font-size: 0.97rem;
  color: #B6C4B1;
  opacity: 0.83;
  margin-top: 8px;
}
footer img[alt='Mellow Dusk Trails'], footer img[alt='Mellow Dusk Trails Logo'] {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

/* =============================================================
  COOKIE CONSENT BANNER & MODAL
============================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbea;
  color: #24497A;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.09rem;
  box-shadow: 0 -2px 16px rgba(36,73,122,0.10);
  padding: 20px 20px;
  z-index: 4002;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: cookiebanner-slidein 0.65s;
}
@keyframes cookiebanner-slidein {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner-content {
  max-width: 900px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.cookie-btn {
  padding: 9px 30px;
  border-radius: 999px;
  border: 2px solid #B6C4B1;
  background: #B6C4B1;
  color: #24497A;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 3px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border 0.22s, box-shadow 0.18s;
  box-shadow: 0 2px 6px rgba(36,73,122,0.14);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #24497A;
  color: #fff;
  border-color: #24497A;
}
.cookie-btn.settings {
  background: #fff;
  color: #24497A;
  border-color: #24497A;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: #fff;
  color: #24497A;
  font-family: 'Merriweather', Georgia, serif;
  transform: translate(-50%,-50%) scale(1);
  width: 94vw;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(36,73,122,0.18);
  z-index: 9999;
  padding: 36px 28px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 19px;
  animation: modal-popup 0.5s cubic-bezier(.8,0,.2,1);
}
@keyframes modal-popup {
  from { transform: translate(-50%,-55%) scale(.97); opacity: 0; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: #24497A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #B6C4B1;
  color: #24497A;
}
.cookie-modal h3 {
  font-size: 1.27rem;
  margin-top: 0;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-right: 2px;
  accent-color: #24497A;
}
.cookie-category .essential {
  font-weight: bold;
  color: #224053;
}

/* Modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,73,122,0.18);
  backdrop-filter: blur(1px);
  animation: overlay-show .35s;
}
.cookie-modal.open ~ .cookie-modal-overlay {
  display: block;
}
@keyframes overlay-show {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================================
  BUTTONS & INTERACTIVE ELEMENTS
============================================================= */
button, .btn {
  font-family: 'Merriweather', Georgia, serif;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.18s;
}
.btn {
  background: #B6C4B1;
  color: #24497A;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 32px;
  box-shadow: 0 1px 5px rgba(36,73,122,0.06);
}
.btn:hover, .btn:focus {
  background: #24497A;
  color: #fff;
  box-shadow: 0 2px 12px rgba(36,73,122,0.14);
}

/* Link inline arrow subtle effect */
a.inline-arrow {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding-right: 12px;
}
a.inline-arrow::after {
  content: '→';
  position: absolute;
  right: 0;
  opacity: 0.7;
  transition: right 0.18s, opacity 0.18s;
}
a.inline-arrow:hover::after {
  right: -3px;
  opacity: 1;
}

/* =============================================================
  RESPONSIVE STYLES (Mobile First)
============================================================= */
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .card {
    padding: 16px 10px;
    margin-bottom: 15px;
    border-radius: 7px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    padding: 13px 6px;
    border-radius: 7px;
    gap: 12px;
    margin-bottom: 12px;
  }
  .team-bio {
    padding: 12px 8px;
    border-radius: 6px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  footer .container {
    gap: 18px;
    padding: 0 2px;
    flex-direction: column;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.12rem; }
  .cta-btn,
  .btn,
  .cookie-btn {
    font-size: 0.97rem;
    padding-left: 18px;
    padding-right: 18px;
  }
  .cookie-banner { padding: 15px 2px; font-size: 0.96rem; }
  .cookie-modal { padding: 23px 7px 18px 7px; }
}

/* =============================================================
  MISCELLANEOUS / UTILITIES
============================================================= */
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid #24497A;
  outline-offset: 2px;
}

/* =============================================================
  BRAND COLORS CLASSES
============================================================= */
.bg-primary { background: #24497A !important; color: #fff !important; }
.bg-secondary { background: #B6C4B1 !important; color: #24497A !important; }
.bg-accent { background: #F7E9CF !important; color: #24497A !important; }
.text-primary { color: #24497A !important; }
.text-secondary { color: #B6C4B1 !important; }
.text-accent { color: #F7E9CF !important; }

/* =============================================================
  CUSTOM SCROLLBAR FOR ELEGANT FEEL (Desktop Only)
============================================================= */
@media (min-width: 901px) {
  ::-webkit-scrollbar {
    width: 8px;
    background: #E4E7E3;
  }
  ::-webkit-scrollbar-thumb {
    background: #C1C9CB;
    border-radius: 6px;
  }
}
