/* =========================================
   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 {
  background: #F5EEDC;
  color: #295C36;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #295C36;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #E19024;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
}

/* =========================================
   VINTAGE RETRO COLOR PALETTE (BRAND + RETRO)
   ========================================= */
:root {
  --primary: #295C36;
  --secondary: #8FCC97;
  --accent: #F5EEDC;
  --vintage-yellow: #F6C667;
  --vintage-coral: #E36A5C;
  --vintage-teal: #3F8E86;
  --vintage-brown: #856D53;
  --vintage-blue: #43689C;
  --retro-bg: #FAF3E3;
  --retro-paper: #F5EEDC;
  --dark-text: #2B2421;
  --light-text: #FDF6EE;
  --card-shadow: 0 3px 18px 0 rgba(44,28,6,0.08);
  --border-radius: 18px;
  --input-bg: #FFFDEF;
  --input-border: #E6D3B3;
}

/* =========================================
   VINTAGE RETRO FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Geneva, sans-serif;
  color: var(--primary);
  margin-bottom: 0.65em;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0px 2px 0 rgba(232,200,99,0.13);
}
h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--dark-text);
  font-size: 1rem;
}
strong {
  color: var(--vintage-teal);
  font-weight: 700;
}

/* Retro text-decoration for headings */
h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-image: repeating-linear-gradient(90deg, var(--vintage-yellow), var(--vintage-yellow) 20px, transparent 20px, transparent 40px);
  margin-top: 10px;
  border-radius: 2px;
}

/* Remove underline for .cta */
.cta {
  text-decoration: none !important;
}

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
}

main {
  margin-bottom: 60px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-paper);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fffdf4;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 2px solid var(--input-border);
  padding: 32px 28px 24px 28px;
  min-width: 250px;
  max-width: 100%;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(44,28,6,0.15);
  transform: translateY(-2px) scale(1.012);
}

.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;
  background: #fffdf4;
  border-left: 5px solid var(--vintage-coral);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  font-style: italic;
  color: var(--dark-text);
  transition: border-color 0.18s;
  min-width: 220px;
  max-width: 100%;
}
.testimonial-card:hover {
  border-left-color: var(--vintage-yellow);
}
.testimonial-card p {
  margin: 0;
  font-size: 1.08em;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--vintage-brown);
  font-size: 0.98em;
  margin-left: 8px;
}

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

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 5px 20px -12px var(--vintage-brown);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
header nav.main-nav {
  display: flex;
  gap: 32px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.08em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover,
header nav a.active {
  color: var(--vintage-yellow);
}
header img {
  height: 54px;
  width: auto;
  margin-right: 8px;
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-yellow);
  color: var(--primary);
  border: none;
  border-radius: 12px;
  font-size: 2em;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  z-index: 51;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--vintage-teal);
  color: var(--light-text);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF3E3;
  box-shadow: 0 2px 32px rgba(44,28,6,0.26);
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform 0.42s cubic-bezier(.86,.01,.38,1.04);
  padding: 32px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--vintage-coral);
  color: var(--light-text);
  border: none;
  border-radius: 12px;
  align-self: flex-end;
  font-size: 2.1em;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background .17s;
  z-index: 1002;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--vintage-brown);
  color: var(--vintage-yellow);
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}
nav.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3em;
  color: var(--primary);
  padding: 12px 0 12px 0;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: none;
  transition: background .12s, color .12s;
}
nav.mobile-nav a:hover,
nav.mobile-nav a:focus {
  background: var(--vintage-yellow);
  color: var(--vintage-coral);
}

/* Show hamburger on mobile */
@media (max-width: 900px) {
  header nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================
   BUTTONS & CTAs
   ========================================= */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.18em;
  padding: 14px 36px;
  margin: 18px 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 12px -3px var(--vintage-brown);
  transition: background 0.2s, color 0.18s, box-shadow 0.2s, transform 0.1s;
}
.cta.primary {
  background: var(--vintage-yellow);
  color: var(--primary);
  border: 2px solid var(--vintage-coral);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--vintage-coral);
  color: var(--light-text);
  border-color: var(--vintage-yellow);
  box-shadow: 0 6px 24px -5px var(--vintage-brown);
  transform: translateY(-3px) scale(1.03);
}
.cta.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--vintage-teal);
  color: var(--accent);
  border: 2px solid var(--vintage-yellow);
  transform: translateY(-2px) scale(1.02);
}

button, .cta {
  outline: none;
}
button:focus-visible, .cta:focus-visible {
  outline: 2px dashed var(--vintage-brown);
  outline-offset: 3px;
}

/* =========================================
   FORM CONTROLS - for contact/forms etc.
   ========================================= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  padding: 12px 16px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--primary);
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vintage-teal);
}

label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary);
}

/* =========================================
   DETAILS ELEMENT: Retro Accordion
   ========================================= */
details {
  background: #fffbe7;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(44,28,6,0.06);
  border: 1px solid var(--input-border);
  padding: 0 0 0 16px;
}
summary {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.07em;
  font-weight: 700;
  padding: 12px 0 12px 4px;
  outline: none;
  position: relative;
}
details[open] summary {
  color: var(--vintage-coral);
}
details > p {
  padding: 10px 0 14px 10px;
  margin-bottom: 0;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  width: 100%;
  background: var(--primary);
  color: #f2ecdb;
  padding: 36px 0 30px 0;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
footer .content-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 60px;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 40px;
}
footer nav a {
  color: #EDE3C2;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--vintage-yellow);
}
footer img {
  width: 60px;
  height: auto;
}
footer p {
  margin: 0;
  font-size: 0.98em;
  color: #f1e6d3;
  line-height: 1.6;
}

/* =========================================
   CONTACT DETAILS STYLING
   ========================================= */
.contact-details {
  background: #F9F6F0;
  border-radius: 15px;
  border-left: 4px solid var(--vintage-teal);
  box-shadow: 0 2px 10px 0 rgba(44,28,6,0.06);
  padding: 18px 30px 18px 22px;
  color: var(--primary);
  margin: 20px 0 10px 0;
  font-size: 1.04em;
}
.contact-details p {
  margin-bottom: 2px;
}

/* =========================================
   RESPONSIVE RETRO PATTERNS & BACKGROUNDS
   ========================================= */
.section {
  /* Subtle paper pattern */
  background: repeating-linear-gradient(135deg, #F5EEDC, #F5EEDC 40px, #FAF3E3 40px, #FAF3E3 85px);
}
.testimonial-card {
  /* Faint retro torn-paper effect (decorative only) */
  background: linear-gradient(135deg, #fffdf4 94%, #f6c667 100%);
}

/* =========================================
   SPACING UTILITIES
   ========================================= */
.section:not(:last-of-type) { margin-bottom: 60px; }
.card:not(:last-child), .testimonial-card:not(:last-child) { margin-bottom: 20px; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
  .content-grid, .footer .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container { padding: 0 10px; }
}
@media (max-width: 768px) {
  /* MOBILE FIRST! */
  .container, .content-wrapper { padding: 0 6px; }
  .section {
    padding: 22px 8px;
    margin-bottom: 38px;
  }
  .card,
  .testimonial-card {
    padding: 18px 14px 14px 14px;
    min-width: 80vw;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .footer .content-wrapper,
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  header img { height: 42px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.10rem; }
  .card, .testimonial-card {
    padding: 14px 6px;
    font-size: 1em;
  }
}


/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  background: var(--primary);
  color: var(--accent);
  padding: 18px 20px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 12px 0 rgba(44,28,6,0.16);
  font-size: 1.02em;
  animation: banner-slidein 0.5s cubic-bezier(.53,.04,.62,.98);
}
@keyframes banner-slidein {
  from { transform: translateY(65px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 0%;
  margin-right: 32px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 9px 22px;
  margin: 0;
  cursor: pointer;
  transition: background .15s, color .13s;
}
.cookie-banner .accept {
  background: var(--vintage-yellow);
  color: var(--primary);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--vintage-coral);
  color: var(--light-text);
}
.cookie-banner .reject {
  background: var(--vintage-coral);
  color: var(--light-text);
}
.cookie-banner .reject:hover {
  background: var(--primary);
  color: var(--vintage-yellow);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner .settings:hover {
  background: var(--secondary);
}

/* ----- COOKIE MODAL ----- */
.cookie-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1.03);
  background: #fffdf4;
  z-index: 10000;
  border-radius: 22px;
  box-shadow: 0 8px 42px 0 rgba(44,28,6,0.25);
  padding: 34px 26px 26px 26px;
  min-width: 290px;
  max-width: 98vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: cookie-modal-in 0.26s cubic-bezier(.79,.12,.27,.98);
}
@keyframes cookie-modal-in {
  from { opacity:0; transform: translate(-50%,-50%) scale(.89); }
  to { opacity:1; transform: translate(-50%,-50%) scale(1.03); }
}
.cookie-modal.active {
  display: block;
}
.cookie-modal h3 {
  font-size: 1.3em;
  margin-top: 0;
  color: var(--primary);
}
.cookie-modal .cookie-categories {
  margin: 22px 0 14px 0;
}
.cookie-modal label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal .close-modal {
  background: var(--vintage-yellow);
  color: var(--primary);
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .14s, color .12s;
}
.cookie-modal .close-modal:hover {
  background: var(--vintage-coral);
  color: var(--light-text);
}

/* Cookie modal overlay background */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(42,35,26,0.35);
  z-index: 9000;
}
.cookie-modal.active ~ .cookie-modal-backdrop {
  display: block;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.99em;
    padding: 12px 8px;
    gap: 8px;
  }
  .cookie-banner .cookie-actions {
    gap: 6px;
  }
  .cookie-banner .cookie-text {
    margin-right: 6px;
  }
  .cookie-modal {
    min-width: 98vw;
    padding: 15px 8px 14px 8px;
  }
}

/* =========================================
   MISC RETRO DETAILS & ACCESSIBILITY
   ========================================= */
::-webkit-input-placeholder { color: #bba042; opacity: 0.9; }
::-moz-placeholder { color: #bba042; opacity: 0.9; }
:-ms-input-placeholder { color: #bba042; opacity: 0.9; }
::placeholder { color: #bba042; opacity: 0.9; }

[tabindex]:focus-visible { outline: 2px solid var(--vintage-yellow); outline-offset: 2px; }

hr {
  border: none;
  border-top: 2px dashed var(--vintage-coral);
  margin: 24px 0;
}

/* =========================================
   RETRO MICRO-ANIMATIONS
   ========================================= */
.cta, button, .card,
.testimonial-card, .cookie-banner button, .cookie-modal .close-modal {
  will-change: transform, box-shadow, background, color;
}
.card, .testimonial-card, .cta, button {
  transition: box-shadow 0.19s, background 0.18s, color 0.13s, border-color 0.18s, transform 0.14s;
}

/* =========================================
   PRINT STYLES (hide nav, footer, cookie)
   ========================================= */
@media print {
  nav, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
    display: none !important;
  }
  body { background: #fff; color: #222; }
}
