/* === 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #FAF8F5;
  color: #433730;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: #184057;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #75B798;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}

/* === VINTAGE RETRO BRANDING COLORS === */
:root {
  --brand-primary: #184057;
  --brand-secondary: #75B798;
  --brand-accent: #F6F3EF;
  --brand-bg: #FAF4EC;
  --brand-vintage-gold: #e6c47a;
  --brand-oldwine: #743d2a;
  --brand-terracotta: #c16439;
}

/* === FONTS (Retro-flavored) === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #184057;
  margin-bottom: 16px;
  letter-spacing: 0.015em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #743d2a;
  text-shadow: 2px 2px 0 var(--brand-vintage-gold), 0 3px 8px #ffffff55;
}
h2 {
  font-size: 2rem;
  color: #184057;
  margin-bottom: 16px;
  border-bottom: 2px dashed var(--brand-vintage-gold);
  display: inline-block;
  padding-bottom: 2px;
}
h3 {
  font-size: 1.4rem;
  color: #c16439;
 }
h4, h5, h6 {
  font-size: 1.1rem;
  color: #184057;
}
p, li, span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #433730;
  font-size: 1rem;
  line-height: 1.7;
}

strong {
  color: #184057;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* === HEADER & NAV === */
header {
  background: var(--brand-accent);
  box-shadow: 0 2px 12px #e6c47a33;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header a img {
  height: 48px;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184057;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #c16439;
}
header .btn-primary {
  margin-left: 28px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #c16439;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.2s;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #184057;
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #f6f3efcc;
  z-index: 1200;
  flex-direction: column;
  align-items: flex-end;
  transition: opacity 0.35s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
  animation: slideInRight 0.40s cubic-bezier(.75,0,.25,1);
}
@keyframes slideInRight {
  from { transform: translateX(100vw); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #c16439;
  margin: 18px 32px 6px 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 1202;
}
.mobile-nav {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 20px 40px 40px 40px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  padding: 22px 0;
  border-bottom: 1px dashed var(--brand-vintage-gold);
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184057;
  font-size: 1.2rem;
  letter-spacing: 0.025em;
  font-weight: 700;
  background: transparent;
  transition: color 0.18s, background 0.17s;
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #c16439;
  background: #eeeedd;
}

/* Hide desktop nav on mobile, show toggle */
@media (max-width: 1020px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  header .btn-primary {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    margin-bottom: 30px;
    padding: 26px 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .content-wrapper, .text-section {
    gap: 14px;
  }
}

/* === BUTTONS === */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 30px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 0 #e6c47a, 0 1px 10px #00000010;
  letter-spacing: 0.09em;
  transition: background 0.23s, color 0.18s, box-shadow 0.23s;
  outline: none;
}
.btn-primary {
  background: #e6c47a;
  color: #184057;
  border: 2px solid #184057;
}
.btn-primary:hover, .btn-primary:focus {
  background: #75B798;
  color: #fff;
  border-color: #75B798;
  box-shadow: 0 6px 14px #c1643955;
}
.btn-secondary {
  background: transparent;
  color: #c16439;
  border: 2px solid #c16439;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #c16439;
  color: #fff;
  border-color: #c16439;
  box-shadow: 0 6px 18px #18405716;
}

/* Card List Patterns and Feature Items */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fffbea;
  border-radius: 18px;
  box-shadow: 0 3px 24px #18405708, 0 1px 8px #c1643912;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

/* === Content Grids & Text-Image === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
/* For content-wrapper inside .container, always flex column + spacing */
.content-wrapper {
  align-items: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6F3EF;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 2px 14px #c1643908;
}

/* Icon images in feature lists */
ul li img {
  height: 38px;
  width: auto;
  margin-right: 15px;
  vertical-align: middle;
  margin-bottom: 3px;
}

ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
}
ul li:last-child {
  margin-bottom: 0;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 22px #18405714, 0 1.5px 4px #e6c47a35;
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 540px;
  flex: 1 1 300px;
  border-left: 8px solid #e6c47a;
  font-size: 1rem;
  color: #342a24;
}
.testimonial-card p {
  color: #342a24;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card span {
  color: #184057;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-left: auto;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
  }
}

/* === FOOTER === */
footer {
  background: var(--brand-accent);
  padding: 38px 0 18px 0;
  border-top: 4px dotted #e6c47a;
  box-shadow: 0 -3px 16px #18405714;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
}
footer img {
  height: 42px;
  margin-bottom: 16px;
}
footer .text-section {
  gap: 7px;
}
footer .text-section p {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #184057;
  gap: 10px;
}
footer .text-section img {
  width: 22px;
  height: 22px;
  margin-right: 2px;
}
footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
footer nav a {
  color: #c16439;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #184057;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  footer nav {
    align-items: flex-start;
  }
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbea;
  color: #184057;
  border-top: 3px solid #e6c47a;
  box-shadow: 0 -2px 24px #18405710;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 10vw 21px 8vw;
  gap: 35px;
  font-size: 1rem;
  animation: slideUpBanner 0.6s cubic-bezier(.42,0,1,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  max-width: 650px;
  color: #433730;
  font-size: 0.98rem;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 26px;
  border: none;
  margin: 0 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px #c1643909;
  transition: background 0.13s, color 0.18s;
}
.cookie-banner .btn-accept {
  background: #75B798;
  color: #fff;
  border: 2px solid #184057;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #e6c47a;
  color: #184057;
  border-color: #e6c47a;
}
.cookie-banner .btn-reject {
  background: transparent;
  color: #184057;
  border: 2px solid #184057;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #e6c47a;
  color: #184057;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: #c16439;
  border: 2px solid #c16439;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #c16439;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 14px 12px;
    font-size: 0.98rem;
    gap: 12px;
  }
  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* === Cookie Settings Modal === */
.cookie-modal {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #f6f3efee;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s cubic-bezier(.23,1,.32,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal__box {
  background: #fffbea;
  border-radius: 22px;
  box-shadow: 0 6px 36px #18405733, 0 1.5px 10px #e6c47a25;
  padding: 40px 30px 28px 38px;
  min-width: 359px;
  max-width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  border: 3px solid #e6c47a;
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #c16439;
  cursor: pointer;
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #184057;
  margin-bottom: 4px;
}
.cookie-modal__group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-modal__label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184057;
  font-size: 1rem;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  background: #e6c47a;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.13s;
}
.cookie-switch-input {
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 22px;
  z-index: 1;
  cursor: pointer;
  margin: 0;
}
.cookie-switch-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-switch-input:checked + .cookie-switch-slider {
  left: 20px;
  background: #75B798;
}
.cookie-switch--disabled {
  background: #eeeedd;
  cursor: not-allowed;
}
.cookie-modal .btn-primary {
  margin-top: 18px;
  margin-bottom: 1px;
}
@media (max-width: 568px) {
  .cookie-modal__box {
    padding: 19px 8px 20px 12px;
    min-width: 0px;
  }
}

/* === RETRO VINTAGE VISUAL ELEMENTS === */
section {
  background: linear-gradient(90deg,#f6f3ef 80%, #e6c47a18 100%);
  border-radius: 33px 33px 2px 2px;
  box-shadow: 0 4px 28px #e6c47a10;
  margin-bottom: 60px;
}
main section:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  height: 1px;
  background: #e6c47a60;
  margin: 24px 0;
}

/* Decorative borders, patterns */
section {
  border: 3px double #e6c47a;
}
.content-wrapper, .card, .testimonial-card {
  /* Subtle sepia shadow for retro warmth */
  box-shadow: 0 3px 24px #c1643912,0 1.5px 10px #e6c47a24;
}

/* === TYPOGRAPHY SIZES === */
@media (min-width: 1200px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}
@media (min-width: 900px) and (max-width:1199px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.17rem; }
}

/* === FORM ELEMENTS, INPUTS, FORMS === */
input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 9px;
  border: 1.5px solid #c16439;
  background: #fffbea;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.16s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #184057;
  box-shadow: 0 0 5px #18405722;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184057;
  font-size: 1rem;
  margin-bottom: 6px;
}
button, .btn-primary, .btn-secondary {
  -webkit-tap-highlight-color: rgba(200, 100, 30, 0.10);
}

/* === UTILITIES === */
.mt-20 { margin-top: 20px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* === Animations & Transitions === */
section, .card, .testimonial-card, .cookie-banner, .cookie-modal__box, .btn-primary, .btn-secondary {
  transition: box-shadow 0.25s, border-color 0.18s, background 0.23s, color 0.18s;
}

.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px #18405728, 0 2px 16px #e6c47a33;
  border-color: #c16439;
}
.text-section h3 {
  border-left: 5px solid #e6c47a;
  padding-left: 12px;
}

/* === Retro Dots/Patterns for Nostalgic Vibe === */
section {
  background-image: repeating-linear-gradient(135deg,#e6c47a11 0 6px, transparent 8px 20px);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 600px) {
  section {
    border-radius: 17px 17px 2px 2px;
    padding: 16px 2px;
    margin-bottom: 24px;
  }
  .card, .testimonial-card {
    border-radius: 12px;
    padding: 16px 8px;
    margin-bottom: 13px;
  }
  header .container {
    flex-direction: row;
    gap: 6px;
    padding: 12px 2vw;
  }
}

/* === Remove outline for mouse users but keep for keyboard === */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid #e6c47a;
}

/* === Z-INDEX LAYERING FOR INTERACTIVE COMPONENTS === */
.mobile-menu { z-index: 1200; }
.mobile-menu-toggle { z-index: 1201; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2001; }

/* --- END CSS --- */