/* ========================
   RESET & BASE TYPOGRAPHY
======================== */
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;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #faefe0;
  /* vintage warm base */
  color: #203264;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #28526e;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(.55,.06,.68,.19);
}
a:hover, a:focus {
  color: #ca3d26;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
ul li::before {
  content: '\2022';
  color: #f09e3e;
  display: inline-block;
  width: 1.1em;
  margin-left: -1.1em;
  font-family: 'Montserrat', Arial, sans-serif;
}
ul li {
  padding-left: 0.5em;
}

/* ===============
  BRAND FONTS   
=============== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: #203264;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: #ca3d26;
}
h2 {
  font-size: 2rem;
  color: #2a495a;
}
h3 {
  font-size: 1.3rem;
  color: #665138;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

p, li, span, a, button, input {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
strong { font-weight: 700; color: #ca3d26; }

/* ===============
  VINTAGE RETRO COLORS & EFFECTS
=============== */
:root {
  --primary: #203264;
  --secondary: #38A1DB;
  --accent: #F3EDDB;
  --retro-orange: #f09e3e;
  --retro-red: #ca3d26;
  --retro-biscuit: #d8cbad;
  --retro-blue-accent: #38A1DB;
  --retro-green: #6fa384;
  --retro-shadow: rgba(127,86,49,0.18);
  --retro-shadow-hover: rgba(127,86,49,0.4);
  --text-light: #ffeede;
  --text-brown: #5c4119;
  --paper-bg: #faefe0;
  --pattern-lines: repeating-linear-gradient(-45deg,rgba(243,237,219,0.26) 0,rgba(243,237,219,0.26) 4px,rgba(255,255,255,0) 4px,rgba(255,255,255,0) 12px);
}

/* ===============
  CONTAINERS & SECTIONS
=============== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pattern-lines), var(--paper-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--retro-shadow);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 8px;
  }
  .container {
    padding: 0 10px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===============
  HEADER & NAVIGATION
=============== */
header {
  background: #f09e3e;
  border-bottom: 4px solid #ca3d26;
  box-shadow: 0 2px 16px var(--retro-shadow);
  position: relative;
  z-index: 1050;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.main-nav a {
  color: #203264;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2.5px;
  background: #ca3d26;
  border-radius: 2px;
  transition: width 0.25s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #ca3d26;
  outline: none;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #203264;
  color: #ffeede;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 38px;
  border: 2.5px solid #ca3d26;
  box-shadow: 0 4px 0 #ca3d26, 0 6px 24px var(--retro-shadow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.21s, color 0.21s, box-shadow 0.24s, border 0.19s;
  cursor: pointer;
  margin-left: 18px;
}
.cta-btn:hover, 
.cta-btn:focus {
  background: #ca3d26;
  color: #fffceb;
  border-color: #284368;
  box-shadow: 0 6px 0 #284368, 0 10px 32px var(--retro-shadow-hover);
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  background: #ca3d26;
  color: #fffceb;
  border: none;
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 4px 16px;
  transition: background 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 8px var(--retro-shadow);
  z-index: 1102;
  cursor: pointer;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #e95f3c;
  outline: none;
}

/* ===============
  MOBILE NAVIGATION
=============== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f09e3e;
  box-shadow: 0 0 36px 8px var(--retro-shadow-hover);
  z-index: 1120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.44s cubic-bezier(.19,1,.22,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  border: none;
  background: #ca3d26;
  color: #fffceb;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 24px 0 0 30px;
  align-self: flex-start;
  border-radius: 7px;
  padding: 2px 14px 2px 14px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  z-index: 1201;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e95f3c;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 55px;
  margin-left: 44px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
}
.mobile-nav a {
  color: #203264;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ca3d26;
  color: #f3eddb;
  outline: none;
}
@media (max-width: 1040px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1041px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============
  HERO, SECTIONS, CARDS
=============== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pattern-lines), var(--paper-bg);
  border-radius: 18px;
  box-shadow: 0 8px 32px var(--retro-shadow);
  /* Pattern gives a vintage feel */
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 22px 7px;
    border-radius: 13px;
  }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fffceb;
  border-radius: 12px;
  box-shadow: 0 3px 8px var(--retro-shadow);
  padding: 18px 20px;
  color: #5c4119;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .text-section {
    padding: 12px 8px;
    font-size: 0.96rem;
    border-radius: 8px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px; /* always at least 20px */
}
.card {
  background: #fdf6e7;
  border: 2px solid #d8cbad;
  border-radius: 14px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 10px var(--retro-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.26s, border-color 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px var(--retro-shadow-hover);
  border-color: #ca3d26;
  z-index: 2;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #ffeede;
  border-radius: 10px;
  box-shadow: 0 2px 7px var(--retro-shadow);
  padding: 18px 12px;
  margin-bottom: 20px;
}

/* ===============
  TESTIMONIALS
=============== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fffceb;
  border-radius: 14px;
  box-shadow: 0 3px 10px var(--retro-shadow);
  border: 2.3px solid #ca3d26;
  color: #203264;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #5c4119;
  font-weight: 600;
  margin-left: 10px;
}

/* ===============
  MAP PLACEHOLDER (RETRO EFFECT)
=============== */
.map-placeholder {
  background: repeating-linear-gradient(-45deg, #ffeede 0, #ffeede 8px, #e6cb9f 8px, #e6cb9f 16px);
  color: #203264;
  border: 2.5px dashed #ca3d26;
  border-radius: 8px;
  padding: 18px 0;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.06rem;
  font-weight: bold;
  margin-top: 8px;
}

/* ===============
  FOOTER
=============== */
footer {
  background: #203264;
  color: #ffeede;
  padding: 30px 0 20px 0;
  border-top: 6px solid #ca3d26;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #ffeede;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 1px 4px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #f09e3e;
}
footer p {
  font-size: 0.97rem;
  color: #ffeede;
  opacity: 0.85;
}

/* ===============
  COOKIE CONSENT BANNER
=============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffeede;
  color: #203264;
  padding: 18px 24px;
  box-shadow: 0 -8px 24px var(--retro-shadow), 0 -1.5px 0 #d8cbad;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  z-index: 99999;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 1rem;
  animation: cookieIn 0.66s cubic-bezier(.76,-0.34,.38,.92) 1;
}
@keyframes cookieIn {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 10px;
}
.cookie-btn, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 33px;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  margin-right: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.22s, color 0.16s, box-shadow 0.19s;
  box-shadow: 0 2px 9px var(--retro-shadow);
  cursor: pointer;
}
.cookie-btn {
  background: #ca3d26;
  color: #ffeede;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #203264;
  color: #f09e3e;
  outline: none;
}
.cookie-btn-secondary {
  background: #ffeede;
  color: #ca3d26;
  border: 2px solid #ca3d26;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #ca3d26;
  color: #ffeede;
  outline: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    font-size: 0.95rem;
    gap: 8px;
  }
}

/* ===================
   COOKIE MODAL
=================== */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,50,100,0.45);
  z-index: 100005;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.99);
  background: #ffeede;
  border-radius: 17px;
  box-shadow: 0 11px 44px var(--retro-shadow-hover), 0 2px 0 #d8cbad;
  padding: 32px 34px 24px 34px;
  min-width: 310px;
  max-width: 95vw;
  z-index: 100010;
  animation: modalIn 0.44s cubic-bezier(.22,1,.23,1);
}
@keyframes modalIn {
  from { opacity:0; transform: translate(-50%, -30%) scale(0.96); }
  to { opacity:1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.44rem;
  margin-bottom: 16px;
  color: #ca3d26;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
.cookie-modal input[type=checkbox] {
  accent-color: #ca3d26;
  width: 21px; height: 21px;
}
.cookie-modal .cookie-btn {
  margin-right: 0;
  margin-top: 10px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: #203264;
  font-size: 2em;
  position: absolute;
  top: 14px; right: 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #f09e3e;
  color: #ca3d26;
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
  padding: 10px 0;
}
.cookie-modal .cookie-category.disabled label,
.cookie-modal .cookie-category.disabled input {
  opacity: 0.5;
  pointer-events: none;
}

/* ===============
  FORMS (if any later)
=============== */
input, textarea, select {
  background: #fffceb;
  border: 2px solid #d8cbad;
  border-radius: 6px;
  font-size: 1rem;
  padding: 11px 12px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #203264;
  box-shadow: 0 1px 4px var(--retro-shadow);
  transition: border 0.17s, box-shadow 0.13s;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: #ca3d26;
  outline: none;
}
button:focus { outline: 2.2px solid #ca3d26; }

/* ===============
  UTILITIES: SPACING & FLEXBOX REQUIREMENTS
=============== */
.mt-24 { margin-top: 24px !important; }
.mb-20 { margin-bottom: 20px !important; }
.my-60 { margin-top:60px !important; margin-bottom: 60px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-center { align-items: center !important; justify-content: center !important; }

/* ===============
  RESPONSIVE ADJUSTMENTS
=============== */
@media (max-width: 992px) {
  header .container { flex-wrap: wrap; gap:8px; height: auto; }
  .footer-nav { gap: 18px; font-size: 0.97rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .cta-btn { display: none; }
  .content-wrapper { gap: 12px; }
}

/* ===============
  MICRO-INTERACTIONS AND HOVERS
=============== */
.card, .feature-item, .testimonial-card, .text-section, section {
  transition: box-shadow 0.21s, border-color 0.19s, background 0.18s;
}
.card:hover, .feature-item:hover, .text-section:hover, section:hover {
  box-shadow: 0 11px 32px var(--retro-shadow-hover);
}
.cta-btn:active, .cookie-btn:active { transform: translateY(2px) scale(0.98); }

/* ===============
  SCROLLBAR (Retro style)
=============== */
::-webkit-scrollbar {
  width: 13px;
  background: #f3eddb;
}
::-webkit-scrollbar-thumb {
  background: #d8cbad;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ca3d26;
}

/* ===============
  ADDITIONAL RETRO TOUCHES
=============== */
body, section, .text-section, .testimonial-card {
  /* Faint paper texture with gentle pattern lines gives nostalgia. */
}

hr {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(90deg,#ca3d26 0 16px,#ffeede 16px 32px);
  margin: 26px 0;
  border-radius: 2px;
}

/* ===============
  Z-INDEX FIXES FOR OVERLAYS & MENUS
=============== */
header { z-index: 1050; }
.mobile-menu { z-index: 1120; }
.cookie-banner { z-index: 99999; }
.cookie-modal-backdrop { z-index: 100005; }

/* ===============
  HIDING SECTIONS (for modals, menus)
=============== */
.hide { display: none !important; }

/* END OF CSS */
