/* ===========================================================
   CSS RESET & NORMALIZE (Mobile-First)
   =========================================================== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body, html { width: 100%; min-height: 100%; }
body { background: #F5F5F2; color: #28316A; font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; vertical-align: middle; border-style: none; }
ul, ol { padding-left: 24px; margin-bottom: 0; }
li { margin-bottom: 8px; }
a { color: #28316A; text-decoration: none; transition: color 0.18s; cursor: pointer; }
a:focus { outline: 2px solid #D9C478; outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 700; color: #28316A; margin-bottom: 16px; letter-spacing: -0.5px; }
h1 { font-size: 2.375rem; line-height: 1.12; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-top: 18px; margin-bottom: 12px; }
.subtitle { color: #5A5276; font-size: 1.1rem; margin-bottom: 22px; }

/* Spacing utility classes */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(40,49,106,0.07);
  padding: 28px 22px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 26px rgba(217,196,120,0.14);
  transform: translateY(-3px) scale(1.022);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(40,49,106,0.07);
  border: 1px solid #FFEAD2;
  color: #20223e;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px rgba(217,196,120,0.11);
  border: 1.5px solid #D9C478;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(40,49,106,0.07);
  padding: 28px 22px;
  margin-bottom: 40px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Button Styles */
.cta-primary,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  background: #D9C478;
  color: #28316A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(217,196,120,0.10);
  cursor: pointer;
  letter-spacing: 0.015em;
  transition: background 0.15s, box-shadow 0.18s, color 0.2s, transform 0.16s;
  margin-top: 6px;
}
.cta-primary:hover,
.cta-primary:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: #F5F5F2;
  color: #C49700;
  box-shadow: 0 2px 16px rgba(217,196,120,0.17);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
/* For explicit link button style only */
.cta-primary {
  text-decoration: none;
  white-space: nowrap;
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 2px solid #F5F5F2;
  box-shadow: 0 3px 16px rgba(217,196,120,0.055);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 800;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px; padding-bottom: 12px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 13px;
  border-radius: 16px;
  transition: background 0.15s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFF9EA;
  color: #C49700;
}
.main-nav .cta-primary {
  margin-left: 9px;
  margin-right: 0;
  font-size: 1.05rem;
  background: #D9C478;
  color: #28316A;
  border-radius: 23px;
  padding: 8px 23px;
}

/* MOBILE MENU - Triggers and Panels */
.mobile-menu-toggle {
  display: inline-flex;
  font-size: 2.1rem;
  line-height: 1;
  background: none;
  border: none;
  color: #D9C478;
  border-radius: 50%;
  padding: 8px 12px;
  margin-left: 10px;
  transition: background 0.12s;
  z-index: 1001;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #28316A22;
  outline: 2px solid #D9C478;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1200;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.55,0,0.1,1);
  box-shadow: 2px 0 28px rgba(40,49,106,0.07);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #C49700;
  margin: 17px 23px 0 0;
  padding: 2px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ECE2C2;
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
  gap: 10px;
  padding: 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  color: #28316A;
  padding: 13px 8px 13px 0;
  border-radius: 7px;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF9EA;
  color: #C49700;
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 991px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: inline-flex !important; }
}

/* Typography and General Content */
p, ul, ol {
  font-size: 1.05rem;
  margin-bottom: 18px;
}
ul li, ol li { line-height: 1.6; }
strong { font-weight: 700; color: #28316A; }
.text-section ul li img {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin-right: 9px;
}
h2, h3 { color: #28316A; }
a { transition: color 0.13s; }

/* Footer Styles */
footer {
  padding: 36px 0 32px 0;
  background: #FFF9EA;
  border-top: 2px solid #F5F5F2;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.brand-footer img {
  height: 32px;
}
.footer-links, .contact-info-short, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 13px;
}
.footer-links a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #28316A;
  font-size: 1.01rem;
  transition: color 0.18s;
  margin-bottom: 3px;
}
.footer-links a:hover, .footer-links a:focus { color: #C49700; }
.contact-info-short img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: text-bottom;
}
.footer-social {
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.26);
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  transition: filter 0.18s, background 0.13s;
}
.footer-social img:hover, .footer-social img:focus {
  filter: grayscale(0) drop-shadow(0 2px 7px #D9C47866);
  background: #FFF3CC;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 4000;
  background: #fffbe9;
  border-top: 2px solid #D9C478;
  box-shadow: 0 -2px 26px rgba(217,196,120,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  padding: 22px 18px 16px 18px;
  animation: bannerFadeIn 0.65s cubic-bezier(0.49,0.05,0.1,1);
}
@keyframes bannerFadeIn {
  0% { transform: translateY(120px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p, .cookie-banner label {
  color: #28316A;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 7px;
}
.cookie-banner button {
  font-size: 1rem;
  padding: 7px 23px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  background: #D9C478;
  color: #28316A;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(217,196,120,0.10);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s, transform 0.12s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #C49700;
  color: #fff;
  outline: none;
  transform: scale(1.04);
}
.cookie-banner .cookie-settings {
  background: #F5F5F2;
  color: #28316A;
  border: 1px solid #D9C478;
  font-weight: 500;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFF9EA;
  color: #C49700;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,49,106,0.22);
  z-index: 4500;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.34s cubic-bezier(0.3, 0.3, 0.2, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 6px 45px rgba(40,49,106,0.08);
  padding: 30px 26px;
  width: 96vw;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: stretch;
  z-index: 4600;
}
.cookie-modal h2 {
  color: #C49700;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 9px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 1.05rem;
  color: #28316A;
}
.cookie-modal .cookie-category[disabled] {
  opacity: 0.54;
  pointer-events: none;
}
.cookie-modal .cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.cookie-modal .actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-size: 1rem;
  padding: 7px 20px;
}

/* Custom Toggle Switch for Cookies */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px; height: 22px;
}
.cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ECE2C2;
  border-radius: 20px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #D9C478;
}
.cookie-slider:before {
  position: absolute; content: "";
  height: 15px; width: 15px;
  left: 3px; bottom: 3.5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(40,49,106,0.08);
  transition: transform 0.19s cubic-bezier(0.36,0,0.66,1);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
}

/* Main Layout Responsive */
@media (max-width: 768px) {
  .container, footer .container {
    max-width: 100vw;
    padding: 0 10px;
    gap: 9px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding-top: 7px; padding-bottom: 7px;
  }
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.14rem; }
  h3 { font-size: 1rem; margin-top: 12px; }
  .text-section,
  .card {
    padding: 18px 7px;
  }
  .section {
    margin-bottom: 36px;
    padding: 25px 10px;
  }
  .footer-links, .contact-info-short, .footer-social {
    gap: 4px; margin-bottom: 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 8px;
  }
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px;
  }
  .testimonial-card {
    padding: 13px 8px;
    gap: 10px;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
}

/* Utility & Misc */
body::-webkit-scrollbar {
  width: 9px; background: #FFF9EA;
}
body::-webkit-scrollbar-thumb {
  background: #ece2c2; border-radius: 5px;
}
::-moz-selection { background: #FFE8B1; color: #28316A; }
::selection { background: #FFE8B1; color: #28316A; }

input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 15px;
  border: 1px solid #ece2c2;
  padding: 9px 15px;
  margin-bottom: 12px;
  background: #fff;
  transition: border 0.11s;
}
input:focus, textarea:focus, select:focus { border: 1.5px solid #D9C478; outline: none; }

/* Animations for micro-interactions */
a, .cta-primary, button, input[type="submit"], .testimonial-card, .card {
  transition: box-shadow 0.18s, color 0.18s, background 0.16s, border 0.17s, transform 0.15s;
}

/* Visual Hierarchy */
.section h2, .section h3, .text-section h2, .text-section h3 { margin-top: 0; }
.text-section h2 + .content-wrapper, .section h2 + .content-wrapper {
  margin-top: 3px;
}
.text-section ul, .content-wrapper ul { margin-bottom: 20px; }

/* Prevents overlapping */
.card, .testimonial-card, .text-section, .feature-item {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .feature-item, .testimonial-card {
  gap: 20px;
}

/* Accessibility: focus state */
a:focus, button:focus, .cta-primary:focus {
  outline: 2.5px solid #D9C478;
  outline-offset: 2.5px;
}
.testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(217,196,120,0.19);
}

/* Hide visually on mobile as required */
@media (max-width: 991px) {
  .main-nav { display: none !important; }
}

/* List marker style for friendly look */
ul li {
  position: relative;
  padding-left: 24px;
}
ul li::before {
  content: "";
  position: absolute;
  left: 1px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #D9C478;
  display: inline-block;
}
ul li img + * { padding-left: 2px; }

/* Remove marker for image lists */
.text-section ul li img {
  margin-left: -16px;
}
.text-section ul li img:only-child { margin-left: 0; }

/* Blog styles (for latest posts) */
.content-wrapper span {
  display: inline-block;
  color: #C49700;
  background: #FFEAD2;
  border-radius: 9px;
  padding: 2px 9px;
  font-size: 0.97em;
  margin-left: 8px;
}

/* Cards (Generic) */
.card h3 { margin-top: 0; }

/* Responsive for testimonials */
@media (max-width: 768px) {
  .testimonial-card, .card {
    padding: 11px 9px;
    gap: 8px;
  }
}

/* Z-Index stacking for overlays (cookie + menu) */
.mobile-menu, .mobile-menu-toggle { z-index: 1300; }
.cookie-banner, .cookie-modal-overlay { z-index: 4000 !important; }

/* Hide elements utility */
.hidden { display: none !important; }

/* End of style.css */
