/* RESET & BASE ============================================ */
/* Box sizing reset */
*, *:before, *:after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #FFF8EF;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFF8EF;
  color: #243976;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

/* Remove list and link defaults */
ul, ol { margin: 0; padding: 0 0 0 1.3em; }
ul li, ol li { margin-bottom: 12px; }
a { color: #48C76D; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #243976; text-decoration: underline; }

/* Typography =============================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #243976;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.18rem; }

p, li, span, label, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2c2a2c;
  font-size: 1rem;
  line-height: 1.6;
}
p { margin-top: 0; margin-bottom: 1em; }
.subheadline { font-size: 1.125rem; color: #4164b1; font-family: 'Montserrat', Arial, sans-serif; margin-bottom: 24px; }
.price { font-size: 1.1rem; color: #48C76D; font-weight: 600; margin-top: 5px; }

::-webkit-input-placeholder { color: #7f8bb1; }
::-moz-placeholder { color: #7f8bb1; }
:-ms-input-placeholder { color: #7f8bb1; }
::placeholder { color: #7f8bb1; }

/* =================== Layout & Container ================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(72,199,109,0.07);
}

/* =================== Header & Nav ======================= */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(36,57,118,0.06);
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
nav > a img {
  display: block;
  height: 48px;
  border-radius: 10px;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}
nav ul li { margin: 0; }
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 14px;
  border-radius: 8px;
  color: #243976;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #48C76D;
  color: #fff;
}
.btn-primary {
  display: inline-block;
  background: #48C76D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  padding: 13px 30px;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(72,199,109,0.14);
  cursor: pointer;
  outline: none;
  margin-left: 10px;
  transition: background 0.17s, box-shadow 0.17s, transform 0.15s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #243976;
  color: #fff;
  box-shadow: 0 4px 18px rgba(36,57,118,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* ==================== HERO SECTION ======================= */
.hero {
  background: #FFF8EF;
  padding: 54px 0 32px 0;
  border-bottom: 1px solid #fbe3cc;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  font-size: 2.4rem;
  color: #243976;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
}

/* =================== SERVICE LIST ======================== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.service-item {
  flex: 1 1 220px;
  min-width: 200px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(249,192,105,0.13);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s,transform 0.16s;
}
.service-item img {
  height: 38px;
  width: 38px;
  margin-bottom: 10px;
  background: #fff8ef;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(36,57,118,0.11);
  padding: 4px;
}
.service-item h3 {
  font-size: 1.15rem;
  color: #243976;
}
.service-item p {
  margin-bottom: 0;
}
.service-item .price {
  margin-top: auto;
  font-weight: 600;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 8px 28px rgba(236,140,62,0.15),0 2px 10px rgba(36,57,118,0.12);
  transform: translateY(-2px) scale(1.025);
}

/* ===================== CONTENT-LISTS ===================== */
ul {
  padding-left: 21px;
  margin-bottom: 1em;
}
section ul {
  margin-top: 0;
  padding-left: 16px;
}
section ul li img {
  vertical-align: middle;
  margin-right: 10px;
  height: 22px;
  width: 22px;
  border-radius: 6px;
  background: #fff8ef;
  box-shadow: 0 1px 3px rgba(72,199,109,0.11);
}
section ul li {
  margin-bottom: 8px;
  color: #243976;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffefc;
  box-shadow: 0 2px 12px rgba(36,57,118,0.09);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  margin-top: 10px;
  transition: box-shadow 0.15s;
  border-left: 5px solid #48C76D;
}
.testimonial-card p {
  color: #243976;
  font-size: 1.08rem;
  margin: 0;
}
.testimonial-card span {
  color: #EC8C3E;
  font-weight: 500;
  font-size: 0.98rem;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(249,192,105,0.13),0 2px 12px rgba(36,57,118,0.15);
}

/* ======================= CTA SECTION ======================= */
.cta-section {
  margin-bottom: 64px;
  padding: 60px 20px;
  background: #fff3e0;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(249,192,105,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.cta-section h2, .cta-section h1 { color: #243976; }
.cta-section .btn-primary {
  background: #243976;
  color: #fff;
  margin-top: 10px; 
}
.cta-section .btn-primary:hover, .cta-section .btn-primary:focus {
  background: #48C76D;
  color: #fff;
}

/* ================== CONTACT DETAILS ======================= */
.contact-details {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(72,199,109,0.10);
  padding: 24px 20px;
  margin-top: 18px;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details strong { color: #243976; }
.contact-details a { color: #48C76D; }

/* =================== FOOTER ================================== */
footer {
  background: #243976;
  color: #fff;
  margin-top: 70px;
  width: 100%;
  padding: 40px 0 10px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
footer nav ul {
  flex-direction: row;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
footer nav ul li a {
  color: #fff;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  padding: 7px 12px;
  transition: background 0.18s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  background: #48C76D;
  color: #fff;
}
.footer-contact {
  color: #fff3e0;
  font-size: 0.99rem;
  margin-top: 8px;
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.footer-contact span { color: #fff3e0; }

/* =========== MOBILE NAVIGATION (BURGER MENU) ============= */
.mobile-menu-toggle {
  display: none;
  background: #48C76D;
  color: #fff;
  font-size: 2.4rem;
  border: none;
  border-radius: 18px;
  width: 54px;
  height: 54px;
  box-shadow: 0 4px 16px rgba(72,199,109,0.13);
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 702;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: #243976; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 82vw;
  max-width: 350px;
  z-index: 1003;
  box-shadow: -2px 0 24px rgba(36,57,118,0.14);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.68,0.05,0.32,0.99);
}
.mobile-menu.open {
  transform: translateX(0%);
  box-shadow: -5px 0 32px rgba(72,199,109,0.16);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #243976;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 16px 16px 0 0;
  cursor: pointer;
  transition: color 0.15s;
  border-radius: 10px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #48C76D;
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 32px;
  margin-top: 26px;
}
.mobile-nav a {
  color: #243976;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 0;
  border-radius: 10px;
  width: 100%;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #48C76D; color: #fff; }
/* =============== Responsive burger menu icon =========== */
@media (max-width: 1024px) {
  nav ul, nav > .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
}
/* =============== END MOBILE MENU ======================== */

/* ============= COOKIE BANNER & MODAL ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 1500;
  background: #fff3e0;
  border-top: 2px solid #48C76D;
  box-shadow: 0 -4px 14px rgba(72,199,109,0.10);
  padding: 20px 19px 26px 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cookieBannerSlideIn 0.6s cubic-bezier(0.26,0.98,0.21,0.89);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #243976;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 17px;
  padding: 11px 27px;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249,192,105,0.12);
  margin-right: 5px;
  background: #48C76D;
  color: #fff;
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.cookie-btn.cookie-btn-secondary { background: #EC8C3E; color: #fff; }
.cookie-btn.cookie-btn-outline { background: #fff; color: #243976; border: 2px solid #48C76D; }
.cookie-btn:hover, .cookie-btn:focus {
  background: #243976;
  color: #fff;
  transform: scale(1.03);
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 1800;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,57,118,.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.4s cubic-bezier(0.26,0.98,0.21,0.89);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 44px rgba(249,192,105,0.15), 0 2px 14px rgba(36,57,118,0.14);
  padding: 36px 28px 28px 28px;
  min-width: 300px;
  max-width: 90vw;
  width: 480px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: cookieModalPopIn 0.5s cubic-bezier(0.32,1.08,0.26,1.01);
}
@keyframes cookieModalPopIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #243976;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #243976;
  font-weight: 400;
  cursor: pointer;
}
.cookie-toggle {
  width: 34px; height: 19px;
  background: #e5e9f2;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 8px;
}
.cookie-toggle input { display: none; }
.cookie-toggle:after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  background: #48C76D;
  border-radius: 50%;
  transition: left 0.22s, background 0.2s;
}
.cookie-toggle input:checked + & { background: #48C76D; }
.cookie-toggle input:checked + &::after { left: 17px; background: #fff; }
/* Accessibility: fallback for browsers without :has() support */
.cookie-toggle input:checked ~ span {
  background: #48C76D;
}
/* Essential always on */
.cookie-category.disabled label { color: #b1aeae; pointer-events: none; }
.cookie-category.disabled .cookie-toggle {
  background: #f4f4f4;
  cursor: not-allowed;
}

.cookie-modal .cookie-btn-group {
  margin-top: 16px;
}

/* ================= CARDS, FLEX LAYOUTS ================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(249,192,105,0.07);
  position: relative;
  padding: 26px 22px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px rgba(36,57,118,0.12),0 8px 32px rgba(249,192,105,0.09);
  transform: translateY(-2px) 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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== GENERAL SPACING ================== */
main > section, section.section {
  margin-bottom: 60px;
}

/* =================== FORMS & BUTTONS ===================== */
input, textarea {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfd4e2;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.19s;
}
input:focus, textarea:focus {
  outline: none;
  border: 1.5px solid #48C76D;
  box-shadow: 0 2px 6px rgba(72,199,109,0.11);
}
label {
  font-size: 1rem;
  color: #243976;
  margin-bottom: 6px;
  display: block;
}

/* ===================== MEDIA QUERIES ===================== */
@media (max-width: 900px) {
  .service-list {
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  .hero h1 { font-size: 1.65rem; }
  .cta-section { padding: 36px 8px; margin-bottom: 40px; border-radius: 18px; }
  .section { padding: 24px 8px; border-radius: 13px; }
  .service-list {
    flex-direction: column;
    gap: 14px;
  }
  .service-item { width: 100%; min-width: unset; border-radius: 15px; }
  .testimonial-card { border-radius: 13px; }
  .content-grid { flex-direction: column; gap: 12px; }
  .container { padding: 0 4px; }
  .footer-contact { flex-direction: column; gap: 2px; }
  .card-container { gap: 12px; }
  .card { padding: 17px 9px; border-radius: 13px; }
  .text-image-section { flex-direction: column; gap: 12px; }
}
@media (max-width: 500px) {
  .cookie-modal { min-width: unset; padding: 22px 6px; width: 97vw; border-radius: 12px; }
  .cta-section { padding: 20px 1px; margin-bottom: 20px; }
  .section { padding: 12px 2px; border-radius: 6px; }
  .card { padding: 8px 3px; border-radius: 7px; }
}

/* ======================== Z-INDEX ======================== */
header { position: relative; z-index: 40; }
.mobile-menu-toggle { z-index: 702; }
.mobile-menu { z-index: 1003; }
.cookie-banner { z-index: 1500; }
.cookie-modal-overlay { z-index: 1800; }

/* ======================== MISC =========================== */
.text-section { margin-bottom: 18px; margin-top: 2px; }

/* =============== Accessibility & Focus States =========== */
a, button, .btn-primary, .cookie-btn, .mobile-menu-close, .mobile-nav a {
  outline: none;
}
a:focus-visible, .btn-primary:focus-visible, .cookie-btn:focus-visible, .mobile-menu-close:focus-visible, .mobile-nav a:focus-visible {
  box-shadow: 0 2px 8px #48C76D44;
  outline: 2.5px solid #48C76D;
}

/* ===================== END OF CSS ========================== */
