/* 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, main, 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 { scroll-behavior: smooth; }
body { line-height: 1.5; background: #FEF6EE; color: #2E2B23; -webkit-font-smoothing: antialiased; min-height: 100vh; }
main { display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* Variables & Retro Palette */
:root {
  --color-primary: #205075;
  --color-secondary: #A9D6E5;
  --color-accent: #F8F9FA;
  --color-dark: #2E2B23;
  --color-light: #F8F1E4;
  --color-cream: #FFECCC;
  --color-mustard: #E1B775;
  --color-peach: #FFD6B7;
  --color-red-retro: #AB3056;
  --color-blue-pale: #D6DFE7;
  --border-radius: 16px;
  --shadow: 0 2px 16px 0 rgba(32, 80, 117, 0.09);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Typography - Vintage-Retro Scale */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-light);
  color: var(--color-dark);
}
h1, .banner-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  margin-bottom: 24px;
  text-shadow: 1px 2px 0 #fff9ec, 1px 3px 0 #ffeccc;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-red-retro);
  margin-bottom: 18px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-mustard);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
h1, h2, h3, h4, h5, h6 { line-height: 1.15; }
p, ul, ol, li, span { font-size: 1rem; letter-spacing: 0.01em; }
strong { font-weight: 700; }
.text-section p,
.text-section li { color: var(--color-dark); }

/* Layout Containers */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.features-grid, .guides-listing, .blog-post-list, .blog-categories-list, .featured-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 10px;
}
.features-grid > div, .guides-listing > div, .blog-post-list > div {
  flex: 1 1 220px;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  padding: 26px 24px 18px;
  box-shadow: 0 2px 14px 0 rgba(32, 80, 117, 0.05);
  margin-bottom: 20px;
  position: relative;
  min-width: 210px;
  max-width: 100%;
  transition: box-shadow 0.17s, transform 0.13s;
}
.features-grid > div:hover, .guides-listing > div:hover, .blog-post-list > div:hover {
  box-shadow: 0 4px 22px 0 rgba(160, 118, 40, 0.09), 0 2px 14px 0 rgba(32,80,117,0.11);
  transform: translateY(-4px) scale(1.03);
}
/* Card Container Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-cream);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff9ec;
  border-left: 7px solid var(--color-mustard);
  box-shadow: 0 2px 8px 0 rgba(32, 80, 117, 0.06);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 800px;
  position: relative;
}
.testimonial-card p {
  color: #38352f;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-red-retro);
  font-size: 0.96rem;
  font-style: normal;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Milestone Timeline */
.milestones-timeline ul {
  margin-left: 1em;
}
.milestones-timeline li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 14px;
  line-height: 1.4;
  font-size: 1.05rem;
}
.milestones-timeline li:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--color-mustard);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 7px;
}

/* Header & NAVIGATION */
header {
  width: 100%;
  background: var(--color-primary);
  box-shadow: 0 2px 16px 0 rgba(32, 80, 117, 0.07);
  position: relative;
  z-index: 15;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 20px;
  justify-content: space-between;
  gap: 24px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.03rem;
  color: var(--color-accent);
  padding: 7px 0;
  border-bottom: 2.5px solid transparent;
  transition: border 0.17s, color 0.17s;
}
header nav a:hover {
  border-bottom: 2.5px solid var(--color-mustard);
  color: var(--color-mustard);
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
.btn-primary {
  font-family: var(--font-display);
  font-size: 1.17rem;
  background: var(--color-mustard);
  color: #493600;
  padding: 12px 32px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(225,183,117,0.17);
  transition: background 0.16s, color 0.18s, transform 0.18s, box-shadow 0.16s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFDDA0;
  color: #684900;
  transform: scale(1.045);
  box-shadow: 0 8px 18px -2px rgba(225,183,117,0.21);
}

/* Footer */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 24px 0;
  text-align: left;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 0.01em;
  transition: color 0.15s, opacity 0.15s;
}
footer nav a:hover {
  color: var(--color-mustard);
  opacity: 1;
}
footer img {
  height: 44px;
  width: auto;
}
.contact-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-shortcut a {
  display: flex;
  align-items: center;
  color: var(--color-accent);
  font-family: var(--font-display);
  transition: color 0.18s;
}
.contact-shortcut img {
  width: 21px; height: 21px; margin-right: 8px;
}
.social-media-icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}
.social-media-icons img {
  width: 32px; height: 32px;
  opacity: 0.9;
  transition: opacity 0.14s, transform 0.13s;
  border-radius: 50%;
  background: #fff9ec;
  padding: 3px;
}
.social-media-icons img:hover {
  opacity: 1;
  transform: scale(1.13) rotate(-4deg);
}

/* Text Section */
.text-section {
  background: #f9f3eb;
  border-radius: 12px;
  padding: 19px 18px 11px 18px;
  box-shadow: 0 2px 9px 0 rgba(32,80,117,0.07);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section ol {
  list-style: disc inside;
  margin-left: 1.2em;
  padding-left: 15px;
}
.text-section li {
  margin-bottom: 7px;
  padding-left: 2px;
}

/* Special Listing Patterns */
.featured-guides ul,
.blog-categories-list ul {
  list-style: square inside;
  font-family: var(--font-display);
  color: var(--color-primary);
  padding-top: 8px;
  font-size: 1.04rem;
}
.featured-guides li,
.blog-categories-list li {
  margin-bottom: 6px;
  padding-left: 0;
}

/* FORM STYLES (for contact etc.) */
input, textarea, select {
  border: 2px solid var(--color-blue-pale);
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 1rem;
  background: var(--color-accent);
  margin-bottom: 14px;
  outline: none;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--color-primary);
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px; right: 24px;
  z-index: 190;
  background: var(--color-mustard);
  color: #2E2B23;
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 4px 16px 0 rgba(225,183,117,0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: #FFDDA0;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF5E0CC;
  z-index: 199;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 18px 34px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.66,0.12,0.17,1), opacity 0.2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  box-shadow: -6px 0 32px #a9d6e588;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-mustard);
  color: #2E2B23;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 2rem;
  font-family: var(--font-display);
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(225,183,117,0.10);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-red-retro);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 28px;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  background: #FFD6B7;
  padding: 12px 16px;
  border-radius: 9px;
  margin-bottom: 10px;
  box-shadow: 0 1px 8px 0 rgba(32,80,117,0.07);
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-mustard);
  color: var(--color-red-retro);
}

/* RESPONSIVE FLEXBOX LAYOUTS & MEDIA QUERIES */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .features-grid > div, .guides-listing > div, .blog-post-list > div {
    min-width: 180px;
    flex: 1 1 100%;
  }
  header .container {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .features-grid, .guides-listing, .blog-post-list, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .content-wrapper {
    gap: 20px;
  }
  section {
    padding-left: 6px; padding-right: 6px;
  }
  footer .content-wrapper {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header nav { display: none !important; }
  .btn-primary {
    font-size: 1.04rem;
    padding: 10px 18px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    gap: 14px;
  }
  .container {
    padding: 0 10px;
  }
  .features-grid, .guides-listing, .blog-post-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 9px;
    border-left-width: 5px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    text-align: left;
    padding: 30px 0 14px 0;
  }
  h1, .banner-title { font-size: 1.55rem; margin-bottom: 17px; }
  h2 { font-size: 1.21rem; margin-bottom: 12px; }
  h3 { font-size: 1.02rem; margin-bottom: 7px; }
}
@media (max-width: 560px) {
  h1, .banner-title { font-size: 1.18rem; }
  .container { padding: 0 3px; }
  .testimonial-card {
    border-left-width: 3px;
    font-size: 0.98rem;
    padding: 10px 5px;
  }
  .btn-primary { font-size: 1rem; padding: 9px 11px; }
  footer .content-wrapper { gap: 9px; }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -1px 12px 0 rgba(44,44,44,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 22px 20px 22px 15px;
  z-index: 2000;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.66,0.11,0.44,1), opacity 0.23s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.01rem;
  margin-right: 16px;
  font-family: var(--font-body);
  opacity: 0.97;
}
.cookie-banner .cookie-actions {
  display: flex; flex-direction: row; gap: 10px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.14s, color 0.14s;
  background: var(--color-mustard);
  color: #493600;
  font-weight: 600;
  box-shadow: 0 2px 7px 0 rgba(225,183,117,0.09);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-red-retro);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--color-cream);
  color: var(--color-primary);
}
.cookie-banner .cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50vw; top: 50vh;
  transform: translate(-50%, -50%) scale(0.96);
  min-width: 330px;
  max-width: 96vw;
  background: #FFFDEE;
  color: var(--color-dark);
  border-radius: 18px;
  box-shadow: 0 7px 33px rgba(32,80,117,0.18);
  z-index: 2010;
  padding: 37px 29px 30px 29px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s, transform 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
}
.cookie-modal ul {
  margin-left: 0.8em;
  padding-left: 0.5em;
  margin-bottom: 0.7em;
}
.cookie-modal li {
  margin-bottom: 3px;
  font-size: 1rem;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--color-blue-pale);
  border-radius: 14px;
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
  margin-right: 9px;
}
.cookie-modal .cookie-switch:checked {
  background: var(--color-primary);
}
.cookie-modal .cookie-switch:after {
  content: '';
  display: block;
  width: 18px; height:18px;
  background: #FFF;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.17s;
  box-shadow: 0 1.5px 4px 0 rgba(32,80,117,0.07);
}
.cookie-modal .cookie-switch:checked:after {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal .modal-actions button {
  padding: 8px 19px;
  font-size: 1rem;
  border-radius: 9px;
  background: var(--color-mustard);
  color: #493600;
}
.cookie-modal .modal-actions button:hover {
  background: var(--color-red-retro);
  color: #fff;
}
.cookie-modal .modal-actions .close-modal {
  background: var(--color-cream);
  color: var(--color-primary);
}
.cookie-modal .modal-actions .close-modal:hover {
  background: var(--color-secondary);
}

/* Decorative Vintage Details */
.section {
  background: repeating-linear-gradient(135deg, #FFECCC, #FFECCC 26px, #FFD6B7 27px, #FFD6B7 31px);
  border: 2px solid var(--color-mustard);
  border-radius: var(--border-radius);
  margin-bottom: 60px;
}
.features-grid > div, .card, .testimonial-card, .text-section {
  border: 2px solid #ecd9c6;
  border-radius: var(--border-radius);
}

/* Vintage Fonts for headings */
h1, h2, h3, .banner-title, .btn-primary, nav a {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

/* Microinteractions */
.btn-primary, .cookie-banner button, .mobile-nav a,
.features-grid > div, .social-media-icons img,
.mobile-menu-toggle, .mobile-menu-close {
  transition: all 0.16s cubic-bezier(.33,1.2,.66,1);
}

/* Thank you icon in the center */
@media (max-width: 460px) {
  .cookie-modal {
    padding: 16px 4vw 16px 4vw;
    min-width: unset;
    border-radius: 12px;
  }
}

/* Hide scroll for mobile menu when opened */
body.mobile-menu-open {
  overflow: hidden;
}

/* Utility */
.hidden { display: none !important; }
