/* RESET & BASELINE ------------------- */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #FFF8EF;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #3a2c1c;
  background: #FFF8EF;
  min-height: 100vh;
  line-height: 1.5;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}

/* VINTAGE RETRO DESIGN BRAND VARIABLES -- */
:root {
  --primary: #1B365D;
  --secondary: #6D9773;
  --accent: #F7D038;
  --cream-bg: #FFF8EF;
  --brown: #3A2C1C;
  --paper: #F5ECD7;
  --vintage-red: #C5523F;
  --vintage-blue: #4AB6C1;
  --border: #E3CBA3;
  --shadow: rgba(58,44,28,0.10);
  --radius: 14px;
  --font-display: 'Montserrat', 'Arial Black', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

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

/* TYPOGRAPHY ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 var(--accent), 0 0 1px #fff;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  text-shadow: 1px 1px 0 var(--accent);
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.subheadline {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--vintage-red);
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: 1.7px;
}
p {
  margin-bottom: 16px;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1.75;
}
.text-section ul,
.text-section ol,
.faq-list,
.feature-list {
  margin-bottom: 24px;
}
.text-section li,
.faq-list li,
.feature-list li {
  margin-bottom: 13px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}

/* CONTAINER/LAYOUT BASICS ---------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
@media (min-width: 768px) {
  .content-wrapper {
    gap: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px var(--shadow);
}

/* VINTAGE PATTERNS (Paper Effect) */
.section {
  border: 1px solid var(--border);
  box-shadow: 0 3px 40px 0 var(--shadow);
  background: repeating-linear-gradient(135deg,#fff8ef,#fff8ef 40px,#f5ecd7 41px,#f5ecd7 60px);
}

/* HEADER -------------------------- */
header {
  background: var(--primary);
  color: #fff;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px 0 rgba(27,54,93,0.09);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px 18px;
}
header img {
  height: 44px;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-right: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fffef8;
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 7px;
  position: relative;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--brown);
}
.cta-btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 14px 28px;
  border-radius: 25px;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 8px 0 var(--shadow);
  cursor: pointer;
  margin-left: auto;
  position: relative;
  transition: box-shadow 0.18s, background 0.17s, color 0.17s, transform 0.12s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--vintage-red);
  color: #fff;
  box-shadow: 0 2px 22px 0 var(--shadow);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
}

/* MOBILE BURGER MENU ------------------ */
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.1rem;
  padding: 8px 12px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 102;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(247,208,56,0.13);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--paper);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.48,1.65,.63,1);
  box-shadow: 4px 0 44px 8px var(--shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--vintage-red);
  font-size: 2.2rem;
  margin: 20px 18px 14px 0;
  cursor: pointer;
  z-index: 1200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin: 0 0 0 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  padding: 8px 2px;
  border-radius: 7px;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--vintage-red);
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
  header .container {
    padding-right: 56px;
  }
}
@media (min-width: 1024px) {
  .main-nav, .cta-btn {
    display: flex;
  }
}

/* HERO SECTIONS -------------------- */
.hero {
  background: var(--secondary);
  background-image: repeating-linear-gradient(-7deg,rgba(247,208,56,0.07),rgba(247,208,56,0.09) 20px,#6D9773 22px,#6D9773 80px);
  color: #fff;
  padding: 60px 0 48px 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 6px 50px var(--shadow);
  margin-bottom: 32px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1, .hero h2, .hero h3 {
  color: #fff;
  text-shadow: 2px 2px 0 var(--primary), 1px 1px 10px #fff8ef88;
}
.hero .subheadline {
  color: var(--accent);
  font-size: 1.2rem;
  text-shadow: none;
  letter-spacing: 2px;
}

/* FEATURES | CARDS | VINTAGE ELEMENTS ------ */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  width: 100%;
}
.feature-list li {
  background: var(--paper);
  border: 1.3px dashed var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 3px 25px 0 var(--shadow);
  padding: 32px 22px 28px 22px;
  flex: 1 1 260px;
  min-width: 240px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.13s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-list li:hover, .feature-list li:focus-within {
  box-shadow: 0 2px 32px 7px var(--shadow);
  transform: translateY(-2px) scale(1.025) rotate(-1deg);
}
.feature-list img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: sepia(18%) hue-rotate(-25deg) contrast(1.12) brightness(0.98);
}
.feature-list h3 {
  color: var(--primary);
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 780px) {
  .feature-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* ABOUT & SERVICES TEXT SECTIONS ---------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* TESTIMONIAL CARDS ----------------------- */
.testimonials {
  margin: 0 0 60px 0;
  padding: 40px 20px;
  background: var(--cream-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px var(--shadow);
  border: 1px solid var(--border);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 var(--shadow);
  border-left: 7px solid var(--accent);
  color: #2a1b0b;
}
.testimonial-card p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: #2a1b0b;
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--vintage-red);
  font-family: var(--font-display);
  font-weight: 700;
}

/* LEGAL/INFORMATION SECTIONS ------------- */
.legal {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 3px 24px var(--shadow);
  border: 1px solid var(--border);
}
.legal h1, .legal h2 {
  color: var(--primary);
}


/* CONTACT & FAQ LISTS -------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list strong {
  color: var(--primary);
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.faq-list p {
  color: var(--brown);
}

/* CTA SECTION ---------------------------- */
.cta-section {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  box-shadow: 0 4px 32px var(--shadow);
  border-radius: var(--radius);
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 16px;
}
.cta-section h2 {
  text-align: center;
  color: var(--primary);
}
.cta-section .cta-btn {
  background: var(--primary);
  color: var(--accent);
  border-radius: 22px;
}
.cta-section .cta-btn:hover, .cta-section .cta-btn:focus {
  background: var(--vintage-red);
  color: #fff;
}


/* FOOTER ------------------------------ */
footer {
  background: var(--primary);
  color: #fff8ef;
  padding: 36px 0 10px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -3px 18px 0 var(--shadow);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
}
@media (max-width: 780px) {
  .footer-main {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}
.footer-branding img {
  height: 52px;
  margin-right: 8px;
  filter: drop-shadow(0 1px 4px var(--shadow));
}
.footer-branding .text-section {
  color: #fffef8;
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-end;
}
.footer-nav a {
  color: #fffef8;
  opacity: 0.95;
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 4px 10px;
  border-radius: 7px;
  transition: opacity 0.13s, background 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  opacity: 1;
}
.footer-copy {
  margin-top: 18px;
  text-align: center;
  font-size: 0.97rem;
  color: #f6eacc;
  letter-spacing: 0.02em;
}

/* CARD / CARD CONTAINER / CONTENT GRID --------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 20px 0 var(--shadow);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 1 280px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* TEXT-IMAGE SECTION LAYOUT ----------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* RESPONSIVE -------- */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
    padding: 0 8px;
  }
  .cta-section, .section, .testimonials, .legal {
    padding: 26px 6px;
  }
  .footer-main {
    gap: 20px !important;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .hero {
    padding: 38px 0 22px 0;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .card, .testimonial-card {
    padding: 20px 10px;
    min-width: unset;
  }
  .footer-branding {
    flex-direction: column;
    gap: 8px;
  }
}

/* MICRO-INTERACTIONS / BUTTONS / TRANSITIONS --------- */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .footer-nav a, .main-nav a, .mobile-nav a {
  transition: background 0.15s, color 0.13s, box-shadow 0.13s, transform 0.11s;
}

button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* HOMEPAGE ABOUT PREVIEW STYLING ------------------- */
.about-preview ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 0 0;
}
.about-preview ul li {
  background: var(--vintage-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 1px;
  box-shadow: 0 1.5px 5px 0 var(--shadow);
}

@media (max-width: 700px) {
  .about-preview ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* FEATURE ITEM (For more granular features, if any) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1600;
  background: var(--paper);
  box-shadow: 0 -2px 32px var(--shadow);
  border-top: 2px solid var(--accent);
  padding: 30px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: cookie-pop-in 0.53s cubic-bezier(.4,1.7,.54,1) both;
}
@keyframes cookie-pop-in {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-banner__text {
  font-size: 1rem;
  color: var(--brown);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 10px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-body);
  border: none;
  border-radius: 16px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: var(--vintage-blue);
  color: #fff;
  margin-right: 4px;
  box-shadow: 0 1.5px 7px 0 var(--shadow);
  transition: background 0.14s, color 0.14s;
}
.cookie-btn.cookie-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.cookie-accept:hover, .cookie-btn.cookie-accept:focus {
  background: var(--accent);
  color: var(--brown);
}
.cookie-btn.cookie-reject {
  background: var(--vintage-red);
  color: #fff;
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: var(--brown);
}
.cookie-btn.cookie-settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: var(--primary);
  color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 6px 12px 6px;
    gap: 12px;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-btn {
    width: 100%;
    min-width: 140px;
  }
}

/* COOKIE PREFERENCES MODAL --------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(27,54,93,0.26);
  z-index: 1650;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.2s cubic-bezier(.42,1.24,.67,1) both;
}
@keyframes modal-fade-in {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 6px 40px 0 var(--shadow);
  padding: 44px 34px 30px 34px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 11px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--vintage-red);
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover { color: var(--primary); }
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-modal .cookie-category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  width: 34px;
  height: 20px;
  border-radius: 15px;
  background: #d3ccba;
  position: relative;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #faf6ef;
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 1px;
  transition: left 0.19s;
}
.cookie-toggle:checked:after {
  left: 15px;
  background: var(--accent);
}

.cookie-category-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}
.cookie-modal .cookie-info {
  font-size: 0.97rem;
  color: var(--brown);
  margin-bottom: 8px;
}

/* MISC VINTAGE RETRO EFFECTS ---------------------------- */
.section, .features, .testimonials, .card, .faq-list, .about-preview, .legal {
  /* Slight paper grain effect with background pattern */
  background-image: repeating-linear-gradient(135deg,rgba(209,183,129,0.02) 0 8px,rgba(245,236,215,0.13) 8px 22px,transparent 22px 40px);
  border-radius: var(--radius);
}

/* ACCESSIBILITY/INTERACTIVE FOCUS STATES --------- */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 3px dashed var(--accent);
  outline-offset: 1px;
  background: rgba(247,208,56,0.14);
}

/* SPACING ENFORCEMENT -------------------------- */
.section > *,
.testimonials > *,
.legal > *,
.card-container > *,
.content-grid > *,
.card > *,
.feature-list > * {
  margin-bottom: 20px;
}
.section > *:last-child,
.testimonials > *:last-child,
.legal > *:last-child,
.card-container > *:last-child,
.content-grid > *:last-child,
.card > *:last-child,
.feature-list > *:last-child {
  margin-bottom: 0;
}

/* PREVENT OVERLAPPING ----------- */
.card, .testimonial-card, .faq-list li, .footer-branding, .footer-main {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .faq-list li:last-child, .footer-main:last-child {
  margin-bottom: 0;
}


/* PRINT (Clean Paper Effect) ------------ */
@media print {
  body {
    background: #fff;
  }
  .section, .testimonials, .card, .legal, .cta-section {
    box-shadow: none;
    border: none;
    background: #fff;
  }
}
