/* =========================
   CSS RESET & NORMALIZE
   ========================= */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-size: 16px;
  background: #FCF7F1; /* Subtle warm vintage base */
  color: #3a2b16;
  letter-spacing: 0.01em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --twilight-primary: #152046;
  --twilight-secondary: #36A9CE;
  --twilight-accent: #fff;
  --vintage-orange: #E7B067;
  --vintage-red: #C35443;
  --vintage-mint: #9FD8CB;
  --vintage-sand: #F7EAD3;
  --vintage-brown: #84715C;
  --shadow-vintage-card: 0 4px 24px 0 rgba(132,113,92,0.10), 0 1.5px 4px 0 rgba(192,84,67,0.07);
  --radius-big: 20px;
  --radius-med: 12px;
  --radius-sm: 7px;
}

@media (max-width:768px) {
  body {
    font-size: 15px;
  }
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Avenir Next', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--twilight-primary);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  text-shadow: 1px 2px 0 #e7b06755;
  text-transform: uppercase;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
h3 {
  font-size: 1.16rem;
  margin-bottom: 12px;
  color: var(--vintage-red);
  font-weight: 600;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
  color: #3a2b16;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
strong {
  color: var(--vintage-brown);
  font-weight: 700;
}
.text-section > ul li img {
  margin-right: 8px;
  vertical-align: middle;
}

/* Retro font accent */
.level-tag,
span.level-tag {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--vintage-mint);
  color: var(--twilight-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 0.95em;
  margin-bottom: 8px;
  display: inline-block;
  letter-spacing: 0.04em;
}

/* =========================
   BASIC LAYOUT & CONTAINERS
   ========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-big);
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 38px;
    padding: 23px 8px;
  }
  .container {
    padding: 0 5vw;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .text-section {
    align-items: stretch;
    gap: 16px;
  }
}

/* =========================
   HEADER / NAVIGATION
   ========================= */
header {
  width: 100%;
  background: var(--vintage-sand);
  padding: 0;
  box-shadow: 0 2px 10px 0 #15204613;
  border-bottom: 2.5px solid var(--vintage-orange);
  z-index: 101;
  position: relative;
}
header .container {
  padding: 0;
}
.logo img {
  height: 48px;
  width: auto;
  margin: 8px 24px 8px 0;
}
header {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
  padding: 0 22px;
  height: 72px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  color: var(--twilight-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 8px 9px 7px 9px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vintage-orange);
  color: var(--vintage-red);
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--twilight-accent);
  background: var(--vintage-red);
  border: none;
  border-radius: var(--radius-med);
  padding: 10px 22px;
  font-weight: 700;
  margin-left: auto;
  box-shadow: 0 2px 11px 0 #C3544320;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, color 0.18s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--twilight-primary);
  color: var(--vintage-orange);
  box-shadow: 0 4px 16px 2px #15204633;
  outline: none;
}
.btn-link {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--twilight-secondary);
  text-decoration: underline;
  font-weight: 700;
  padding: 4px 3px;
  border-radius: var(--radius-sm);
  background: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.btn-link:hover, .btn-link:focus {
  color: var(--vintage-red);
  background: var(--vintage-mint);
  outline: none;
}

/* =========================
   MOBILE MENU (BURGER)
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-red);
  color: var(--twilight-accent);
  border: none;
  font-size: 2rem;
  border-radius: var(--radius-med);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px #C3544330;
  transition: background 0.22s, color 0.22s;
  z-index: 210;
  position: relative;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--vintage-orange);
  color: var(--twilight-primary);
}

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: var(--twilight-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 18px;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.80, 0, 0.35, 1);
  z-index: 201;
  box-shadow: 4px 0 28px #15204655;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--vintage-mint);
  margin-bottom: 22px;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 220;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--vintage-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: var(--vintage-mint);
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-med);
  padding: 12px 8px;
  background: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-orange);
  color: var(--twilight-primary);
}

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

@media (min-width: 1051px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* =========================
   FLEXBOX PATTERNS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--vintage-sand);
  border-radius: var(--radius-med);
  box-shadow: var(--shadow-vintage-card);
  padding: 26px 22px 18px 22px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff9ee;
  border: 2px solid var(--vintage-orange);
  border-radius: var(--radius-big);
  padding: 20px 34px 20px 24px;
  margin-bottom: 20px;
  max-width: 660px;
  box-shadow: 0 2px 12px 0 #e7b06744;
  position: relative;
}
.testimonial-card p {
  color: #2e240a;
  font-style: italic;
  font-size: 1.11rem;
}
.testimonial-card div {
  display: flex;
  gap: 7px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--vintage-brown);
}
.testimonial-card span:first-child {
  color: var(--vintage-red);
  font-size: 1.19rem;
  letter-spacing: 0.03em;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 14px;
}
.feature-grid > div {
  background: var(--vintage-mint);
  border-radius: var(--radius-big);
  flex: 1 1 220px;
  min-width: 200px;
  padding: 27px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: var(--shadow-vintage-card);
  font-family: 'Open Sans', Arial, sans-serif;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--vintage-sand);
  border-radius: var(--radius-med);
  box-shadow: var(--shadow-vintage-card);
  padding: 20px 24px;
  border-left: 4px solid var(--vintage-red);
  margin-bottom: 8px;
}
.faq-item h3 {
  margin-bottom: 6px;
  color: var(--vintage-red);
  font-size: 1.09rem;
}
.faq-item p {
  margin-bottom: 0;
  color: var(--twilight-primary);
}

/* Content padding/tweaks for small screens */
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 0;
    padding: 20px 12px 14px 12px;
  }
  .testimonial-card {
    padding: 14px 11vw;
  }
}

/* =========================
   LISTS & ICONS
   ========================= */
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0.5em;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Cards for resource/tools lists */
.content-wrapper > ul > li, .content-wrapper ul > li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fffaf5;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 8px 8px 8px 0;
  box-shadow: 0 1px 2px #e7b06722;
  font-size: 1.01rem;
}
.content-wrapper ul > li a {
  color: var(--vintage-red);
  text-decoration: underline dashed 2px;
  transition: color 0.17s;
}
.content-wrapper ul > li a:hover, .content-wrapper ul > li a:focus {
  color: var(--twilight-primary);
  text-decoration: underline solid 2px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--twilight-primary);
  color: #fff;
  padding: 50px 0 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--vintage-mint);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  font-size: 0.99rem;
  font-weight: 600;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-orange);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.footer-contact p, .footer-contact li {
  color: #fff;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 7px;
  filter: brightness(150%) sepia(0.6);
}
.footer-copy {
  color: #aaabc0;
  text-align: center;
  margin: 17px 0 0 0;
  font-size: 0.91rem;
  letter-spacing: 0.02em;
}

@media (max-width:768px) {
  footer {
    padding: 27px 0 0 0;
  }
  .footer-contact { gap: 2px; }
}

/* =========================
   CTA & NEWSLETTER
   ========================= */
.text-section ul {
  margin-top: 16px;
  margin-bottom: 14px;
}
.text-section li {
  background: transparent;
  color: var(--twilight-primary);
  font-size: 1.01rem;
  box-shadow: none;
  margin-bottom: 7px;
}

/* =========================
   CARDS & VISUAL ELEMENTS
   ========================= */
.card {
  border: 2px solid var(--vintage-mint);
  transition: box-shadow 0.2s, border-color 0.19s;
}
.card:hover, .card:focus-within {
  border-color: var(--vintage-orange);
  box-shadow: 0 6px 32px 0 #c3544320, 0 2px 6px 0 #15204618;
}

/* =========================
   MICRO-INTERACTIONS
   ========================= */
a, button {
  transition: color 0.18s, background 0.18s, box-shadow 0.19s;
}
button:focus, a:focus {
  outline: 2px dashed var(--vintage-red);
  outline-offset: 3px;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
   ========================= */
@media (max-width: 600px) {
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1em; }
  .testimonial-card, .feature-grid > div {
    max-width: 100%;
    padding: 13px 4vw;
  }
}

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
#cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; bottom: 0;
  background: #FFF5E0;
  border-top: 3px solid var(--vintage-orange);
  box-shadow: 0 -4px 38px #C3544330;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 21px 8px 18px 8px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #3a2b16;
  animation: cookie-slide-in 0.45s cubic-bezier(0.64, 0, 0.18, 1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-med);
  padding: 8px 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 6px #C3544320;
  margin: 0;
}
.cookie-accept {
  background: var(--twilight-primary);
  color: #fff;
  transition: background 0.19s;
}
.cookie-accept:hover, .cookie-accept:focus { background: var(--vintage-red); }
.cookie-reject {
  background: var(--vintage-red);
  color: var(--vintage-sand);
  transition: background 0.19s;
}
.cookie-reject:hover, .cookie-reject:focus { background: #762c22; color: #fff; }
.cookie-settings {
  background: var(--vintage-orange);
  color: var(--twilight-primary);
  transition: background 0.18s, color 0.17s;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--vintage-mint);
  color: var(--vintage-brown);
}

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  z-index: 99999;
  left: 50vw;
  top: 51vh;
  transform: translate(-50%,-50%) scale(0.98);
  background: #fffdfa;
  border: 3px solid var(--vintage-orange);
  box-shadow: 0 10px 38px #15204655, 0 2px 9px #C3544330;
  border-radius: var(--radius-big);
  min-width: 320px;
  max-width: 92vw;
  padding: 38px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.40s cubic-bezier(0.56, 0, 0.18, 1);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%,30%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
#cookie-modal h2 {
  color: var(--vintage-red);
  margin-bottom: 9px;
  font-size: 1.18rem;
}
#cookie-modal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
#cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-switch {
  margin-left: auto;
  appearance: none;
  width: 34px; height: 19px;
  background: #b8b49e;
  border-radius: 15px;
  position: relative;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 4px #d6b99544;
  transition: background 0.15s;
}
.cookie-switch:checked {
  background: var(--vintage-mint);
}
.cookie-switch::after {
  content: '';
  display: block;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 1px; top: 1px;
  box-shadow: 0 1px 3px #C3544330;
  transition: left 0.16s;
}
.cookie-switch:checked::after {
  left: 16px;
}
.cookie-modal-btns {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.38rem;
  position: absolute;
  top: 13px; right: 20px;
  color: var(--vintage-brown);
  cursor: pointer;
  z-index: 3;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--vintage-red);
}

@media (max-width:480px) {
  #cookie-modal {
    padding: 22px 8px 23px 10px;
  }
}

/* =========================
   UTILS/GENERIC CLASSES
   ========================= */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }

/* =========================
   VINTAGE NOSTALGIC DETAILS
   ========================= */
h1, h2, h3 { text-shadow: 0.5px 0.5px 2px #F7EAD3ee; }
section {
  position: relative;
  background: #fffefa;
  border-radius: var(--radius-big);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 18px 0 #15204611;
  border: 1.5px dashed var(--vintage-orange);
}
section:nth-of-type(odd) {
  background: #f7ead3;
  border: 1.5px solid var(--vintage-mint);
}
section .container {
  padding: 0;
}

/* Decorative stripes or dots (for nostalgic look) */
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: 24px; top: 17px;
  width: 60px; height: 6px;
  border-radius: 8px;
  background: var(--vintage-red);
  opacity: 0.11;
}
.section:nth-of-type(even)::before {
  left: auto;
  right: 24px;
  background: var(--vintage-orange);
  opacity: 0.13;
}

@media (max-width:600px){
  section { margin-bottom: 30px; padding: 20px 8px; }
  .section::before{ display: none;}
}

/* =========================
   SCROLLBAR / SELECTION
   ========================= */
::-webkit-scrollbar {
  width: 9px;
  background: #f7ead3;
}
::-webkit-scrollbar-thumb {
  background: var(--vintage-red);
  border-radius: 10px;
}

::selection {
  background: var(--vintage-orange);
  color: var(--twilight-primary);
}

/* ============= END ============= */
