/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F3EF;
  color: #37322E;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- VINTAGE RETRO VARIABLE PALETTE (with Brand) --- */
:root {
  --scf-main: #17468B;
  --scf-accent: #F9F8F6;
  --scf-secondary: #29A872;
  --vintage-yellow: #F5C453;
  --vintage-red: #D94234;
  --vintage-blue: #3A809D;
  --vintage-green: #9EC493;
  --vintage-beige: #E8DDD2;
  --heading-font: 'Montserrat', 'Arial', sans-serif;
  --body-font: 'Roboto', 'Arial', sans-serif;
  --base-radius: 14px;
  --card-radius: 20px;
  --base-shadow: 0 3px 14px 0 rgba(31,24,20, 0.13);
  --retro-shadow: 0 3px 0 0 #BFAB9B, 0 6px 14px 0 rgba(50,33,14,0.11);
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: var(--body-font);
  font-size: 16px;
  background: var(--vintage-beige);
  color: #3a3022;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  letter-spacing: 0.03em;
  line-height: 1.19;
  color: var(--scf-main);
  font-weight: 900;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }

p, li {
  font-size: 1rem;
  font-family: var(--body-font);
  color: #53412e;
  margin-bottom: 12px;
}

strong { color: var(--scf-main); font-weight: 700; }

blockquote {
  font-style: italic;
  color: var(--vintage-red);
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
}
blockquote:before {
  content: '“';
  font-size: 2.5rem;
  color: var(--vintage-yellow);
  position: absolute;
  left: 0;
  top: -10px;
  font-family: var(--heading-font);
}

/* --- CONTAINER / SECTIONS --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--scf-accent);
  border-radius: var(--card-radius);
  box-shadow: var(--retro-shadow);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- LAYOUTS AND FLEXBOX GAPS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: var(--card-radius);
  box-shadow: var(--retro-shadow);
  margin-bottom: 20px;
  padding: 24px 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;
  flex-direction: column;
  align-items: flex-start;
  background: #FFF;
  gap: 20px;
  padding: 20px;
  border-radius: var(--card-radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px 0 #F5C45322, 0 3px 0 0 #e2cfa9;
  border: 2px solid #F5C453;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffbe8;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 0 0 #e6cfb3, 0 1px 12px 0 #F5C45309;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fffbe8;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 #BAAA9122;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 18px 18px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
}

/* --- BUTTONS --- */
.cta-btn,
button,
input[type="submit"] {
  background: var(--vintage-red);
  color: #fff;
  border-radius: var(--base-radius);
  border: none;
  font-family: var(--heading-font);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 13px 34px;
  cursor: pointer;
  box-shadow: 0 2px 0 0 #c7967a;
  transition: background 0.18s, color 0.18s, transform 0.2s, box-shadow 0.18s;
  margin: 8px 0 0 0;
  text-transform: uppercase;
}
.cta-btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--scf-main);
  color: #F5C453;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 5px 16px 0 #eab65344;
}
.cta-btn:focus,
button:focus {
  outline: 2px solid var(--vintage-yellow);
  outline-offset: 2px;
}

/* --- NAVIGATION BAR --- */
header {
  background: var(--vintage-yellow);
  box-shadow: 0 2px 0 0 #c7967a;
  position: sticky;
  top: 0;
  z-index: 30;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
}
header nav a {
  font-family: var(--heading-font);
  color: var(--scf-main);
  font-weight: 700;
  font-size: 1rem;
  margin-right: 7px;
  padding: 7px 15px;
  border-radius: var(--base-radius);
  transition: background 0.2s, box-shadow 0.18s;
  position: relative;
}
header nav a:hover {
  background: var(--vintage-blue);
  color: #fff;
}
header nav img {
  height: 46px;
  margin-right: 20px;
  margin-bottom: -7px;
}
header nav .cta-btn {
  margin-left: 18px;
  background: var(--vintage-green);
  color: #1a2315;
  box-shadow: 0 3px 0 0 #adc094;
}
header nav .cta-btn:hover {
  background: var(--vintage-red);
  color: #fff;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  background: var(--vintage-red);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 2px 8px 0 #d9423444;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--scf-main);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: var(--vintage-yellow);
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.78,.15,.33,.94);
  z-index: 1100;
  box-shadow: -1px 0 24px 2px #b38e5d44;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--vintage-red);
  color: #fff;
  font-size: 2rem;
  margin: 24px 18px 0 0;
  border: none;
  border-radius: 8px;
  padding: 4px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #d9423477;
  transition: background 0.17s;
}
.mobile-menu-close:hover {
  background: var(--scf-main);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: flex-start;
  padding: 50px 24px 8px 32px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  color: var(--scf-main);
  background: #fffdf8;
  font-size: 1.12rem;
  border-radius: 11px;
  padding: 14px 18px;
  width: 92%;
  transition: background 0.17s, color 0.11s;
  margin-bottom: 8px;
}
.mobile-nav a:hover {
  background: var(--vintage-red);
  color: #fff;
}

@media (max-width: 1050px) {
  .features-grid {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .features-grid > div {
    min-width: 160px;
    max-width: 44vw;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
  .container { padding: 0 5vw; }
  .section { padding: 28px 7vw; margin-bottom: 38px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  .features-grid { flex-direction: column; gap: 18px; }
  .card-container, .content-grid { flex-direction: column; gap: 18px; }
  .testimonial-card { padding: 17px 11px; }
  .text-image-section { flex-direction: column; gap: 18px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  .section { border-radius: 12px; }
  .features-grid > div, .feature-item { min-width: 90vw; max-width: 98vw; }
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  header nav { display: flex; }
}

/* --- CARD STYLES --- */
.card {
  border: 2.5px solid #EDD2AF;
}

/* --- UTILITY SPACING (no overlapping) --- */
.card, .section, .testimonial-card, .features-grid > div, .feature-item {
  margin-bottom: 22px;
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 10px;
}
ul li {
  position: relative;
  padding-left: 13px;
  margin-bottom: 5px;
}
ul li:before {
  content: '◉';
  color: var(--vintage-yellow);
  font-size: 0.85em;
  position: absolute;
  left: 0;
  font-weight: bold;
  top: 2px;
}

/* --- FOOTER --- */
footer {
  background: var(--scf-main);
  color: #fff;
  padding: 26px 0 0 0;
  margin-top: 70px;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
footer img {
  height: 42px;
  filter: drop-shadow(0 1.5px 1px #b8ae9e55);
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 12px 0 8px 0;
}
footer nav a {
  color: #F9F8F6;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.98;
  transition: text-decoration 0.1s;
}
footer nav a:hover { text-decoration: underline; color: var(--vintage-yellow); }
.contact-short {
  font-size: 0.95rem;
  color: #f5f3e4;
  margin-bottom: 4px;
}
footer .copyright {
  color: #EDD2AF;
  font-size: 0.92rem;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* --- SOCIAL ICONS PLACEHOLDER --- */
.social-links {
  display: flex;
  gap: 8px;
  min-height: 18px;
}

/* --- HYPERLINKS --- */
a {
  color: var(--scf-main);
  transition: color 0.16s;
}
a:hover { color: var(--vintage-red); }

/* --- FORM ELEMENTS --- */
input, textarea, select {
  font-family: var(--body-font);
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #E8DDD2;
  padding: 8px 13px;
  background: #fff;
  margin-bottom: 16px;
  color: #53412e;
  transition: border 0.18s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--scf-main);
  box-shadow: 0 2px 0 0 #F5C45355;
  outline: none;
}
label { font-family: var(--heading-font); font-size: 0.95rem; color: #362918; }

/* --- TABLES --- */
table {
  border-collapse: collapse;
  width: 100%;
  line-height: 1.4;
}
th, td {
  padding: 8px 12px;
  border: 1.5px solid #E8DDD2;
  text-align: left;
}
th {
  background: var(--vintage-yellow);
  font-family: var(--heading-font);
}

/* --- RETRO ELEMENTS & DETAILS --- */
.section {
  border: 3px dashed #C9B496;
  background: repeating-linear-gradient(135deg,#F9F8F6, #F9F8F6 60px,#F7F3EF 60px,#F7F3EF 120px);
}
.features-grid > div, .feature-item {
  border: 2px solid #EDD2AF;
  box-shadow: 0 4px 0 0 #E8DDD2;
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, .section, .testimonial-card, .cta-btn, .feature-item, .features-grid > div, .card-container > * {
  transition: box-shadow 0.13s, transform 0.17s;
}
.card:hover, .feature-item:hover, .features-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 9px 22px -3px #CAA56B26, 0 3px 0 0 #EDD2AF;
  transform: translateY(-2px) scale(1.02);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe8;
  border-top: 3px solid #C9B496;
  box-shadow: 0 -3px 12px #997b5648;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 1400;
  padding: 24px 10vw 22px 10vw;
  gap: 16px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.86,.06,0,1), opacity .22s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #362918;
  margin-bottom: 6px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--base-radius);
  border: none;
  padding: 10px 22px;
  margin: 0;
  cursor: pointer;
  transition: background .15s, color .12s, border .12s;
  box-shadow: 0 2px 0 0 #e8ddd2;
}
.cookie-btn.accept {
  background: var(--vintage-green);
  color: #1a2315;
}
.cookie-btn.accept:hover {
  background: var(--scf-main); color: #fff;
}
.cookie-btn.reject {
  background: var(--vintage-red);
  color: #fffbe8;
}
.cookie-btn.reject:hover {
  background: #fffbe8; color: var(--vintage-red); border: 1px solid #d94234;
}
.cookie-btn.settings {
  background: #fffbe8;
  color: var(--vintage-red);
  border: 1.5px solid #d94234;
}
.cookie-btn.settings:hover {
  background: var(--vintage-red); color: #fffbe8;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(60,45,17,0.36);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .26s;
}
.cookie-modal-backdrop.open {
  opacity: 1; pointer-events: auto;
}
.cookie-modal {
  background: #FFFBE8;
  border-radius: 18px;
  box-shadow: 0 7px 40px 3px #3a302235;
  padding: 34px 28px 24px 28px;
  width: 98vw; max-width: 420px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 10;
  border: 2px solid #EDD2AF;
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--vintage-red);
  margin-bottom: 8px;
  font-family: var(--heading-font);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #39382e;
}
.cookie-category .cat-switch {
  width: 36px; height: 22px;
  border-radius: 32px;
  background: #e0d3b9;
  position: relative;
  margin-right: 10px;
  flex-shrink: 0;
}
.cookie-category input[type="checkbox"] {
  display: none;
}
.cookie-category .cat-slider {
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  background: var(--vintage-red);
  border-radius: 50%;
  transition: left .18s, background .15s;
}
.cookie-category input[type="checkbox"]:checked + .cat-slider {
  left: 16px;
  background: var(--vintage-green);
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 12px;
  background: var(--vintage-red);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  border-radius: 7px;
  width: 28px; height: 28px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover { background: var(--vintage-blue); }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .cat-label-essential {
  color: var(--scf-main);
  opacity: 1;
  font-weight: 700;
}
.cookie-category input[disabled] + .cat-slider {
  background: #aaa7a3;
}

/* --- ANIMATIONS / FADE IN --- */
.section, .testimonial-card, .features-grid > div, .feature-item, .card {
  animation: fadein-up 0.8s cubic-bezier(.22,.8,.44,1) both;
}
@keyframes fadein-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}

/* --- PRINT FRIENDLY --- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer { display: none !important; }
  body { background: #fff; color: #222; }
  .container, .section, .card, .testimonial-card, .features-grid > div, .feature-item { box-shadow: none !important; border: none !important; }
}

/* --- ADDITIONAL TWEAKS FOR RETRO FEEL --- */
h1, h2, h3 {
  text-shadow: 0 2px 0 #fffbe8, 0 6px 16px #edd2af3b;
}
.card, .features-grid > div, .testimonial-card, .feature-item {
  border-radius: var(--card-radius);
  border: 2px solid #EDD2AF;
  background-color: #fffdf8;
  box-shadow: var(--retro-shadow);
}

/* --- MISC: Spacing below content & avoid overlap --- */
main { min-height: 74vh; }
.section:last-child, .content-wrapper:last-child, .card:last-child { margin-bottom: 0 !important; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px; background: #E8DDD2;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #C9B496;
  border-radius: 5px;
}

/* --- FOCUS VISIBLE FOR ACCESSIBILITY --- */
a:focus, button:focus-visible, .cta-btn:focus, input:focus-visible {
  outline: 2.5px solid var(--vintage-yellow);
  outline-offset: 2px;
}

/* --- DARK TEXT IN TESTIMONIAL --- */
.testimonial-card {
  color: #302412;
  background: #fcfaf3;
  border: 2px solid #f5c453;
}
.testimonial-card strong { color: var(--vintage-red); }

/* --- END --- */
