/* --- 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #F7F9F7;
  color: #2E332D;
  font-family: 'Roboto', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #185E36;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0791B7;
  outline: none;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #185E36;
  --secondary: #0791B7;
  --accent: #F1F9F6;
  --neutral-bg: #F7F9F7;
  --headline: #16351D;
  --muted: #5E6962;
  --card: #ffffff;
  --border: #DFE8E1;
  --shadow: 0 2px 12px 0 rgba(24,94,54,0.08);
  --radius: 16px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: var(--headline);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, address {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* --- GENERAL LAYOUT --- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HEADER --- */
header {
  background: var(--card);
  box-shadow: 0 2px 8px 0 rgba(24,94,54,0.08);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  padding: 6px 0;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.main-nav a.cta-btn {
  border: none;
}
.main-nav a:hover,
.main-nav a:focus {
  border-bottom: 2px solid var(--secondary);
  color: var(--secondary);
  background: none;
}

.cta-btn {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 32px;
  border: none;
  box-shadow: 0 1px 6px rgba(24,94,54,0.10);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary) !important;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 2px 12px rgba(24,94,54,0.17);
}

/* Header Logo */
header a > img {
  max-height: 48px;
  margin-right: 18px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  border: none;
  padding: 8px 12px;
  margin-left: 18px;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 100;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,249,247,0.98);
  box-shadow: 0 4px 24px rgba(24,94,54,0.14);
  z-index: 400;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  padding: 12px 18px 0 0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', serif;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO --- */
.hero {
  background: var(--accent);
  border-radius: 0 0 32px 32px;
  padding: 52px 0 52px 0;
  margin-bottom: 60px;
  box-shadow: 0 4px 32px rgba(24,94,54,0.08);
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero h1 {
  font-size: 2.35rem;
  max-width: 680px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 540px;
}

/* --- FLEX CONTAINERS (MANDATORY) --- */
.card-container, .courses-grid, .resources-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 270px;
  flex: 1 1 260px;
}
.course-card, .resource-card, .team-member-bio {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  flex: 1 1 260px;
  min-width: 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.course-card:hover, .resource-card:hover, .team-member-bio:hover {
  box-shadow: 0 6px 32px rgba(24,94,54,0.11);
  transform: translateY(-2px) scale(1.02);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(24,94,54,0.07);
  padding: 24px 32px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(24,94,54,0.13);
  border-left: 4px solid var(--secondary);
}
.testimonial-card p {
  font-size: 1.15rem;
  font-style: italic;
  color: #222;
  margin-bottom: 2px;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--muted);
}
.ratings-summary {
  margin-top: 6px;
  padding: 16px 24px;
  background: var(--accent);
  border-radius: 12px;
  color: #212721;
  font-weight: 500;
  font-size: 1.08rem;
}
.ratings-summary span {
  color: var(--primary);
  font-weight: 700;
}

/* --- TAGS --- */
.tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.98rem;
  padding: 3px 14px;
  border-radius: 99px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- FEATURES --- */
.features, .course-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  background: none;
  box-shadow: none;
  border-radius: none;
}
.features ul, .course-features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  list-style: none;
}
.features li, .course-features li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  border-radius: 8px;
  padding: 16px 16px;
  color: var(--primary);
  font-weight: 500;
  min-width: 210px;
  box-shadow: 0 1px 5px rgba(24,94,54,0.05);
  font-size: 1.07rem;
}
.features li img, .course-features li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* --- STEPS --- */
.steps ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 0;
  counter-reset: stepList;
}
.steps ol li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 5px rgba(24,94,54,0.08);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 210px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  position: relative;
  list-style: none;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.steps ol li img {
  width: 32px;
  height: 32px;
  margin-right: 6px;
}
.steps ol li strong {
  margin-right: 6px;
  color: var(--primary);
}

/* --- CONTACT DETAILS --- */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 15px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
}
.contact-details li img {
  width: 22px;
  height: 22px;
}

.branch-address {
  margin-top: 10px;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(24,94,54,0.05);
  padding: 20px;
  font-size: 1rem;
}

/* --- MAP / HOURS SECTION --- */
.map, .hours {
  margin-bottom: 40px;
}
.embedded-map {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* --- FT/COPYRIGHT --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 28px 0;
  font-size: 1rem;
  margin-top: 64px;
}
footer .container {
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.95;
  transition: color 0.17s, opacity 0.18s;
  font-family: 'Montserrat', serif;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
footer address {
  font-style: normal;
  color: #f4f8f3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.99rem;
  margin-bottom: 15px;
}
footer address img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-family: 'Montserrat', serif;
  opacity: 0.96;
}
.brand-footer img {
  width: 28px;
  height: auto;
}

/* --- CARDS, GRIDS, FLEX PATTERNS REQUIRED --- */
.card-container {
  margin-bottom: 24px;
}
.card-content, .content-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* --- SPECIAL: THANKS/THANK YOU PAGE --- */
.thanks .container,
.thanks .content-wrapper {
  align-items: center;
  text-align: center;
}
.thanks ul {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* --- WHITE SPACE & SPACING --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  section, .section {
    padding: 28px 8px;
    margin-bottom: 35px;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1240px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .card-container, .courses-grid, .resources-grid, .features ul, .course-features ul, .steps ol, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 1.45rem; }
  .hero p, .section p { font-size: 1rem; }
  h1 { font-size: 1.55rem; margin-bottom: 20px; }
  h2 { font-size: 1.18rem; margin-bottom: 14px; }
  .testimonial-card, .course-card, .resource-card, .team-member-bio { padding: 18px 14px; }
  .brand-footer { font-size: 1rem; }
  .main-nav, .footer-nav { gap: 10px; }
  .container { padding-left: 5px; padding-right: 5px; }
}

/* --- SUBTLE SHADOWS & BORDERS --- */
.card,
.course-card,
.resource-card,
.team-member-bio,
.testimonial-card {
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* --- BUTTONS AND INTERACTIVITY --- */
button,
input[type=submit],
input[type=button],
.cta-btn {
  font-family: 'Montserrat', serif;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- VISUAL HIERARCHY --- */
h2 + ul, h2 + ol {
  margin-top: 8px;
}
h3 {
  color: var(--primary);
}

/*--- ACCESSIBLE CONTRAST ON TESTIMONIALS ---*/
.testimonials, .testimonials .testimonial-card {
  background: #fff;
  color: #222;
}
.testimonial-card p, .testimonial-card span {
  color: #2E332D;
}

/* --- TABLES (if any appear) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--card);
  border-radius: 8px;
}
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

/* --- Animations --- */
.cta-btn,
.button, .main-nav a, .mobile-nav a {
  transition: background 0.21s, box-shadow 0.21s, color 0.21s, transform 0.22s;
}
.card, .testimonal-card, .course-card, .resource-card {
  transition: box-shadow 0.18s, border-color 0.17s, transform 0.18s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #ffffff;
  z-index: 600;
  box-shadow: 0 -2px 24px rgba(24,94,54,0.09);
  border-top: 1px solid var(--border);
  padding: 28px 10px 22px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookie-banner-slideup 0.5s cubic-bezier(.32,1.1,.46,1.07);
}
@keyframes cookie-banner-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  max-width: 740px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 28px;
  font-family: 'Montserrat', serif;
  font-size: 0.98rem;
  border: none;
  border-radius: 32px;
  margin: 0 8px 0 0;
  transition: background 0.18s, color 0.17s, transform 0.18s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--secondary);
}
.cookie-btn.reject {
  background: #eaeae3;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dedec9;
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: #fff;
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 700;
  background: rgba(24,94,54,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
  animation: cookie-modal-fadein 0.25s cubic-bezier(.41,1.02,.53,1);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 32px rgba(24,94,54,0.22);
  padding: 40px 28px 28px 28px;
  min-width: 280px;
  max-width: 98vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 710;
  position: relative;
  animation: cookie-modal-slidein 0.25s cubic-bezier(.41,1.02,.53,1);
}
@keyframes cookie-modal-slidein {
  from { transform: translateY(70px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-modal p {
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.02rem;
}
.cookie-category label {
  margin-left: auto;
  font-weight: 500;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  width: 18px;
  height: 18px;
}
.cookie-category .essential {
  color: var(--primary);
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.19s;
  z-index: 711;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}

/* --- ACCESSIBLE FOCUS STATES --- */
a:focus, .cta-btn:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* --- MISC LAYOUT POLISH --- */
@media (max-width: 900px) {
  header .container { flex-direction: row; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 700px) {
  .hero, .section, .card, .testimonial-card, .course-card, .resource-card, .team-member-bio {
    border-radius: 11px;
  }
  .testimonial-card, .course-card, .resource-card, .team-member-bio { padding: 16px 10px; }
  .hero { padding: 34px 0; }
  .cta-btn { padding: 11px 18px; font-size: 1rem; }
}

/* --- PRINT --- */
@media print {
  body, header, footer, .container, section, .section, main {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .mobile-menu, .cookie-banner, .cookie-modal-mask {
    display: none !important;
  }
}

/* --- END --- */