/* ==========================================================================
   CSS RESET & NORMALIZATION
   ========================================================================== */
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,:before,:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FAFAF5;
  color: #21334F;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
/* ==========================================================================
   ROOT/BRAND COLORS & TYPOGRAPHY
   ========================================================================== */
:root {
  --color-primary: #21334F;
  --color-secondary: #F4E04A;
  --color-accent: #FFFFFF;
  --color-bg: #FAFAF5;
  --color-muted: #E9E7DF;
  --color-border: #D3CFC4;
  --color-light: #F6F4EF;
  --color-dark: #1A2635; /* for headings */
  --color-text: #2A3140;
  --color-shadow: rgba(33, 51, 79, 0.08);
  --font-display: 'Georgia', 'Times New Roman', Times, serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-dark);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
}
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
p {
  margin-bottom: 16px;
}
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary);
  background: var(--color-light);
  padding: 18px 24px;
  border-left: 4px solid var(--color-secondary);
  border-radius: 4px;
  margin-bottom: 8px;
}
cite {
  font-family: var(--font-body);
  font-style: normal;
  color: var(--color-dark);
  font-size: 0.95rem;
  letter-spacing: .01em;
  display: block;
  margin-top: 4px;
  opacity: 0.7;
}
a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ==========================================================================
   LAYOUT CONTAINERS & FLEXBOX STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
section {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
/* CRITICAL: Ensure minimum spacing between cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--color-shadow), 0 1.5px 4px rgba(33,51,79,0.03);
  padding: 28px 20px 20px 20px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  transition: box-shadow .18s, transform .18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(33,51,79,0.14);
  transform: translateY(-2px) scale(1.01);
}
.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;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px 28px;
  margin-bottom: 24px;
  min-width: 220px;
  max-width: 600px;
  transition: box-shadow .18s, border-color .18s;
}
.testimonial-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 28px rgba(33,51,79,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  margin-bottom: 20px;
  padding-bottom: 12px;
}
ul, ol {
  margin-left: 24px;
  list-style: disc inside;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 10px;
}

/* ==========================================================================
   HEADER & NAVIGATION (DESKTOP & MOBILE BURGER MENU)
   ========================================================================== */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 8px var(--color-shadow);
  z-index: 30;
  position: relative;
}
.main-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  padding: 18px 20px;
  margin: 0 auto;
  justify-content: flex-start;
}
.main-navigation a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.93;
  letter-spacing: .01em;
  border-radius: 6px;
  padding: 8px 10px;
  transition: color .18s, background .18s;
}
.main-navigation a.cta, .mobile-nav a.cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.07rem;
  border-radius: 8px;
  padding: 10px 20px;
  margin-left: 8px;
  box-shadow: 0 1px 6px var(--color-shadow);
  border: none;
  outline: none;
  transition: background .18s, color .18s, box-shadow .18s;
}
.main-navigation a.cta:hover, .main-navigation a.cta:focus, .mobile-nav a.cta:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 18px rgba(33,51,79,0.12);
}

/* Hamburger icon */
.mobile-menu-toggle {
  background: var(--color-accent);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 11px;
  margin: 9px 20px 9px 0;
  cursor: pointer;
  display: none;
  transition: background .2s, color .2s;
  z-index: 42;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 0 4px 20px rgba(33,51,79,0.18);
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.65, .02, .3, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.3rem;
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 1002;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-muted);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 70px 24px 16px 38px;
  width: 96vw;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 11px 8px;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hide desktop nav on mobile and reveal burger */
@media (max-width: 980px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   HERO, FEATURES, SERVICES, TESTIMONIALS SECTIONS
   ========================================================================== */
/* Prices, Service, Features layout */
.price {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.25rem;
  background: var(--color-muted);
  padding: 6px 18px;
  border-radius: 24px;
  display: inline-block;
  margin: 8px 0 15px 0;
}
ul li img {
  width: 30px;
  height: 30px;
  margin-right: 18px;
  vertical-align: middle;
}
ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
/* Card grid helper */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   BUTTONS, CTAs, LINKS
   ========================================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .21s, color .18s, box-shadow .19s, transform .17s;
  box-shadow: 0 1.5px 8px var(--color-shadow);
}
.cta.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta.secondary {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 6px 20px rgba(33,51,79,0.16);
  transform: translateY(-1px) scale(1.03);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(244,224,74,0.12);
  transform: translateY(-1px) scale(1.03);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
footer {
  background: var(--color-accent);
  border-top: 2px solid var(--color-border);
  padding: 16px 0 0 0;
}
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
}
.footer-nav a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1.04rem;
  opacity: .85;
  transition: color .17s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-bottom {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: .97rem;
  padding: 9px 0 9px 0;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  filter: grayscale(.12) opacity(.93) drop-shadow(0 1px 4px rgba(33,51,79,0.04));
  transition: filter .15s;
}
.social-links a:hover img {
  filter: none; /* Remove grayscale on hover */
  filter: drop-shadow(0 2px 8px rgba(33,51,79,0.19));
}

/* Footer layout adjustments for smaller screens */
@media (max-width: 800px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT & FLEXBOX DIRECTIONS
   ========================================================================== */
@media (max-width: 980px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .features {
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch;
  }
  .footer-bottom, .footer-top {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 11px;
  }
}
@media (max-width: 500px) {
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.15rem; }
  h3, .h3 { font-size: 1.05rem; }
  .container {
    padding: 0 4px;
  }
  section {
    padding: 13px 2px;
    margin-bottom: 22px;
  }
}
/* ==========================================================================
   MICRO-INTERACTIONS, HOVER AND FOCUS ANIMATIONS
   ========================================================================== */
a, button, .cta {
  outline: none;
  transition: color .15s, box-shadow .15s, background .17s;
}
a:focus, button:focus, .cta:focus {
  box-shadow: 0 0 0 3px var(--color-secondary);
}
.card,
.testimonial-card {
  transition: box-shadow .18s, border-color .18s, transform .17s;
}
div[class*='card']:hover, div[class*='card']:focus {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 6px 28px rgba(33,51,79,0.12);
}

.cta:active {
  transform: scale(.96);
}

/* Animations for entrance effect */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
section, .card, .testimonial-card {
  animation: fade-in .8s cubic-bezier(.46,.03,.52,.96);
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-light);
  box-shadow: 0 -2px 16px var(--color-shadow);
  border-top: 2px solid var(--color-border);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
  min-height: 56px;
  animation: fade-in .5s;
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-consent-banner p {
  flex: 1 1 0%;
  margin-bottom: 0;
  color: var(--color-dark);
}
.cookie-consent-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-consent-banner .cookie-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .14s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn.accept:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-consent-banner .cookie-btn.reject {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-consent-banner .cookie-btn.reject:hover {
  background: #cfcec6;
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--color-border);
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 6px;
  }
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,51,79, 0.25);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(33,51,79,.16);
  max-width: 420px;
  width: 92vw;
  padding: 30px 26px 16px 26px;
  animation: fade-in .3s cubic-bezier(.55,.19,.35,.9);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-modal-header h2 {
  font-size: 1.2rem;
  margin: 0;
  font-family: var(--font-display);
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 2px 11px;
  border-radius: 5px;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-muted);
}
.cookie-modal-content ul {
  margin-left: 0;
  list-style: none;
}
.cookie-modal-content li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 6px;
}
.cookie-category-name {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.cookie-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--color-muted);
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .2s;
  margin-left: 22px;
}
.cookie-switch:checked {
  background: var(--color-secondary);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: transform .16s;
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}
.cookie-category-note {
  font-size: .86rem;
  color: #767676;
  margin-left: 6px;
  opacity: .79;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  padding: 9px 19px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: background .16s, color .13s;
}
.cookie-modal-actions .cookie-btn:hover, .cookie-modal-actions .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* Essential cookies always enabled, not switchable */
.cookie-category-essential .cookie-switch {
  opacity: .5;
  pointer-events: none;
}

/* ==========================================================================
   MISC HELPER CLASSES
   ========================================================================== */
.hide {
  display: none !important;
}
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.flex { display: flex !important; }
.center { justify-content: center !important; align-items: center !important; }

/* Error, success, info messages helper */
.status-msg {
  padding: 13px 20px;
  border-radius: 7px;
  font-size: 1rem;
  margin-bottom: 15px;
  background: var(--color-muted);
  color: var(--color-dark);
  font-style: italic;
}

/* Focused link underline */
a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Visually hidden for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
