/* RESET & BASE ---------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #fff;
  color: #232C33;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4,0,0.2,1);
}
button {
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  border: none;
  background: none;
  cursor: pointer;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* TYPOGRAPHY -------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: #232C33;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.55rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 800;
  color: #FFD166;
}
.text-section {
  font-size: 1rem;
  margin-bottom: 24px;
  color: #232C33;
}

/* LAYOUT CONTAINERS ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.section,
section:not(.hero):not(.testimonials):not(.call-to-action),
section:not(.hero):not(.testimonials):not(.cta):not(.call-to-action) {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(35, 44, 51, 0.08);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
/* Flexbox grid patterns */
.feature-grid,
.team-grid,
.card-container,
.content-grid,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card-container { gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(35,44,51,0.08);
  padding: 24px 20px;
  transition: transform 0.22s cubic-bezier(.17,.67,.83,.67), box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 28px 0 rgba(255,209,102,0.12);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFD166;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(35,44,51,0.07);
  color: #232C33;
  font-size: 1.07rem;
  position: relative;
}
.testimonial-card span {
  margin-left: 18px;
  font-weight: 600;
  color: #232C33;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  background: #f8fafd;
  border-radius: 12px;
  padding: 30px 18px 22px 18px;
  min-width: 220px;
  max-width: 350px;
  box-shadow: 0 2px 12px 0 rgba(124, 144, 130, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: 0 8px 26px 0 rgba(255,209,102,0.18);
  transform: translateY(-3px) scale(1.03);
}
.team-member {
  flex: 1 1 220px;
  background: #232C33;
  color: #fff;
  border-radius: 14px;
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px 0 rgba(35,44,51,0.17);
  transition: background 0.2s, box-shadow 0.2s;
}
.team-member:hover {
  background: #FFD166;
  color: #232C33;
  box-shadow: 0 8px 24px 0 rgba(124,144,130,0.18);
}

/* BLOG ------------------------------------------------------------- */
.blog-list {
  flex-direction: column;
  gap: 24px;
}
.blog-list article {
  background: #f8fafd;
  padding: 20px 18px;
  border-radius: 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 7px 0 rgba(255,209,102,0.072);
  transition: box-shadow 0.2s;
}
.blog-list article:hover {
  box-shadow: 0 6px 18px 0 rgba(255,209,102, 0.15);
}
.blog-categories {
  font-size: 1rem;
  color: #7C9082;
  margin: 18px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-categories span {
  background: #232C33;
  color: #FFD166;
  padding: 4px 13px;
  border-radius: 9px;
  font-size: 0.98rem;
  font-weight: 700;
}
.subscription-form {
  background: #7C9082;
  color: #fff;
  padding: 22px 16px;
  border-radius: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* HERO, CTA, CALL-TO-ACTION ---------------------------------------------- */
.hero {
  background: #232C33;
  color: #FFD166;
  padding: 80px 0 64px 0;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: 0 6px 30px 0 rgba(35,44,51,0.19);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1,
.hero p {
  color: #FFD166;
}
.hero a.cta {
  background: #FFD166;
  color: #232C33;
  font-weight: 900;
  margin-top: 14px;
}
.call-to-action,
.cta {
  background: #FFD166;
  color: #232C33;
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(255,209,102,0.18);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
.call-to-action h2, .cta h2, .cta p { color: #232C33; }

/* NAVIGATION ------------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(35,44,51,0.04);
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
  gap: 20px;
  min-height: 68px;
  position: relative;
}
.logo-link img {
  height: 44px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #232C33;
  font-size: 1.08rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  letter-spacing: 0.03em;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #FFD166;
  color: #232C33;
}
.main-nav .cta.primary {
  display: inline-block;
  margin-left: 18px;
}

/* BUTTONS & CTAs --------------------------------------------------------- */
.cta,
.cta.primary,
button.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #232C33;
  background: #FFD166;
  border-radius: 8px;
  padding: 13px 32px;
  margin-top: 12px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(35,44,51,0.13);
  transition: box-shadow 0.16s, background 0.16s, color 0.16s, transform 0.11s;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
}
.cta.primary {
  background: #232C33;
  color: #FFD166;
  border: 2px solid #FFD166;
}
.cta:hover, .cta.primary:hover, button.cta:hover, .cta:focus, .cta.primary:focus {
  box-shadow: 0 8px 26px 0 rgba(124,144,130,0.13);
  background: #FFD166;
  color: #232C33;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFD166;
  color: #232C33;
  border-color: #232C33;
}

/* FOOTER ------------------------------------------------------------- */
footer {
  background: #232C33;
  color: #FFD166;
  padding: 40px 0 16px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -2px 12px 0 rgba(35, 44, 51, 0.18);
  margin-top: 60px;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  flex-wrap: wrap;
}
.footer-content img {
  height: 38px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: #FFD166;
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #7C9082;
}
.footer-contact span {
  color: #FFD166;
  font-size: 0.96rem;
  font-weight: 500;
}

/* COOKIE CONSENT BANNER -------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #232C33;
  color: #FFD166;
  padding: 26px 16px 18px 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -3px 24px 0 rgba(35,44,51, 0.28);
  animation: fadeInBottom 0.6s cubic-bezier(.32,2,.37,1) 0s 1;
}
@keyframes fadeInBottom {
  0% { opacity: 0; transform: translateY(100px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #FFD166;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #232C33;
  background: #FFD166;
  border-radius: 7px;
  padding: 9px 23px;
  margin: 0 3px;
  min-width: 120px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(124, 144, 130, 0.17);
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #232C33;
  border: 1.5px solid #FFD166;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFD166;
  color: #232C33;
  box-shadow: 0 8px 20px 0 rgba(255,209,102,.11);
  outline: none;
}

/* COOKIE CONSENT MODAL --------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35,44,51,0.77);
  animation: fadeInBg 0.21s;
}
@keyframes fadeInBg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #232C33;
  border-radius: 20px;
  max-width: 380px;
  width: 90%;
  padding: 38px 24px 28px 24px;
  box-shadow: 0 4px 40px 0 rgba(35,44,51,0.33);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInBox 0.4s cubic-bezier(.52,2,.57,1.1);
}
@keyframes fadeInBox {
  0% { opacity: 0; transform: scale(0.82); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h3 {
  color: #232C33;
  margin-bottom: 12px;
  font-size: 1.23rem;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.02rem;
}
.cookie-modal-content .switch {
  width: 48px;
  height: 26px;
  border-radius: 20px;
  background: #232C33;
  margin-left: auto;
  position: relative;
  transition: background 0.13s;
}
.cookie-modal-content .switch input {
  display: none;
}
.cookie-modal-content .slider {
  position: absolute;
  cursor: pointer;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background: #FFD166;
  box-shadow: 0 2px 7px 0 rgba(35,44,51,0.1);
  transition: transform 0.18s;
}
.cookie-modal-content .switch input:checked + .slider {
  transform: translateX(20px);
}
.cookie-modal-content .switch.disabled {
  background: #7C9082;
  cursor: not-allowed;
}
.cookie-modal-content .switch.disabled .slider {
  background: #D3D6D9;
}
.cookie-modal-content .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 13px;
}
.cookie-modal-content button {
  background: #FFD166;
  color: #232C33;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 6px;
  border: none;
  margin: 0 2px;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: #232C33;
  color: #FFD166;
}
.cookie-modal-content .modal-close {
  position: absolute;
  right: 19px;
  top: 13px;
  font-size: 2rem;
  background: transparent;
  color: #7C9082;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}
.cookie-modal-content .modal-close:hover, .cookie-modal-content .modal-close:focus {
  color: #FFD166;
  outline: none;
}

/* MOBILE NAVIGATION ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  font-size: 2.11rem;
  background: #FFD166;
  color: #232C33;
  border: none;
  border-radius: 9px;
  padding: 6px 19px;
  margin-left: 17px;
  cursor: pointer;
  z-index: 130;
  transition: box-shadow 0.15s, background 0.12s, color 0.12s;
  box-shadow: 0 2px 11px 0 rgba(255,209,102,0.12);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #232C33;
  color: #FFD166;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #232C33;
  color: #FFD166;
  z-index: 1400;
  transform: translateX(-100vw);
  transition: transform 0.44s cubic-bezier(0.7,0,0.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 28px;
  padding-left: 0;
  box-shadow: 6px 0 44px 0 rgba(35,44,51,0.21);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #FFD166;
  font-size: 2.2rem;
  border: none;
  margin-right: 32px;
  margin-bottom: 9px;
  margin-top: 5px;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #7C9082;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  padding: 20px 44px;
  width: 100%;
}
.mobile-nav a {
  color: #FFD166;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid #FFD16633;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #232C33;
  background: #FFD166;
  border-radius: 5px;
  outline: none;
}
@media (max-width: 1023px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* RESPONSIVE & MOBILE FIRST ---------------------------------------------- */
@media (max-width: 900px) {
  .feature-grid, .team-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-item, .team-member {
    min-width: 170px;
    padding: 23px 12px 17px 12px;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .footer-nav {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 60px 0 32px 0; }
  .section,
  section:not(.hero):not(.testimonials):not(.call-to-action),
  section:not(.hero):not(.testimonials):not(.cta):not(.call-to-action) {
    padding: 28px 10px;
    margin-bottom: 30px;
  }
  .call-to-action, .cta {
    padding: 28px 10px;
    border-radius: 14px;
    margin-bottom: 30px;
  }
  .feature-grid, .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 12px 11px;
    font-size: 1rem;
    min-width: 0;
  }
  .feature-item, .team-member {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 14px 11px 13px 11px;
  }
  .blog-list {
    gap: 15px;
  }
  .blog-categories span {
    padding: 2px 7px;
    font-size: 0.91rem;
  }
  .footer-content {
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero .container, .call-to-action .container { padding: 0 3vw; }
  h1 { font-size: 1.13rem; }
  .cta, .cta.primary, button.cta {
    font-size: 0.99rem;
    padding: 8px 16px;
    margin-top: 7px;
    border-radius: 6px;
  }
  .section,
  section:not(.hero):not(.testimonials):not(.call-to-action) {
    padding: 11px 2px;
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .call-to-action, .cta {
    padding: 13px 2px;
    border-radius: 8px;
  }
  .footer-content img {
    height: 28px;
  }
}

/* UTILITIES ------------------------------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.text-center { text-align: center !important; }
.flex-between { justify-content: space-between !important; }
.flex-col { flex-direction: column !important; }

/* ANIMATIONS / MICRO-INTERACTIONS --------------------------------------- */
a, .cta, .feature-item, .team-member, .card, .testimonial-card {
  transition: color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.20s;
}
a:focus, button:focus {
  outline: 2px solid #FFD166;
  outline-offset: 2px;
}

/* Z-INDEX FIXES --------------------------------------------------------- */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1200; }

/* PRINT ------------------------------------------------------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #232C33 !important; }
}
