/* Mellow Trek – VINTAGE RETRO STYLE CSS */

/*--------------------------------------------------------------------*/
/*           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,
b, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F6F1;
  color: #315258;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  position: relative;
  min-height: 100vh;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
strong, b { font-weight: 700; }

/*--------------------------------------------------------------------*/
/*            FONT IMPORTS                                            */
/*--------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

:root {
  --color-primary: #315258;
  --color-secondary: #D2BBA0;
  --color-accent: #F9F6F1;
  --color-vintage-brown: #a6784a;
  --color-vintage-orange: #F49A3A;
  --color-vintage-mint: #B4C9B2;
  --color-vintage-red: #C94C4C;
  --color-vintage-dark: #213035;
  --color-white: #fff;
  --font-display: 'Josefin Sans', sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/*--------------------------------------------------------------------*/
/*        CONTAINER + LAYOUTS (Only FLEX)                             */
/*--------------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--color-accent);
  border: 2px solid var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(49,82,88,.07);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  transition: transform .18s cubic-bezier(.77,.02,.55,1), box-shadow .18s;
}
.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 6px 20px 0 rgba(49,82,88,.15);
  z-index: 8;
}

.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 {
  background: var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px 0 rgba(49,82,88,.09);
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(49,82,88,.06);
  padding: 24px;
  border: 1.5px solid var(--color-secondary);
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 12px;
}
.feature-grid > div {
  flex: 1 1 275px;
  min-width: 220px;
  max-width: 330px;
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(212,187,160,.09);
  padding: 28px 22px 22px 22px;
  transition: box-shadow .18s, transform .18s;
  border: 2px solid var(--color-secondary);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(49,82,88,.10);
  transform: translateY(-5px) scale(1.02);
}
.feature-grid img {
  margin-bottom: 10px;
  border-radius: 7px;
}

.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.feature-icons img {
  width: 38px;
  height: 38px;
  padding: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0.5px 1.5px rgba(33,48,53,.06);
}

.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-list > div {
  background: var(--color-accent);
  border: 1.5px solid var(--color-secondary);
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(49,82,88,.06);
  padding: 18px 18px 14px 18px;
  min-width: 220px;
  flex: 1 1 255px;
  transition: box-shadow .14s;
  margin-bottom: 20px;
}
.post-list > div:hover {
  box-shadow: 0 4px 18px rgba(168,120,74,.09);
}

.featured-posts {
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 1px 7px rgba(44,44,44,.05);
  margin-top: 18px;
}
.featured-posts h3 {
  margin-bottom: 14px;
}

/*--------------------------------------------------------------------*/
/*        TYPOGRAPHY                                                  */
/*--------------------------------------------------------------------*/
h1, h2, h3, h4, h5 {
  font-family: var(--font-display), sans-serif;
  color: var(--color-primary);
  letter-spacing: .02em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: .5em;
  text-shadow: 0 2px 0 var(--color-secondary);
  letter-spacing: .04em;
}
h2 {
  font-size: 2rem;
  margin-bottom: .5em;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: .45em;
}
h4 {
  font-size: 1.15rem;
  font-weight: 600;
}
h5 {
  font-size: 1rem;
  font-weight: 600;
}
p, li, ul, ol {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.7;
  margin-bottom: .8em;
}
blockquote {
  border-left: 4px solid var(--color-vintage-orange);
  padding-left: 18px;
  color: var(--color-vintage-dark);
  background: #efebe4;
  font-style: italic;
  font-size: 1.13rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  margin-top: 8px;
}
ul, ol {
  margin-bottom: 1.5em;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: .6em;
  position: relative;
  padding-left: 1.5em;
}
ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 1em;
  color: var(--color-vintage-brown);
}

/* Inline a and link style */
a {
  color: var(--color-vintage-brown);
  text-decoration: underline dotted;
  transition: color .2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: var(--color-vintage-red);
  text-decoration: underline;
}

/*--------------------------------------------------------------------*/
/*        BUTTONS                                                     */
/*--------------------------------------------------------------------*/
.btn-primary {
  font-family: var(--font-display);
  background: linear-gradient(90deg, var(--color-secondary) 60%, var(--color-vintage-orange) 100%);
  color: var(--color-primary);
  padding: 14px 36px;
  border-radius: 32px;
  border: 2.5px solid var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 13px 0 rgba(212,187,160,.10);
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .18s, border .13s, transform .13s;
  margin-top: 10px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, var(--color-vintage-orange) 65%, var(--color-vintage-brown) 100%);
  color: var(--color-accent);
  border-color: var(--color-vintage-brown);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 21px 0 rgba(244,154,58,0.14);
  outline: none;
  z-index: 2;
}

/* Special cookie banner buttons */
.btn-cookie {
  background: var(--color-vintage-brown);
  color: #fff;
  border-radius: 24px;
  padding: 10px 22px;
  margin: 0 10px 8px 0;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  box-shadow: 0 2px 7px 0 rgba(168,120,74,.10);
  transition: background .16s, color .16s;
}
.btn-cookie:hover {
  background: var(--color-vintage-orange);
  color: var(--color-primary);
}

/* For reject button */
.btn-cookie-reject {
  background: var(--color-vintage-red);
  color: #fff;
  margin-right: 8px;
}
.btn-cookie-reject:hover {
  background: var(--color-vintage-brown);
  color: #fff;
}

/*--------------------------------------------------------------------*/
/*        HEADER, NAV, FOOTER                                         */
/*--------------------------------------------------------------------*/
header {
  background: var(--color-accent);
  border-bottom: 3.2px double var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 12;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 58px;
  max-width: 170px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
nav a {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 7px;
  transition: background .13s, color .13s;
  letter-spacing: .01em;
}
nav a:hover,
nav a:focus {
  background: var(--color-secondary);
  color: var(--color-vintage-mint);
}

header .btn-primary {
  margin-left: 18px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 12px;
  font-size: 2.1rem;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  position: relative;
  z-index: 30;
  transition: background .18s;
}
.mobile-menu-toggle:hover {
  background: var(--color-vintage-brown);
}

/* Mobile nav overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 0 15px 64px 0 rgba(49,82,88,.18);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.77,.02,.55,1);
  padding: 0 12px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform .33s cubic-bezier(.77,.02,.55,1);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-vintage-red);
  color: #fff;
  font-size: 2.4rem;
  border-radius: 16px;
  margin: 16px 10px 24px 0;
  width: 48px;
  height: 48px;
  transition: background .18s;
  z-index: 1100;
}
.mobile-menu-close:hover { background: var(--color-vintage-orange); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--color-primary);
  padding: 16px 0 13px 8px;
  border-radius: 7px;
  font-weight: 600;
  transition: background .13s, color .13s;
  letter-spacing: .01em;
  position: relative;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-vintage-brown);
}

footer {
  background: var(--color-vintage-brown);
  color: #fff;
  padding: 44px 0 20px 0;
  border-top: 4px double var(--color-secondary);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav, .footer-contact, .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color .14s;
}
.footer-nav a:hover { color: var(--color-vintage-orange); }
.footer-contact p, .footer-contact a {
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-brand {
  align-items: center;
  gap: 3px;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-secondary);
}

/*----------------------------------------------------------*/
/*         TESTIMONIAL SLIDER                               */
/*----------------------------------------------------------*/
.testimonial-slider {
  display: flex;
  flex-direction: row;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.testimonial-slider > div {
  min-width: 280px;
  max-width: 500px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 14px;
  padding: 15px 19px 15px 18px;
  margin-right: 10px;
  box-shadow: 0 1.5px 8px 0 rgba(49,82,88,.09);
  font-size: 1.08rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.testimonial-slider strong {
  color: var(--color-vintage-brown);
  font-size: 1rem;
  margin-top: 7px;
  font-weight: 700;
}

/* Ensure dark text/readability */
.testimonial-card,
.testimonial-slider > div {
  color: var(--color-primary);
  background: var(--color-accent);
}

/*----------------------------------------------------------*/
/*         GENERAL UTILITY & SECTION SPACING                */
/*----------------------------------------------------------*/
.section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .feature-grid > div {
    min-width: 170px;
    padding: 19px 7px 11px 13px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 1vw;
    padding-right: 1vw;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .card-container, .content-grid, .post-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-slider {
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 13px 9px;
  }
  .content-wrapper, .text-image-section {
    gap: 16px;
  }
  .section {
    padding: 26px 5px;
    margin-bottom: 36px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .feature-grid > div {
    min-width: 85vw;
    padding: 11px 5vw 8px 4vw;
  }
}

/*----------------------------------------------------------*/
/*              COOKIE CONSENT BANNER                       */
/*----------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 -4px 28px 0 rgba(49,82,88,.12);
  z-index: 9999;
  padding: 20px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-top: 2.5px solid var(--color-secondary);
  animation: slideUpBanner .66s;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 14px 0 0;
  max-width: 460px;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 13px 2vw 13px 3vw;
    font-size: .99rem;
    text-align: left;
  }
  .cookie-banner p { margin-right: 0; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49,82,88,.32);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .33s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 20px;
  box-shadow: 0 10px 38px 0 rgba(168,120,74,.17);
  padding: 36px 30px 26px 28px;
  max-width: 410px;
  width: 97vw;
  z-index: 10200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideInModal .45s cubic-bezier(.84,0,.37,1.2);
}
@keyframes slideInModal {
  from { transform: translateY(48px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 17px; height: 17px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 11px 0 20px 0;
  font-family: var(--font-body);
  font-size: .98rem;
}
.cookie-modal .btn-cookie {
  margin-right: 8px;
  margin-bottom: 0;
  margin-top: 9px;
}

.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s;
  border: none;
  z-index: 10250;
}
.cookie-modal-close:hover { background: var(--color-vintage-red); color: #fff; }

/*--------------------------------------------------------------------*/
/*            RETRO/VINTAGE TEXT EFFECTS & NOSTALGIA                  */
/*--------------------------------------------------------------------*/
body {
  background: repeating-linear-gradient(135deg, var(--color-accent) 0 48px, #f9eedb 49px 64px);
}
.header, .footer, header, footer {
  font-family: var(--font-display);
}

/* Retro stripes on sections */
.section {
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0px;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    var(--color-vintage-brown),
    var(--color-vintage-brown) 10px,
    transparent 11px, transparent 18px
  );
  opacity: .13;
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}
.section > * {
  position: relative;
  z-index: 1;
}

/* Decorative divider bar for h2 (nostalgia) */
h2 {
  position: relative;
  padding-left: 24px;
}
h2::before {
  content: '';
  position: absolute;
  left: 0; top: 49%;
  transform: translateY(-50%);
  width: 13px;
  height: 4px;
  background: var(--color-vintage-orange);
  border-radius: 2px;
  opacity: .95;
}
/* Decorative badge for h3 */
h3 {
  position: relative;
  padding-left: 18px;
}
h3::before {
  content: '\2605';
  color: var(--color-vintage-brown);
  font-size: .82em;
  position: absolute;
  left: 0; top: .10em;
  filter: drop-shadow(0 1px 0 #fff6);
}

/* Use pattern under main CTA in home */
.cta-pattern {
  width: 100%;
  height: 17px;
  background: repeating-linear-gradient(90deg, var(--color-vintage-brown) 0 8px, var(--color-accent) 9px 17px);
  opacity: .19;
  border-radius: 8px;
  margin: 20px 0 16px 0;
}

/* Micro hover effect for inline links */
a:not(.btn-primary):not(.btn-cookie):hover {
  text-shadow: 0 2px 10px #D2BBA0AA;
  color: var(--color-vintage-orange);
  transition: color .18s, text-shadow .18s;
}

/* Subtle animated underline on btn-primary */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  left: 8%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--color-vintage-orange);
  border-radius: 2px;
  opacity: .7;
  transition: width .23s;
}
.btn-primary:hover::after { width: 80%; }

/*---------------------------------------------------------*/
/*    MISC: FORM FIELDS, TABLE, ETC. (for completeness)    */
/*---------------------------------------------------------*/
input, select, textarea {
  font-family: var(--font-body);
  padding: 11px 13px;
  border: 1.5px solid var(--color-secondary);
  border-radius: 10px;
  outline: none;
  margin-bottom: 17px;
  box-shadow: 0 1.2px 4px rgba(168,120,74,.08);
  transition: border .13s, box-shadow .13s;
  font-size: 1rem;
  background: #f8f3eb;
  color: var(--color-primary);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-vintage-brown);
  background: #fff;
  box-shadow: 0 2.2px 14px rgba(244,154,58,.10);
}
label {
  font-family: var(--font-display);
  color: var(--color-primary);
  display: block;
  margin-bottom: 3px;
  font-size: 1.05rem;
}

/* Table */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .98rem;
  margin: 20px 0;
}
th, td {
  border: 1.5px solid var(--color-secondary);
  padding: 11px 10px;
}
th {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
}
tbody tr:nth-child(even) {
  background: #f6efe2;
}

/*-- Accessibility focus outlines --*/
a:focus, .btn-primary:focus, .btn-cookie:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2.5px solid var(--color-vintage-orange);
  outline-offset: 3px;
  z-index: 10040;
}

/*----------------------------------------------------*/
/*                END OF CSS                          */
/*----------------------------------------------------*/
