/* ========================================
   CSS RESET & BASIC NORMALIZATION (Mobile-first)
======================================== */
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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1b3950;
  background: #F9F7F3;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
}
:focus {
  outline: 2px solid #E18937;
  outline-offset: 2px;
}

/* ========================================
   COLOR VARIABLES (with fallback)
======================================== */
:root {
  --primary: #265473;
  --primary-dark: #1b3950;
  --secondary: #F9F7F3;
  --secondary-dark: #d3d0c6;
  --accent: #E18937;
  --accent-dark: #b86929;
  --neutral: #ffffff;
  --text-main: #1b3950;
  --text-light: #fff;
  --muted: #8a8c8e;
  --shadow: rgba(38, 84, 115, 0.07);
  --border-radius: 12px;
}

/* ========================================
   TYPOGRAPHY: Elegant Classic
======================================== */
body {
  font-family: 'Roboto', Georgia, serif;
  color: var(--text-main);
  background: var(--secondary);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.25rem; /* 36px */ line-height: 1.15; margin-bottom: 28px; }
h2 { font-size: 1.5rem;  /* 24px */ line-height: 1.25; margin-bottom: 20px; }
h3 { font-size: 1.25rem; /* 20px */ line-height: 1.3; margin-bottom: 16px; }
h4, h5, h6{ font-size: 1.1rem; margin-bottom: 14px; }
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
.text-section {
  margin-bottom: 24px;
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 32px var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px 24px 24px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 24px rgba(38,84,115,0.18);
}

.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: 20px;
  padding: 20px;
  background: var(--secondary-dark);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 520px;
}
.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.5;
  font-family: 'Roboto', Georgia, serif;
  color: #353f44;
}
.testimonial-card span {
  font-size: 1rem;
  color: #627383;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.faq ul li, .faq li {
  margin-bottom: 10px;
}

/* Minimum 20px margin between cards/sections */
.section + .section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
header {
  background: var(--neutral);
  border-bottom: 1px solid var(--secondary-dark);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: 80px;
  justify-content: space-between;
  position: relative;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary-dark);
  color: var(--primary);
}
.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', 'Georgia', serif;
  background: var(--primary);
  color: var(--secondary);
  font-size: 1.1rem;
  padding: 11px 32px;
  border-radius: 32px;
  font-weight: 700;
  box-shadow: 0 2px 16px var(--shadow);
  border: none;
  transition: background 0.21s, box-shadow 0.21s, color 0.14s;
  margin-left: 16px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(225,137,55,0.18);
}
.cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Georgia', serif;
  background: none;
  color: var(--primary);
  border: 2px solid var(--accent);
  font-size: 1.05rem;
  padding: 8px 26px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.22s, color 0.16s, border-color 0.19s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  text-align: center;
  margin-left: 18px;
  transition: background 0.12s, color 0.12s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,84,115,0.85);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,.2,.05,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 0 0;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  transition: color 0.21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 34px 28px 0 36px;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-radius: 0;
  transition: color 0.16s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: none;
}

/* Hide Burger & Mobile Menu on Desktop */
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ========================================
   GENERAL BUTTONS & LINKS
======================================== */
button, .button {
  font-family: 'Montserrat', 'Georgia', serif;
  cursor: pointer;
  border-radius: 24px;
  border: none;
  padding: 9px 24px;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 6px var(--shadow);
  transition: background 0.19s, box-shadow 0.17s, color 0.11s;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 20px rgba(225,137,55,0.17);
}

/* ========================================
   SECTION-SPECIFIC & ELEMENTS
======================================== */
ul li, ol li {
  margin-bottom: 10px;
  list-style-position: inside;
}
ol {
  padding-left: 24px;
}
.faq {
  margin-top: 18px;
  margin-bottom: 10px;
}
.faq h3 {
  font-size: 1.12rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Montserrat', 'Georgia', serif;
}
.map-placeholder {
  background: var(--secondary-dark);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 1.1rem;
  margin-top: 12px;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 46px 0 24px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 40px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin: 12px 0 10px 0;
}
.footer-nav a {
  color: #d9e1e7;
  font-size: 0.97rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.18s, background 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-meta {
  color: #b2bccc;
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ========================================
   COOKIE CONSENT BANNER & MODAL
======================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary-dark);
  color: #fff;
  padding: 24px 18px 16px 18px;
  box-shadow: 0 -2px 24px rgba(27,57,80,0.07);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: cookieBannerSlideIn 0.35s cubic-bezier(.77,.2,.05,1);
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #fff;
  font-size: 1rem;
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  padding: 8px 26px;
  border-radius: 28px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.15s, color 0.12s;
}
.cookie-btn.settings {
  background: none;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-btn.reject {
  background: var(--muted);
  color: var(--primary-dark);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent-dark);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: var(--accent-dark);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,84,115,0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.27s;
}
@keyframes fadeIn {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary-dark);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(38,84,115,0.25);
  padding: 36px 30px 30px 30px;
  max-width: 400px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPop 0.34s cubic-bezier(.77,.2,.05,1);
}
@keyframes modalPop {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.16rem;
  font-family: 'Montserrat', 'Georgia', serif;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  color: var(--accent);
  font-size: 1.8rem;
  border: none;
}

/* ========================================
   RESPONSIVENESS: MOBILE-FIRST
======================================== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper,
  .card-container,
  .content-grid,
  .section {
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important;
    gap: 22px;
  }
  .main-nav, .footer-nav {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-primary {
    margin-left: 0;
    padding-left: 18px;
    padding-right: 18px;
  }
  .card {
    min-width: unset;
    max-width: 100%;
    padding: 18px 10px 18px 10px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .map-placeholder {
    padding: 14px 8px;
  }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.08rem; }
  .cookie-modal { padding: 16px 6px 24px 6px; }
}

/* ========================================
   MICRO-INTERACTIONS & HOVER EFFECTS
======================================== */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(38,84,115,0.14);
  transform: translateY(-3px) scale(1.01);
}
a, .button, .cta-primary, .cta-secondary {
  transition: color 0.16s, background 0.19s, border-color 0.16s;
}

/* ========================================
   UTILS
======================================== */
.muted {
  color: var(--muted) !important;
}
.hide {
  display: none !important;
}
.flex {
  display: flex !important;
  flex-direction: row !important;
}
.flex-col {
  flex-direction: column !important;
}
.gap-20 {
  gap: 20px !important;
}
.gap-30 {
  gap: 30px !important;
}

/* ========================================
   PRINT
======================================== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body, .container, .section {
    background: #fff !important;
    color: #111 !important;
  }
}
