/* --- 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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F6F8FA;
  color: #263747;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.02em;
  scroll-behavior: smooth;
  /* Subtle pastel background gradient (static fallback) */
  background: linear-gradient(180deg, #F6F8FA 0%, #F6F6FF 100%);
}

* {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
a {
  color: #349589;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16A085;
  text-decoration: underline;
}
hr {
  border: none;
  height: 1px;
  margin: 24px 0;
  background: #E3EBF8;
}

/* --- SOFT PASTEL THEME COLORS (with some CarpoCorro brand) --- */
:root {
  --primary: #2C3E50;
  --secondary: #16A085;
  --accent: #F6F8FA;
  --pastel-blue: #A7C5EB;
  --pastel-green: #C2F2DC;
  --pastel-pink: #FFE4EF;
  --pastel-yellow: #FFF9DC;
  --pastel-violet: #ECEBFF;
  --pastel-teal: #C3EBF5;
  --shadow: 0 8px 32px 0 rgba(44,62,80,0.07);
  --radius: 18px;
  --radius-large: 36px;
  --focus-outline: 2px solid #16A085;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.2rem; margin-bottom: 18px; }
h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol, li, span {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
}
@media (max-width: 650px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.07rem; }
}
strong, b {
  font-weight: 600;
}
em, i {
  font-style: italic;
}

/* --- BASE LAYOUT & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: none;
}
@media (max-width: 700px) {
  .section, section {
    padding: 20px 6px;
    margin-bottom: 36px;
  }
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: var(--shadow);
  padding: 0;
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px 10px 18px;
  min-height: 66px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.22s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-teal);
  color: var(--secondary);
  outline: none;
}
.cta-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background-color: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 30px;
  box-shadow: var(--shadow);
  transition: background 0.22s, transform 0.20s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  margin-left: 12px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #0e7d6b;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 14px 32px 0 rgba(44,62,80,0.11);
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-teal);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-end;
  margin-left: 10px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255, 0.97);
  z-index: 260;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.51, 0.07, 0.43, 1.04);
  box-shadow: 0 0 36px 0 rgba(32,32,32,0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--pastel-teal);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-self: flex-end;
  margin: 18px 18px 10px 0;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 270;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 30px 0 0 28px;
}
.mobile-nav a {
  padding: 16px 0 8px 0;
  font-size: 1.18rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  color: var(--primary);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-green);
  color: var(--secondary);
  outline: none;
}
@media (max-width: 1050px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(180deg, #F6F8FA 60%, #A7C5EB 100%);
  border-radius: var(--radius-large);
  margin-bottom: 44px;
  padding: 60px 16px 60px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 48px 0 rgba(167,197,235,0.21);
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 16px;
  color: #37495a;
  max-width: 530px;
}
.hero .cta-btn {
  margin-top: 12px;
}

@media (max-width: 700px) {
  .hero {
    padding: 32px 8px;
    margin-bottom: 32px;
    border-radius: 24px;
  }
  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 1.01rem; }
}

/* --- FEATURES --- */
.features, .services, .courses, .blog-list {
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}
.accent-bg {
  background: var(--pastel-violet);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
  justify-content: space-between;
}
.feature-grid > li {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--pastel-pink);
  border-radius: var(--radius);
  box-shadow: 0 2px 18px 0 rgba(97,130,193,0.06);
  margin-bottom: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > li:hover {
  box-shadow: 0 6px 32px 0 rgba(44,62,80,0.18);
  transform: translateY(-6px) scale(1.025);
}
.feature-grid img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
}

@media (max-width: 880px) {
  .feature-grid {
    flex-direction: column;
  }
}

/* --- ABOUT, TEXT SECTIONS --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  padding-left: 18px;
  margin-top: 9px;
  margin-bottom: 10px;
}
.text-section ul li {
  margin-bottom: 7px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: var(--pastel-yellow);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  margin-bottom: 56px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px 0 rgba(60,72,89,0.13);
  padding: 24px 26px;
  flex: 1 1 250px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 36px 0 rgba(60,72,89,0.23);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card p {
  font-size: 1rem;
  color: #272c33;
  font-style: italic;
  text-align: center;
}
.testimonial-name {
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
}
@media (max-width: 720px) {
  .testimonial-list {
    flex-direction: column;
    gap: 19px;
  }
}

/* --- CTA SECTIONS --- */
.cta {
  background: linear-gradient(90deg, #C2F2DC 0%, #ECEBFF 100%);
  border-radius: var(--radius-large);
  margin-bottom: 46px;
  text-align: left;
  box-shadow: var(--shadow);
}
.cta h2 {
  font-size: 2rem;
  color: var(--primary);
}
.cta p {
  font-size: 1.11rem;
}
.cta .cta-btn {
  margin-top: 14px;
}

/* --- STEPS, CHECKLIST, FAQ --- */
.steps, .accent-bg {
  background: var(--pastel-violet);
}
.risk-steps-list, .products-list, .learning-outcomes, .interactive-checklist ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.interactive-checklist {
  background: var(--pastel-teal);
  border-radius: 18px;
  padding: 18px 22px;
  margin-top: 12px;
  margin-bottom: 10px;
}
.interactive-checklist h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  color: #217272;
}

/* --- COURSE & BLOG LIST SECTIONS --- */
.course-list,
.post-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
}
.course-list > li, .post-teasers > li {
  background: var(--pastel-green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 210px;
  min-width: 200px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-list > li:hover, .post-teasers > li:hover {
  box-shadow: 0 8px 28px 0 rgba(30,72,46,0.11);
  transform: translateY(-2px) scale(1.018);
}
@media (max-width: 820px) {
  .course-list, .post-teasers {
    flex-direction: column;
  }
}
.post-teasers a {
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  margin-top: 5px;
  transition: color 0.2s, border-color 0.2s;
}
.post-teasers a:hover {
  color: #107467;
  border-bottom: 1px solid #107467;
}

/* --- COMPARISON TABLE --- */
.comparison-table {
  margin: 18px 0 18px 0;
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px 0 rgba(44,62,80,0.10);
  padding: 12px 0 8px 0;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: none;
}
.comparison-table th,
.comparison-table td {
  padding: 11px 17px;
  text-align: center;
  border-bottom: 1px solid #eaf1fa;
}
.comparison-table thead th {
  background: var(--pastel-yellow);
  color: var(--primary);
  font-weight: 600;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* --- RESOURCES & EBOOKS --- */
.resources .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.ebook-list, .video-resources, .downloadable-guides {
  background: var(--pastel-blue);
  border-radius: 16px;
  padding: 18px 18px;
  flex: 1 1 240px;
  min-width: 200px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.ebook-list ul, .video-resources ul, .downloadable-guides ul {
  margin-top: 9px;
  padding-left: 17px;
}
@media (max-width: 900px) {
  .resources .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- CONTACT, THANKS --- */
.contact .text-section ul {
  padding-left: 0;
}
.contact .text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.09rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.thank-you .next-steps {
  background: var(--pastel-teal);
  border-radius: 16px;
  margin: 18px 0 10px 0;
  padding: 18px 22px;
}

/* --- LEGAL SECTIONS --- */
.legal {
  background: var(--pastel-yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 58px;
}
.legal .text-section ul {
  padding-left: 18px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 18px 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 24px 0 rgba(44,62,80,0.08);
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav, .footer-contact, .footer-logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  flex: 1 1 220px;
}
.footer-nav a {
  color: #B3E4D8;
  font-size: 1rem;
  margin-bottom: 7px;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #80baad;
  text-decoration: underline;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #FFF;
  font-size: 0.96rem;
}
.footer-contact img {
  vertical-align: middle;
  width: 18px; height: 18px;
  opacity: 0.9;
}
.footer-logo img {
  width: 54px; height: auto;
  margin-top: 8px;
  opacity: 0.96;
}
@media (max-width: 920px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo { margin-top: 14px; }
}

/* --- UTILITY CLASSES & LAYOUT COMPONENTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  background: var(--pastel-blue);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  transition: box-shadow 0.21s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(167,197,235,0.16);
  transform: translateY(-4px) scale(1.015);
}
.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;
}
@media (max-width: 750px) {
  .text-image-section, .content-grid { flex-direction: column; gap: 15px; }
}

/* --- SPACING AND ALIGNMENT --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 800px) {
  section, .section {
    padding: 18px 0;
    margin-bottom: 36px;
  }
}
.card-container, .content-grid,
.feature-grid, .resource-list, .course-list, .testimonial-list, .post-teasers {
  gap: 20px;
}
.card, .feature-grid > li, .course-list > li, .post-teasers > li, .ebook-list, .video-resources, .downloadable-guides {
  margin-bottom: 20px;
}
/* Prevent overlapping at all breakpoints */
.card, .feature-grid > li, .testimonial-card {
  min-width: 0;
}

/* --- TABLES --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; text-align: left; }
th { background: var(--pastel-green); }
tr:nth-child(even) { background: var(--pastel-teal); }

/* --- FOCUS STYLES --- */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: var(--focus-outline);
}

/* --- BUTTONS --- */
button, .cta-btn {
  transition: background 0.18s, box-shadow 0.19s, color 0.16s, transform 0.16s;
  outline: none;
}

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.cta-btn, .card, .feature-grid > li, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s, background 0.17s;
}
.mobile-menu,
.mobile-menu.open {
  will-change: transform;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 24px 14px 20px 14px;
  background: linear-gradient(90deg, #fff 80%, #F6F8FA 100%);
  box-shadow: 0 -2px 24px 0 rgba(100,140,160,0.10);
  border-radius: 20px 20px 0 0;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  left: 0; right: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110px);
}
.cookie-banner p {
  color: var(--primary);
  text-align: center;
  font-size: 1.02rem;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
  margin-top: 2px;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--pastel-blue);
  color: var(--primary);
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 500;
  padding: 9px 19px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.16s, color 0.13s, transform 0.15s;
  outline: none;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus,
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--pastel-teal);
  color: var(--secondary);
}
.cookie-settings-btn {
  background: var(--pastel-violet);
}
.cookie-settings-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,62,80,0.16);
  z-index: 2300;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalIn 0.31s cubic-bezier(.62,.12,.36,.89);
}
@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-settings-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px 22px 18px 22px;
  min-width: 300px;
  box-shadow: 0 12px 48px 0 rgba(44,62,80,0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  position: relative;
  max-width: 90vw;
}
.cookie-settings-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.cookie-category input[type='checkbox'] {
  margin-right: 6px;
  accent-color: var(--secondary);
}
.cookie-category .always-enabled {
  color: #84aec7;
  font-size: 0.97rem;
  margin-left: 2px;
}
.cookie-settings-actions {
  display: flex;
  gap: 22px;
  margin-top: 14px;
}
.cookie-settings-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--pastel-pink);
  color: var(--primary);
  font-size: 1.3rem;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-settings-close:hover {
  background: var(--pastel-blue);
}
@media (max-width: 540px) {
  .cookie-banner {
    max-width: 100vw;
    border-radius: 0;
    padding: 18px 4px 18px 4px;
  }
  .cookie-settings-content { padding: 12px 2vw 12px 2vw; min-width: 100%; }
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1050px) {
  header .container {
    flex-wrap: wrap;
    padding: 6px 10px 6px 10px;
  }
}
@media (max-width: 730px) {
  .hero, .features, .services, .cta, .about-brief, .steps, .courses, .legal, .resources, .contact {
    padding: 14px 2px 22px 2px;
    border-radius: 14px;
  }
  .footer-contact, .footer-nav, .footer-logo {
    align-items: flex-start;
    text-align: left;
  }
  .features, .cta {
    border-radius: 0;
    margin-bottom: 22px;
  }
}
