/* --- CSS RESET & BASE STYLES --- */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FEF9F1;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #02446B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6C837;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6, .cta-button {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p, li, .service-price {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #21272f;
}
p { margin-bottom: 14px; }

@media (min-width: 769px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

/* Section base spacing (MANDATORY) */
.section,
.hero,
.features,
.about,
.contact,
.cta,
.legal,
.confirmation,
.testimonials,
.services {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section,
  .hero,
  .features,
  .about,
  .contact,
  .cta,
  .legal,
  .confirmation,
  .testimonials,
  .services {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

/* FLEXBOX PATTERNS (MANDATORY) */
.card-container,
.feature-grid,
.service-list,
.blog-list,
.case-study-list,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .card-container,
  .feature-grid,
  .service-list,
  .blog-list,
  .case-study-list,
  .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .feature-grid, .service-list, .blog-list,
  .case-study-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- NAVIGATION --- */
header {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 8px rgba(2,68,107,0.07);
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  justify-content: flex-start;
}
.main-nav img {
  height: 42px;
  margin-right: 8px;
}
.main-nav a {
  padding: 6px 18px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
  color: #02446B;
  background: none;
}
.main-nav a.cta-button {
  background: #F6C837;
  color: #1D2228;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(246,200,55,0.15);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  padding: 10px 30px;
  margin-left: 18px;
  transition: background 0.15s, box-shadow 0.15s, color 0.1s;
}
.main-nav a.cta-button:hover {
  background: #FFDE56;
  color: #02446B;
  box-shadow: 0 4px 18px rgba(246,200,55,0.21);
}
.main-nav a:hover {
  color: #F6C837;
  background: rgba(2,68,107,0.06);
}
.main-nav a.active {
  color: #02446b;
  background: #f1eddf;
}

/* Hamburger button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 19px;
  background: #F6C837;
  color: #1D2228;
  font-size: 2.0rem;
  border: none;
  border-radius: 14px;
  padding: 4px 16px 4px 11px;
  cursor: pointer;
  z-index: 41;
  transition: background 0.14s;
  box-shadow: 0 2px 8px rgba(246,200,55,0.16);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFDE56;
  outline: 2px solid #1D2228;
}

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

/* Mobile menu base */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,34,40, 0.96);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #F6C837;
  font-size: 2.3rem;
  border: none;
  position: absolute;
  top: 20px;
  right: 26px;
  z-index: 1011;
  cursor: pointer;
  transition: color 0.17s;
  padding: 0 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFFDE6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 78px;
  width: 100%;
  gap: 26px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: none;
  padding: 11px 0 11px 10px;
  border-radius: 12px;
  transition: background 0.15s, color 0.13s;
  min-width: 90vw;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #F6C837;
  color: #1D2228;
}

/* --- HERO SECTIONS --- */
.hero {
  background: linear-gradient(109deg, #FFFDE6 20%, #F8C86C 98%);
  background-color: #FFFDE6;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 40px rgba(246,200,55,0.12);
  text-align: left;
  margin-bottom: 60px;
  padding: 54px 0 54px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #02446B;
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.18rem;
  color: #1D2228;
  max-width: 600px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .hero { padding: 32px 0 32px 0; border-radius: 0; }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 1.00rem;
  }
}

/* --- FEATURES & LISTS --- */
.features {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(2,68,107,0.07);
}
.feature-grid > div {
  flex: 1 1 250px;
  background: #FEF5D0;
  border-radius: 16px;
  padding: 23px 20px;
  box-shadow: 0 2px 8px rgba(246,200,55,.08);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 240px;
  position: relative;
  transition: box-shadow 0.21s;
  border: 2.5px solid #FFFDE6;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 32px rgba(246,200,55,0.22), 0 0 0 2px #F6C837;
  z-index: 2;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature-grid h3 {
  margin-bottom: 4px;
}
.features ul {
  font-size: 1.05rem;
  margin-left: 22px;
  color: #02446B;
}
.features ul li {
  margin-bottom: 12px;
  list-style: disc outside;
}

/* --- SERVICES --- */
.services .service-list > div {
  flex: 1 1 220px;
  background: #FEF5D0;
  border-radius: 16px;
  padding: 23px 20px;
  box-shadow: 0 2px 8px rgba(2,68,107,0.08);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  position: relative;
  transition: box-shadow 0.19s;
}
.services .service-list > div:hover {
  box-shadow: 0 6px 20px rgba(2,68,107,0.19), 0 0 0 2px #F6C837;
  z-index: 2;
}
.service-price {
  background: #02446B;
  color: #fff;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 15px;
  border-radius: 16px;
  margin-top: 4px;
  align-self: flex-end;
}

.blog-list article {
  flex: 1 1 280px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(2,68,107,0.08);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.18s;
}
.blog-list article h3 {
  color: #02446B;
  font-size: 1.18rem;
  margin-bottom: 2px;
}
.blog-list article a {
  align-self: flex-start;
  background: #F6C837;
  padding: 8px 19px;
  border-radius: 15px;
  color: #1D2228;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 7px;
  transition: background 0.16s, color 0.14s;
}
.blog-list article a:hover {
  background: #02446B;
  color: #FFFDE6;
}
.blog-list article:hover {
  box-shadow: 0 6px 22px rgba(246,200,55,0.16), 0 0 0 2px #F6C837;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #FEF5D0;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(2,68,107,0.09);
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.testimonial-card {
  background: #fff;
  color: #1D2228;
  box-shadow: 0 3px 12px rgba(2,68,107,0.09);
  border-radius: 22px;
  padding: 28px 24px;
  margin-bottom: 0;
  margin-right: 0;
  max-width: 410px;
  min-width: 240px;
  border-left: 8px solid #F6C837;
  position: relative;
  flex: 1 1 320px;
  transition: box-shadow 0.21s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 38px rgba(246,200,55,0.21);
  border-color: #02446B;
}
.testimonial-card p {
  color: #1D2228;
  font-size: 1.04rem;
  font-style: italic;
  margin-bottom: 13px;
}
.testimonial-card strong {
  color: #02446B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
}
.testimonials .client-logos {
  display: flex;
  gap: 30px;
  margin-top: 22px;
  justify-content: flex-start;
  align-items: center;
}

/* --- CONTACT DETAILS --- */
.contact-details {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  color: #02446B;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(2,68,107,0.08);
}
.contact-details a {
  color: #F6C837;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.13s;
}
.contact-details a:hover {
  color: #02446B;
}

/* --- CTA BUTTONS --- */
.cta-button, .cookie-accept, .cookie-decline, .cookie-settings {
  background: #F6C837;
  color: #1D2228;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  border: none;
  border-radius: 24px;
  padding: 14px 34px;
  box-shadow: 0 2px 10px rgba(246,200,55,0.11);
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.13s, box-shadow 0.18s;
  margin-bottom: 0;
  display: inline-block;
}
.cta-button:focus, .cta-button:hover {
  background: #02446B;
  color: #FFFDE6;
  box-shadow: 0 5px 20px rgba(2,68,107,0.15);
}

/* --- CARD DESIGN --- */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(2,68,107,0.08);
  padding: 25px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(246,200,55,0.13);
}

/* --- LEGAL SECTIONS --- */
.legal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 16px rgba(2,68,107,0.07);
}
.legal h1 { color: #02446B; }
.legal h2 { color: #F6C837; margin-top: 32px; }
.legal ul li {
  list-style: disc outside;
  margin-bottom: 9px;
}

.confirmation {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(2,68,107,0.10);
}
.confirmation ul {
  margin-bottom: 28px;
}

/* --- FOOTER --- */
footer {
  background: #02446B;
  color: #fff;
  padding: 40px 0 20px 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -3px 22px rgba(2,68,107,0.13);
  margin-top: 80px;
  width: 100%;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-menu a {
  color: #FFFDE6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  border-radius: 9px;
  padding: 3px 8px;
  transition: background 0.16s, color 0.13s;
}
.footer-menu a:hover {
  background: #F6C837;
  color: #02446B;
}
.brand-footer img {
  width: 56px;
  display: block;
  margin: 0 auto 16px auto;
}
.legal-links {
  font-size: 0.96rem;
  color: #FFFDE6;
  align-self: flex-end;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .brand-footer img {
    margin: 18px 0;
  }
}
@media (max-width: 600px) {
  footer { padding: 28px 0 18px 0; border-radius: 0; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #1D2228;
  color: #F6C837;
  box-shadow: 0 -2px 32px rgba(2,68,107,0.15);
  padding: 28px 18px 28px 18px;
  z-index: 2000;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-radius: 20px 20px 0 0;
  animation: slideUpCookie 0.5s ease;
}
@keyframes slideUpCookie {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 0 200px;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
}
.cookie-accept, .cookie-decline, .cookie-settings {
  min-width: 44px;
  min-height: 38px;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
  margin-right: 0;
}
.cookie-decline {
  background: #fff;
  color: #02446B;
  border: 2px solid #F6C837;
  transition: background 0.13s, color 0.11s;
}
.cookie-decline:hover, .cookie-decline:focus {
  background: #02446B;
  color: #F6C837;
}
.cookie-settings {
  background: #FFE68A;
  color: #02446B;
}
@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    border-radius: 13px 13px 0 0;
    padding: 16px 7px 19px 7px;
  }
  .cookie-banner .cookie-actions { gap: 7px; }
}

/* Cookie consent modal */
.cookie-modal-overlay {
  background: rgba(29,34,40, 0.85);
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1D2228;
  padding: 38px 35px 32px 35px;
  border-radius: 22px;
  box-shadow: 0 5px 40px rgba(2,68,107,0.24);
  min-width: 300px;
  max-width: 95vw;
  max-height: 84vh;
  overflow-y: auto;
}
.cookie-modal h2 {
  color: #02446B;
  font-size: 1.33rem;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FEF5D0;
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 1.07rem;
}
.cookie-category [type="checkbox"] {
  accent-color: #F6C837;
  width: 24px;
  height: 24px;
}
.cookie-category .always-on {
  color: #1D2228;
  font-size: 0.98rem;
  background: #F6C837;
  border-radius: 16px;
  padding: 2px 14px;
  font-weight: 600;
}
.cookie-modal .modal-actions {
  padding-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 28px;
  right: 24px;
  background: none;
  border: none;
  color: #02446B;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2110;
  padding: 0 4px;
}
.cookie-modal-close:hover {
  color: #F6C837;
}

@media (max-width: 460px) {
  .cookie-modal {
    padding: 17px 7px 17px 7px;
    border-radius: 9px;
  }
}

/* --- ARTISTIC ACCENTS & EFFECTS --- */
.section, .hero, .testimonials, .about, .contact, .confirmation, .features, .cta, .services {
  position: relative;
  overflow: visible;
}
.section:before, .about:before, .testimonials:before, .features:before, .confirmation:before, .services:before {
  content: '';
  display: block;
  position: absolute;
  left: -36px;
  top: -36px;
  width: 60px;
  height: 60px;
  border-radius: 40% 50% 60% 40%;
  background: #FFE68A;
  opacity: 0.13;
  z-index: 1;
}
.section:after, .about:after, .testimonials:after, .features:after, .confirmation:after, .services:after {
  content: '';
  display: block;
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 45px;
  height: 45px;
  border-radius: 30% 50% 30% 60%;
  background: #F6C837;
  opacity: 0.17;
  z-index: 1;
}

/* --- ANIMATIONS / MICRO-INTERACTIONS --- */
.cta-button, .cookie-accept, .cookie-decline, .cookie-settings, .main-nav a, .feature-grid > div,
.services .service-list > div, .testimonial-card, .blog-list article, .footer-menu a {
  transition: box-shadow 0.22s, background 0.18s, color 0.13s, transform 0.18s;
}
.cta-button:hover, .cookie-accept:hover, .cookie-decline:hover, .cookie-settings:hover, .main-nav a.cta-button:hover {
  transform: translateY(-3px) scale(1.03);
}

.testimonial-card:hover {
  transform: translateY(-4px) scale(1.018);
}
.feature-grid > div:hover, .services .service-list > div:hover, .blog-list article:hover {
  transform: translateY(-4px) scale(1.021);
}

/* --- UNIQUE ELEMENTS --- */
.hero h1, .about h2, .confirmation h1 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  /* Unique artistic underline */
  position: relative;
  z-index: 4;
}
.hero h1:after, .about h2:after, .confirmation h1:after {
  content: '';
  display: block;
  width: 70px;
  height: 7px;
  border-radius: 18px 9px 14px 3px;
  background: #F6C837;
  opacity: 0.63;
  margin-top: 7px;
}

/* --- CUSTOM SCROLLBAR (FOR MODALS etc.) --- */
::-webkit-scrollbar { width: 6px; background: #f6f6ef; }
::-webkit-scrollbar-thumb { background: #F6C837; border-radius: 4px; }

/* --- RESPONSIVE FONTS FOR SMALL SCREENS --- */
@media (max-width: 500px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1.01rem; }
  .cta-button, .cookie-accept, .cookie-decline, .cookie-settings {
    font-size: 0.88rem;
    padding: 9px 18px;
  }
}

/* --- SPACING UTILITIES (OPTIONAL, FOR EDGE CASES) --- */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-40 { margin-top: 40px !important; }

/* --- Z-INDEX LAYERS MANAGEMENT --- */
header, .mobile-menu-toggle { z-index: 99; }
main { z-index: 2; position: relative; }
footer { z-index: 8; position: relative; }

/* --- PRINT/ACCESSIBILITY --- */
@media print { 
  .main-nav, .mobile-menu-toggle, .mobile-menu, footer, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main { padding: 0; }
}
