/* ========================
   CSS RESET & NORMALIZE
=========================*/
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FFF7EE;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #22669E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1B8246;
  text-decoration: underline dotted;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #E4C1A1;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
th {
  background: #FAD5B5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  color: #54321C;
}
caption {
  caption-side: top;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  color: #22669E;
  margin-bottom: 8px;
}

/* ========================
 FONT FACE FALLBACKS
=========================*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

:root {
  --primary: #22669E;
  --secondary: #1B8246;
  --accent: #F5F6F8;
  --retro-orange: #E49D3D;
  --retro-red: #C93F35;
  --retro-brown: #54321C;
  --retro-yellow: #FFD477;
  --retro-bg: #FFF7EE;
  --shadow: 0 4px 12px 0 rgba(50,36,20,0.10);
  --radius: 14px;
}

/* =========================
  TYPOGRAPHY VINTAGE SCALE
========================== */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--retro-brown);
  margin-bottom: 20px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: .5px;
  color: var(--primary);
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--retro-brown);
  margin-bottom: 10px;
}
p, address {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #2C2621;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong {
  color: var(--retro-brown);
  font-weight: 700;
}
em {
  color: var(--retro-red);
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-left: 8px solid var(--retro-orange);
  padding: 12px 18px 12px 20px;
  margin-bottom: 16px;
  margin-top: 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #EEE7DB;
  font-style: italic;
}

hr {
  border: none;
  border-top: 2px dotted var(--retro-brown);
  margin: 30px 0;
}

/* =========================
   BASIC LAYOUT STRUCTURE
========================== */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

section {
  background: var(--accent);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #F4ECD6;
  /* vintage pattern overlay */
  position: relative;
  overflow: visible;
}
section:before {
  content: '';
  position: absolute;
  left: -35px; top: -35px;
  width: 70px; height: 70px;
  background: repeating-linear-gradient(135deg, #FFF7EE, #FFD477 3px, #FFF7EE 6px);
  opacity: 0.15;
  border-radius: 40% 60% 65% 35% / 60% 40% 35% 65%;
  z-index: 0;
}
section:after {
  content: '';
  position: absolute;
  right: -28px; bottom: -23px;
  width: 56px; height: 56px;
  background: repeating-linear-gradient(-45deg, #FFF7EE, #E49D3D 6px, #FFF7EE 11px);
  opacity: 0.13;
  border-radius: 55% 45% 45% 55% / 45% 55% 55% 45%;
  z-index: 0;
}
section .container, section .content-wrapper, section * { position: relative; z-index: 2; }

.text-section {
  padding: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.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: flex-start;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF7EE;
  margin-bottom: 20px;
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  position: relative;
  border: 2px solid #F6E7D2;
  flex: 1 1 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
         HEADER/NAV
========================== */
header {
  background: var(--retro-bg);
  border-bottom: 4px solid #FFD477;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 20;
  box-shadow: 0 2px 12px 0 rgba(204,140,59,0.10);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 18px;
}

header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--retro-brown);
  font-weight: 700;
  font-size: 1.1rem;
  background: none;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 0 0;
  transition: background 0.18s, color 0.18s;
}
header nav a img {
  height: 43px; width: auto;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}
header nav .cta-primary {
  background: var(--retro-orange);
  color: #fff;
  border-radius: 22px;
  margin-left: 10px;
  box-shadow: 0 2px 4px #E49D3D30;
  padding: 8px 22px;
  font-size: 1.1rem;
  border: 2px solid var(--retro-brown);
  transition: background .18s, color 0.18s, transform 0.16s;
  letter-spacing: 1px;
}
header nav .cta-primary:hover, .cta-primary:focus {
  background: var(--retro-red);
  color: var(--retro-yellow);
  transform: scale(1.04) rotate(-1deg);
}

header nav .cta-secondary {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  margin: 14px 0 0 0;
  box-shadow: 0 2px 4px #22669E24;
  padding: 8px 20px;
  font-size: 1rem;
  border: none;
  transition: background .18s, color .18s, transform .16s;
}
header nav .cta-secondary:hover, .cta-secondary:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: scale(1.04) rotate(1deg);
}

/* ----------------------
      MOBILE NAV MENU
---------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  border-radius: 50%;
  border: none;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  color: #fff;
  margin-left: auto;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 1px 6px #E49D3D32;
  transition: background .18s, transform .13s;
  z-index: 44;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--retro-red);
  transform: rotate(-7deg) scale(1.07);
}
.mobile-menu {
  position: fixed;
  background: var(--retro-bg);
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  box-shadow: 0 2px 32px #0004;
  z-index: 90;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.65,.01,.34,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 35px;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 14px; right: 20px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 1px 6px #C93F3550;
  transition: background .16s;
  z-index: 102;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
}
.mobile-nav {
  margin-top: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  color: var(--primary);
  background: none;
  border-radius: 7px;
  padding: 12px 9px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

@media (max-width: 1150px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 840px) {
  header nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 7px 8px 12px;
  }
  header nav a {
    font-size: 1rem;
    padding: 7px 7px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {display: none !important;}
}

/* =========================
         FOOTER
========================== */
footer {
  border-top: 3px solid #FFD477;
  background: var(--retro-bg);
  margin-top: 40px;
  padding: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 5px;
}
footer nav a {
  color: var(--retro-brown);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 4px;
  transition: background 0.17s,color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
footer p {
  color: #8D6745;
  font-size: 15px;
  margin: 0;
  letter-spacing: .2px;
}

/* =========================
        BUTTONS
========================== */
.cta-primary, .cta-secondary, .cookie-btn {
  appearance: none;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 9px 25px;
  border-radius: 31px;
  font-weight: 900;
  letter-spacing: 1.1px;
  font-size: 1.13rem;
  box-shadow: 0 3px 11px #E49D3D22;
  margin-top: 12px;
  margin-bottom: 17px;
  margin-right: 10px;
  text-align: center;
  cursor: pointer;
  background: var(--retro-orange);
  color: #fff;
  transition: background 0.18s, color 0.18s, transform .13s;
}
.cta-primary:hover, .cta-primary:focus,
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-red);
  color: var(--retro-yellow);
  transform: scale(1.06) rotate(-1deg);
}
.cta-secondary,
.cookie-btn.reject {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cta-secondary:hover, .cta-secondary:focus,
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  transform: scale(1.06) rotate(1deg);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: 2px solid var(--retro-brown);
  box-shadow: 0 1px 5px #FAD5B544;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* =========================
                CARDS
========================== */
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 11px;
  background: #FDF9F3;
  box-shadow: 0 2px 9px #f2e1cb99;
  transition: transform 0.14s, box-shadow 0.16s;
  border: 2.5px solid #E4C1A1;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1deg);
  box-shadow: 0 5px 14px #FAD5B599;
}

/* =========================
           LISTS
========================== */
ul > li, ol > li {
  padding-left: 32px;
  margin-bottom: 11px;
  position: relative;
  font-size: 1.13rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #323232;
}
ul > li img {
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  background: #FAD5B5;
  border-radius: 5px;
  margin-right: 10px;
  padding: 2px;
  box-shadow: 0 1px 3px #FAD5B522;
  display: inline-block;
}
ul > li strong {
  color: var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ===========================
          TESTIMONIALS
============================*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 0;
  background: var(--retro-yellow);
  border-radius: 15px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-orange);
  box-shadow: 0 2px 9px #FAE2B7cc;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  margin: 0;
  color: #54321C;
  font-size: 1rem;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #7B530C;
  font-weight: 600;
}
/* Extra: testimonial section heading for contrast */
section:has(.testimonial-card) h2 {
  color: var(--retro-orange);
}

/* ===========================
  TABLES: VINTAGE RETRO STYLE
============================*/
table {
  background: #FFF7EE;
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.08rem;
  border: 2px solid #E4C1A1;
}
th, td {
  padding-top: 13px;
  padding-bottom: 13px;
}
thead tr {
  background: #FFD477;
}
tbody tr:nth-child(even) {
  background: #FFF2DE;
}
tbody tr:nth-child(odd) {
  background: #FFF7EE;
}

/* =========================
      COOKIE CONSENT BANNER
========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  padding: 22px 14px 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  box-shadow: 0 -3px 24px #FFD47790;
  z-index: 101;
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-top: 3.5px solid var(--retro-orange);
  transition: transform 0.36s cubic-bezier(.72,.04,.31,1.02), opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-btn {
  margin-right: 8px;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}

/* Modal for cookie settings */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,28,24,0.63);
  z-index: 999;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #FDF9F3;
  color: #54321C;
  padding: 36px 34px 28px 34px;
  border-radius: 20px;
  min-width: 340px;
  box-shadow: 0 4px 32px #E49D3D44;
  font-family: 'Open Sans', Arial, sans-serif;
  position: relative;
  min-height: 0;
  max-width: 96vw;
  max-height: 95vh;
  overflow-y: auto;
}
.cookie-modal-content h2 {
  margin-top: 0;
  color: var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 17px;
}
.cookie-modal-content ul {
  gap: 8px;
}
.cookie-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 1.08rem;
}
.cookie-toggle-row label {
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-toggle-row input[type='checkbox'] {
  accent-color: var(--retro-orange);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--retro-brown);
  margin-right: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 19px; top: 14px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .17s;
  z-index: 10;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--secondary);
}

/* =========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 715px) {
  section {
    padding: 18px 6vw;
    margin-bottom: 39px;
  }
  .content-wrapper {
    gap: 12px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.27rem; }
}
@media (max-width: 525px) {
  .container {
    padding: 0 5px;
  }
  section {
    padding: 12px 4vw;
    border-radius: 8px;
  }
  .card {
    padding: 13px 8px;
    border-radius: 7px;
  }
  .testimonial-card {
    padding: 10px;
    border-radius: 7px;
  }
  .cookie-modal-content {
    padding: 18px 8px 13px 8px;
    min-width: unset;
    border-radius: 10px;
  }
}

/* =========================
   RESPONSIVE FLEX LAYOUTS
========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.testimonial-row {
  gap: 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 22px 7px;
  }
  .card-container, .content-grid, .testimonial-row {
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================
   GENERAL INTERACTIONS
========================== */
button, .cta-primary, .cta-secondary, .cookie-btn {
  outline: none;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, transform .13s;
}
button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  box-shadow: 0 0 0 3px #FFD47777;
  outline: 2px dashed var(--retro-brown);
}

::selection {
  background: #FFD477;
  color: #222;
}

/* =========================
   RETRO NOSTALGIC ELEMENTS
========================== */
body {
  background: var(--retro-bg) url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="6" y="6" width="4" height="4" fill="%23E49D3D" fill-opacity="0.099"/><circle cx="13" cy="13" r="2" fill="%23FFD477" fill-opacity="0.09"/></svg>') repeat;
}

section {
  border-image: repeating-linear-gradient(90deg, #FFD477, #FFD477 12px, #E4C1A1 12px, #E4C1A1 24px) 10;
  border-width: 2.5px;
  border-style: solid;
}

.testimonial-card {
  border-image: repeating-linear-gradient(90deg, #E49D3D, #FFD477 10px, #FFD477 20px, #E49D3D 20px) 10;
  border-style: solid;
}

.card {
  border-image: repeating-linear-gradient(270deg, #E4C1A1, #E4C1A1 10px, #FFF7EE 10px, #FFF7EE 20px) 10;
  border-style: solid;
}


/* ===============================
   Z-INDEX STRUCTURE FOR OVERLAYS
=============================== */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 100+ !important; }

/* =========================
      MISC. UTILITIES
========================== */
.hide { display: none !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* =========================
 Accessible Focus Outline
========================== */
:focus-visible {
  outline: 2px dashed #E49D3D;
  outline-offset: 3px;
}

/* =========================
  END OF STYLE.CSS
========================== */
