/* 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; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #24314D;
  --color-secondary: #F7F2EA;
  --color-accent: #E9872B;
  --color-bg: #FFFFFF;
  --color-bg-elevated: #FBF8F4;
  --color-border: #E2DFD7;
  --color-muted: #A2A2A2;
  --color-shadow: rgba(36,49,77,0.05);
  --font-display: 'Montserrat', serif;
  --font-body: 'Roboto', serif;
}

body {
  font-family: var(--font-body), serif;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  padding-bottom: 80px; /* For cookie banner space */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; font-weight: 600; }
h4, h5, h6 { font-weight: 600; }

p, ul, ol, li {
  color: #2c3651;
  font-size: 1rem;
}
strong, b { font-weight: 600; }

/* CONTAINERS & SECTIONS */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section.cta, .cta {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 16px;
  box-shadow: 0 4px 32px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta h2 {
  color: #dcdcdc;
}

main {
  margin-bottom: 60px;
  background: none;
}

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

/* HEADER & NAVIGATION */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding-top: 18px;
  position: relative;
  z-index: 30;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
header nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--color-primary);
  padding: 8px 0;
  transition: color 0.25s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
}

.logo, header img {
  max-height: 48px;
  height: 48px;
  margin-right: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 34px;
  border-radius: 30px;
  box-shadow: 0 3px 16px var(--color-shadow);
  border: none;
  cursor: pointer;
  margin-left: 18px;
  letter-spacing: 0.01em;
  transition: all 0.20s cubic-bezier(.4,.2,.6,1);
}
.cta-button:hover, .cta-button:focus {
  background: #C86A21;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(233, 135, 43, 0.18);
  transform: translateY(-2px) scale(1.04);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 13px;
  z-index: 70;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-secondary);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,.2,.6,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.1rem;
  position: absolute;
  right: 32px;
  top: 22px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.25s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 90px;
  margin-left: 32px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.25rem;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  min-width: 260px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1a2240;
  color: var(--color-accent);
}

@media (max-width: 1030px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .header-flex { gap: 10px; }
  .footer-flex { gap: 10px; }
}

@media (max-width: 900px) {
  header nav { gap: 15px; font-size: 1rem; }
}

@media (max-width: 768px) {
  .header-flex nav, .header-flex .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section, section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  section.cta, .cta {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  .cta-button { padding: 10px 16px; font-size: 0.98rem; }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(96deg, #fbf8f4 78%, #ede7dd 100%);
  border-radius: 14px;
  box-shadow: 0 2px 24px var(--color-shadow);
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
}
.hero h1, .hero h2 {
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 18px;
}
.hero p { color: #413427; }
.hero .cta-button { margin-top: 18px; }

@media (max-width: 768px) {
  .hero { padding: 32px 0 16px 0; }
}

/* FLEXBOX SPACING MANDATES */
.section {margin-bottom: 60px; padding: 40px 20px;}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-bg-elevated); border-radius: 12px; box-shadow: 0 1.5px 9px var(--color-shadow); padding: 28px 24px;}
.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: #fff; border-radius: 16px; box-shadow: 0 3px 18px var(--color-shadow); margin-bottom: 20px; min-width: 0; flex: 1 1 280px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* FLEX-LAYOUTS FOR PAGE SPECIFIC CONTAINERS */
.feature-grid, .offers, .team-profiles, .course-list, .workshop-list, .resources-list, .blog-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.feature, .offer, .profile, .course, .workshop, .resource, .blog-post {
  background: var(--color-bg-elevated);
  box-shadow: 0 1.5px 9px var(--color-shadow);
  border-radius: 14px;
  padding: 26px 18px;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature:hover, .offer:hover, .profile:hover, .course:hover, .workshop:hover, .resource:hover, .blog-post:hover {
  box-shadow: 0 4px 32px rgba(36,49,77,0.09);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 900px) {
  .feature-grid, .offers, .team-profiles, .course-list, .workshop-list, .resources-list, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature, .offer, .profile, .course, .workshop, .resource, .blog-post {
    min-width: 0; max-width: 100%;
  }
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  color: #273248;
  border-left: 5px solid var(--color-accent);
  font-style: italic;
  min-width: 260px;
  box-shadow: 0 4px 22px 0 rgba(36,49,77,0.08);
  transition: box-shadow 0.19s, border-color 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(36,49,77,0.15);
  border-left: 5px solid #C86A21;
}
.testimonial-meta {
  margin-left: auto;
  font-style: normal;
  font-size: 1rem;
  font-family: var(--font-display);
  color: #787064;
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-meta span {
  color: var(--color-accent);
  font-size: 1.1em;
}

@media (max-width: 900px) {
  .testimonials {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { min-width: 0; }
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: var(--color-bg-elevated);
  border-left: 4px solid var(--color-primary);
  border-radius: 9px;
  padding: 15px 18px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  transition: box-shadow 0.18s, border-color 0.13s;
}
.faq-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.09rem;
  color: var(--color-primary);
}
.faq-item p {
  margin-top: 10px;
}
.faq-item:hover { box-shadow: 0 4px 21px rgba(36,49,77,0.12); border-color: var(--color-accent); }

/* NEWSLETTER SIGNUP */
.newsletter {
  background: var(--color-bg-elevated);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 60px;
}
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

/* FOOTER */
footer {
  background: var(--color-bg);
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding: 38px 0 38px 0;
  margin-top: 20px;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  font-size: 0.99rem;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
}
footer nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  transition: color 0.22s;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
footer address {
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 0.99rem;
  margin-top: 6px;
}
footer img { max-height: 40px; margin-bottom: 9px; }

@media (max-width: 900px) {
  .footer-flex { flex-direction: column; gap: 22px; align-items: flex-start; }
  footer nav { flex-direction: row; flex-wrap: wrap; gap: 11px 28px; margin-top: 0; }
}
@media (max-width: 600px) {
  footer { padding: 24px 0 80px 0; }
}

/* BLOG CATEGORIES FILTER */
.categories-filter {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.categories-filter a {
  color: var(--color-accent);
  font-weight: 500;
  transition: text-decoration 0.14s, color 0.18s;
}
.categories-filter a:hover {
  text-decoration: underline;
  color: #C86A21;
}

/* TABLES (for any legal or resource sections) */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  background: var(--color-bg-elevated);
}
th, td {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
}
th { background: #ede7dd; }


/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1.06rem;
  margin-bottom: 24px;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 8px;
  display: inline;
  max-height: 22px;
}

/* ADDRESS LINKS */
address a {
  color: var(--color-primary);
  text-decoration: underline dotted;
  transition: color 0.18s;
}
address a:hover, address a:focus { color: var(--color-accent); }

/* MAP EMBED PLACEHOLDER */
.map-embed {
  background: var(--color-bg-elevated);
  border-radius: 10px;
  padding: 22px 16px;
  color: var(--color-muted);
}

/* BLOG & RESOURCE LISTS */
.blog-list, .resources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post, .resource {
  background: var(--color-bg-elevated);
  box-shadow: 0 2.5px 12px var(--color-shadow);
  border-radius: 14px;
  padding: 23px 16px;
  flex: 1 1 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.blog-post:hover, .resource:hover {
  box-shadow: 0 4px 18px rgba(36,49,77,0.12);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .blog-list, .resources-list {
    flex-direction: column;
    gap: 12px;
  }
  .blog-post, .resource { max-width: 100%; }
}

/* NEWSLETTER CTA SECTION */
.newsletter {
  background: var(--color-bg-elevated);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
}

/* BUTTONS GENERAL */
button {
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 500;
  transition: background 0.22s, color 0.22s, transform 0.13s;
}
button:hover, button:focus {
  background: #C86A21;
  color: #fff;
  transform: translateY(-2px);
}

/* LEGAL TEXT */
.legal-text h2 { font-size: 1.2rem; margin: 24px 0 10px 0; }
.legal-text ul {
  list-style: disc inside;
  margin-bottom: 10px; margin-left: 0;
}
.legal-text li { margin-bottom: 6px; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  width: 100%;
  background: #fff;
  border-top: 2px solid var(--color-border);
  box-shadow: 0 -2px 24px rgba(36,49,77,0.08);
  padding: 25px 16px 25px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: cookieSlideIn 0.7s cubic-bezier(.3,1.6,.6,.97);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .settings-btn {
  background: var(--color-accent);
  color: #fff;
  border-radius: 22px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 6px var(--color-shadow);
  margin-right: 4px;
  transition: background 0.22s, color 0.22s, transform 0.13s;
}
.cookie-banner button.reject, .cookie-banner button.reject:focus {
  background: #d8d8d8;
  color: #2c3651;
}
.cookie-banner .settings-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 12px 22px;
}
.cookie-banner button:hover, .cookie-banner button:focus, .cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #C86A21;
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1900;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,49,77,.42);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 4px 32px rgba(36,49,77,.21);
  max-width: 420px;
  width: 92vw;
  padding: 38px 32px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  animation: modalSlideIn 0.36s cubic-bezier(.2,1.2,.4,1.01);
}
@keyframes modalSlideIn { from {transform: translateY(40px); opacity: 0;} to {transform: none; opacity: 1;} }
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--color-bg-elevated);
  border-radius: 8px;
  padding: 12px 16px;
}
.cookie-modal .category-row label {
  font-family: var(--font-body);
  font-size: 1.07rem;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #dcdcdc;
  border-radius: 22px;
  transition: background 0.19s;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.26s;
  box-shadow: 0 1.5px 5px rgba(36,49,77,0.10);
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--color-accent);
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .category-row .category-desc {
  font-size: 0.94rem;
  color: #777;
  margin-top: 3px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  background: var(--color-accent);
  color: #fff;
  border-radius: 18px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  border: none;
  transition: background 0.19s;
}
.cookie-modal .modal-actions button.cancel {
  background: #d8d8d8;
  color: #2c3651;
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: #C86A21;
  color: #fff;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 15px; right: 21px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-accent);
}

@media (max-width: 500px) {
  .cookie-modal { padding: 20px 8px 16px 8px; width: 97vw; }
}

/* UTILITIES */
.text-section { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px;}
.founder-bio { background: var(--color-bg-elevated); border-radius: 10px; padding: 16px 18px; color: var(--color-primary); }

ul { list-style: disc outside; padding-left: 18px; }
li { margin-bottom: 8px; color: #3b4358; font-size: 1em; }

/* ELEGANT SHADOWS & BORDERS */
.card, .profile, .feature, .testimonial-card, .offer, .course, .workshop, .resource, .blog-post {
  border: 1px solid var(--color-border);
}

/* MICROINTERACTIONS */
a, .cta-button, button, .feature, .offer, .profile, .card, .testimonial-card, .faq-item, .blog-post, .resource {
  outline: none;
  transition: box-shadow 0.14s, color 0.18s, background 0.16s, transform 0.12s;
}
a:focus, .cta-button:focus, button:focus {
  box-shadow: 0 0px 4px 2px var(--color-accent);
  outline: none;
}

/* MEDIA QUERIES FOR TEXT-IMAGE SECTIONS, FLEX WRAPS */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-flex, .header-flex { flex-direction: column; align-items: flex-start; }
}

::selection {
  background: #ffe5d0;
}

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