/* ===== CSS RESET & BASE STYLES ===== */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F5F3ED;
  color: #54342D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-smooth: always;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #B08E6D;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #54342D;
  text-decoration: none;
}
strong {
  font-weight: 700;
  color: #54342D;
}

/* ========== BRAND RETRO COLORS ========== */
:root {
  --primary: #54342D;
  --secondary: #B08E6D;
  --accent: #F5F3ED;
  --vintage-green: #84946A;
  --vintage-red: #A84E2B;
  --vintage-cream: #FDF6E2;
  --retro-brown: #786550;
  --retro-shadow: rgba(84,52,45,0.10);
}

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p, li, ul {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
}
blockquote {
  font-family: 'Playfair Display', serif;
  color: var(--secondary);
  background: var(--vintage-cream);
  padding: 20px 32px;
  border-left: 5px solid var(--secondary);
  margin: 30px 0;
  border-radius: 6px 16px 6px 16px;
}

/* ============= LAYOUT: CONTAINERS ============= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== NAV & HEADER ========== */
header {
  background: var(--primary);
  color: var(--vintage-cream);
  box-shadow: 0 6px 24px var(--retro-shadow);
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 14px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--vintage-cream);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0 6px 0;
  letter-spacing: .05em;
  transition: color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header img {
  height: 44px;
}
header .cta.primary {
  margin-left: 16px;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  padding: 2px 16px 1px 16px;
  border: none;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
  z-index: 102;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--accent);
  z-index: 103;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.69,-0.31,.36,1.29);
  box-shadow: 4px 0 30px 0 rgba(84,52,45,0.14);
  padding: 32px 32px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  color: var(--secondary);
  border: none;
  align-self: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 4px 16px 4px 16px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 22px;
  margin-top: 16px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 8px 2px 8px 0;
  border-bottom: 1px dashed var(--secondary);
  width: 100%;
  transition: color 0.17s, background 0.17s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(0,0,0,0.03);
}

/* --- HIDE NAV ON MOBILE, SHOW BURGER --- */
@media (max-width: 980px) {
  header .container nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

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

/* ========== HERO, SECTIONS, AND CARDS ========== */
.hero {
  background: var(--vintage-cream);
  border-bottom: 4px dashed var(--secondary);
  padding: 0;
  margin-bottom: 0;
}
.hero .container {
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero h1 {
  color: var(--vintage-red);
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-shadow: 1px 2px 0 var(--secondary);
}
.hero p {
  font-size: 1.12rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
  background: var(--accent);
  border-radius: 18px 10px 26px 12px;
  box-shadow: 0 4px 16px var(--retro-shadow);
  border: 1px dashed var(--vintage-green);
  position: relative;
}
.section:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid > div {
  background: var(--vintage-cream);
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--retro-shadow);
  flex: 1 1 220px;
  padding: 24px 20px;
  min-width: 180px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 2px solid var(--secondary);
  margin-bottom: 20px;
  position: relative;
}
.features-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.features-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.features-grid p {
  color: var(--retro-brown);
}

/* Card Containers (generic) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--vintage-cream);
  border-radius: 18px 8px 18px 8px;
  box-shadow: 0 2px 12px var(--retro-shadow);
  border: 2px solid var(--secondary);
  padding: 30px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 600px) {
  .card {
    padding: 16px 12px;
  }
}

.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;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--vintage-cream);
  box-shadow: 0 4px 16px var(--retro-shadow);
  border-radius: 18px 8px 18px 8px;
  border: 2px solid var(--secondary);
  color: #26231C;
  max-width: 580px;
}
.testimonial-card p {
  color: #26231C;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card strong {
  font-family: 'Playfair Display', serif;
  color: var(--retro-brown);
  font-size: 1rem;
  letter-spacing: 1px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* UL/LIST retro bullets */
ul li, .features-grid li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 1px 1px 0 var(--vintage-red);
  border: 3px solid var(--primary);
  margin-top: -9px;
}
.features-grid li:before { display: none; }

/* ========== CTA BUTTONS ========== */
.cta {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  padding: 10px 32px;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
  box-shadow: 0 3px 18px var(--retro-shadow);
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform .15s;
}
.cta.primary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--vintage-cream);
  transform: translateY(-2px) scale(1.04);
}
.cta.secondary {
  background: var(--primary);
  color: var(--vintage-cream);
  border: 2px solid var(--secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: var(--vintage-cream);
  padding: 36px 0 24px 0;
  border-top: 5px double var(--secondary);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
footer div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 7px;
  margin-bottom: 7px;
}
footer nav a {
  color: var(--vintage-cream);
  text-decoration: none;
  border-bottom: 1px dotted var(--secondary);
  padding-bottom: 2px;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--vintage-red);
}
footer img {
  height: 36px;
  margin-bottom: 4px;
}

/* ===== RESPONSIVE: ADAPTIVE DESIGN ===== */
@media (max-width: 990px) {
  .features-grid {
    flex-direction: column;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero .container {
    padding-top: 15px;
    padding-bottom: 20px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .features-grid > div, .card {
    min-width: 0;
    width: 100%;
    padding: 14px 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    padding: 16px 10px;
    border-radius: 16px;
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
  }
}


/* ========== MICRO-ANIMATIONS & EFFECTS ========== */
.section, .card, .testimonial-card, .features-grid > div, .cta {
  transition: box-shadow .22s, border-color .14s, transform .12s;
}
.section:hover, .features-grid > div:hover, .card:hover {
  box-shadow: 0 8px 28px var(--retro-shadow);
  border-color: var(--vintage-red);
  transform: translateY(-3px) scale(1.02);
}
.testimonial-card:hover {
  box-shadow: 0 12px 44px var(--retro-shadow);
  border-color: var(--vintage-green);
  transform: scale(1.01);
}

/* ========== FORM ELEMENTS ========== */
input, textarea, select, button {
  font-family: 'Montserrat', Arial, sans-serif;
}
input, textarea {
  border: 2px solid var(--secondary);
  border-radius: 6px;
  background: var(--vintage-cream);
  font-size: 1rem;
  padding: 8px 12px;
  margin-bottom: 14px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFF;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--vintage-cream);
  padding: 24px 12px 18px 12px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -3px 38px var(--retro-shadow);
  font-size: 1rem;
  gap: 16px;
  transition: transform .3s cubic-bezier(.61,.13,.5,.91), opacity .3s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 24px;
  border: 2px solid var(--accent);
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 24px;
  margin: 0 2px;
  cursor: pointer;
  font-weight: 600;
  transition: background .17s, color .17s, transform .12s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: var(--vintage-cream);
  border: 2px solid var(--secondary);
  transform: scale(1.07);
}
.cookie-banner .cookie-btn.reject {
  background: var(--vintage-red);
  color: var(--vintage-cream);
  border: 2px solid var(--vintage-cream);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--vintage-red);
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 420px;
  background: var(--vintage-cream);
  color: var(--primary);
  border-radius: 24px 10px 24px 10px;
  border: 2px solid var(--secondary);
  box-shadow: 0 11px 44px var(--retro-shadow);
  z-index: 1201;
  padding: 34px 22px 24px 22px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity .32s, transform .32s;
  display: none;
}
.cookie-modal.open {
  display: block;
  opacity: 1;
}
.cookie-modal__close {
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background .17s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--secondary);
  color: var(--vintage-cream);
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--secondary);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 24px;
  border: 2px solid var(--primary);
  border-radius: 24px;
  margin-top: 14px;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: var(--primary);
  color: var(--vintage-cream);
}

/* ========== Z-INDEX STACKING ========== */
header, footer, .cookie-banner, .cookie-modal {
  z-index: 100;
}
.mobile-menu {
  z-index: 120;
}

/* ========== MISC RETRO ELEMENTS ========== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -28px;
  left: 12px;
  width: 46px;
  height: 12px;
  background: repeating-linear-gradient(135deg, var(--secondary), var(--secondary) 8px, transparent 8px, transparent 16px);
  opacity: .6;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -24px;
  right: 20px;
  width: 40px;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--secondary), var(--secondary) 9px, transparent 9px, transparent 18px);
  opacity: 0.5;
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 600px) {
  .section:before, .section:after {
    display: none;
  }
}

/* ========== SPACING/ALIGNMENT CONSISTENCY ========== */
.section, .card, .testimonial-card {
  margin-bottom: 60px;
}
.card-container > * {
  margin-bottom: 20px;
}
.features-grid > * {
  margin-bottom: 20px;
}
.content-grid > * {
  margin-bottom: 20px;
}
.text-image-section > * {
  margin-bottom: 10px;
}

/* ========== UTILITIES ========== */
.hide-on-mobile { display: inline-block; }
@media (max-width: 768px) {
  .hide-on-mobile { display: none; }
}

/* ========== PRINT FONTS ========== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: local('Playfair Display'), local('PlayfairDisplay'),
    url('https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTAD.ttf') format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'),
    url('https://fonts.gstatic.com/s/montserrat/v20/JTUQjIg1_i6t8kCHKm459Wlhzg.ttf') format('truetype');
}

/* ===== END OF CSS ===== */
