/* ============================================================
   CSS RESET & BASELINE (Normalize & Reset)
   ============================================================ */
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,
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;
  height: 100%;
  scroll-behavior: smooth;
  background: #FAF7F2;
}
body {
  min-height: 100vh;
  background: #FAF7F2;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #173928;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #276C8B;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #23613D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.5em;
}
strong {
  font-weight: 700;
}

/* Font Face Declarations for Montserrat and Open Sans (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');


/* =============================================================
   COLOR VARIABLES &/utilities
   ============================================================= */
:root {
  --primary: #23613D;
  --primary-rgb: 35,97,61;
  --secondary: #276C8B;
  --accent: #FAF7F2;
  --dark: #173928;
  --light: #FAF7F2;
  --danger: #B81414;
  --success: #2D8C58;
  --card-bg: #fff;
  --shadow: 0 4px 16px rgba(35, 97, 61, 0.10);
  --radius: 18px;
  --radius-sm: 10px;
  --card-border: 2px solid #E2E6DF;
  --gap: 24px;
  --brand-gradient: none;
}

/* =============================================================
   TYPOGRAPHY – MODERN BOLD
   ============================================================= */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}
p, ul, ol {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark);
  margin-bottom: 16px;
}
.section ul, .text-section ul, .features-section ul {
  margin-bottom: 8px;
}

/* Helper typography scale */
.display-large { font-size: 3rem; font-weight: 900; }
.display-medium { font-size: 2.25rem; font-weight: 800; }
.display-small { font-size: 1.5rem; font-weight: 800; }

/* =============================================================
   GENERAL LAYOUT & CONTAINERS (Flexbox only)
   ============================================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.header-container, .footer-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: var(--card-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(var(--primary-rgb),0.12);
  transform: translateY(-5px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(39,108,139,0.05), 0 6px 20px rgba(35,97,61,0.08);
  border: 1px solid #e7efeb;
  min-width: 260px;
  max-width: 450px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px #276c8b18;
  transform: scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spread out items in feature grid */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(39,108,139,0.13);
  border: 2px solid #d4e6db;
  padding: 24px 20px 18px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.14s;
}
.feature-card img { width: 44px; height: 44px; }
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 36px #23613d18;
  transform: translateY(-4px) scale(1.01);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.service-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(35,97,61,0.09);
  border: 2px solid #d2e2d9;
  padding: 24px 20px 18px 20px;
  min-width: 260px;
  max-width: 390px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, border-color 0.18s, transform 0.16s;
  margin-bottom: 20px;
}
.service-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 36px rgba(39,108,139,0.12);
  transform: scale(1.015);
}
.service-price {
  font-family: 'Montserrat';
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 8px;
  color: var(--primary);
  margin-top: 10px;
  margin-bottom: 6px;
}
.service-details { margin-top: 8px; }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* FAQ Styles */
.faq-section, .faq-preview-section {
  background: #F7FBF9;
  border-radius: var(--radius);
  border: 2px solid #e1ede6;
  margin-bottom: 40px;
  padding: 38px 22px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.faq-list > div {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 7px #23613d0c;
  padding: 14px 16px 10px 16px;
  border: 1px solid #d1e2e0;
}

/* =============================================================
   HEADER & NAV
   ============================================================= */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 14px rgba(35,97,61,0.09);
  position: sticky;
  top: 0;
  z-index: 2200;
}
.header-container {
  min-height: 72px;
  padding: 15px 0;
  gap: 16px;
}
.header-container img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  position: relative;
  border-radius: 6px;
  transition: color 0.18s, background 0.17s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--secondary);
  color: #fff;
}

.cta-btn {
  background: var(--primary);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 10px 24px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 14px rgba(35,97,61,0.10);
  transition: box-shadow 0.15s, background 0.16s, color 0.14s, transform 0.13s;
  margin-left: 12px;
  margin-right: 0;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(39,108,139,0.13);
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}

/* Hamburger button style */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1em;
  color: var(--secondary);
  cursor: pointer;
  padding: 4px 12px;
  z-index: 3000;
  margin-left: auto;
  transition: color 0.19s;
  border-radius: 8px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--primary);
  background: #eaf8ec;
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35, 97, 61, 0.97);
  z-index: 3001;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.74,-0.01,.18,1.01), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2em;
  color: #fff;
  align-self: flex-end;
  margin: 24px 28px 0 0;
  cursor: pointer;
  transition: color 0.14s, transform 0.13s;
  z-index: 3002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
  transform: scale(1.09) rotate(8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 34px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat';
  font-weight: 900;
  font-size: 1.24rem;
  letter-spacing: 1px;
  padding: 6px 0;
  border-radius: 8px;
  background: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Show/hide nav as flex per mobile/desktop */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================================================
   HERO / SECTION LAYOUTS
   ============================================================= */
.hero-section {
  padding: 64px 0 56px 0;
  background: linear-gradient(95deg, #FAF7F2 55%, #D2EDD7 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero-section .content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  gap: 14px;
  text-align: left;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 36px 0 28px 0;
    min-height: 200px;
  }
  .hero-section .content-wrapper {
    max-width: 100%;
    text-align: left;
  }
}

.cta-section {
  padding: 54px 0 40px;
  background: linear-gradient(90deg, #D2EDD7 40%, #FAF7F2 100%);
}
.cta-section .cta-btn {
  margin-top: 20px;
}
.confirmation-section, .legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid #dce5e2;
}

.text-section {
  max-width: 740px;
  margin: 0 auto;
}
.text-section h2 {margin-top: 16px; margin-bottom: 8px;}
.text-section h3 {margin-top: 17px; margin-bottom: 6px;}
.text-section ul {margin-left: 1.7em;}
.text-section li {margin-bottom: 2px;}

.team-section ul, .team-section li {
  list-style: none;
  margin-left: 0;
  margin-bottom: 3px;
}
.team-section strong { color: var(--primary); font-weight: 800; }

@media (max-width: 768px) {
  .content-wrapper, .section {
    padding: 18px 4px;
    margin-bottom: 40px;
  }
  .card-container, .feature-grid, .service-list, .faq-list {
    gap: 16px;
  }
  .feature-card, .service-item, .faq-list > div {
    min-width: 98%;
    max-width: 100%;
    flex: 1 1 98%;
  }
  .testimonial-card {
    min-width: 180px;
    max-width: 100%;
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: flex-start;
  }
}

/* Testimonials */
.testimonials-section {
  background: #F7FBF9;
  border-radius: var(--radius);
  border: 2px solid #dcf2e7;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.testimonial-card p {
  color: #173928;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.testimonial-card span {
  color: #276C8B;
  font-size: 1rem;
  font-weight: 700;
}

/* Special Section Previews */
.faq-preview-section {
  margin-top: 40px;
  margin-bottom: 50px;
  background: #E5F7E7;
}

/* =============================================================
   FOOTER LAYOUT & STYLE
   ============================================================= */
footer {
  background: #fff;
  border-top: 2.5px solid #d7e2db;
  padding: 32px 0 12px 0;
  font-size: 0.96rem;
}
.footer-container {
  gap: 30px 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-container img {
  height: 38px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat';
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 10px;
  transition: color 0.17s, background 0.15s;
}
.footer-nav a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-contact img {
  width: 16px; height: 16px; vertical-align: middle; margin-right: 6px;
  display: inline-block;
}
@media (max-width: 670px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 10px;
  }
}

/* =============================================================
   BUTTONS / MICRO-INTERACTIONS
   ============================================================= */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.15s, box-shadow 0.16s, border 0.14s, transform 0.13s;
}
button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* =============================================================
   COOKIE CONSENT BANNER & MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3500;
  background: #fff;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 20px rgba(39,108,139,0.07);
  padding: 18px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100vw;
  max-width: 100vw;
  min-height: 60px;
  font-size: 1rem;
  animation: cookieSlideIn 0.7s cubic-bezier(.59,.27,.73,1.01);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner strong {color: var(--primary); font-family: 'Montserrat';}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  padding: 9px 20px;
  font-family: 'Montserrat';
  font-size: 1rem;
  font-weight: 800;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background .16s, color .14s, transform .14s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #1D4830;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.cookie-btn.reject:hover {
  background: #ffeaea;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: #1f5b71;
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,97,61,0.52);
  z-index: 3600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 450px;
  width: 94vw;
  padding: 36px 26px 28px 26px;
  box-shadow: 0 8px 46px #1739281a;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 3601;
  animation: modalPop 0.25s cubic-bezier(.26,1.44,.43,.98);
}
@keyframes modalPop {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--secondary);
  font-family:'Montserrat';
  font-weight:900;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.cookie-switch {
  width: 40px;height: 22px; border-radius: 20px; background: #e0ece9; position: relative; cursor:pointer; box-shadow: 0 2px 8px #23613d0a; transition: background 0.16s;
  border: 1.5px solid #ddd;
}
.cookie-switch[aria-checked="true"] {
  background: #276C8B;
}
.cookie-switch-toggle {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; position: absolute; top: 1px; left: 1px; transition: left 0.21s, background 0.15s;
  box-shadow: 0 1px 4px #23613d11;
}
.cookie-switch[aria-checked="true"] .cookie-switch-toggle {
  left: 19px; background: #276C8B;
}
.cookie-modal-actions {
  display: flex; gap: 12px; justify-content: flex-end;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.45em;
  color: #b1b9b3;
  cursor: pointer;
  transition: color 0.14s, transform 0.13s;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  color: var(--primary);
  transform: scale(1.13);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .cookie-banner, .mobile-menu, .cookie-modal, .cookie-modal-backdrop { animation: none !important }
}

/* =============================================================
   RESPONSIVENESS (Mobile First)
   ============================================================= */
@media (max-width: 1023px) {
  .header-container {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
}
@media (max-width: 920px) {
  .container { max-width: 96vw; padding-left: 2vw; padding-right: 2vw; }
}
@media (max-width: 700px) {
  .container { max-width: 100vw; padding-left: 0; padding-right: 0; }
  .section, .confirmation-section, .legal-section, .faq-section, .faq-preview-section, .features-section, .testimonials-section, .cta-section {
    padding-left: 7px;
    padding-right: 7px;
  }
  .service-item, .feature-card, .faq-list > div {
    min-width: 97vw;
    max-width: 100vw;
  }
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.24rem; }
}

/* Hide Cookie Modal/Overlay by default */
.cookie-modal,
.cookie-modal-backdrop {
  display: none;
}
.cookie-modal.open, .cookie-modal-backdrop.open {
  display: flex;
}

/* --- End Modern Bold CSS for KeenStream Learning --- */
