/* ===== CSS RESET & BASE RULES ===== */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fffdfa;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

/* ===== FONTS & ROOT VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');
:root {
  --color-primary: #13365B;
  --color-secondary: #FDD835;
  --color-accent: #EEF4F8;
  --color-bg: #fffdfa;
  --color-cream: #F5ECE2;
  --color-brown: #624A2E;
  --color-red: #E86045;
  --color-green: #6AA984;
  --color-orange: #EFBC75;
  --color-txt-dark: #1e1e1e;
  --color-txt-light: #fffdf5;
  --shadow-vintage: 0 4px 18px 0 rgba(82,65,20,0.09), 0 1.5px 0 0 #E1C699;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', 'Helvetica', sans-serif;
  --font-body: 'Open Sans', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-brown);
  background: var(--color-bg);
  min-height: 100vh;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-shadow: 1.5px 4px 0 #FDD83533;
}
@media (max-width: 700px) {
  h1, .h1 { font-size: 2.05rem; }
}
h2, .h2 {
  font-family: var(--font-display);
  color: var(--color-red);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 #F5ECE2;
}
h3, .h3 {
  font-family: var(--font-display);
  color: var(--color-brown);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  text-shadow: 0.5px 1.2px 0 #EFBC7544;
}
h4, .h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-display);
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-brown);
  line-height: 1.7;
}
strong, b {
  color: var(--color-primary);
  font-weight: bold;
}
.text-section ul, ul {
  list-style: disc inside;
  margin-top: 12px;
  margin-bottom: 12px;
  margin-left: 0;
}
.text-section li, li {
  margin-bottom: 5px;
}

/* --- RETRO/ELEMENTS DECORATION --- */
hr {
  border: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-secondary), var(--color-secondary) 6px, transparent 6px, transparent 18px);
  opacity: 0.5;
  margin: 32px 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--color-cream);
  border-bottom: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-vintage);
  padding: 10px 0;
  width: 100%;
  z-index: 101;
  position: relative;
}
header .container, header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header a img {
  height: 46px;
  margin-right: 14px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 16px;
  position: relative;
  transition: background 0.18s, color 0.22s;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
}
nav a:not(.btn-primary):hover,
nav a:focus {
  background: var(--color-orange);
  color: var(--color-brown);
}
nav a.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-left: 8px;
  font-size: 1.09rem;
  font-weight: bold;
  border: 2px solid var(--color-primary);
  transition: box-shadow 0.22s, background 0.18s, color 0.19s;
  box-shadow: 1.5px 5px 0 #13365B22;
}
nav a.btn-primary:hover, nav a.btn-primary:focus {
  background: var(--color-red);
  color: var(--color-txt-light);
  border-color: var(--color-red);
}

/* --- MOBILE MENU TOGGLE --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 4px 14px 0 14px;
  cursor: pointer;
  box-shadow: var(--shadow-vintage);
  line-height: 1;
  position: relative;
  z-index: 170;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.mobile-menu-toggle:active {
  background: var(--color-red);
  color: var(--color-txt-light);
}
@media (max-width: 1050px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 700;
  background: var(--color-cream);
  box-shadow: 0 0 40px 0 #624A2E44;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.5,1,.4,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0vw);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.6rem;
  color: var(--color-red);
  background: transparent;
  cursor: pointer;
  margin: 20px 24px 0 0;
  border-radius: 10px;
  transition: background 0.16s, color 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-red);
  color: var(--color-txt-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 28px;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 10px 14px 0;
  line-height: 1.8;
  border-radius: 7px;
  color: var(--color-primary);
  width: fit-content;
  transition: color 0.13s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-red);
  background: var(--color-orange);
}
.mobile-nav a.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 1.25rem;
  margin-top: 10px;
  box-shadow: 1.5px 5px 0 #13365B22;
}
.mobile-nav a.btn-primary:hover {
  background: var(--color-red);
  color: var(--color-txt-light);
  border-color: var(--color-red);
}

/* --- GENERAL SPACING PATTERNS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 24px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-cream);
  border-radius: 18px;
  box-shadow: var(--shadow-vintage);
  padding: 24px 12px;
  min-width: 250px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-accent);
  box-shadow: 0 4px 18px 0 #13365B22;
  border-radius: 18px;
  margin-bottom: 20px;
  min-width: 210px;
  max-width: 410px;
  font-size: 1.08rem;
  border-left: 6px solid var(--color-secondary);
  border-top: 3px solid #FDD83580;
}
.testimonial-card p {
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-bottom: 6px;
  line-height: 1.7;
}
.testimonial-card span {
  font-size: 0.98em;
  font-style: italic;
  color: var(--color-brown);
  font-family: var(--font-display);
}
.testimonials-section .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CLASSES straight from code: feature-section, feature-grid, features, content-wrapper, text-section, hero-section, cta-section, map-block, footer-contact, next-steps */

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-cream);
  border-radius: 18px;
  box-shadow: var(--shadow-vintage);
  padding: 26px 18px 18px 18px;
  margin-bottom: 20px;
  flex: 1 1 265px;
  min-width: 240px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 2px solid #F5ECE238;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 6px 32px 0 #FDD83542, 0 1.5px 0 0 #E1C699;
  transform: translateY(-6px) scale(1.03) rotate(-0.5deg);
}
.feature-grid img, .features img {
  height: 50px;
  margin-bottom: 10px;
  filter: sepia(0.55) hue-rotate(-7deg) saturate(0.6) drop-shadow(0 2px 8px #624a2e22);
}
.feature-section .feature-grid > div {
  background: var(--color-accent);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  max-width: 760px;
}
@media (min-width: 800px) {
  .content-wrapper,
  .feature-section .content-wrapper,
  .feature-grid,
  .features {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .content-wrapper.text-section {
    flex-direction: column;
  }
}

/* ===== HERO & CTA SECTIONS ===== */
.hero-section {
  background: repeating-linear-gradient(135deg, var(--color-secondary) 0 18px, #FDE6B2 18px 36px, var(--color-accent) 36px 54px, var(--color-secondary) 54px 95px);
  padding: 54px 0 40px 0;
  border-radius: 0 0 75px 0/0 0 85px 0;
  box-shadow: 0 12px 48px 0 #624a2e18;
  margin-bottom: 40px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section .content-wrapper {
  max-width: 660px;
  gap: 20px;
}
.hero-section h1 {
  color: var(--color-brown);
  text-shadow: 2px 6px 0 #F5ECE2DD;
}
.hero-section p {
  font-size: 1.15rem;
  font-weight: 600;
}

.cta-section {
  background: repeating-linear-gradient(120deg, #E0AE5D 0 13px, #fffdfa 13px 30px, #fffdfa 30px 41px, #EFAA65 41px 70px);
  border-radius: 60px 10px 95px 10px/38px 10px 140px 10px;
  box-shadow: var(--shadow-vintage);
  margin-bottom: 60px;
}
.cta-section h2 {
  color: var(--color-red);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.cta-section p {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== BUTTONS, LINKS ===== */
.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  border-radius: 50px;
  border: 2.5px solid var(--color-primary);
  font-size: 1.11rem;
  font-weight: 700;
  padding: 13px 36px;
  cursor: pointer;
  box-shadow: 3px 12px 0 #13365b18;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 7px;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s, border 0.18s, transform 0.18s;
  outline: none;
  border-bottom: 4px solid #FDD83599;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-red);
  color: var(--color-txt-light);
  border-color: var(--color-red);
  box-shadow: 0 15px 0 #E8604555;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
}

a {
  transition: color 0.13s, background 0.10s;
}
a:active {
  opacity: 0.84;
}

/* ===== FORMS ===== */
input, textarea, select {
  background: var(--color-accent);
  border: 1.5px solid var(--color-primary);
  padding: 11px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.17s, box-shadow 0.16s;
  box-shadow: 2px 4px 0 #EFAA6577, 0 0 0 #fff0;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-red);
  background: #fffdfa;
  box-shadow: 0 0 0 3px #EFAA6577;
}

/* ===== MAP-BLOCK FOOTER-CONTACT AND UTILITY ===== */
.map-block {
  background: var(--color-accent);
  border-radius: 16px;
  padding: 24px 19px;
  margin-top: 12px;
  box-shadow: 1.5px 5px 0 #13365B12;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.footer-contact img {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
  filter: contrast(0.9) sepia(0.6) hue-rotate(18deg) brightness(1.2);
}

.next-steps {
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 1.5px 5px 0 #13365B13;
  padding: 20px 18px 13px 18px;
  margin: 24px 0 8px 0;
}
.next-steps h2 {
  color: var(--color-brown);
  font-size: 1.21rem;
}

/* ======== FOOTER ======== */
footer {
  background: var(--color-cream);
  border-top: 3.5px solid var(--color-secondary);
  box-shadow: 0 -3px 24px -5px #FDD83544;
  font-family: var(--font-display);
  padding: 20px 0 10px 0;
  z-index: 20;
  font-size: 0.95rem;
  margin-top: 46px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.11s, text-decoration 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-red);
  text-decoration: underline dotted;
}
@media (max-width: 700px) {
  footer .container {
    gap: 11px;
  }
  .footer-contact {
    font-size: 0.99rem;
  }
}

/* ====== COOKIE CONSENT BANNER & MODAL ====== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 9999;
  background: var(--color-cream);
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -1px 24px 0 #624a2e19;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 18px 20px;
  gap: 9px;
  animation: cookieAppear 0.9s cubic-bezier(.7,1.5,.7,1);
}
@keyframes cookieAppear {
  from { transform: translateY(120px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 1.07rem;
  font-family: var(--font-body);
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 4px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.01rem;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 1px 5px 0 #13365B14;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.settings {
  background: var(--color-cream);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-red);
  color: var(--color-txt-light);
  border-color: var(--color-red);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-green);
  color: var(--color-txt-light);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-primary);
  color: var(--color-txt-light);
  border-color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-orange);
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(41,33,10,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-cream);
  padding: 38px 28px 20px 28px;
  border-radius: 24px;
  max-width: 420px;
  min-width: 285px;
  box-shadow: 1.5px 9px 44px 2px #FDD83552;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalPop 0.33s cubic-bezier(.6,1.8,.2,0.95);
  position: relative;
}
@keyframes modalPop {
  from { transform: scale(0.7) translateY(90px); opacity:0; }
  to   { transform: scale(1)   translateY(0); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  color: var(--color-red);
  font-size: 1.7rem;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  padding: 2px 6px;
  transition: background 0.17s, color 0.13s;
}
.cookie-modal-close:hover {
  color: var(--color-primary);
  background: var(--color-orange);
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-option-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.01rem;
}
.cookie-option input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 21px;
  height: 21px;
  margin-top: 0;
  margin-bottom: 0;
}
.cookie-option label {
  user-select: none;
}
.cookie-option.essential label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-option.essential input[type='checkbox'] {
  accent-color: #aaa;
}
.cookie-option.essential input[type='checkbox'] {
  pointer-events: none;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1070px) {
  .feature-grid > div {
    flex: 1 1 230px;
  }
  .container {
    padding: 0 3vw;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    font-size: 0.96rem;
  }
}
@media (max-width: 800px) {
  .feature-grid, .features, .testimonials-section .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .feature-grid > div {
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  html { font-size: 90%; }
  .container { padding: 0 5vw; }
  .section { padding: 28px 5px; }
}

/* ===== VINTAGE RETRO MICRO-EFFECTS ===== */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 32px 0 #6AA98424, 0 3px 0 #FDD83533;
  transform: translateY(-3px) scale(1.015) rotate(-1.2deg);
}

.btn-primary, .cookie-btn {
  transition: background 0.15s, color 0.13s, transform 0.15s, box-shadow 0.17s;
}

.btn-primary:active, .cookie-btn:active {
  transform: scale(0.98) translateY(1px);
}

/* ===== SELECTION (RETRO LOOK) ===== */
::selection {
  background: #FDD83588;
  color: var(--color-primary);
}

/* =====::-webkit-scrollbar (RETRO LOOK)==== */
::-webkit-scrollbar {
  width: 14px;
  background: var(--color-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* ===== ACCESSIBLE :FOCUS STYLE ===== */
:focus {
  outline: 2.5px dashed var(--color-red);
  outline-offset: 2px;
}

/* ========== PRINTABLE ========== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
