/* --- 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  box-sizing: border-box;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #fffdfa;
  color: #2c2b29;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
:root {
  --primary: #245985;
  --secondary: #F7C851;
  --accent: #FFFFFF;
  --retro-brown: #88614a;
  --retro-cream: #f9f4ea;
  --retro-green: #40785a;
  --retro-red: #e2644b;
  --retro-blue: #5a7fa3;
  --retro-orange: #eab543;
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #222;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  text-shadow: 1px 2px 0 #F7C851, 0 2px 8px rgba(36,89,133,0.08);
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 17px;
  color: var(--primary);
  text-shadow: 0 1px 0 #f9f4ea;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--retro-brown);
}
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
}
p.subtitle {
  font-size: 1.22rem;
  color: var(--retro-cream);
  background: var(--primary);
  padding: 6px 12px 5px 12px;
  border-radius: 10px 10px 22px 10px;
  display: inline-block;
  margin-bottom: 18px;
  box-shadow: 0 0.5px 4px #e4c46a75;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
a:hover, a:focus {
  color: var(--retro-red);
  text-decoration: underline;
}

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

.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--retro-cream);
  border-radius: 22px;
  box-shadow: 0 4px 27px 0 rgba(246,184,81,0.14);
}

.card-container,
.card-grid,
.features,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card {
  background: #FFF6EA;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  padding: 25px 20px;
  box-shadow: 0 2px 12px 0 rgba(154,87,36,0.09), 0 0.3px 8px #ffe9b9cc;
  border: 2px solid var(--secondary);
  min-width: 0;
}
.card h2, .card h3 {
  margin-bottom: 10px;
}

.feature-item,
.testimonial-card {
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 1.5px 14px 0 rgba(36,89,133,0.05);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 18px;
  border-left: 7px solid var(--primary);
  background: #fcf7eb;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px 19px 22px;
  margin-bottom: 24px;
  background: #fffbed;
  border-radius: 18px;
  border: 2px solid var(--secondary);
  box-shadow: 0 3px 16px rgba(36,89,133, 0.09);
  font-family: var(--font-body);
  color: #20201a;
  max-width: 510px;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--retro-brown);
  letter-spacing: 0.02em;
}

.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;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #f3e0b9;
  border-bottom: 7px double var(--secondary);
  box-shadow: 0 12px 24px -16px #eab54365;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  position: relative;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
}
.logo img {
  max-height: 50px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-right: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.main-nav a {
  font-size: 1.06rem;
  color: var(--primary);
  border-radius: 15px;
  padding: 7px 16px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background-color: var(--secondary);
  color: var(--retro-brown);
}
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 33px;
  padding: 11px 28px 10px 28px;
  margin-left: 16px;
  box-shadow: 0 2px 12px rgba(247,200,81, 0.11), 0 1px 2px var(--primary);
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.28s cubic-bezier(.4,.09,.64,1);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1.5px) scale(1.035);
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--secondary);
  margin-left: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px #eab54322;
  transition: background 0.21s, color 0.21s, border 0.21s;
}
.mobile-menu-toggle:active {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 992px) {
  .main-nav {
    gap: 10px;
    font-size: 0.97rem;
  }
}
@media (max-width: 860px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 92vw;
  max-width: 390px;
  background: #fffdfa;
  box-shadow: -4px 0 28px #eab54320;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.32,.56,.64,1.11);
  display: flex;
  flex-direction: column;
  padding: 0 0 30px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  align-self: flex-end;
  margin: 18px 18px 8px 0;
  cursor: pointer;
  box-shadow: 0 2px 10px #eab54333;
  transition: background 0.18s, color 0.18s;
  z-index: 1001;
}
.mobile-menu-close:active {
  background: var(--primary);
  color: #fff;
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--font-display);
  padding: 15px 25px 0 35px;
}
.mobile-menu .mobile-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 9px 4px 9px 0;
  border-left: 7px solid var(--secondary);
  margin-bottom: 3px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}
.mobile-menu .mobile-nav a:hover, .mobile-menu .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--retro-brown);
  border-left-color: var(--primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
}

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

@media (max-width: 860px) {
  .mobile-menu {
    display: flex;
  }
}

/* --- MAIN CONTENT & UTILITY CLASSES --- */
main {
  margin-top: 20px;
  min-height: 70vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--retro-cream);
  border-radius: 22px;
  box-shadow: 0 4px 28px 0 rgba(36,89,133,0.04);
}
@media (max-width: 700px) {
  section {
    padding: 26px 6vw;
    margin-bottom: 28px;
    border-radius: 13px;
  }
}

@media (max-width: 700px) {
  .content-wrapper, .text-section {
    padding: 0 !important;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container, .features, .card-grid, .content-grid {
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
@media (min-width: 769px) {
  .content-wrapper, .card-container, .features, .card-grid, .content-grid {
    flex-direction: row;
  }
  .text-image-section {
    flex-direction: row;
    align-items: center;
  }
}

/* --- LISTS --- */
ul {
  padding-left: 1.1em;
  margin-bottom: 12px;
}
ul li {
  position: relative;
  margin-bottom: 0.8em;
  padding-left: 1.4em;
  font-family: var(--font-body);
}
ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0.1em;
  top: 0.56em;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--secondary);
  border: 2px solid var(--retro-brown);
  box-shadow: 0 1.5px 5px #ffdf8b33;
}

/* --- FOOTER --- */
footer {
  margin-top: 30px;
  background: #f3e0b9;
  padding: 24px 20px 18px 20px;
  border-top: 7px double var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  transition: color 0.19s, text-shadow 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-red);
  text-shadow: 0 1px 12px #eab54333;
}
.footer-info {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: #a18e6c;
}

/* --- INTERACTIVE ELEMENTS & BUTTONS --- */
button, .cta-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.11s, transform 0.19s;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* --- ICONS IN LISTS & MAP --- */
.content-wrapper img[alt], .map-location img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 9px;
  height: 24px;
  width: auto;
  filter: grayscale(60%) brightness(1.2) sepia(0.6) contrast(1.1);
}
.map-location {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 7px 0;
  font-family: var(--font-body);
}
.contact-details-block {
  margin: 12px 0 0 0;
  padding: 15px 13px;
  background: #f8ecd5;
  border-left: 5px solid var(--primary);
  border-radius: 10px 23px 10px 10px;
  box-shadow: 0 1px 6px #ffe2aa33;
  font-size: 1.07rem;
  color: #3d2d18;
}

/* --- SHADOWS FOR CARDS & BUTTONS --- */
.card, .testimonial-card, .feature-item, .cta-btn, .mobile-menu, .mobile-menu-close {
  box-shadow: 0 2px 16px 0 rgba(36,89,133,0.08), 0 2px 8px #eab54313;
}

/* --- RESPONSIVE TYPOGRAPHY SCALE --- */
@media (max-width: 700px) {
  h1 {
    font-size: 1.59rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.17rem;
    margin-bottom: 13px;
  }
  h3 {
    font-size: 1.03rem;
  }
  p, ul li, .cta-btn {
    font-size: 0.97rem !important;
  }
  .main-nav a {
    font-size: 1rem;
  }
}

/* --- SPACING STANDARDIZATION --- */
.section,
.card,
.testimonial-card,
.feature-item {
  margin-bottom: 20px;
  /* Already floats with mandatory */
}
.card-container, .card-grid, .content-grid, .features {
  gap: 24px;
}
.text-image-section {
  gap: 22px;
}
@media (min-width: 769px) {
  .section { margin-bottom:60px; padding:40px 20px; }
  .card-container { flex-direction:row; gap:24px; }
  .content-grid { flex-direction:row; gap:20px; }
  .text-image-section { flex-direction:row; gap:30px; align-items:center; }
  .testimonial-card { flex-direction:row; align-items:center; gap:20px; }
  .feature-item { align-items:flex-start; gap:15px; }
}

/* --- TESTIMONIAL CONTRAST & READABILITY --- */
.testimonial-card {
  background: #fffbed;
  color: #2a2a23;
  border-color: var(--secondary);
}
.testimonial-card p, .testimonial-card span {
  color: #20201a;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--retro-brown);
  color: var(--accent);
  padding: 22px 16px 19px 16px;
  border-top: 5px dashed var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  z-index: 1300;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: 0 -2px 22px #2a2a23bb;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.37,1.31,.46,.98);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner .cookie-btn {
  padding: 8px 28px 8px 28px;
  margin: 0 9px 0 0;
  border-radius: 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 1px 6px #f9ce6f44;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, transform 0.15s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--retro-red);
  color: #fffeda;
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #f1e0b6;
  color: var(--retro-brown);
  transform: translateY(-1px) scale(1.04);
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(80,52,29,0.82);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.37,1.31,.56,.98);
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-box {
  background: #fcf9f1;
  color: #2b2825;
  border-radius: 22px;
  padding: 35px 30px 28px 30px;
  box-shadow: 0 4px 36px 0 #fffcea, 0 7px 16px 0 #eab54333;
  min-width: 290px;
  min-height: 220px;
  max-width: 95vw;
  max-height: 97vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1rem;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: var(--retro-brown);
  color: #fff;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  font-size: 1.32rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 8px #f7c85152;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 5px 0 7px 0;
}
.cookie-modal .cookie-cat label {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 600;
  margin-right: 9px;
}
.cookie-modal .cookie-cat input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  box-shadow: 0 1px 8px #fac22142;
  margin-right: 8px;
}
.cookie-modal .cookie-cat .always-on {
  color: var(--retro-grey, #8a867e);
  font-size: 0.93em;
  margin-left: 8px;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 14px;
}

/* --- MODAL AND BANNER MEDIA --- */
@media (max-width: 599px) {
  .cookie-modal .cookie-modal-box {
    padding: 19px 7vw 18px 7vw;
    min-width: 0;
    max-width: 97vw;
  }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.section, .card, .testimonial-card, .feature-item, .cta-btn {
  animation: fadeInUp 0.88s cubic-bezier(.16,.76,.42,1.07) both;
}

/* --- RETRO DECORATIVE PATTERNS --- */
body {
  background:
    repeating-linear-gradient(135deg, #f9f3e2, #f9f3e2 22px, #FFF8E4 22px, #FFF8E4 44px);
}
.section {
  background:
    repeating-linear-gradient(120deg, #fcf7eb, #fcf7eb 24px, #f9f4ea 24px, #f9f4ea 48px);
}

/* --- VINTAGE FONT FALLBACKS LOADING --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v25/JTURjIg1_i6t8kCHKm45_cJD3gnD-w.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
}

/* --- FORM (where applicable) --- */
input, textarea, select {
  background: #fffbef;
  border: 2px solid var(--secondary);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* --- SPECIAL RETRO BUTTONS (for in-place links) --- */
a.cta-link, .cta-link {
  border-bottom: 3px dotted var(--retro-orange);
  color: var(--retro-brown);
  font-weight: 700;
  padding-bottom: 2px;
  font-size: 1.02em;
  background: transparent;
  border-radius: 3px;
  transition: background 0.17s, color 0.17s;
}
a.cta-link:hover, .cta-link:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* --- PRINT & ACCESSIBILITY --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  header, footer { background: #fff !important; box-shadow: none !important; border: none !important; }
}

/* --- Z-INDEX MANAGEMENT --- */
.mobile-menu, .mobile-menu-close, .cookie-banner, .cookie-modal,
header { z-index: 1000; }

/* ---- END CSS ---- */
