/* CSS RESET & BASE ------------------- */
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;
}
.content-wrapper .address-details *, .content-wrapper .address-details {
  color: #1E2746;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F2EAD3; /* Subtle paper-like off-white for vintage vibe */
  color: #1E2746;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  background-image: url('data:image/svg+xml;utf8,<svg opacity="0.05" width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="400" height="400" rx="48" fill="%23dcc33b"/><rect x="24" y="24" width="352" height="352" rx="40" fill="%23f4f6fb" stroke="%231e2746" stroke-width="3" stroke-dasharray="7,7"/></svg>');
  background-repeat: repeat;
}
@media (max-width: 600px) {
  body { font-size: 14px; }
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  letter-spacing: 0.05em;
  font-weight: 900;
  text-shadow: 1px 2px 0px #f8edb0, 0px 2px 6px #C9AE5A30; /* Nostalgic shadow */
}
h1 { font-size: 2.5rem; margin-bottom: 24px; color: #1E2746; }
h2 { font-size: 2rem; margin-bottom: 20px; color: #DCC33B; text-shadow: 1px 2px 0px #1e2746, 0 3px 16px #dcc33b22; }
h3 { font-size: 1.35rem; margin-bottom: 16px; color: #1E2746; }

@media (max-width: 768px){
  h1{font-size:2rem;}
  h2{font-size:1.6rem;}
  h3{font-size:1.1rem;}
}

p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #3C3B36;
  font-weight: 400;
}
strong { font-weight: 700; }
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li,
ol li {
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
}
ul li:before {
  content: '\2022';
  color: #DCC33B;
  position: absolute;
  left: -18px;
  font-size: 1.2em;
  top: -1px;
}
ol li {
  list-style-type: decimal;
  margin-left: 8px;
}

/* CONTAINER & SECTIONS ----------- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F4F6FB;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 #dcc33b24, 0 2px 0 #E1CB77 inset;
}
.content-wrapper, .text-section, .features-grid, .services-list, .testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.text-section {
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.features-grid, .services-list {
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 24px;
}
@media (max-width: 900px) {
  .container { max-width: 95vw; }
  .features-grid, .services-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .features-grid, .services-list, .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

/* HEADER & NAVIGATION ------------- */
header {
  width: 100%;
  background: #1E2746;
  box-shadow: 0 2px 0 #DCC33B, 0 3px 14px #dcc33b10;
  position: sticky;
  top: 0;
  z-index: 10001;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  min-height: 74px;
  gap: 12px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav a {
  color: #F4F6FB;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08em;
  font-weight: 700;
  transition: color 0.16s;
  position: relative;
}
nav a:hover, .footer-nav a:hover {
  color: #DCC33B;
  text-decoration: underline;
}
.button.primary {
  background: #DCC33B;
  color: #1E2746;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: .06em;
  box-shadow: 0 2px 6px #1e274650, 0 1px 0 #fff7cc inset;
  cursor: pointer;
  margin-left: 18px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.09s;
}
.button.primary:focus,
.button.primary:hover {
  background: #BFA627;
  color: #fff;
  outline: none;
  box-shadow: 0 4px 18px #dcc33b65, 0 2px 12px #1e274638;
  transform: translateY(-1px) scale(1.03);
}

/* HIDE default mobile menu & toggle */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 11002;
  background: #DCC33B;
  color: #1E2746;
  border: none;
  border-radius: 7px;
  font-size: 2.2rem;
  padding: 7px 16px;
  margin-left: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px #eecf007a;
  transition: background 0.22s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #1E2746;
  color: #DCC33B;
}
@media (max-width: 1000px) {
  nav {
    display: none;
  }
  .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1E2746ee;
  z-index: 12500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.5s cubic-bezier(.57,.2,.22,1.01);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: #DCC33B;
  margin: 36px 0 8px auto;
  cursor: pointer;
  padding: 0 22px 6px 0;
  align-self: flex-end;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fffccc;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 90vw;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35em;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 3px;
  transition: color .18s, background .13s, text-decoration .18s;
  width: 100%;
}
.mobile-nav a:hover {
  background: #DCC33B;
  color: #1E2746;
  text-decoration: underline;
}

@media (min-width: 1001px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* HERO / SUBHEADLINE / CTA ----------- */
.subheadline {
  color: #684C28;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.23rem;
  font-style: italic;
  margin-bottom: 18px;
  max-width: 600px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 #dcc33b42;
}
@media (max-width: 768px){
  .subheadline{font-size:1rem;}
}

/* CARDS & FEATURE BLOCKS ------------- */
.feature-card, .service-card {
  background: #F9F7EF;
  border: 1.5px solid #E6DCA3;
  border-radius: 14px;
  box-shadow: 0 2px 7px #1e27462e, 0 1px 0 #dcc33b25 inset;
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .13s, transform .12s, border-color .13s;
}
.feature-card img {
  width: 48px; height: 48px;
  margin-bottom: 8px;
  filter: sepia(0.6) hue-rotate(-13deg) contrast(1.1) brightness(1.1);
}
.feature-card:hover, .service-card:hover {
  border-color: #DCC33B;
  box-shadow: 0 4px 22px #dcc33b35, 0 2px 0 #fffef7 inset;
  transform: translateY(-2px) scale(1.02);
  z-index: 10;
}

.price-summary {
  margin: 20px 0 0 0;
  padding: 18px 14px;
  background: #fffef2;
  border-radius: 10px;
  border: 1.5px dashed #dcc33b;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 1px 7px #dcc33b26;
}

/* TESTIMONIALS -------------------- */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: #fffef7;
  border: 1.5px solid #DCC33B;
  border-radius: 12px 22px 10px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px #dcc33b22, 0 1px 0 #1e274617 inset;
  position: relative;
  font-size: 1rem;
  transition: box-shadow .17s, border-color .12s, transform .13s;
}
.testimonial-card p {
  color: #1E2746;
  font-size: 1.11em;
  line-height: 1.7;
  max-width: 450px;
  font-style: italic;
}
.testimonial-card strong {
  color: #684C28;
  font-size: 0.98em;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 6px;
}
.testimonial-card:hover {
  border-color: #BFA627;
  box-shadow: 0 4px 24px #dcc33b42, 0 2px 0 #dcc33b17 inset;
  transform: scale(1.02) translateY(-1px);
}

/* Ensure readable contrast in testimonials */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  background: #fffef7;
  color: #1E2746;
}

/* ADDRESS, FOOTER & DETAILS ----------- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #DCC33B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1em;
  transition: color .16s, text-decoration .13s;
}
footer {
  background: #1E2746;
  color: #F4F6FB;
  padding: 42px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer p {
  color: white;
}
.address-details {
  font-size: 0.95em;
  color: #ffeea9;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
.address-details a {
  color: #DCC33B;
  text-decoration: underline;
  font-weight: bold;
}

/* PLACEHOLDER STYLES ---------------- */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #eee6b9;
  border: 1.5px dashed #dcc33b;
  border-radius: 8px;
  min-height: 100px;
  padding: 12px 20px;
  margin-bottom: 10px;
}
.map-placeholder img {
  width: 48px;
  height: 48px;
  margin-right: 10px;
}
.neutral-placeholder {
  font-size: 1em;
  color: #AAA38E;
  background: #FCF9E0;
  border-radius: 7px;
  padding: 6px 16px;
  margin-bottom: 8px;
}

/* CTA & BUTTONS -------------------- */
.button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 1.1em;
  letter-spacing: .04em;
  outline: none;
  margin-top: 12px;
  margin-bottom: 4px;
  text-decoration: none;
  box-shadow: 0 2px 8px #dcc33b27;
  transition: background .16s, color .16s, box-shadow .17s, transform .11s;
}
.button:active {
  transform: translateY(1.5px) scale(0.97);
}
.button.secondary {
  background: #1E2746;
  color: #DCC33B;
  border: 2px solid #DCC33B;
  font-weight: 700;
}
.button.secondary:hover, .button.secondary:focus {
  background: #DCC33B;
  color: #1E2746;
  border-color: #1E2746;
}

/* FLEXBOX LAYOUTS (MANDATORY) ------- */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* SECTION & CARD SPACING ----------- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 600px) {
  section {
    margin-bottom: 36px;
    padding: 28px 0 0 0;
  }
}
.card, .feature-card, .service-card, .testimonial-card {
  margin-bottom: 20px;
}
/* Ensure no overlap and breathing space */
.content-wrapper > *, .features-grid > *, .services-list > *, .testimonial-slider > *, .testimonial-list > * {
  margin: 0;
}

/* LINKS -------------------------- */
a { color: #1E2746; text-decoration: underline; }
a:focus { outline: 2px solid #DCC33B; outline-offset: 2px; }

/* Cookie Banner ----------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 14000;
  background: #1E2746;
  color: #F4F6FB;
  width: 100vw;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 36px #1e2746c1, 0 0px 0 #dcc33b77 inset;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.5s cubic-bezier(.5,.16,.5,1.1);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-text {
  flex: 1 1 auto;
  max-width: 680px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #ffeptc;
}
.cookie-banner .button {
  margin: 0 5px;
  font-size: 1em;
  min-width: 120px;
  min-height: 42px;
}
.cookie-settings-btn {
  background: #fff;
  color: #1E2746;
  border: 2px solid #DCC33B;
  font-weight: bold;
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: #DCC33B;
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 14px; align-items: flex-start; padding: 13px 8px 13px 8px; }
}

/* COOKIE MODAL ------------------- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 14100;
  background: rgba(30,39,70,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: cookieModalFadeIn .38s cubic-bezier(.41,1.36,.74,.98);
}
@keyframes cookieModalFadeIn {
  0% {opacity:0;}
  100%{opacity:1;}
}
.cookie-modal-content {
  background: #F4F6FB;
  color: #1E2746;
  border-radius: 14px;
  box-shadow: 0 2px 44px #dcc33b58, 0 1px 0 #dcc33b12 inset;
  padding: 38px 28px 32px 28px;
  max-width: 400px;
  min-width: 270px;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal-content h3 { color: #DCC33B; font-size: 1.34rem; margin-bottom: 10px; }
.cookie-modal-content ul {
  margin-left: 15px;
  margin-bottom: 18px;
}
.cookie-modal-content li {
  color: #1E2746;
  font-size: 1em;
  margin-bottom: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1E2746;
  cursor: pointer;
  opacity: .82;
  transition: color .16s;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: #DCC33B;
  opacity:1;
}
.cookie-modal .cookie-choices {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1em;
  gap: 10px;
}
.cookie-toggle {
  accent-color: #DCC33B;
  width: 24px;
  height: 24px;
}
.cookie-modal .button {
  padding: 8px 18px;
  font-size: 1em;
}

/* MICRO-ANIMATIONS --------------- */
.button, nav a, .mobile-nav a, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner .button, .cookie-modal-close {
  transition: background .13s, color .13s, box-shadow .18s, transform .11s, text-decoration .14s;
}

/* VINTAGE PATTERNS/DETAILS ------- */
.section,
.feature-card, .service-card, .testimonial-card, .cookie-modal-content {
  background-image: repeating-linear-gradient(135deg,#F4F6FB 0 10px,#f9f7ef 10px 20px);
  background-size: 60px 60px;
  border-radius: 20px 21px 17px 15px;
}

/* RESPONSIVE ADJUSTMENTS --------- */
@media (max-width: 1240px) {
  .container{max-width:97vw;}
}
@media (max-width: 880px) {
  .feature-card, .service-card{min-width:86vw;max-width:100vw;}
}
@media (max-width: 670px) {
  header .container{flex-direction:column;gap:8px;align-items:flex-start;}
  .footer-nav {flex-direction: column; gap: 10px; margin-bottom: 5px;}
  .address-details { font-size:0.85em; }
}

/* FORMS (if needed later) -------- */
input, textarea, select {
  border-radius: 5px;
  border: 1.5px solid #DCC33B;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: border .16s, box-shadow .13s;
  box-shadow: 0 1px 3px #dcc33b22 inset;
  background: #fffef7;
  color: #1E2746;
  margin-bottom: 16px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #1E2746;
  box-shadow: 0 0 6px #dcc33b79;
}

/* ACCENT DETAILS ----------------- */
hr {
  border: none;
  border-top: 2px dashed #DCC33B;
  margin: 24px 0;
}
::-webkit-scrollbar-thumb { background: #dcc33b; border-radius: 8px; }
::-webkit-scrollbar { background: #f4f6fb; width: 9px; }
::-webkit-selection { background: #dcc33b; color: #1e2746; }
::selection { background: #dcc33b; color: #1e2746; }

/* PRINT/PDF SAFE ----------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { color: #1E2746 !important; background: #fff !important; box-shadow: none !important; }
}
