/* -----------------------------
   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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FAF3E6;
  color: #20304C;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Web safe fallbacks for fonts */
@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: #20304C;
  --secondary: #FFB200;
  --accent: #EFEFEF;
  --bg-vintage: #FAF3E6;
  --retro-green: #2E7D6A;
  --retro-red: #D8513C;
  --retro-blue: #7CB7D3;
  --retro-brown: #AC8145;
  --retro-orange: #F4A259;
  --header-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow: 0 4px 16px rgba(32,48,76,0.11), 0 2px 8px rgba(172,129,69,0.07);
}

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

header, footer {
  background: var(--primary);
  color: #fff;
}

header .container, footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

footer {
  font-size: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ----------- VINTAGE RETRO DECOR PATTERNS --------- */
body {
  background: var(--bg-vintage);
  /* subtle vintage paper pattern using SVG mask? Leave simple for compatibility */
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff6eb;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  background: var(--accent);
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  border: 3px solid var(--retro-brown);
  transition: box-shadow 0.18s, border-color 0.16s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(44,72,106,0.17);
  border-color: var(--secondary);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

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

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 220px;
  background: #F4EDE5;
  color: #2a2320;
  border-left: 6px solid var(--secondary);
  border-radius: 16px 8px 8px 16px;
  box-shadow: var(--shadow);
  font-size: 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 18px 0px rgba(248,168,74,0.11), 0 2px 9px rgba(57,49,29,0.09);
  border-color: var(--retro-red);
}
.testimonial-card strong { color: var(--primary); }

/* -------------------- TYPOGRAPHY ---------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem;  margin-bottom: 12px;  }
h2 { font-size: 2rem;    margin-bottom: 12px; }
h3 { font-size: 1.5rem;  margin-bottom: 8px; }
h4 { font-size: 1.17rem; margin-bottom: 8px; }

p, li, span, strong {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1rem;
  color: #2a2320;
}
.content-wrapper > p {
  font-size: 1.17rem;
}

ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 0;
}
ul li,
ol li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

ul li img, .footer-contact img, .footer-contact svg, .footer .social-links img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

strong { font-weight: 600; }

/* ----------- BUTTONS & CTA -------------- */
.cta, a.cta, button.cta {
  display: inline-block;
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 27px;
  padding: 12px 32px;
  border: none;
  outline: none;
  box-shadow: 0 2px 12px rgba(255,178,0,0.13);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.13s, box-shadow 0.14s;
  margin-top: 8px;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 8px 32px rgba(32,48,76,0.12), 0 2px 8px rgba(255,178,0,0.15);
  transform: translateY(-1px) scale(1.04);
}

button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: var(--header-font);
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.14s, background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-toggle:hover {
  color: var(--retro-red);
}

/* ----------- NAVIGATION -------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  padding: 6px 16px;
  border-radius: 5px;
  transition: background 0.12s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

.main-nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(255,178,0,0.12);
  margin-left: 14px;
  border-radius: 19px;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #fff;
  color: var(--primary);
}

/* -------------- MOBILE MENU ----------- */
.mobile-menu-toggle {
  display: none;
  margin-left: 18px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, color 0.14s;
  z-index: 99;
}

.mobile-menu-toggle:focus {
  outline: 2px dotted var(--primary);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,48,76, 0.97);
  color: #fff;
  display: flex;
  pointer-events: none;
  opacity: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1), opacity 0.25s;
  z-index: 9999;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  position: absolute;
  top: 28px;
  right: 26px;
  z-index: 10006;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 100px;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 1.6rem;
  padding: 10px 18px;
  border-radius: 7px;
  color: var(--secondary);
  background: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide main nav on mobile */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -----------------------------
   VINTAGE & RETRO NOSTALGIA
------------------------------ */
h1, h2, h3 {
  text-shadow: 1px 2.5px 0 #F4A259, 0 2px 16px rgba(172,129,69,0.04);
  /* Soft vintage effect */
}

section {
  border: 2px solid var(--retro-brown);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 16px, #fff6eb 16px, #fff6eb 32px),
    repeating-linear-gradient(-135deg, transparent, transparent 12px, #F4EDE5 12px, #F4EDE5 24px);
}

.card {
  background: #ede3d4;
  border: 3px solid var(--retro-orange);
  font-family: var(--body-font);
}

.card::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 25px;
  width: 13px;
  height: 32px;
  background: var(--retro-brown);
  border-radius: 8px 0 0 8px;
  opacity: 0.12;
  z-index: 0;
}

.testimonial-card {
  background: #f9f4ea;
  border-left: 8px solid var(--retro-orange);
  border-radius: 18px 8px 8px 18px;
  font-style: italic;
  color: #18212a;
}

footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 22px 0;
  margin-top: 32px;
  font-family: var(--body-font);
  border-top: 6px solid var(--retro-brown);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-family: var(--header-font);
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 4px;
  transition: background 0.14s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
  background: var(--secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  justify-content: center;
  transition: background 0.16s, box-shadow 0.16s;
}
.social-links a:hover {
  background: var(--secondary);
  box-shadow: 0 2px 8px rgba(32,48,76,0.09);
}

/* -------------- FORMS/INPUTS (Contact Page) ------------- */
input, textarea, select {
  font-family: var(--body-font);
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid var(--retro-brown);
  padding: 9px 13px;
  background: #faf7f2;
  transition: border 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* -------------- COOKIE CONSENT BANNER -------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #4B3E2D;
  color: #fffbe8;
  padding: 16px 20px;
  z-index: 10050;
  box-shadow: 0 -4px 18px 0 rgba(67, 42, 13, .22);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  animation: bannerdrop 0.6s cubic-bezier(.7,0,.74,1);
}
@keyframes bannerdrop {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 300px;
  line-height: 1.6;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
}
.cookie-banner__btn, .cookie-banner__btn-settings {
  padding: 8px 18px;
  font-family: var(--header-font);
  font-weight: 700;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  margin-right: 0;
  outline: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.cookie-banner__btn-accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner__btn-accept:hover, .cookie-banner__btn-accept:focus {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 14px rgba(255,178,0,0.12);
}
.cookie-banner__btn-reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner__btn-reject:hover, .cookie-banner__btn-reject:focus {
  background: #fffbe8;
  color: var(--retro-red);
}
.cookie-banner__btn-settings {
  background: transparent;
  color: #fffbe8;
  border: 2px dashed var(--secondary);
}
.cookie-banner__btn-settings:hover, .cookie-banner__btn-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  display: flex;
  position: fixed;
  left: 0; top: 0; right:0; bottom: 0;
  justify-content: center; align-items: center;
  background: rgba(32,48,76,.65);
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff6eb;
  color: var(--primary);
  padding: 32px 28px;
  border-radius: 18px;
  min-width: 340px;
  max-width: 92vw;
  box-shadow: 0 8px 50px rgba(67,42,13,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: modalpop 0.55s cubic-bezier(.7,0,.45,1);
}
@keyframes modalpop {
  from { opacity: 0; transform: scale(0.85) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal .cookie-banner__btn-settings {
  align-self: flex-end;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--primary);
  font-family: var(--header-font);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body-font);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
  margin-right: 6px;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: var(--retro-red);
  opacity: 0.7;
}
.cookie-modal label {
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}

/* ---------------- SPACING/RESPONSIVE UTILS --------------- */
@media (max-width: 1023px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 32px 7px;
    border-radius: 13px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 24px 3px;
    margin-bottom: 38px;
  }
  .content-wrapper, .text-section, .footer-contact {
    gap: 15px;
  }
  .content-wrapper {
    max-width: 98vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .card-container, .content-grid, .footer-nav, .social-links {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
  }
  .testimonial-card {
    padding: 14px;
    border-radius: 13px 6px 6px 13px;
    font-size: 1.02rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.28rem;
  }
  .mobile-nav {
    margin-top: 70px;
    margin-left: 9px;
    gap: 22px;
  }
  .cookie-modal {
    min-width: unset;
    padding: 22px 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ------------- TABLET OPTIMIZATION -------- */
@media (min-width: 769px) and (max-width: 1100px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  section {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* --------------- FINE TUNING/DECOR --------- */
section:before {
  content: '';
  display: block;
  position: absolute;
  top: -17px;
  left: 49px;
  width: 57px;
  height: 8px;
  background: var(--retro-orange);
  border-radius: 9px;
  opacity: 0.14;
  z-index: 0;
}

section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -17px;
  right: 41px;
  width: 48px;
  height: 7px;
  background: var(--retro-green);
  border-radius: 7px;
  opacity: 0.12;
  z-index: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Prevent overlap for all blocks/cards */
.card, .testimonial-card, section, .cookie-banner, .cookie-modal {
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* ------------- ACCESSIBILITY ------------- */
a:focus, button:focus, .cta:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* Loader/Spinner for modal (if needed; fallback) */
.loader, .spinner {
  border: 4px solid #fffbe8;
  border-top: 4px solid var(--retro-brown);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.9s linear infinite;
  margin-right: 16px;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
