/* ----------------------------
   CSS RESET & NORMALIZE
-----------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #FFF6E6;
  color: #23457C;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23457C;
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: #b16e36;
  text-decoration: none;
}
ul, ol {
  padding-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #194262;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 2rem;
  margin-top: 1em;
  margin-bottom: 0.7em;
  color: #2d384c;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4em;
  color: #23457C;
}
h4 {
  font-size: 1.2rem;
}
p, address {
  font-size: 1rem;
  margin-bottom: 1em;
}
address {
  font-style: normal;
}
/* Typography scale for retro effect */
.subheadline {
  font-size: 1.25rem;
  font-family: 'Merriweather', serif;
  font-weight: 400;
  color: #88603a;
  margin-bottom: 1.5em;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 18px, #e4dace 19px, #e4dace 22px);
  border-radius: 20px;
}
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: #fffbe7;
  border-radius: 16px;
  padding: 32px 20px;
  margin-bottom: 32px;
  box-shadow: 0 2px 16px 0 rgba(50, 68, 45, 0.06);
}
/* Vintage/retro font vibes */
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

/* ----------------------------
   RETRO COLORS & PATTERNS
-----------------------------*/
:root {
  --primary: #23457C;
  --secondary: #4EB1AA;
  --accent: #FFF6E6;
  --bg-light: #fffbe6;
  --brown: #b16e36;
  --yellow: #ffd06a;
  --beige: #f5ede0;
  --shadow: 0 4px 18px 0 rgba(110, 84, 51, 0.10);
  --border-radius: 16px;
  --card-radius: 14px;
  --card-bg: #f9f6ee;
  --card-shadow: 0 2px 12px 0 rgba(34, 69, 124, 0.08),0 2px 4px 0 rgba(177,110,54,0.10);
}
body {
  background: var(--accent);
}

/* --------------------------------------
   HEADER + MAIN NAVIGATION
-----------------------------------------*/
header {
  background: #ffe4b5;
  border-bottom: 3px solid #e4dace;
  position: relative;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.main-nav a {
  color: #23457C;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #fffbe7;
  color: var(--brown);
}
.main-nav .cta-primary {
  background: var(--primary);
  color: #fffbe6;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  box-shadow: 0 1px 8px 0 rgba(35, 69, 124, 0.13);
  border-radius: 10px;
  margin-left: 12px;
  letter-spacing: 0.03em;
  border: 2px solid #fff6e6;
  transition: background .18s, color .18s, box-shadow .25s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #4EB1AA;
  color: #194262;
  border-color: #b16e36;
  box-shadow: 0 3px 18px 0 rgba(34, 69, 124, 0.18);
}
.logo-link {
  margin-right: 18px;
  display: flex;
  align-items: center;
}
.main-nav img {
  height: 40px;
  width: auto;
}

/* --------------
   HERO SECTION
---------------- */
.hero-section {
  background: #f6e3c5 url('../assets/hero-retro-pattern.svg') repeat center center;
  color: #23457C;
  border-bottom: 2px solid #e8d6ba;
  border-radius: 0 0 28px 28px;
  padding-top: 60px;
  padding-bottom: 60px;
  box-shadow: 0 8px 24px 0 rgba(178, 150, 105, 0.10);
  margin-bottom: 48px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
}
.hero-section h1 {
  color: #b16e36;
  font-size: 3rem;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  text-shadow: 0 4px 0 #ffd06a;
  letter-spacing: 0.03em;
  margin-bottom: 0.3em;
}
.hero-section .cta-primary {
  margin-top: 18px;
}

/* ---------------------------
   FEATURES / CARDS / GRID LISTS
----------------------------- */
.features-grid, .category-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 12px;
}
.feature-item, .category-list li, .service-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  border: 2px solid #e4dace;
  position: relative;
  gap: 15px;
  transition: transform 0.13s, box-shadow .2s;
  font-size: 1rem;
}
.feature-item img {
  width: 38px;
  margin-bottom: 6px;
  filter: sepia(0.5) contrast(1.1) brightness(0.97);
}
.feature-item:hover, .category-list li:hover, .service-list li:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 8px 30px 0 rgba(177, 110, 54, 0.19);
  border-color: #ffd06a;
}
.service-list li h3 span {
  font-size: 1rem;
  color: #88603a;
  font-weight: 400;
  margin-left: 7px;
  font-family: 'Roboto', sans-serif;
}
.category-list {
  gap: 20px;
  flex-wrap: wrap;
}
.category-list li {
  max-width: 320px;
  min-width: 180px;
  margin-bottom: 20px;
}

/* ----------------------------
   TESTIMONIAL CARDs
---------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fffbe6;
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0 2px 15px 0 rgba(108, 84, 49, 0.13);
  border: 2px dashed #d8b694;
  color: #23457C;
  margin-bottom: 20px;
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  line-height: 1.4;
  position: relative;
  min-width: 240px;
  max-width: 580px;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #23457C;
  margin-bottom: 0.6em;
  text-align: center;
}
.testimonial-card address {
  color: #88603a;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-style: normal;
  text-align: right;
  font-size: 0.98rem;
}

/* ----------------------------
   BUTTONS & CTAs
---------------------------- */
.cta-primary, .cta-secondary, button, .service-list a {
  display: inline-block;
  border-radius: 13px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 12px 32px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fffbe6;
  box-shadow: 0 2px 8px 0 rgba(35,69,124,0.12);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background .16s, color .16s, box-shadow .2s, transform .1s;
  text-decoration: none;
  outline: none;
  letter-spacing: 0.03em;
}
.cta-primary:hover, .cta-primary:focus, button:hover, button:focus {
  background: #b16e36;
  color: #fffbe6;
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 4px 20px 0 rgba(177, 110, 54, 0.25);
}
.cta-secondary {
  background: #ffd06a;
  color: #23457C;
  border: 2px solid #23457C;
  font-family: 'Merriweather', serif;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #4EB1AA;
  color: #fffbe6;
  border-color: #b16e36;
}
button:active, .cta-primary:active {
  transform: scale(0.97);
}

/* ----------------------------
   FOOTER
-----------------------------*/
footer {
  background: #ffe4b5;
  border-top: 2.5px solid #e4dace;
  font-size: 1rem;
  color: #23457C;
  padding: 26px 0;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #23457C;
  font-family: 'Merriweather', serif;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fffbe7;
  color: #b16e36;
}
.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-size: 0.97rem;
  color: #88603a;
}
.footer-brand img {
  height: 32px;
  width: auto;
}

/* ----------------------------
   FLEXBOX LAYOUTS
-----------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  border: 2px solid #e4dace;
  padding: 16px 15px;
}
.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;
}

/* Ensure min spacing between all cards/sections */
.card, .testimonial-card, .feature-item, .category-list li, .service-list li {
  margin-bottom: 20px;
}
section + section {
  margin-top: 20px;
}

/* ----------------------------
   MOBILE MENU STYLES
-----------------------------*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--primary);
  color: #fffbe6;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  padding: 10px 13px;
  cursor: pointer;
  z-index: 102;
  transition: background .21s;
  box-shadow: 0 2px 14px 0 rgba(35, 69, 124, 0.22);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #b16e36;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f9f2df;
  box-shadow: 0 4px 40px 0 rgba(144,74,10,0.16);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.6,.01,.53,1.16);
  opacity: 0.98;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.41s cubic-bezier(.6,.01,.53,1.16);
}
.mobile-menu-close {
  background: #fffbe6;
  color: #b16e36;
  border: 2px solid #ffd06a;
  border-radius: 50%;
  font-size: 2rem;
  padding: 10px 14px;
  margin: 22px 18px 0 0;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 0.5px 6px 0 rgba(180,106,35,0.1);
  transition: background .17s, color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffd06a;
  color: #23457C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 34px 0 0 36px;
  width: 85vw;
}
.mobile-nav a {
  color: #23457C;
  font-family: 'Merriweather', serif;
  font-size: 1.28rem;
  padding: 12px 18px;
  border-radius: 9px;
  background: transparent;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffd06a;
  color: #b16e36;
}

/* Hide nav on mobile, show burger */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ----------------------------
   COOKIE CONSENT BANNER
-----------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: #ffe4b5;
  color: #23457C;
  box-shadow: 0 -4px 24px 0 rgba(110, 84, 51, 0.132);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 23px 20px 20px 20px;
  gap: 22px;
  transition: transform .34s cubic-bezier(.61,-0.04,.63,.98), opacity .2s;
  font-size: 1.03rem;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 260px;
  font-size: 1.05rem;
  font-family: 'Roboto', sans-serif;
}
.cookie-consent-banner button {
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 9px;
  border-radius: 7px;
  font-size: 1rem;
  padding: 9px 18px;
  background: var(--secondary);
  color: #fffbe6;
  border: 2px solid #b16e36;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  box-shadow: 0 1.5px 8px 0 rgba(78,177,170,0.11);
  letter-spacing: 0.01em;
  transition: background .15s, color .15s, border .12s;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #b16e36;
  color: #fffbe6;
  border: 2px solid #fffbe6;
}
.cookie-consent-banner .cookie-settings {
  background: #ffd06a;
  color: #23457C;
  border: 2px solid #23457C;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: #23457C;
  color: #ffd06a;
  border-color: #b16e36;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 6000;
  background: #fffbe6;
  border: 3px solid #ffd06a;
  border-radius: 19px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 12px 36px 0 rgba(177, 110, 54, 0.16);
  width: 95vw;
  max-width: 400px;
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.63,0,.38,1.1), opacity .15s;
  font-family: 'Roboto', sans-serif;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #b16e36;
  font-family: 'Merriweather', serif;
  margin-bottom: 1em;
  margin-top: 0;
}
.cookie-modal ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}
.cookie-modal li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal .toggle-switch {
  display: inline-block;
  width: 40px;
  height: 22px;
  position: relative;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffe4b5;
  border-radius: 22px;
  border: 1.5px solid #b16e36;
  transition: background .18s;
}
.cookie-modal .slider:before {
  content: "";
  position: absolute;
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 2px;
  background: #4EB1AA;
  border-radius: 50%;
  transition: transform .19s, background .19s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: #4EB1AA;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
  background: #ffd06a;
}
.cookie-modal .category-title {
  font-family: 'Merriweather', serif;
  color: #23457C;
  font-size: 1.06rem;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.3em;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button,
.cookie-modal .modal-actions .cookie-settings {
  min-width: 110px;
  font-size: 1rem;
  padding: 7px 15px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #ffd06a;
  border: none;
  color: #b16e36;
  font-size: 1.4rem;
  border-radius: 50%;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #fffbe6;
  color: #23457C;
}

/* -----------------------------
   FORMS (if any in future)
-------------------------------*/
input, select, textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: 8px;
  border: 2px solid #e4dace;
  background: #fffbe6;
  color: #23457C;
  margin-bottom: 1em;
  box-shadow: 0 2px 7px 0 rgba(35, 69, 124, 0.07);
  transition: border .16s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: #b16e36;
  outline: none;
  box-shadow: 0 2px 18px 0 rgba(177, 110, 54, 0.15);
}

/* --------------------------------------
   RETRO/NOSTALGIC DECORATIVE ELEMENTS
----------------------------------------*/
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  display: block;
  position: absolute;
  top: -40px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 241, 196,0.48) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-section .content-wrapper {
  position: relative;
  z-index: 2;
}
section {
  background-image: repeating-linear-gradient(135deg, transparent, transparent 18px, #f0e2c6 19px, #f0e2c6 22px);
}
.text-section {
  background-image: none;
}

/* --------------------------------
   RESPONSIVE DESIGN (mobile-first)
-----------------------------------*/
@media (max-width: 1100px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 790px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.45rem;
    margin-bottom: 0.4em;
  }
  .footer-brand img {
    height: 24px;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 22px 6px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .content-wrapper, .features-grid, .category-list {
    flex-direction: column;
    gap: 16px !important;
  }
  .category-list li, .feature-item, .service-list li {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-bottom: 16px;
    padding: 17px 12px;
  }
  .hero-section {
    padding-top: 30px;
    padding-bottom: 34px;
    border-radius: 0 0 11px 11px;
    margin-bottom: 24px;
  }
  .hero-section h1 {
    font-size: 1.45rem;
    text-shadow: 0 2px 0 #ffd06a;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 7px;
    font-size: 1rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 10px !important;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.1rem;
  }
  .container {
    padding: 0 2px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 10px;
    padding: 15px 4px 11px 4px;
    font-size: 0.95rem;
  }
}

/* -------------------------------------
   VISUAL ENHANCEMENTS/ANIMATIONS
----------------------------------------*/
.cta-primary, .cta-secondary, button, .service-list a {
  transition: background .18s, color .18s, box-shadow .22s, transform .18s;
}
.card, .testimonial-card, .feature-item {
  transition: box-shadow .18s, transform .17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(177, 110, 54, 0.19);
  transform: translateY(-2px) scale(1.010);
}

/* ------------------------------------
   ADDITIONAL UTILITY CLASSES
--------------------------------------*/
.mt-8 {margin-top: 8px !important;}
.mb-8 {margin-bottom: 8px !important;}
.mt-16 {margin-top: 16px !important;}
.mb-16 {margin-bottom: 16px !important;}
.mt-24 {margin-top: 24px !important;}
.mb-24 {margin-bottom: 24px !important;}
.text-center {text-align: center !important;}
.text-right {text-align: right!important;}

/* Accessibility: focus styles */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 3px dotted #b16e36;
  outline-offset: 2px;
}

/* HIDE unwanted scrollbars on mobile menu */
.mobile-menu::-webkit-scrollbar {width: 0; background: transparent;}

/* Hide visually but keep for screen readers */
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important; width: 1px !important;
  margin: -1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; left: -10000px !important; top: auto !important;
}
