/* ========================================================
   CSS RESET, NORMALIZE & BASE
======================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F1F6F4;
  color: #29536C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #29536C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #29536C;
  outline-offset: 4px;
}

/* ==========================
   TYPOGRAPHY
========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: 0.012em;
}
h1 { font-size: 2.25rem; color: #E4A200; line-height: 1.13; }
h2 { font-size: 1.75rem; color: #29536C; }
h3 { font-size: 1.25rem; color: #B37D00; }
h4 { font-size: 1.13rem; }
p, ul, ol, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #294A6C;
}
strong { font-weight: bold; color: #29536C; }
.tagline {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.13rem;
  color: #B37D00;
  margin-bottom: 1.5em;
}
.text-section ul, .text-section ol {
  padding-left: 1.2em;
  margin-top: 0.6em;
  margin-bottom: 1.2em;
}
.text-section ul li,
.text-section ol li { margin-bottom: 0.5em; list-style: disc; }

/* ==========================
   CONTAINERS & LAYOUT
========================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section { padding: 32px 0 28px 0; margin-bottom: 36px; }
}

/* ==========================
   HEADER & NAVIGATION
========================== */
header {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(41, 83, 108, 0.05), 0 1.5px 0 #E4A200;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1001;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat',sans-serif;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 16px;
  color: #29536C;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: #F1F6F4;
  color: #E4A200;
  text-decoration: underline wavy #E4A200;
}

/* CTA BUTTON */
.btn-primary {
  background: #E4A200;
  color: #fff;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 13px 38px;
  font-size: 1.13rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(228,162,0,0.13);
  margin-left: 20px;
  transition: background 0.18s, transform 0.12s, color 0.18s, box-shadow 0.14s;
  position: relative;
  z-index: 2;
}
.btn-primary:hover, .btn-primary:focus {
  background: #B37D00;
  color: #fff;
  transform: scale(1.05) translateY(-1px) rotate(-1.4deg);
  box-shadow: 0 6px 28px rgba(228,162,0,0.18);
}

/* ==========================
   MOBILE NAVIGATION
========================== */
.mobile-menu-toggle {
  display: none;
  background: #E4A200;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 1102;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #29536C;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 100vh;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1103;
  box-shadow: 2px 0 24px rgba(41, 83, 108, 0.13);
  transition: width 0.32s cubic-bezier(.52,1.98,.64,.92);
  padding: 0;
}
.mobile-menu.open {
  width: 100vw;
  padding: 38px 24px 24px 24px;
}
.mobile-menu-close {
  background: #E4A200;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 1201;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #29536C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 70px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  color: #29536C;
  padding: 15px 10px 15px 7px;
  border-radius: 24px;
  transition: background 0.2s, color 0.18s 0.04s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1F6F4;
  color: #E4A200;
  text-decoration: underline wavy #E4A200;
}

@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==========================
   HERO & SECTION LAYOUTS
========================== */
section {
  width: 100%;
  background: #F1F6F4;
  border-radius: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 7px rgba(41,83,108,0.07);
  position: relative;
}
section:nth-child(odd) {
  background-color: #fffcee;
}

@media (max-width: 768px) {
  .content-wrapper { gap: 18px; }
  section {
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(41,83,108,0.05);
  }
}

/* ==========================
   FEATURE GRIDS & CARDS
========================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: space-between;
}
.feature-grid > li {
  background: #fff;
  border-radius: 22px;
  padding: 30px 22px;
  box-shadow: 0 6px 24px rgba(41, 83, 108, 0.06);
  flex: 1 1 220px;
  min-width: 210px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.16s, transform 0.13s;
  border: 2px solid #F1F6F4;
}
.feature-grid > li:hover, .feature-grid > li:focus-within {
  box-shadow: 0 12px 36px 0 rgba(228,162,0,0.17), 0 4px 18px rgba(41, 83, 108, 0.11);
  border: 2px solid #E4A200;
  transform: translateY(-4px) scale(1.02) rotate(-2deg);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: 0 4px 16px rgba(41, 83, 108, 0.08);
  transition: box-shadow 0.16s, transform 0.1s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 34px rgba(41,83,108,0.14);
  transform: translateY(-2px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > li { min-width: 0; }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* ==========================
   SERVICES
========================== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.services-list li {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 17px rgba(41,83,108,0.07);
  padding: 18px 20px;
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 20px;
  color: #29536C;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  transition: box-shadow 0.16s, transform 0.1s;
  border: 2px solid #F1F6F4;
}
.services-list li:hover, .services-list li:focus-within {
  box-shadow: 0 10px 34px 0 rgba(228,162,0,0.10), 0 4px 17px rgba(41, 83, 108, 0.13);
  border: 2px solid #B37D00;
  transform: translateY(-3px) scale(1.02) rotate(1deg);
}
.services-list li strong {
  color: #E4A200;
  font-weight: 700;
}
@media (max-width: 768px) {
  .services-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================
   TESTIMONIALS
========================== */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 23px rgba(41, 83, 108, 0.10);
  min-width: 260px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  border-left: 7px solid #E4A200;
  transition: box-shadow 0.14s, transform 0.12s;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #29536C;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #B37D00;
  font-style: normal;
  font-family: 'Montserrat', sans-serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 9px 37px rgba(228,162,0,0.15);
  transform: scale(1.025) rotate(1.2deg);
}
@media (max-width: 768px) {
  .testimonials-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card { min-width: 0; }
}

/* ==========================
   FOOTER
========================== */
footer {
  background: #29536C;
  color: #fff;
  padding: 34px 0 20px 0;
  box-shadow: 0 -2px 20px rgba(41, 83, 108, 0.10);
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-direction: row;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff;
  color: #29536C;
}
.footer-contact address,
.footer-contact p {
  color: #F1F6F4;
  font-size: 0.96rem;
  margin-bottom: 7px;
}
.footer-contact a {
  color: #E4A200;
  font-weight: 600;
  transition: color 0.12s;
}
.footer-contact a:hover, .footer-contact a:focus { color: #fff; }
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  footer nav { margin-bottom: 8px; }
}

/* ==========================
   VARIOUS & FORMATTING
========================== */
.text-section {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul { margin-bottom: 0; }
.contact-form-info ul {
  margin-top: 8px;
  margin-bottom: 12px;
}
.contact-form-info ul li { list-style-type: circle; padding-left: 4px; }

/* ==========================
   ANIMATIONS & MICROINTERACTIONS
========================== */
.btn-primary, .mobile-menu-toggle, .mobile-menu-close, .card, .services-list li, .feature-grid > li, .testimonial-card {
  transition: box-shadow 0.17s, background 0.16s, color 0.16s, transform 0.13s;
}
section, .card, .services-list li, .feature-grid > li, .testimonial-card {
  animation: popIn 0.7s cubic-bezier(.4,1.4,.5,1) backwards;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.95) translateY(22px); }
  100% { opacity: 1; transform: none; }
}

/* Fun hover wiggle for cards */
.feature-grid > li:hover, .feature-grid > li:focus-within, .services-list li:hover, .services-list li:focus-within, .card:hover, .card:focus-within {
  animation: wiggle 0.38s ease;
}
@keyframes wiggle {
  0% { transform: scale(1.02) rotate(-3deg); }
  25% { transform: scale(1.01) rotate(2deg); }
  60% { transform: scale(1.03) rotate(-1deg); }
  100% { transform: scale(1.025) rotate(0deg); }
}

/* ==========================
   PLAYFUL VISUAL ELEMENTS
========================== */
section::before {
  content:'';
  display:block;
  position:absolute;
  top:-18px; left:28px;
  width:54px; height:54px;
  border-radius:27px;
  background: #E4A200;
  opacity: 0.09;
  z-index: 0;
  animation: floaty 8s ease-in-out infinite;
}
section:nth-child(even)::before {
  left:auto; right:32px; top:-16px;
  background: #B37D00;
  opacity:0.075;
}
@keyframes floaty {
  0% { transform: translateY(0) scale(1.08); }
  35% { transform: translateY(-12px) scale(0.96); }
  60% { transform: translateY(9px) scale(1.09); }
  100% { transform: translateY(0) scale(1.08); }
}

.card::after, .feature-grid > li::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 9px; right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E4A200;
  opacity: 0.06;
  z-index: 1;
}

/* ==========================
   COOKIE BANNER & MODAL
========================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: #29536C;
  box-shadow: 0 -6px 32px rgba(41,83,108,0.19);
  padding: 22px 24px 22px 24px;
  border-top: 4px solid #E4A200;
  z-index: 1600;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  animation: popIn 0.63s cubic-bezier(.4,1.4,.5,1) backwards;
}
.cookie-banner p {
  color: #29536C;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: #E4A200;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.17s, transform 0.15s, color 0.15s;
  box-shadow: 0 2px 10px rgba(41,83,108,0.13);
}
.cookie-btn:nth-child(2) { background: #B37D00; }
.cookie-btn:nth-child(3) { background: #29536C; }
.cookie-btn:hover, .cookie-btn:focus { background: #29536C; color: #fff; transform: translateY(-1px) scale(1.06); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 11px; padding: 17px 12px; }
  .cookie-buttons { align-items: flex-start; gap: 10px; }
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(41, 83, 108, 0.26);
  backdrop-filter: blur(1.5px);
  z-index: 1701;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.23s cubic-bezier(.4,1.4,.5,1) backwards;
}
.cookie-modal-content {
  background: #fff;
  color: #29536C;
  padding: 34px 26px;
  border-radius: 22px;
  min-width: 285px;
  max-width: 94vw;
  box-shadow: 0 8px 44px rgba(41,83,108,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 { color: #E4A200; }
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: #E4A200;
  color: #fff;
  width: 40px; height: 40px; border-radius: 20px;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #29536C; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  border: 1.5px solid #F1F6F4;
  background: #F1F6F4;
  border-radius: 12px;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: #29536C;
  position: relative;
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
}
.cookie-toggle input[type='checkbox'] {
  width: 38px;
  height: 22px;
  appearance: none;
  background: #E4A200;
  border-radius: 22px;
  transition: background 0.13s;
  position: relative;
  outline: none;
  cursor: pointer;
}
.cookie-toggle input[type='checkbox']:checked {
  background: #B37D00;
}
.cookie-toggle input[type='checkbox']::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.13s;
  transform: translateX(0);
  box-shadow: 0 1px 9px rgba(41,83,108,0.12);
}
.cookie-toggle input[type='checkbox']:checked::after {
  left: 19px;
}

/* ==========================
   SCROLLBAR (for fun accent)
========================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F1F6F4;
}
::-webkit-scrollbar-thumb {
  background: #E4A200;
  border-radius: 7px;
  border: 2.5px solid #F1F6F4;
}

/* ==========================
   SPACING & RESPONSIVE
========================== */
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.22rem; }
  .section { padding: 17px 0px; }
  .feature-grid > li, .services-list li, .card, .testimonial-card { padding: 16px 10px; }
}
@media (max-width: 380px) {
  .btn-primary, .cookie-btn { font-size: 0.94rem; padding: 8px 13px; }
  .cookie-banner { padding: 9px 2px; }
}

/* ==========================
   ACCESIBILITY IMPROVEMENTS
========================== */
a:focus-visible, button:focus-visible {
  outline: 2px dashed #E4A200;
  outline-offset: 2px;
}

/* ==========================
   PRINT STYLES (minimal, optional)
========================== */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  .container { width: 100% !important; }
}
