/* ================================
   CSS RESET & NORMALIZATION
   ================================ */
html, body, div,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
a, abbr, acronym, address,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {line-height: 1;}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }
:focus { outline: none; }

/* ================================
   VINTAGE RETRO BRAND VARIABLES
   ================================ */
:root {
  /* Vintage turquoise teal, retro yellow, brick red, cream, navy */
  --color-primary: #25313F;        /* Brand Primary (navy) */
  --color-secondary: #36A288;      /* Brand Secondary (soft teal) */
  --color-accent: #F6F0E8;         /* Cream vintage background */
  --color-yellow: #FFD44D;         /* Retro yellow */
  --color-red: #E97451;            /* Retro brick red */
  --color-dark: #1a2029;
  --color-light: #fffdfa;
  --color-text: #23201D;
  --color-subtle: #f9ecd6;

  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
  --font-vintage: 'Montserrat', 'Roboto', Arial, sans-serif;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --shadow-main: 0 6px 24px rgba(45, 31, 19, 0.11),0 2px 12px rgba(43, 42, 51, 0.08);
  --shadow-card: 0 2px 8px rgba(37, 49, 63,0.07);
  --shadow-pop: 0 8px 32px rgba(37, 49, 63, 0.17);
  --transition: 0.18s cubic-bezier(.33,1.16,.67,1.07);
  --border-vintage: 3px solid #FFD44D; /* retro yellow */
  --pattern-dots: repeating-linear-gradient(135deg,#ffdea0 0 7px,transparent 0 16px);  
}

/* ================================
   LAYOUT STRUCTURE & CONTAINER
   ================================ */
body {
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.03em;
  position: relative;
}
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
}

/* Force .content-wrapper to use flex */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
  }
}

/* ================================
   TYPOGRAPHY – VINTAGE SCALE
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 1px 2px 0 #ffd44d40;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.15rem;
  font-weight: 600;
}
p, li, ul, ol {
  font-size: 1rem;
  line-height: 1.58;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.subheadline {
  color: var(--color-secondary);
  font-size: 1.18rem;
  font-family: var(--font-vintage);
  font-weight: 500;
  margin-bottom: 24px;
}
strong, b {
  color: var(--color-red);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ================================
   HEADER + NAVIGATION (retro accents)
   ================================ */
header {
  background: var(--color-primary);
  box-shadow: var(--shadow-main);
  position: relative;
  z-index: 30;
  padding: 8px 0;
}
header .container, header .content-wrapper, header nav {
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.logo-link img {
  height: 46px;
  width: auto;
  margin-right: 0px;
  filter: drop-shadow(0 2px 0 #FFD44D71);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  position: relative;
  transition: background 0.18s, color 0.11s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
  text-decoration: underline dashed 2px var(--color-primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 36px;
  margin-left: 24px;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,49,63,0.09);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background var(--transition), transform 0.14s;
  box-shadow: 0 1.5px 0 var(--color-red);
  border: 2px solid var(--color-red);
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-red);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  border-color: var(--color-yellow);
  box-shadow: 0 4px 26px rgba(37,49,63,0.15);
}

/* ================================
   MOBILE NAVIGATION BURGER MENU
   ================================ */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  margin-left: auto;
  cursor: pointer;
  transition: background .18s, transform 0.14s;
  z-index: 101;
}
.mobile-menu-toggle:hover,.mobile-menu-toggle:focus {
  background: var(--color-red);
  color: var(--color-accent);
  transform: scale(1.07);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: var(--color-primary);
  transform: translateX(-105%);
  transition: transform 0.33s cubic-bezier(.44,1.1,.82,1.00);
  z-index: 1201;
  padding-top: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-yellow);
  font-size: 2.1rem;
  align-self: flex-end;
  margin-right: 20px;
  margin-bottom: 36px;
  cursor: pointer;
  transition: color .18s;
  z-index: 1202;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: var(--color-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-left: 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-yellow);
  padding: 10px 0;
  border-bottom: 1.5px dotted var(--color-secondary);
  width: 100%;
  transition: color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-red);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .main-nav, .cta-button {
    display: none;
  }
}

/* ================================
  HERO SECTION (with vintage shapes)
   ================================ */
.hero {
  background: var(--pattern-dots), var(--color-yellow);
  background-size: 30px 30px, cover;
  padding: 68px 0 48px 0;
  border-bottom: var(--border-vintage);
  box-shadow: 0 4px 16px rgba(229,116,81,0.06);
  position: relative;
}
.hero .container {
  display: flex;
  justify-content: center;
}
.hero .content-wrapper {
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary);
  text-shadow: 2px 4px 0 #FFD44DBB;
}
.hero .cta-button {
  font-size: 1.2rem;
  padding: 15px 38px;
  background: var(--color-red);
  color: var(--color-light);
}
.hero .cta-button:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ================================
   FLEXBOX LAYOUT PATTERNS
   ================================ */
.card-container,
.card-grid,
.feature-grid,
.content-grid,
.ebooks-list,
.guides,
.tools-recommendations,
.latest-blog-posts,
.workshop-list,
.course-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card,
.feature-item,
.workshop-list > div,
.course-list-grid > div,
.ebooks-list ul,
.guides ul,
.tools-recommendations ul,
.latest-blog-posts ul {
  margin-bottom: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 7px solid var(--color-secondary);
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: var(--color-dark);
  position: relative;
  min-width: 0;
  transition: box-shadow .18s, border-color .18s;
}
.testimonial-card strong {
  font-size: 1.09em;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(54,162,136,0.16);
  border-left-color: var(--color-red);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-subtle);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 3.5px solid var(--color-yellow);
}

/* Feature GRID special */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-light);
  padding: 18px 18px 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 210px;
  min-width: 210px;
  color: var(--color-dark);
  border-left: 4px solid var(--color-yellow);
  position: relative;
}
.feature-grid li img {
  height: 36px; width: 36px;
  margin-bottom: 5px;
}

/* Flex for address/phone/email/office-hours in contact */
.address-details, .phone-email, .office-hours {
  flex: 1 1 200px;
  background: var(--color-light);
  padding: 18px 20px 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-right: 16px;
  margin-bottom: 20px;
}
.phone-email img, .office-hours img, .contact-details img {
  height: 22px; width: 22px;
  margin-right: 7px;
  vertical-align: middle;
  filter: grayscale(20%) sepia(16%) contrast(1.08);
}

/* ================================
   CARD DESIGN (ebooks, workshops etc)
   ================================ */
.card {
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 2px dashed var(--color-secondary);
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.14s, border 0.17s;
}
.card:hover {
  box-shadow: var(--shadow-main);
  border-style: solid;
  border-color: var(--color-yellow);
}

/* ================================
   VINTAGE PATTERNS & NOSTALGIC ELEMENTS
   ================================ */
.section, .hero, .card, .feature-grid li, .testimonial-card, .address-details, .phone-email, .office-hours {
  /* subtle paper noise grain */
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP4/w8AAucBvWrJazgAAAAASUVORK5CYII=");
  background-blend-mode: multiply;
}

.section {
  border: 2.2px solid #eadab6;
}

/* ================================
   BUTTONS & LINK STYLES
   ================================ */
button, .cta-button, .cookie-btn {
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  border: none;
  transition: background .15s, color .13s, transform .13s;
  cursor: pointer;
  box-shadow: 0 1.5px 0 var(--color-red);
}
button:active, .cta-button:active, .cookie-btn:active {
  transform: scale(.97);
}
a {
  color: var(--color-secondary);
  transition: color .13s;
}
a:hover, a:focus {
  color: var(--color-red);
  text-decoration: underline wavy 1.5px var(--color-yellow);
}

/* ================================
   LISTS, ULs, OLs
   ================================ */
ul, ol {
  margin: 0 0 18px 24px;
  padding: 0;
  font-size: 1em;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0px;
  position: relative;
}
ul li:before {
  content: '◉';
  color: var(--color-yellow);
  font-size: 1.1em;
  margin-right: 8px;
  font-weight: bold;
  vertical-align: middle;
  font-family: var(--font-display);
}

/* ================================
   SECTION-SPECIFIC FLEX ARRANGEMENTS
   ================================ */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item   { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ================================
   CONTACT SUMMARY SECTION
   ================================ */
.contact-summary {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px #25313F13;
  padding: 32px 18px !important;
  margin-bottom: 60px;
  border: 2.5px solid var(--color-yellow);
  overflow: hidden;
}
.contact-summary h2, .contact-summary p {
  color: var(--color-accent);
}
.contact-summary .cta-button {
  background: var(--color-yellow);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 40px 0 30px 0;
  font-size: 1rem;
  width: 100%;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer .content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-yellow);
  font-weight: bold;
  transition: color .17s;
}
.footer-nav a:hover {
  color: var(--color-red);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7.5px;
  font-size: 0.99em;
  color: var(--color-light);
}
footer img {
  height: 42px; width: auto; filter: drop-shadow(0 1.2px 0 #FFD44DAA);
}

@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 18px; }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 900px) {
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 768px) {
  .container { padding-left: 0; padding-right: 0; }
  .content-wrapper { flex-direction: column; gap: 18px; }
  .feature-grid,
  .card-grid,
  .card-container { flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
  .section,.contact-summary { padding: 22px 4px !important; margin-bottom: 38px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
}


/* ================================
   COOKIE CONSENT BANNER (fixed)
   ================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--color-dark);
  color: var(--color-accent);
  box-shadow: 0 -2px 28px rgba(37,49,63,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  z-index: 4000;
  font-size: 1rem;
  gap: 18px;
}
.cookie-banner .cookie-text {
  flex: 1 1 70%;
  margin-right: 32px;
}
.cookie-btn {
  margin-left: 10px;
  padding: 12px 24px;
  background: var(--color-yellow);
  color: var(--color-primary);
  font-weight: 800;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  transition: background .17s, color .16s, transform .15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-red);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
}
.cookie-btn.reject {
  background: var(--color-red);
  color: var(--color-accent);
  border: 1.5px solid var(--color-yellow);
}
.cookie-btn.reject:hover {
  background: var(--color-primary);
  color: var(--color-yellow);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-light);
}
.cookie-btn.settings:hover {
  background: var(--color-yellow);
  color: var(--color-primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 16px 10px;
    font-size: 0.99em;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
  }
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37, 49, 63, 0.78);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open { pointer-events: auto; opacity: 1; }
.cookie-modal {
  background: var(--color-light);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 34px 28px 28px 28px;
  max-width: 440px;
  min-width: 280px;
  z-index: 4102;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-size: 1rem;
  border: 2.5px solid var(--color-yellow);
  outline: 3px solid #eadab6;
  animation: popUpModal .46s cubic-bezier(.16,.99,.44,1.09);
}
@keyframes popUpModal {
  0%{ opacity:.3; transform:scale(.93) translateY(40px); } 100%{ opacity:1; transform:none; }
}
.cookie-modal h2 {
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--color-red);
  font-size: 1.15rem;
  font-family: var(--font-display);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-subtle);
  padding: 10px 12px;
}
.category-label {
  flex: 1 1 60%;
  font-size: 1rem;
}
.toggle-switch {
  width: 38px;
  height: 22px;
  background: #e1e1ce;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  box-sizing: content-box;
}
.toggle-switch.enabled {
  background: var(--color-secondary);
}
.toggle-switch.disabled {
  background: #e4c7ac;
}
.toggle-slider {
  position: absolute;
  top: 2px; left: 3px;
  width: 17px; height: 17px;
  background: #fffdfa;
  border-radius: 50%;
  box-shadow: 0 2px 5px #8881;
  transition: left .16s, background .18s;
}
.toggle-switch.enabled .toggle-slider {
  left: 18px; background: var(--color-yellow);
}
.toggle-switch.disabled .toggle-slider {
  left: 3px;
  background: #f7dfcc;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  flex: 1 1 33%;
  padding: 11px 2px;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover {
  color: var(--color-red);
}
@media (max-width: 450px) {
  .cookie-modal {
    padding: 16px 8px 12px 8px;
    min-width: 0;
    max-width: 94vw;
  }
}

/* ================================
   ANIMATIONS & MICRO-INTERACTIONS
   ================================ */
.cta-button, .cookie-btn, .main-nav a, .mobile-menu-toggle {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card, .feature-grid li, .testimonial-card {
  transition: box-shadow 0.18s, border 0.15s, transform 0.15s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 8px 28px #25313F22;
  z-index: 4;
}

/* ================================
   ACCESSIBILITY/FOCUS STYLES
   ================================ */
:focus-visible {
  outline: 2.5px solid var(--color-yellow);
  outline-offset: 2px;
}

/* ================================
   UTILITIES
   ================================ */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.d-flex { display: flex !important; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ================================
   PRINT (optional)
   ================================ */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  body, main, .container { background: white !important; color: black !important; box-shadow: none !important; }
}
