/* ============================
   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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #F4E8CD;
  color: #204060;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 80px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: #b15616;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #9d4715;
  text-decoration: underline;
}

/* ================
   VINTAGE_RETRO THEME
=================== */
:root {
  --color-primary: #204060;
  --color-secondary: #F4E8CD;
  --color-accent: #b15616;
  --color-offwhite: #fff9f2;
  --color-dark-brown: #594227;
  --color-contrast-bg: #faf2e1;
  --color-button: #e77a1c;
  --color-card-shadow: rgba(32, 64, 96, 0.09);
  --radius-base: 18px;
  --radius-card: 16px;
  --shadow-card: 0 4px 18px var(--color-card-shadow);
}

/* Retro Google Fonts Integration */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 1.6rem; margin-bottom: 14px; }
h3 { font-size: 1.21rem; margin-bottom: 10px; }
h4 { font-size: 1.05rem; margin-bottom: 8px; }

p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-dark-brown);
  font-size: 1rem;
  margin-bottom: 10px;
}
strong { color: var(--color-primary); font-weight: bold; }

ul, ol {
  margin: 0 0 14px 24px;
  list-style: disc outside;
}

blockquote {
  font-style: italic;
  border-left: 5px solid var(--color-accent);
  background: var(--color-offwhite);
  padding: 12px 20px;
  border-radius: 0.8em;
  color: var(--color-dark-brown);
}

/* ===================
   LAYOUT WRAPPERS
==================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  margin: 0 auto;
  background: transparent;
  border-radius: var(--radius-base);
  box-shadow: none;
}

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

/* ================
   HEADER & NAVIGATION
=================== */
header {
  width: 100%;
  background: #fff9f2;
  border-bottom: 4px solid var(--color-accent);
  box-shadow: 0 3px 12px rgba(32,64,96,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  padding: 6px 14px;
  border-radius: 12px;
  transition: background 0.18s, color 0.12s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
header nav .cta-btn {
  background: var(--color-button);
  color: #fff;
  font-weight: 700;
  padding: 7px 22px;
  margin-left: 8px;
  border-radius: 99em;
  box-shadow: 0 3px 8px rgba(183,104,33,0.09);
  letter-spacing: 0.05em;
  border: none;
  outline: none;
  transition: background 0.15s, transform 0.11s;
}
header nav .cta-btn:hover, header nav .cta-btn:focus {
  background: #b15616;
  color: #fff9f2;
  transform: scale(1.045);
}

header img {
  height: 44px;
}

/* =========
 MOBILE MENU
============ */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1201;
  background: var(--color-accent);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(32,64,96,0.08);
  transition: background 0.13s, color 0.16s;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--color-primary); }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-secondary);
  box-shadow: 0 0 60px 0 rgba(23,12,2,0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0.3,0.2,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 10vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 38px 0 0;
  font-size: 2.3rem;
  background: transparent;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
  padding: 6px 10px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  margin: 60px 38px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: var(--color-primary);
  background: var(--color-offwhite);
  padding: 13px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 7px rgba(32, 64, 96, 0.07);
  transition: background 0.17s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Show only on mobile */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================
   HERO & SECTION STYLES
==================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  margin-bottom: 28px;
  padding: 28px 22px;
  border-radius: var(--radius-card);
  background: var(--color-contrast-bg);
  box-shadow: 0 1.5px 6px var(--color-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul, .text-section ol {
  margin-left: 20px;
}
.text-section a {
  color: var(--color-button);
  font-weight: bold;
  text-decoration: underline dotted;
}
.text-section a:hover {
  text-decoration: underline wavy;
}

/* =============
 CARDS & GRIDS
============== */
.card-container, .testimonial-grid, .service-list, .advice-list, .feature-grid, .values-grid, .blog-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card, .testimonial-card, .values-grid > div, .feature-grid > div, .advice-list > div, .blog-overview > .text-section {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 240px;
  flex: 1 1 240px;
}
.card img, .feature-grid img, .values-grid img {
  height: 58px;
  width: 58px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: sepia(0.3) contrast(1.1) brightness(1.08);
}

.feature-grid, .values-grid, .advice-list {
  width: 100%;
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}
.feature-grid > div, .values-grid > div, .advice-list > div {
  flex: 1 2 210px;
  max-width: 340px;
}

.testimonial-grid {
  gap: 24px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fff9f2;
  color: #2a2a2a;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  min-width: 220px;
  max-width: 450px;
  font-size: 1.035rem;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--color-accent);
}
.testimonial-card p { color: #2a2a2a; }
.star-rating {
  color: #e77a1c;
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-top: 0;
}
.star-rating-summary {
  font-size: 1.1rem;
  background: var(--color-secondary);
  border-radius: 14px;
  margin: 20px 0 8px 0;
  padding: 10px 18px;
  color: var(--color-dark-brown);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

.quick-tips {
  background: var(--color-offwhite);
  border-radius: 11px;
  padding: 12px 18px;
  border: 1.5px dashed var(--color-accent);
  margin-bottom: 24px;
}

.service-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list .text-section {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}
.service-price {
  background: var(--color-contrast-bg);
  color: var(--color-button);
  border-radius: 10px;
  padding: 6px 9px;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ====================
  LAYOUT FLEX CLASSES
===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   BUTTONS & CTAs
=============== */
.cta-btn, .cookie-btn, .newsletter-signup .cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 99em;
  padding: 10px 28px;
  margin-top: 14px;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(224,122,28,0.09);
  transition: background 0.18s, color 0.15s, transform 0.11s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus,
.cookie-btn:hover, .cookie-btn:focus {
  background: #204060;
  color: #fffbe2;
  transform: scale(1.045);
}

a.cta-btn { text-decoration: none; margin-top: 0; }

/* Secondary (ghost) button */
.ghost-btn {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 99em;
  padding: 10px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.11s, color 0.13s;
}
.ghost-btn:hover, .ghost-btn:focus {
  background: var(--color-accent);
  color: #fff;
}

/* =============
  NEWSLETTER STYLES
============== */
.newsletter-signup {
  background: var(--color-contrast-bg);
  border-radius: 18px;
  margin: 32px 0 0 0;
  padding: 26px 18px;
  box-shadow: 0 2px 14px var(--color-card-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ==============
  FOOTER
============== */
footer {
  width: 100%;
  min-height: 160px;
  background: #25242b;
  color: var(--color-secondary);
  padding: 54px 0 38px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-contrast-bg);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  letter-spacing: 0.02em;
  transition: color 0.14s;
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-brand img {
  height: 38px;
}
.footer-contact p,
.footer-contact a {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--color-accent); }

/* =====================
 COOKIE BANNER & MODAL
====================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  width: 100vw;
  background: #fff9f2;
  color: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  padding: 20px 8px 18px 8px;
  box-shadow: 0 -4px 18px rgba(32,64,96,0.06);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
  font-size: 1.05rem;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px);
  transition: opacity 0.37s cubic-bezier(.68,-0.55,.27,1.55), transform 0.25s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-btn {
  margin-top: 0;
  margin-right: 10px;
  font-size: 1rem;
  padding: 9px 20px;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 700;
  transition: background 0.13s, color 0.15s;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Cookie consent modal popup */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 64, 96, 0.27);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff9f2;
  color: var(--color-primary);
  padding: 38px 32px 24px 32px;
  border-radius: 22px;
  box-shadow: 0 7px 44px rgba(32,64,96,0.13);
  max-width: 96vw;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 18px;
  font-size: 1.07rem;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-top: 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 42px;
  height: 20px;
  background: #ddd6c9;
  border-radius: 11px;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 2px; left: 2px;
  height: 16px;
  width: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: left 0.21s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 24px;
  background: var(--color-button);
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1.23rem;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.1s;
  padding: 3px 8px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { background: var(--color-accent); color: #fff; }

/* ======================
   RESPONSIVE LAYOUTS
======================= */
@media (max-width: 992px) {
  .container {
    max-width: 98vw;
  }
  .card, .testimonial-card, .values-grid > div, .feature-grid > div, .advice-list > div, .service-list .text-section {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 180px;
    padding: 18px 12px;
  }
}
@media (max-width: 800px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-contact, .footer-brand { order: 2; }
  .footer-nav { order: 1; }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.08rem; }
  section, .section {
    padding: 25px 6px;
    margin-bottom: 38px;
  }
  .content-wrapper { padding: 0; }
  .service-list, .feature-grid, .values-grid, .testimonial-grid, .advice-list, .blog-overview {
    flex-direction: column;
    gap: 18px;
  }
  .card, .testimonial-card, .values-grid > div, .feature-grid > div, .advice-list > div, .service-list .text-section {
    max-width: 100%;
    min-width: 140px;
    margin-bottom: 12px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 14px;
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 { font-size: 1.3rem; }
  .cookie-modal {
    padding: 18px 7px 12px 9px;
    min-width: 95vw;
    max-width: 99vw;
  }
}

/* ============================
   ACCORDION STYLES (FAQ)
=========================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion > div {
  background: var(--color-offwhite);
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 7px var(--color-card-shadow);
}
.faq-accordion h3 {
  cursor: pointer;
  margin-bottom: 7px;
  position: relative;
  font-size: 1.05rem;
  color: var(--color-button);
}
.faq-accordion p {
  font-size: 0.97rem;
  color: var(--color-dark-brown);
}

/* ============================
   BLOG CATEGORIES
=========================== */
.blog-categories {
  margin-top: 18px;
  margin-bottom: 23px;
  background: var(--color-offwhite);
  border-radius: 11px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-categories h3 { margin-bottom: 0; }
.blog-categories ul { display: flex; flex-wrap: wrap; gap: 17px; margin: 0; }
.blog-categories li {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  padding: 4px 14px;
  border-radius: 99em;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.92rem;
}

/* ============================
   RETRO ELEMENTS & DETAILS
=========================== */
.card, .testimonial-card, .service-list .text-section, .text-section, .quick-tips, .faq-accordion > div, .newsletter-signup {
  border-width: 2.5px;
  border-style: solid;
  border-color: rgba(177,86,22,0.13);
  background-clip: padding-box;
  background-image: repeating-linear-gradient(135deg, #F4E8CD 0 14px,#fff9f2 14px 28px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.card::before, .testimonial-card::before, .text-section::before, .newsletter-signup::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border-radius: var(--radius-card);
  border: 2px dashed rgba(177,86,22,0.09);
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
}

/* Nostalgic corner ribbons for testimonials */
.testimonial-card::after {
  content: '\2605';
  position: absolute;
  top: 0; right: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.1em;
  border-radius: 0 0 0 13px;
  padding: 4px 10px 7px 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ================
  MICRO-INTERACTIONS & TRANSITIONS
================ */
.card, .testimonial-card, .service-list .text-section, .faq-accordion > div, .newsletter-signup {
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:hover, .testimonial-card:hover, .service-list .text-section:hover, .faq-accordion > div:hover, .newsletter-signup:hover {
  box-shadow: 0 8px 25px rgba(231,122,28,0.14);
  transform: translateY(-3px) scale(1.017);
  z-index: 2;
}

/* =============
  VISUAL HIERARCHY
================= */
.content-wrapper > h1, .content-wrapper > h2, .content-wrapper > h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* =============
   MISC & UTILITIES
============== */
.hide {
  display: none !important;
}
.flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.flex-col {
  flex-direction: column;
}
.wrap {
  flex-wrap: wrap;
}
.gap-24 { gap: 24px; }
.gap-20 { gap: 20px; }
.gap-10 { gap: 10px; }

/* ============================
    PRINT STYLES (optional)
============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .newsletter-signup {display: none !important;}
  body { background: #fff; color: #000; }
}
