/* ================================================== */
/* CSS RESET & NORMALIZE (Mobile-first, Retro Style)  */
/* ================================================== */
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;}
ol, ul {list-style: none;}
table {border-collapse: collapse; border-spacing: 0;}
a {text-decoration: none; color: inherit;}
button, input, select, textarea {font-family: inherit; font-size: inherit;}
img {border: none; max-width: 100%; height: auto; display: block;}
strong {font-weight: bold;}

/* ============================================ */
/* Vintage Retro Variables & Responsive Breaks  */
/* ============================================ */
:root {
  --color-primary: #365177;       /* Brand, retro navy blue         */
  --color-secondary: #BFD0DC;    /* Brand, ancient pastel blue     */
  --color-accent: #F7ECE1;       /* Vintage ivory parchment        */
  --color-surface: #FCFAF6;      /* Card/section background        */
  --color-shadow: #b49475;       /* Retro brown shadow             */
  --color-brown: #7C5C35;        /* Buttons, separators, headers   */
  --color-orange: #F7B559;        /* Retro highlight orange         */
  --color-olive: #C5B95C;         /* Soft vintage touch             */
  --color-dark: #23201C;          /* Headline/body text             */
  --color-link: #37557E;          /* Link color                     */
  --color-testimonial-bg: #F9F4ED; /* Testimonial card bg         */
  --color-border: #E5DBC0;        /* Card border                   */
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Century Gothic', Arial, sans-serif;
  --font-body: 'Roboto', 'Georgia', serif;
}

@media (max-width: 768px) {
  :root {
    --font-xl: 2rem;       /* 32px */
    --font-lg: 1.33rem;    /* 21px */
    --font-md: 1.125rem;   /* 18px */
    --font-sm: 1rem;       /* 16px */
    --font-xs: 0.875rem;   /* 14px */
  }
}
@media (min-width: 769px) {
  :root {
    --font-xl: 3rem;       /* 48px */
    --font-lg: 2rem;       /* 32px */
    --font-md: 1.33rem;    /* 21px */
    --font-sm: 1.125rem;   /* 18px */
    --font-xs: 0.95rem;    /* 15px */
  }
}

/* ============================ */
/* Layout Wrapper & Containers  */
/* ============================ */
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-accent);
  font-size: var(--font-sm);
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}
/* =============== SPACING/PATTERNS ============== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 #e6d7c6;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 18px 0 rgba(185, 148, 117, .09);
  overflow: hidden;
}
.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;
  background: var(--color-testimonial-bg);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-orange);
  box-shadow: 0 2px 10px 0 rgba(185, 148, 117, .07);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 24px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .content-wrapper, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .container {
    max-width: 100%;
  }
}
/* ========== Typography & Headlines (Retro) ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-brown);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.11;
}
h1 {
  font-size: var(--font-xl);
  text-shadow: 1px 2px 0 var(--color-olive);
  margin-top: 0;
  margin-bottom: 20px;
}
h2 {
  font-size: var(--font-lg);
  text-shadow: 1px 1px 0 #e0c587;
}
h3 {
  font-size: var(--font-md);
}
p, li {
  color: var(--color-dark);
  font-size: var(--font-sm);
  line-height: 1.68;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--color-orange);
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 0 #fae6b5;
}
a {
  color: var(--color-link);
  transition: color 0.16s cubic-bezier(.4,.04,.26,1);
}
a:hover, a:focus {
  color: var(--color-brown);
}
/* ============== Buttons & CTA (Retro) ============== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--font-md);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 32px;
  margin-top: 14px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(185, 148, 117, .12);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  text-shadow: 0 1px 0 #EEE6D3;
}
.cta.primary {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-brown);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-orange);
  color: var(--color-dark);
  box-shadow: 0 4px 18px 0 var(--color-shadow);
}
.cta.secondary {
  background: var(--color-accent);
  color: var(--color-brown);
  border: 2px solid var(--color-brown);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-brown);
  color: var(--color-accent);
}
button.cta {
  appearance: none;
}
/* ========== NAVIGATION ========== */
header {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  box-shadow: 0 5px 32px 0 rgba(55,86,126,0.07);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px 0;
}
header nav a img {
  height: 50px;
  margin-right: 18px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav ul li {
  list-style: none;
}
header nav ul li a {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: var(--font-sm);
  padding: 4px 2px;
  border-radius: 3px;
  transition: background 0.17s, color 0.14s;
  position: relative;
  font-weight: 600;
}
header nav ul li a[aria-current=page]::after {
  content: '';
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-orange);
  border-radius: 2px;
  margin: 3px 0 0 0;
}
header nav ul li a:hover {
  background: rgba(255,205,85,0.07);
  color: var(--color-orange);
}
header nav .cta {
  margin-left: 28px;
}
@media (max-width: 1100px) {
  header nav .cta {
    margin-left: 10px;
  }
  header nav ul {
    gap: 12px;
  }
}
/* ------ Hamburger Mobile Menu ------ */
.mobile-menu-toggle {
  position: absolute;
  top: 16px;
  right: 22px;
  background: var(--color-orange);
  color: var(--color-primary);
  border: none;
  border-radius: 16px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  box-shadow: 0 2px 7px 0 #b09771;
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-brown);
  color: var(--color-accent);
}
@media (min-width: 1101px) {
  .mobile-menu-toggle {display: none;}
}
@media (max-width: 1100px) {
  header nav ul,
  header nav .cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ------ Mobile Menu Overlay ------ */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: var(--color-primary);
  z-index: 200;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.7,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 4px 0 32px -6px #b09771;
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 24px;
  background: var(--color-orange);
  color: var(--color-primary);
  border: none;
  border-radius: 16px;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  z-index: 210;
  box-shadow: 0 2px 8px 0 #b09771;
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-brown);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 90px 0 0 28px;
  width: 90vw;
  gap: 0px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 26px;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.1s, background 0.1s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-orange);
  background: none;
}
.mobile-nav a[aria-current=page] {
  color: var(--color-orange);
}
@media (min-width: 1101px) {
  .mobile-menu {display: none!important;}
}

/* ========== Footer ========== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 25px 0 15px 0;
  border-top: 2px solid var(--color-brown);
  font-size: var(--font-xs);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--font-xs);
  font-weight: 500;
  opacity: 0.93;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-orange);
  text-shadow: 0 2px 0 #f0d49a;
}
footer div {
  color: var(--color-secondary);
  font-size: var(--font-xs);
}

/* ========== Lists & List Icons ========== */
ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
ul li img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  filter: grayscale(0.5) contrast(0.7) brightness(1.2);
}

/* ========== Cards/Features ========== */
/* Dedicated section and feature cards */
.card,
.feature-item {
  background: var(--color-surface);
}
.card {
  padding: 28px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.feature-item {
  padding: 20px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  border-left: 5px solid var(--color-olive);
}

/* ========== Table Styles ========== */
table {
  width: 100%;
  background: var(--color-testimonial-bg);
  border-radius: 12px;
  border: 2px solid var(--color-border);
  margin-bottom: 32px;
  box-shadow: 0 2px 12px 0 rgba(185, 148, 117, .09);
  overflow: hidden;
}
thead {
  background: var(--color-olive);
}
thead th {
  font-family: var(--font-display);
  color: var(--color-brown);
  font-size: var(--font-sm);
  padding: 14px 8px;
  text-align: left;
}
tbody td {
  color: var(--color-dark);
  font-size: var(--font-sm);
  padding: 14px 6px;
  border-bottom: 1.5px solid var(--color-border);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ========== Contact/Map Snippet ========== */
.map-snippet {
  background: var(--color-testimonial-bg);
  border-radius: 10px;
  padding: 14px 18px;
  border-left: 4px solid var(--color-orange);
}

/* ========== Testimonial Card Contrast ========== */
.testimonial-card {
  color: var(--color-dark);
  background: var(--color-testimonial-bg);
  border-left: 5px solid var(--color-orange);
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(185, 148, 117, .09);
}
.testimonial-card p {
  font-size: var(--font-md);
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-dark);
}
.testimonial-card span {
  color: var(--color-brown);
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* ========== MISC & Retro Accent Elements ========== */
hr {
  border: 0;
  border-top: 2.5px dashed var(--color-brown);
  margin: 32px 0;
  height: 0;
  background: none;
  opacity: 0.35;
}
.section {
  background: repeating-linear-gradient(135deg, var(--color-surface), var(--color-surface) 30px, #eee7d5 32px, #eee7d5 36px);
  border-radius: 18px;
}

/* ========== Responsive Layout (Mobile-first) ========== */
@media (max-width: 768px) {
  .section {
    padding: 26px 7px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  h1 { font-size: 1.7rem !important; }
  h2 { font-size: 1.14rem !important; }
  .testimonial-card,
  .feature-item,
  .card,
  .content-wrapper, .content-grid {
    gap: 13px !important;
  }
  .container {
    padding: 0 7px;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 3px; }
}

/* ========== Animations, Transitions ========== */
.cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.14s, color 0.12s, box-shadow 0.16s, transform 0.2s;
}
.cta:active, .mobile-menu-toggle:active { transform: scale(0.97); }

.section, .card, .testimonial-card, .feature-item, .card-content {
  transition: box-shadow 0.23s cubic-bezier(.35,.19,.38,1.23), background 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px -2px var(--color-shadow);
}

/* ========== Cookie Consent Banner ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-brown);
  color: var(--color-accent);
  padding: 22px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3500;
  box-shadow: 0 -2px 24px 0 #b09771; 
  gap: 12px;
  font-size: var(--font-sm);
  border-radius: 16px 16px 0 0;
  animation: cookieSlideUp 0.6s cubic-bezier(.69,.07,.22,1) 1;
}
@keyframes cookieSlideUp {
  from {transform: translateY(100%); opacity: 0;}
  to   {transform: translateY(0); opacity: 1;}
}
.cookie-banner h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: var(--font-md);
  color: var(--color-orange);
  letter-spacing: .01em;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn {
  border: none;
  border-radius: 27px;
  font-family: var(--font-display);
  font-size: var(--font-xs);
  font-weight: 600;
  padding: 9px 23px;
  margin-right: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 #86693c3a;
  transition: background 0.15s, color 0.16s;
}
.cookie-btn.accept {
  background: var(--color-orange);
  color: var(--color-dark);
}
.cookie-btn.accept:hover { background: var(--color-olive); color: var(--color-dark); }
.cookie-btn.reject {
  background: #faf6f0;
  color: var(--color-brown);
}
.cookie-btn.reject:hover {
  background: var(--color-brown);
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-dark);
  border: 1.5px solid var(--color-olive);
}
.cookie-btn.settings:hover {
  background: var(--color-olive);
  color: var(--color-brown);
}

/* ========= Cookie Modal Popup =========== */
.cookie-modal-backdrop {
  position: fixed; z-index: 3590; inset: 0;
  background: rgba(54,81,119,0.79);
  display: flex; align-items: center; justify-content: center;
  animation: cookieModalFade 0.39s cubic-bezier(.6,.03,.3,1.1) 1;
}
@keyframes cookieModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-testimonial-bg);
  max-width: 404px;
  padding: 36px 30px 22px 30px;
  border-radius: 14px;
  box-shadow: 0 7px 42px 0 #b09771;
  animation: cookieModalPop 0.33s cubic-bezier(.6,.03,.3,1.3) 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
@keyframes cookieModalPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.cookie-modal h5 {
  font-family: var(--font-display);
  font-size: var(--font-md);
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute; top: 15px; right: 23px;
  background: var(--color-orange);
  color: var(--color-primary);
  border-radius: 32px;
  border: none;
  width: 32px; height: 32px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: var(--font-xs);
  color: var(--color-dark);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-orange);
  width: 19px; height: 19px;
}
.cookie-category input[disabled] {
  accent-color: var(--color-olive);
  opacity: 0.65;
}

/* ========== Accessibility & Selection ========== */
::selection {
  background: var(--color-olive);
  color: var(--color-dark);
}

/* ========== Misc. Fixes ========== */
@media (max-width: 520px) {
  .cookie-modal {
    max-width: calc(100vw - 24px);
    padding: 18px 8px 12px 8px;
  }
}

/* ========== Hide cookie/modal overlays initially ========== */
.cookie-banner[hidden], .cookie-modal-backdrop[hidden] { display: none !important; }

/* ========== END ========== */
