/* ===== CSS RESET & NORMALIZE ===== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; margin: 0; padding: 0; }
body { min-height: 100vh; margin: 0; padding: 0; background: #F6EDDA; color: #2C3140; font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; border: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 16px 0; font-family: 'Cormorant Garamond', serif; color: #193764; }
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 18px; }
h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; font-weight: 500; }
strong { color: #193764; }
p { margin: 0 0 16px 0; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
li { margin-bottom: 8px; }
a { color: #40A2B6; text-decoration: none; transition: color 0.25s; }
a:hover, a:focus { color: #D58A3D; text-decoration: underline; }
hr { border: none; border-top: 1px solid #e7dcd0; margin: 32px 0; }

/* ===== BRAND COLORS ===== */
:root {
  --primary: #193764;
  --secondary: #40A2B6;
  --accent: #F6EDDA;
  --highlight: #FFD6A5;
  --warning: #D58A3D;
  --light: #FFF;
  --text-dark: #2C3140;
  --shadow: 0 2px 16px rgba(40,24,8,0.07);
}
/* Fallbacks for browsers not supporting CSS vars */

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== NAVIGATION & HEADER ===== */
header {
  width: 100%;
  background: var(--light);
  box-shadow: 0 4px 16px rgba(25,55,100,0.06);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--highlight);
  color: var(--warning);
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #FFBE76 0%, #FFD6A5 100%);
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 36px;
  box-shadow: 0 2px 12px rgba(213,138,61,0.10);
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.23s, color 0.18s;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #FFD6A5 0%, #FFBE76 100%);
  color: var(--warning);
  box-shadow: 0 4px 20px rgba(213,138,61,0.13);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 500;
  width: 52px;
  height: 52px;
  border: none;
  background: var(--secondary);
  color: var(--light);
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(64,162,182,0.12);
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,55,100,0.98);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1000;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--light);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: rgba(246,237,218,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.1rem;
  color: var(--accent);
  padding: 14px 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border-radius: 7px;
  letter-spacing: 0.01em;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

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

/* ===== HERO & GENERAL SECTIONS ===== */
.subheadline {
  font-size: 1.15rem;
  color: #486898;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}

section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ===== FEATURE GRID & CARD STYLES ===== */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  background: var(--light);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover { box-shadow: 0 6px 32px rgba(25,55,100,0.15); transform: translateY(-2px) scale(1.02); }

.feature-grid > div {
  background: var(--light);
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 360px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(25,55,100,0.13);
  transform: scale(1.01) translateY(-2px);
}
.feature-grid img {
  width: 36px; height: 36px; margin-bottom: 6px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  background: #fff5e7;
  border-radius: 18px;
  box-shadow: 0 3px 24px 0 rgba(25,55,100,0.09);
  margin-bottom: 24px;
}
.testimonial-card p {
  color: #2C3140;
  font-size: 1.17rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--secondary);
}
.testimonial-card img {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  vertical-align: middle;
}

/* ===== BADGES ===== */
.badges {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFAE5;
  border-radius: 14px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1.01rem;
  color: var(--primary);
  margin-top: 16px;
  box-shadow: 0 1px 12px 0 rgba(25,55,100,0.08);
}
.badges img { width: 28px; height: 28px; }

/* ===== BUTTONS & LINKS ===== */
button, .cta-btn {
  font-family: 'Open Sans', Arial, sans-serif;
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible { outline: 2px dashed var(--primary); outline-offset: 2px; }

/* ===== FOOTER ===== */
footer {
  background: #fff8ef;
  padding: 46px 0 28px 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 16px rgba(25,55,100,0.04);
}
.footer-logo img {
  width: 108px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover {
  background: var(--highlight);
  color: var(--warning);
}
.contact-details {
  margin-bottom: 10px;
  color: #867047;
  font-size: 1rem;
}
.contact-details img { width: 17px; height: 17px; margin-right: 3px; vertical-align: middle; }
.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.social-links a img { width: 26px; height: 26px; }
.copyright {
  color: #b49c75;
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fde9c6;
  color: #3e2221;
  z-index: 1400;
  box-shadow: 0 -2px 14px rgba(25,55,100,0.08);
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUpBanner 0.5s both;
}
@keyframes fadeInUpBanner {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 1px 6px rgba(213,138,61,0.08);
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
}
.cookie-banner .accept:hover { background: var(--primary); }
.cookie-banner .reject {
  background: #fff;
  color: #d86035;
  border: 1.5px solid #e1be9d;
  font-weight: 600;
}
.cookie-banner .reject:hover { background: #ffe1ba; }
.cookie-banner .settings {
  background: #eeddbf;
  color: #59432c;
  font-weight: 600;
}
.cookie-banner .settings:hover { background: #ffe2b4; }

/* ===== COOKIE PREFERENCES MODAL ===== */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,55,100,0.43);
  z-index: 1550;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInCookieModal 0.4s both;
}
@keyframes fadeInCookieModal { from{ opacity: 0;} to{opacity:1;} }
.cookie-modal-content {
  background: #fff7e7;
  border-radius: 22px;
  box-shadow: 0 4px 36px rgba(213,138,61,0.15);
  padding: 38px 32px 24px 32px;
  min-width: 320px;
  max-width: 98vw;
  color: #2C3140;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2{
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category-label { font-weight: 700; }
.cookie-toggle {
  width: 40px; height: 22px;
  border-radius: 14px;
  background: #e2c489;
  position: relative;
  border: none;
  transition: background 0.18s;
  outline: none;
  margin-left: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--secondary);
}
.cookie-toggle .toggle-knob {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  box-shadow: 0 1px 7px rgba(65,40,9,0.1);
  transition: left 0.18s;
}
.cookie-toggle[aria-checked="true"] .toggle-knob {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
}
.cookie-modal-actions button {
  border-radius: 13px;
  padding: 9px 18px;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s;
}
.cookie-modal-actions .cancel {
  background: #ede7db;
  color: #684b33;
}
.cookie-modal-actions .cancel:hover { background: #f5dec7; }

/* Modal Close (X) button */
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.65rem;
  background: none;
  border: none;
  color: #b68330;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background 0.13s;
}
.cookie-modal-close:hover { background: #ffedd4; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .feature-grid > div, .card {
    min-width: 200px;
    max-width: 100%;
    padding: 18px 12px;
  }
  .badges { flex-direction: column; gap: 5px; }
  header .container { flex-direction: row; }
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .section, section {
    margin-bottom: 34px;
    padding: 28px 6px;
    border-radius: 16px;
  }
  .footer-logo img { width: 72px; }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .content-wrapper, .text-section {
    gap: 10px;
    align-items: stretch;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  .badges {
    font-size: 0.98rem;
    padding: 8px 6px;
  }
  .testimonial-card {
    padding: 18px 12px;
    border-radius: 12px;
  }
}
@media (max-width: 480px) {
  .cta-btn { font-size: 1rem; padding: 10px 16px; }
  .footer-logo img { width: 52px; }
  .cookie-modal-content { padding: 16px 7px 13px 7px; }
}

/* ===== MISC UTILITIES ===== */
.gap-top { margin-top: 38px; }
.text-center { text-align: center; }
.rounded { border-radius: 15px; }
.shadowed { box-shadow: var(--shadow); }

/* .text-image-section rules for image/text combos */
.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;
  }
}

/* .feature-item for vertical stacking of features */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* .card-content for flex column alignment in cards */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Accessibility: ensure hover & focus visible for all interactive elements */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== MICRO-INTERACTIONS & TRANSITIONS ===== */
.card,
.feature-grid > div,
.cta-btn,
.main-nav a,
.footer-nav a,
.cookie-banner button,
.mobile-menu-toggle,
.mobile-nav a,
.cookie-modal-actions button,
.cookie-toggle {
  transition: background 0.23s, color 0.23s, box-shadow 0.22s, transform 0.17s;
}

/* Show visually only when cookie banner/modal is open (hidden by default, add via JS) */
.cookie-banner, #cookie-modal { display: none; }
.cookie-banner.show, #cookie-modal.show { display: flex; }

/* Prevent content overlap with cookie banner */
body.has-cookie-banner { padding-bottom: 84px; }

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