/* --- 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,
main, 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; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }

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

/* --- CSS VARIABLES (with fallbacks) --- */
:root {
  --color-primary: #1C2733;
  --color-secondary: #659BAA;
  --color-accent: #F5F6F9;
  --color-vintage-yellow: #FFE48B;
  --color-vintage-brown: #A78A7F;
  --color-vintage-rose: #D6A9A5;
  --color-vintage-mint: #8DBFB8;
  --gradient-vintage-bg: #F5F6F9;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- GENERAL BODY STYLES --- */
body {
  font-family: var(--font-body, Arial, sans-serif);
  background: var(--gradient-vintage-bg, #F5F6F9);
  color: var(--color-primary, #1C2733);
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}

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

main {
  flex: 1 1 auto;
}

/* --- TYPOGRAPHY & VINTAGE STYLE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, Arial, sans-serif);
  color: var(--color-primary, #1C2733);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 0 var(--color-vintage-yellow), 0 4px 16px #ffe48b33;
}
h2 {
  font-size: 1.8rem;
  text-shadow: 1px 1px 0 var(--color-vintage-rose);
}
h3 {
  font-size: 1.25rem;
  color: var(--color-secondary, #659BAA);
}

p {
  color: var(--color-primary, #1C2733);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

strong {
  font-weight: bold;
}
em {
  font-style: italic;
  color: var(--color-vintage-mint);
}

ul, ol {
  margin-bottom: 18px;
  margin-left: 18px;
}
li {
  padding-left: 0.5em;
  margin-bottom: 10px;
  position: relative;
  font-size: 1rem;
}
li::before {
  content: '\25A0';
  font-size: 0.85em;
  color: var(--color-vintage-brown);
  margin-right: 7px;
  position: relative;
  top: -2px;
}
th, td {
  padding: 12px 18px;
  border-bottom: 1px solid #d6a9a555;
}
th {
  background: var(--color-vintage-yellow);
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.15rem;
}
table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  background: #fffdec;
  border-radius: 12px;
  box-shadow: 0 2px 12px #a78a7f11;
  overflow: hidden;
}

/* --- VINTAGE CORNERS, SHADOWS --- */
section, .content-wrapper, .card, .testimonial-card, .feature {
  border-radius: 16px;
  box-shadow: 0 4px 24px #a78a7f1c;
}


/* --- FLEX SPACING AS REQUIRED --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  background: #fff8ed;
  border-radius: 14px;
  box-shadow: 0 2px 12px #d6a9a577;
}
.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;
  background: #fffdfa;
  border: 2px solid #ffe48bae;
  border-radius: 14px;
  box-shadow: 0 2px 12px #a78a7f13;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO SECTION --- */
.hero-section {
  background: repeating-linear-gradient(135deg, #FFE48B 0 8px, #fff8ed 8px 24px);
  border-radius: 24px;
  box-shadow: 0 6px 32px #d6a9a533;
  padding: 48px 30px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero-section h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
}
.hero-section .cta-btn {
  margin-top: 18px;
}

/* --- FEATURES GRID --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}
.feature {
  background: #fffdec;
  border: 2px solid #ffe48bae;
  border-radius: 13px;
  min-width: 230px;
  max-width: 320px;
  flex: 1 1 230px;
  padding: 22px 20px 20px 20px;
  box-shadow: 0 2px 10px #d6a9a555;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.18s;
}
.feature img {
  width: 50px;
  margin-bottom: 6px;
}
.feature h3 {
  margin-bottom: 8px;
  color: var(--color-vintage-rose);
  font-size: 1.1rem;
}
.feature:hover {
  transform: translateY(-7px) scale(1.03) rotate(-1deg);
  box-shadow: 0 6px 28px #d6a9a555;
  border-color: #d6a9a5;
}

/* --- TESTIMONIALS --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 14px;
}
.testimonial-card {
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 390px;
  background: #fffdfa;
  border: 2px solid #ffe48bae;
  color: #1C2733;
  font-family: var(--font-body);
  box-shadow: 0 2px 28px #decbad16;
  transition: border 0.2s, box-shadow 0.2s;
}
.testimonial-card span {
  color: #f3b447;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.testimonial-card p {
  color: #1C2733;
  margin-bottom: 8px;
  font-size: 1rem;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #a78a7f;
  letter-spacing: 0.5px;
}
.testimonial-card:hover {
  border-color: #f3b447;
  box-shadow: 0 8px 38px #ffe48b48;
}

/* --- BUTTONS & CTA --- */
.cta-btn, .mobile-menu-close, .cookie-btn, .cookie-btn-secondary {
  appearance: none;
  border: none;
  outline: none;
  background: var(--color-secondary, #659BAA);
  color: #fffdfa;
  font-family: var(--font-display);
  font-size: 1.13rem;
  padding: 13px 34px;
  border-radius: 33px;
  box-shadow: 0 2px 8px #659baa33, 0 0px 0 #fff;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1.5px;
  margin-bottom: 0;
  margin-right: 18px;
  transition: background 0.15s, box-shadow 0.18s, color 0.15s, transform 0.14s;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-vintage-yellow);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 4px 20px #a78a7f44;
}
.cta-btn:focus, .cookie-btn:focus {
  outline: 3px dotted var(--color-vintage-mint);
  outline-offset: 2px;
}
.cookie-btn-secondary {
  background: #fffdec;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
  background: var(--color-secondary);
  color: #fffdfa;
}

/* --- HEADER --- */
header {
  background: #faf6e9;
  box-shadow: 0 4px 28px #d6a9a544;
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px 20px;
}
header a img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: center;
  font-family: var(--font-display);
}
.main-nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 7px 2px;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.12s, border-color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

header .cta-btn {
  margin-left: 18px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: #ffe48b;
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  padding: 8px 18px;
  border-radius: 24px;
  margin-left: 20px;
  cursor: pointer;
  position: relative;
  z-index: 150;
  box-shadow: 0 2px 10px #1c273323;
  transition: background 0.14s, color 0.12s, box-shadow 0.17s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-vintage-rose);
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 95vw;
  max-width: 340px;
  height: 100vh;
  background: #fffdfa;
  box-shadow: -8px 0 34px #00000033, 0 0 1px #a78a7f44;
  z-index: 200;
  transform: translateX(110%);
  transition: transform 0.39s cubic-bezier(.68,-0.55,.27,1.55);
  padding: 0 0 0 0;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  margin: 16px 18px 10px 0;
  padding: 0 8px;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
  background: #ffe48b77;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 2px 32px 0 32px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  padding: 14px 6px;
  border-radius: 8px;
  transition: background 0.14s, color 0.15s;
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #ffe48b44;
  color: var(--color-secondary);
}

/* --- SHOW/HIDE NAV ON MOBILE --- */
@media (max-width: 950px) {
  .main-nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- CONTENT WRAPPER & SPACING --- */
.content-wrapper {
  margin: 0 auto 40px auto;
  padding: 36px 24px 36px 24px;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 0 2px 20px #a78a7f0e;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section,.content-wrapper {
  margin-bottom: 40px;
  gap:18px;
}

/* --- CARDS & GRID --- */
.card-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  flex: 1 1 285px;
  min-width: 220px;
  max-width: 380px;
  background: #fff8ed;
  border: 2px solid #ffe48b99;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.location-map {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0 0;
  font-family: var(--font-display);
  color: var(--color-vintage-brown);
  padding: 8px 14px;
  background: #ffe48b44;
  border-radius: 8px;
}

/* --- FOOTER --- */
footer {
  background: #faf6e9;
  border-top: 4px dotted #ffe48b77;
  padding: 22px 0 10px 0;
  font-size: 0.98rem;
  letter-spacing: 0.4px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  padding: 5px 0px;
  font-weight: 600;
  opacity: .87;
  text-decoration: underline dotted #a78a7f55 2px;
  transition: color 0.13s, text-decoration 0.22s;
}
.footer-nav a:hover {
  color: var(--color-vintage-brown);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-primary);
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 10px;
  vertical-align: text-bottom;
}
.footer-brand {
  flex: 1 1 180px;
  font-family: var(--font-display);
  color: var(--color-vintage-rose);
  margin-top: 7px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 5000;
  background: #fff8ed;
  color: var(--color-primary);
  border-top: 3px solid #ffe48b99;
  box-shadow: 0 -2px 22px #a78a7f22;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  font-size: 1.08rem;
  font-family: var(--font-body);
  opacity: 1;
  transition: transform 0.29s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn,
.cookie-banner .cookie-btn-secondary {
  margin-right: 10px;
  margin-top: 6px;
  padding: 12px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
}

/* --- COOKIE CONSENT PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 6000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #1c2733cc;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffdfa;
  border: 2px solid #ffe48b;
  border-radius: 18px;
  padding: 40px 34px 26px 34px;
  max-width: 430px;
  width: 95vw;
  box-shadow: 0 8px 44px #00000044;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  animation: modalpopin 0.32s cubic-bezier(.68,-0.2,.27,1.35);
}
@keyframes modalpopin {
  from { transform: scale(0.8) translateY(50px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-size: 1.04rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-category.essential label {
  color: #a78a7f;
}
.cookie-modal .cookie-btn {
  width: 99%;
  margin-top: 18px;
}

/* --- RESPONSIVE DESIGN & FLEX-COLUMN BREAKPOINTS --- */
@media (max-width: 990px) {
  .container, footer .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  .content-wrapper {
    padding: 25px 10px 25px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 4vw;
  }
  .content-wrapper, .section {
    padding: 18px 5vw 18px 5vw;
    margin-bottom: 32px;
  }
  .features-grid, .testimonials, .card-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  footer .container {
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 6vw;
  }
  .hero-section {
    padding: 32px 12px;
    min-width: 0;
    margin-bottom: 35px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 8vw;
    font-size: .98rem;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .features-grid .feature,
  .card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .cta-btn { font-size: 0.95rem; padding: 11px 18px; }
}

/* --- MICRO-INTERACTIONS --- */
a, .cta-btn, .feature, .testimonial-card, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.14s, box-shadow 0.2s, color 0.18s, border-color 0.17s, transform 0.14s;
}
.feature:active {
  transform: scale(0.98) rotate(-1deg);
}

/* --- VINTAGE NOSTALGIC ELEMENTS --- */
h1, h2, h3 {
  position: relative;
  /* Subtle underlines for retro look */
}
h1::after {
  content: '';
  position: absolute;
  left: 0; bottom: -10px;
  width: 70px;
  height: 7px;
  background: #ffe48b99;
  border-radius: 6px;
  z-index: 1;
}
h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 40px;
  height: 3px;
  background: #d6a9a555;
  border-radius: 5px;
  z-index: 1;
}

/* --- FORM ELEMENTS (for contact form/thank you) --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #ffe48b66;
  background: #fffdfa;
  padding: 10px 13px;
  margin-bottom: 14px;
  transition: border 0.16s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 3px var(--color-primary);
  outline: none;
}

/* --- CUSTOM SCROLLBARS (for a vintage classy touch) --- */
::-webkit-scrollbar {
  width: 12px;
  background: #ffe48b11;
}
::-webkit-scrollbar-thumb {
  background: #ffe48b88;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d6a9a5;
}

/* --- MISC --- */
::-moz-selection {
  background: #ffe48b77;
}
::selection {
  background: #ffe48b77;
}

/* --- VISIBILITY HELPERS (for JS) --- */
.hide { display: none !important; }

/* --- Z-INDEX for overlays & nav --- */
header { z-index: 50; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 5000; }
.cookie-modal-overlay { z-index: 6000; }

/* --- FINAL LAYOUT CHECK: FLEXBOX ONLY, NO GRID! --- */
/* All layout containers use only flex (see .features-grid, .card-grid, .card-container, .text-image-section, .section, .footer-nav, .footer-contact, .footer-brand) */
