/* =========================================================
   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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #FAF5ED;
  color: #174534;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img, video {
  max-width: 100%;
  display: block;
}
a {
  color: #174534;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C96325;
}
ul {
  list-style: disc inside;
  margin-left: 1.2em;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -0.03em; }
h2 { font-size: 2rem; margin-bottom: 14px; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; margin-bottom: 10px; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, ul {
  font-size: 1rem;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* =========================================================
   VINTAGE RETRO COLOR SCHEME & BRANDS
   ======================================================= */
:root {
  --clr-primary: #174534;
  --clr-secondary: #79A67E;
  --clr-accent: #E0F4EA;
  --clr-bg-vintage: #fbf8ef;
  --clr-retro-orange: #F7C873;
  --clr-retro-brown: #94644D;
  --clr-retro-cream: #FFF7E0;
  --clr-retro-pink: #FFD9C0;
  --clr-retro-teal: #3DAC9B;
  --clr-retro-dark: #3D2323;
}
body {
  background: var(--clr-bg-vintage);
}

/* =========================================================
   TYPOGRAPHY VINTAGE/RETRO
   ======================================================= */
/* fallback for display font, body font handled above */
h1, h2, h3, h4, h5, h6, .cta-primary, .cta-secondary {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body, p, li, .footer-nav, .testimonial-card {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
/* Retro/Nostalgic headline style */
h1, h2, .cta-primary, .cta-secondary {
  text-shadow: 0 2px 0 #FFF7E0, 2px 4px 6px #bebebe36;
}

/* =========================================================
   VINTAGE PATTERNS & NOSTALGIC ELEMENTS
   ======================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-retro-cream);
  border-radius: 24px;
  box-shadow: 0 4px 16px 0 #e2dbcc34;
  position: relative;
}
section:nth-child(even) {
  background: var(--clr-accent);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

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

/* Decorative retro pattern top/bottom */
section::before, section::after {
  content: '';
  display: block;
  position: absolute;
  left: 24px;
  right: 24px;
  height: 6px;
  border-radius: 6px;
  opacity: 0.22;
  background-image: repeating-linear-gradient(90deg, var(--clr-retro-orange), var(--clr-retro-orange) 24px, transparent 24px, transparent 48px, var(--clr-retro-pink) 48px, var(--clr-retro-pink) 72px, transparent 72px, transparent 84px);
  z-index: 1;
}
section::before {
  top: 12px;
}
section::after {
  bottom: 12px;
}

/* Remove pattern for first hero section */
section:first-of-type::before, section:first-of-type::after {
  background: none !important;
}

/* =========================================================
   NAVIGATION (DESKTOP & MOBILE)
   ======================================================= */
header {
  width: 100%;
  background: var(--clr-retro-brown);
  padding: 0 0 0 0;
  border-bottom: 4px solid var(--clr-retro-orange);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 12px 24px;
  font-size: 1.12rem;
}
.main-nav img {
  height: 48px;
  width: auto;
  margin-right: 10px;
}
.main-nav a {
  color: #fff7e0;
  background: none;
  border-radius: 6px;
  padding: 7px 15px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  position: relative;
  z-index: 10;
}
.main-nav a:hover, .main-nav a:focus:not(.cta-primary){
  background: var(--clr-retro-orange);
  color: var(--clr-retro-dark);
  box-shadow: 0 1px 6px 0 #d9b47544;
}
.main-nav .cta-primary {
  background: var(--clr-secondary);
  color: #FFF7E0;
  padding: 9px 26px;
  border-radius: 99px 22px 99px 18px/20px 44px 20px 44px;
  font-size: 1rem;
  margin-left: auto;
  box-shadow: 0 4px 0 #17453433;
  border: 2px solid var(--clr-retro-teal);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  letter-spacing: 0.07em;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--clr-retro-teal);
  color: #fff;
  box-shadow: 0 8px 16px #3dac9b22;
}

.mobile-menu-toggle {
  display: none;
  background: var(--clr-retro-orange);
  color: var(--clr-retro-dark);
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  padding: 8px 16px;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 41;
  transition: background 0.13s;
  box-shadow: 0 2px 12px #794e1b21;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  outline: 2px solid var(--clr-retro-brown);
  background: var(--clr-retro-pink);
  color: var(--clr-retro-dark);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #94644Dcc;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100vw);
  z-index: 2000;
  transition: transform 0.35s cubic-bezier(0.58,0.05,0.5,1.4);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--clr-retro-orange);
  color: var(--clr-retro-dark);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  margin: 18px 24px 26px 0;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px #b8723533;
  transition: background 0.22s, color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--clr-retro-pink);
  color: var(--clr-retro-dark);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 92vw;
  max-width: 320px;
  background: var(--clr-retro-cream);
  border-radius: 16px 0 0 16px;
  padding: 36px 22px 28px 28px;
  box-shadow: -6px 2px 18px 0 #50351633;
}
.mobile-nav a {
  color: var(--clr-retro-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 12px 9px;
  border-radius: 8px;
  background: none;
  transition: background 0.2s;
  margin-right: auto;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-retro-orange);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
    font-size: 0.95rem;
  }
  .main-nav .cta-primary {
    margin-left: 10px;
    padding: 9px 16px;
  }
}
@media (max-width: 850px) {
  .main-nav .cta-primary {
    margin-left: 1px;
  }
}
@media (max-width: 820px) {
  .main-nav a:not(:first-child) { display: none; }
  .main-nav .cta-primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 520px) {
  header { padding-left: 5px; padding-right: 5px; }
  .main-nav { padding: 10px 6px 10px 6px; }
  .main-nav img { height: 38px; margin-right: 6px; }
}

/* =========================================================
   HERO & CTA STYLES
   ======================================================= */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 80px 22px 80px 18px/22px 35px 20px 35px;
  padding: 12px 38px;
  margin: 10px 0 0 0;
  transition: background 0.21s, color 0.21s, box-shadow 0.25s, border 0.1s;
  cursor: pointer;
  text-align: center;
  min-width: 170px;
  text-shadow: none;
  box-shadow: 0 2px 12px #17453418;
  border-width: 2px;
  border-style: solid;
  position: relative;
  z-index: 2;
}
.cta-primary {
  color: #fff7e0;
  background: var(--clr-secondary);
  border-color: var(--clr-retro-teal);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--clr-retro-orange);
  color: var(--clr-primary);
  box-shadow: 0 6px 24px #FDB46733;
  border-color: var(--clr-retro-brown);
}
.cta-secondary {
  color: var(--clr-primary);
  background: var(--clr-retro-orange);
  border-color: var(--clr-secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  color: #fff7e0;
  background: var(--clr-retro-brown);
  border-color: var(--clr-retro-teal);
  box-shadow: 0 7px 15px #94644d27;
}

/* =========================================================
   CARDS, FLEX GRIDS & LAYOUTS
   ======================================================= */
.card-container, .feature-grid, .content-grid,
.course-list, .feature-icons, .benefit-icons,
.packages-grid, .download-list, .team-feedback, .course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.card, .feature-grid > div, .course-list > div, .feature-icons > div, .benefit-icons > div, .packages-grid > div, .team-feedback > div, .course-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px #d7ccc83a;
  padding: 26px 20px 20px 22px;
  margin-bottom: 20px;
  flex: 1 1 min(280px, 100%);
  min-width: 260px;
  position: relative;
}
.card img, .feature-icons img, .benefit-icons img, .course-list img, .packages-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.card h3, .feature-grid h3, .course-list h3, .feature-icons h4, .benefit-icons h4, .packages-grid h3 {
  margin-bottom: 8px;
  color: var(--clr-primary);
}
.card p, .feature-grid p, .course-list p, .feature-icons p, .benefit-icons p, .packages-grid p {
  margin: 0 0 5px 0;
}

.content-wrapper > .testimonial-card, .team-feedback > .testimonial-card, .content-wrapper > .testimonial-card {
  margin: 10px 0 22px 0;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff7e0;
  color: #442A23;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 #bba96527;
  padding: 20px 28px 20px 22px;
  min-width: 220px;
  max-width: 410px;
  font-size: 1.06rem;
  margin-right: 20px;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 7px;
}
.testimonial-card strong {
  font-weight: 700;
}
.testimonial-card img {
  margin-right: 4px;
  width: 22px;
  height: 22px;
  display: inline-block;
}
@media (max-width: 860px) {
  .card-container, .feature-grid, .content-grid, .course-list, .feature-icons, .benefit-icons,
  .packages-grid, .team-feedback, .course-grid {
    gap: 20px;
  }
  .card, .feature-grid > div, .course-list > div, .feature-icons > div, .benefit-icons > div, .packages-grid > div, .team-feedback > div {
    min-width: 170px;
    flex: 1 1 240px;
  }
}
@media (max-width: 700px) {
  section {
    margin-bottom: 48px;
    padding: 18px 1vw;
    border-radius: 14px;
  }
  .container { padding: 4px; }
  .card-container, .feature-grid, .content-grid,
  .course-list, .feature-icons, .benefit-icons,
  .packages-grid, .team-feedback, .course-grid {
    flex-direction: column;
    gap: 13px;
  }
  .card, .feature-grid > div, .course-list > div, .feature-icons > div,
  .benefit-icons > div, .packages-grid > div, .team-feedback > div, .course-grid > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 13px;
  }
}

/* GENERAL FLEX SPACING/ALIGNMENT MANDATED */
.card-container { 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; }

/* Additional Section for text sections */
.text-section {
  padding: 22px 10px;
}

/* =========================================================
   SPECIAL ELEMENTS / PATTERNS
   ======================================================= */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1rem;
}
.case-studies, .contact-info, .team-bio, .team-values {
  margin-top: 8px;
  background: var(--clr-retro-pink);
  padding: 16px 16px 12px 22px;
  border-radius: 12px 20px 22px 16px/14px 33px 22px 18px;
  box-shadow: 0 2px 11px #eee6da2a;
  font-size: 1rem;
  color: var(--clr-retro-dark);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-info > div, .team-bio > div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.contact-info img, .team-bio img {
  width: 20px; height: 20px; margin-right: 7px;
}

@media (max-width: 600px) {
  .contact-info, .case-studies, .team-bio, .team-values {
    padding: 9px 8px 7px 14px;
    font-size: 0.98rem;
    border-radius: 10px 14px 14px 12px;
  }
}

/* =========================================================
   FOOTER
   ======================================================= */
footer {
  background: var(--clr-retro-brown);
  color: #fff7e0;
  padding: 32px 0 10px 0;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #fff7e0;
  font-size: 1rem;
  border-radius: 8px;
  padding: 4px 11px;
  text-decoration: none;
  transition: background 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--clr-retro-orange);
  color: var(--clr-retro-dark);
}

@media (max-width: 700px) {
  .footer-nav { gap: 12px; font-size: 0.92rem; }
  footer { font-size: 0.92rem; }
}

/* =========================================================
   HOVER, MICRO-INTERACTIONS, & ANIMATIONS
   ======================================================= */
.card, .testimonial-card, .case-studies, .contact-info, .team-bio, .team-values {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 28px #eba85b2c;
  transform: translateY(-5px) scale(1.012);
}
.cta-primary, .cta-secondary {
  transition: background 0.21s, color 0.21s, box-shadow 0.25s, border 0.1s, transform 0.09s;
}
.cta-primary:active, .cta-secondary:active {
  transform: scale(0.98);
}
.main-nav a:active, .mobile-nav a:active {
  transform: scale(0.97);
}

/* Subtle icon bounce on hover */
.card img:hover, .feature-icons img:hover, .benefit-icons img:hover {
  animation: float-bounce 0.7s cubic-bezier(0.47,1.64,0.41,0.8);
}
@keyframes float-bounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(-7px) scale(1.08); }
  100% { transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE RULES (MOBILE-FIRST)
   ======================================================= */
@media (max-width: 768px) {
  .main-nav {
    gap: 4px;
    padding: 8px 10px;
  }
  section {
    margin-bottom: 36px;
    padding: 10px 3vw;
  }
  .content-wrapper, .card-container, .feature-grid, .content-grid, .course-list, .feature-icons, .benefit-icons, .packages-grid, .team-feedback, .course-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card, .card, .feature-icons > div, .benefit-icons > div {
    max-width: 100%;
    margin-right: 0;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .cta-primary, .cta-secondary { font-size: 1rem; padding: 11px 15px; min-width: 110px; }
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--clr-retro-orange);
  color: var(--clr-retro-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 15px 18px 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  box-shadow: 0 -4px 32px #e0d6c444;
  z-index: 5000;
  animation: bannerIn 0.65s cubic-bezier(.39,1.26,.36,1) both;
}
@keyframes bannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  background: var(--clr-retro-brown);
  color: #fff7e0;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 18px;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-banner .cookie-accept {
  background: var(--clr-retro-teal);
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--clr-secondary);
}
.cookie-banner .cookie-reject {
  background: var(--clr-retro-brown);
  color: #fff7e0;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #782612;
}
.cookie-banner .cookie-settings {
  background: var(--clr-retro-pink);
  color: var(--clr-retro-dark);
  border: 1px solid var(--clr-retro-brown);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--clr-retro-cream);
}

@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    font-size: 0.96rem;
    align-items: stretch;
    padding: 13px 4vw 15px 5vw;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100px);
  min-width: 300px;
  max-width: 98vw;
  width: 420px;
  background: #fff7e0;
  color: var(--clr-retro-dark);
  border-radius: 22px 22px 15px 15px;
  box-shadow: 0 0 64px #ac9e8425, 0 1px 9px #94644d16;
  padding: 21px 27px 11px 27px;
  z-index: 5400;
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: modalIn 0.7s cubic-bezier(.51,1.43,.29,1) both;
}
.cookie-modal.open { display: flex; }
@keyframes modalIn {
  from { opacity: 0; transform: translateX(-50%) translateY(160px) scale(0.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.cookie-modal h2 { color: var(--clr-retro-brown); margin-bottom: 6px; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 7px 0;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--clr-retro-brown);
  width: 19px;
  height: 19px;
  border-radius: 6px;
  margin-right: 3px;
}
.cookie-modal .cookie-toggle[disabled] {
  accent-color: #bbb;
  opacity: 0.73;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  min-width: 90px;
  margin: 0 2px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  padding: 7px 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--clr-retro-orange);
  color: var(--clr-retro-dark);
  transition: background 0.12s;
  cursor: pointer;
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  background: var(--clr-retro-teal);
  color: #fff;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--clr-retro-dark);
  border: none;
  cursor: pointer;
  font-size: 1.72rem;
  padding: 0 7px;
  position: absolute;
  top: 16px; right: 19px;
}

@media (max-width: 550px) {
  .cookie-modal {
    min-width: 0;
    width: 93vw;
    max-width: 99vw;
    padding: 13px 8vw 11px 5vw;
  }
  .cookie-modal .cookie-modal-actions { gap: 5px; }
  .cookie-modal h2 { font-size: 1.16rem; }
}

/* =============================
   ACCESSIBILITY
   ========================== */
*:focus {
  outline: 2px solid var(--clr-retro-orange);
  outline-offset: 2px;
  z-index: 17;
}

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  top: auto;
  bottom: auto;
  pointer-events: none;
}

/* =============================
   UTILITY CLASSES (for helper alignments, just in case)
   ========================== */
.text-center { text-align: center !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }

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