/* ========================================================
   CSS RESET (normalize + full reset)
   ======================================================== */
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,
main, 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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F9F9F9;
  color: #2C2A26;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ===================
   FONT SETTINGS
   =================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --brand-primary: #18406B;
  --brand-secondary: #49A078;
  --brand-accent: #F9F9F9;
  --retro-yellow: #F3C567;
  --retro-orange: #ED9100;
  --retro-red: #B75538;
  --retro-blue: #6899A6;
  --retro-cream: #F6F2E5;
  --retro-brown: #7D5E2A;
  --retro-green: #497942;
  --text-color: #2C2A26;
  --heading-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --section-radius: 20px;
  --shadow-card: 0 4px 22px rgba(35,29,15,0.12), 0 1.5px 0 rgba(125,94,42,0.08);
  --shadow-btn: 0 2px 6px rgba(184,64,0,0.10);
  --focus-outline: 2px dashed var(--retro-orange);
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 60px;
  --border-width: 2.5px;
}

body, p, li {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--body-font);
  color: var(--text-color);
  letter-spacing: 0.04em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: var(--spacing-xs);
  line-height: 1.11;
}
h1 {
  font-size: 2.4rem;
  color: var(--brand-primary);
  text-shadow: 1.5px 3px 0 var(--retro-yellow);
  margin-bottom: var(--spacing-md);
}
h2 {
  font-size: 1.85rem;
  color: var(--retro-orange);
  margin-bottom: var(--spacing-md);
}
h3 {
  font-size: 1.3rem;
  color: var(--retro-red);
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--brand-secondary);
}
strong {
  font-weight: 700;
}

/* ===================
   GENERAL LAYOUT
   =================== */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 var(--spacing-s);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl) var(--spacing-s);
  background: var(--retro-cream);
  border-radius: var(--section-radius);
  box-shadow: 0 10px 36px rgba(125,94,42,0.09);
}

/* ===================
   VINTAGE / RETRO DECORATION PATTERNS
   =================== */
.section {
  border: var(--border-width) solid var(--retro-brown);
  position: relative;
}
.section:before {
  content: '';
  position: absolute;
  top: 25px; left: 25px; right: 25px; bottom: 25px;
  border-radius: 12px;
  border: 1.5px dashed var(--retro-yellow);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}


/* ===================
   HEADER & NAVIGATION
   =================== */
header {
  width: 100%;
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(35,29,15,0.04);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  min-height: 72px;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
  filter: sepia(0.36) contrast(1.1) brightness(0.98);
}
.main-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}
.main-nav a {
  font-family: var(--heading-font);
  font-size: 1.07rem;
  font-weight: 700;
  color: #fff;
  padding: 6px 0;
  transition: color 0.18s;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--retro-yellow);
  border-bottom: 2px solid var(--retro-yellow);
  outline: none;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 1.11rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand-secondary);
  border-radius: 40px;
  border: 2px solid var(--brand-secondary);
  padding: 12px 36px;
  margin-left: var(--spacing-lg);
  box-shadow: var(--shadow-btn);
  transition: background 0.24s, color 0.2s, border 0.18s, box-shadow 0.24s;
  text-shadow: 1px 1px 0 #41685e11;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-yellow);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  box-shadow: 0 2px 10px 0 #F3C56722;
  outline: none;
}

/* MOBILE MENU (BURGER) */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-yellow);
  color: var(--brand-primary);
  border-radius: 12px;
  font-size: 2.3rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 150;
  box-shadow: 0 4px 10px #b755380c;
  border: 2px solid var(--retro-brown);
  transition: background 0.19s, color 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: #fff;
  outline: var(--focus-outline);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-cream);
  z-index: 500;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.44s cubic-bezier(.36,.66,.04,1), opacity 0.31s;
  box-shadow: 8px 0 24px 0 #00000011;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-xl) var(--spacing-lg);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--retro-yellow);
  border-radius: 10px;
  border: 2px solid var(--retro-brown);
  padding: 0 14px;
  font-size: 2rem;
  color: var(--retro-red);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 4px #b755380c;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
  margin-top: var(--spacing-xl);
  font-family: var(--heading-font);
}
.mobile-nav a {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brand-primary);
  padding: 14px 0;
  margin-bottom: 2px;
  border-bottom: 2px solid transparent;
  border-radius: 0px 12px 12px 0px;
  transition: color 0.17s, background 0.19s, border 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--retro-yellow);
  border-bottom: 2px solid var(--retro-red);
}

@media (max-width: 1090px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 940px) {
  .main-nav {
    gap: var(--spacing-md);
  }
  .btn-primary {
    margin-left: var(--spacing-md);
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: var(--spacing-s);
  }
}
@media (max-width: 840px) {
  .main-nav {
    gap: var(--spacing-s);
  }
}
@media (max-width: 890px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===================
   HERO SECTION
   =================== */
.hero {
  background: var(--retro-yellow);
  background-repeat: repeat;
  border-radius: var(--section-radius);
  box-shadow: 0 8px 30px #ed910012;
  border: var(--border-width) solid var(--retro-brown);
  margin-bottom: var(--spacing-xxl);
  position: relative;
  z-index: 1;
}
.hero .container {
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing-s) var(--spacing-md) var(--spacing-s);
  align-items: flex-start;
}
.hero h1 {
  color: var(--retro-brown);
  text-shadow: 2px 4px 0 var(--retro-orange);
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-md);
}

/* ===================
   FEATURES / SERVICES
   =================== */
.features {
  background: var(--retro-cream);
  border-radius: var(--section-radius);
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl) var(--spacing-s);
  border: var(--border-width) solid var(--retro-brown);
  box-shadow: 0 10px 36px rgba(125,94,42,0.12);
  position: relative;
}
.features h2 {
  color: var(--retro-brown);
}
.content-wrapper {
  gap: var(--spacing-lg);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  background: #fff8ed;
  border-radius: 16px;
  border: 1.5px dashed var(--retro-orange);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md) var(--spacing-md);
  min-width: 210px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature img {
  width: 54px;
  height: 54px;
  margin-bottom: var(--spacing-xs);
  filter: sepia(0.22) brightness(0.93);
}
.feature h3 {
  font-size: 1.05rem;
  color: var(--brand-primary);
}
.feature p {
  font-size: 0.98rem;
  color: var(--text-color);
  margin-bottom: 0;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 32px #49794219, 0 2px 0 #B7553812;
  transform: translateY(-4px) scale(1.06);
}

/* ===================
   TESTIMONIALS
   =================== */
.testimonials {
  background: var(--brand-accent);
  border-radius: var(--section-radius);
  padding: var(--spacing-xl) var(--spacing-s);
  margin-bottom: var(--spacing-xxl);
  position: relative;
  border: var(--border-width) solid var(--retro-green);
}
.testimonials h2 {
  color: var(--retro-green);
}
.testimonials .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: flex-start;
}
.testimonial-card {
  background: #fffdf9;
  border-radius: 22px;
  box-shadow: 0 4px 18px #18406b0f, 0 2px 0 #18406B08;
  border: 1.5px dashed var(--retro-blue);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 460px;
  min-width: 260px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.18s, background 0.17s;
}
.testimonial-card p {
  font-size: 1.11rem;
  font-style: italic;
  color: #222;
}
.testimonial-card span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-secondary);
  margin-left: 18px;
  letter-spacing: 0.02em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  background: #f6f2e560;
  box-shadow: 0 8px 36px #49a07820;
}

/* Ensure dark text on light backgrounds for readability */
.testimonial-card p, .testimonial-card span {
  color: #21201e;
}

/* ===================
   TEXT/IMAGE & CONTENT LAYOUTS
   =================== */
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
  min-width: 220px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  border: 1.5px dashed var(--retro-yellow);
  z-index: 1;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px #F3C56720;
  transform: translateY(-3px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
}

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

/* ===================
   BLOG COMPONENTS
   =================== */
.featured-articles-grid, .training-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
  justify-content: flex-start;
}
.blog-post {
  background: #FFF8ED;
  border-radius: 15px;
  border: 1.5px dashed var(--retro-brown);
  box-shadow: 0 2px 12px #f3c56715;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 250px;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.blog-post h2 {
  color: var(--retro-red);
  font-size: 1.22rem;
}
.blog-post .read-more {
  margin-top: 10px;
  color: var(--retro-brown);
  font-weight: 700;
  font-family: var(--heading-font);
  letter-spacing: 0.04em;
  text-decoration: underline dotted var(--retro-red);
  transition: color 0.17s, text-decoration 0.17s;
}
.blog-post .read-more:hover, .blog-post .read-more:focus {
  color: var(--retro-orange);
  text-decoration: underline solid var(--retro-orange);
}
.blog-search input {
  width: 100%;
  max-width: 420px;
  border: 1.7px solid var(--retro-blue);
  border-radius: 16px;
  padding: 9px 18px;
  font-size: 1.1rem;
  background: #F6F2E5;
  margin-bottom: var(--spacing-md);
}
.blog-categories span {
  font-family: var(--heading-font);
  color: var(--retro-green);
  margin-right: 8px;
}
.blog-categories a {
  color: var(--retro-brown);
  border-bottom: 1.5px solid transparent;
  transition: color 0.16s, border 0.18s;
}
.blog-categories a:hover { color: var(--retro-red); border-bottom: 1.5px solid var(--retro-red); }

/* ===================
   TEAM CARDS
   =================== */
.team-member {
  background: #F9F8F3;
  border-radius: 17px;
  border: 1.5px dashed var(--retro-yellow);
  box-shadow: 0 2px 10px #ed910012;
  margin-bottom: 20px;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.team-member h3 { color: var(--brand-primary); }
.team-member span { font-style: italic; color: var(--retro-brown); margin-left: 6px; }

/* ===================
   MAP PLACEHOLDER (CONTACTS)
   =================== */
.map-placeholder {
  width: 100%;
  min-height: 140px;
  background: repeating-linear-gradient(135deg, #F3C567 0 8px, #F6F2E5 8px 24px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  color: var(--retro-brown);
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1.5px solid var(--retro-yellow);
}

/* ===================
   FOOTER
   =================== */
footer {
  width: 100%;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 24px #18406b13;
  margin-top: var(--spacing-xxl);
  position: relative;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 54px 44px;
  padding: var(--spacing-xl) var(--spacing-s) var(--spacing-lg);
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a, .social-links a, .company-info p, .newsletter-signup p {
  color: #fff;
  font-size: 1rem;
  font-family: var(--body-font);
  opacity: 0.96;
  transition: color 0.17s, opacity 0.19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--retro-yellow);
  opacity: 1;
}
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.social-links img {
  width: 36px;
  height: 36px;
  filter: sepia(0.33) brightness(0.98);
  border-radius: 10px;
  background: #fff1;
  padding: 4px;
  transition: background 0.18s;
}
.social-links a:hover img {
  background: #fff3;
}
.company-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.89;
  font-size: 0.97rem;
}
.newsletter-signup {
  min-width: 226px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 0 0;
}
.newsletter-signup form {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.newsletter-signup input[type=email] {
  padding: 10px 16px;
  border-radius: 22px;
  border: 1.5px solid var(--retro-yellow);
  background: #fffde8;
  font-size: 1.02rem;
  min-width: 140px;
  font-family: var(--body-font);
  margin-right: 3px;
  transition: border 0.18s, background 0.18s;
}
.newsletter-signup input[type=email]:focus {
  border: 1.5px solid var(--retro-blue);
  background: #fff;
  outline: var(--focus-outline);
}
.newsletter-signup button[type=submit] {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  font-family: var(--heading-font);
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 24px;
  border: 2px solid var(--retro-yellow);
  box-shadow: 0 2px 6px #f3c56720;
  font-size: 1rem;
  transition: background 0.19s, color 0.18s, border 0.18s;
}
.newsletter-signup button[type=submit]:hover, .newsletter-signup button[type=submit]:focus {
  background: var(--retro-orange);
  color: #fff;
  border: 2px solid var(--retro-orange);
  outline: none;
}

/* ===================
   FORM CONTROLS / BUTTONS
   =================== */
input, textarea {
  font-family: var(--body-font);
}
input[type=email], input[type=text], input[type=password] {
  background: #fffef8;
  border: 1.5px solid var(--retro-yellow);
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 1.07rem;
  box-shadow: 0 1px 2px #f3c5670c;
  transition: border 0.17s, box-shadow 0.17s;
}
input[type=email]:focus,
input[type=text]:focus,
input[type=password]:focus {
  border: 1.5px solid var(--brand-secondary);
  outline: var(--focus-outline);
  background: #fff;
}
/* ===================
   SPECIAL LISTS
   =================== */
ul li::before {
  content: '\2713 ';
  color: var(--retro-brown);
  margin-right: 7px;
  font-weight: 900;
  font-size: 1em;
  vertical-align: bottom;
}
ul.contact-info-list li::before {
  content: '';
  margin: 0;
}
ol li:before {
  content: '';
}

/* ===================
   COOKIE CONSENT / BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 8000;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-top: 4px solid var(--retro-brown);
  box-shadow: 0 -6px 30px #18406b19;
  padding: 22px var(--spacing-s);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--body-font);
  font-size: 1.05rem;
  animation: cookie-banner-appear 0.9s ease;
}
@keyframes cookie-banner-appear {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: var(--retro-brown);
  flex: 1 1 200px;
}
.cookie-banner .cookie-btn {
  background: var(--retro-red);
  color: #fff;
  font-family: var(--heading-font);
  border-radius: 13px;
  border: 2px solid var(--retro-brown);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 22px;
  margin-left: 14px;
  margin-right: 0;
  box-shadow: 0 2px 6px #b7553813;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.cookie-banner .cookie-btn[name=accept] {
  background: var(--retro-green);
  border-color: var(--retro-green);
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-btn-settings {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-color: var(--retro-yellow);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
  outline: none;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 11000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,30,15,0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in 0.4s;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff8ed;
  color: var(--retro-brown);
  border-radius: 26px;
  border: 2px solid var(--retro-yellow);
  padding: 38px 34px 28px 34px;
  box-shadow: 0 5px 44px #b7553824;
  min-width: 298px;
  max-width: 90vw;
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookie-modal-content-enter 0.3s;
}
@keyframes cookie-modal-content-enter {
  from { transform: scale(0.89); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-family: var(--heading-font);
  color: var(--retro-red);
  font-size: 1.21rem;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--retro-yellow);
  border-radius: 10px;
  border: 2px solid var(--retro-brown);
  color: var(--retro-red);
  font-size: 1.3rem;
  padding: 0 9px;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}
.cookie-modal-content .cookie-category label {
  font-weight: 700;
  font-family: var(--heading-font);
}
.cookie-modal-content .cookie-toggle {
  width: 38px; height: 20px; border-radius: 12px;
  background: #ddd5c0;
  position: relative;
  transition: background 0.19s;
  margin-left: 8px;
  flex-shrink: 0;
}
.cookie-modal-content .cookie-toggle[data-checked="true"] {
  background: var(--retro-green);
}
.cookie-modal-content .cookie-toggle-switch {
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s, background 0.16s;
}
.cookie-modal-content .cookie-toggle[data-checked="true"] .cookie-toggle-switch {
  left: 20px;
  background: var(--retro-yellow);
}
.cookie-modal-content .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: var(--spacing-md);
}
.cookie-modal-content .cookie-btn {
  padding: 7px 20px;
  border-radius: 10px;
  font-family: var(--heading-font);
  font-weight: 700;
  border: 2px solid var(--retro-yellow);
  background: var(--retro-yellow);
  color: var(--retro-brown);
  font-size: 1rem;
  margin: 0 1.5px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-content .cookie-btn[name=accept] {
  background: var(--retro-green);
  color: #fff;
  border-color: var(--retro-green);
}
.cookie-modal-content .cookie-btn[name=reject] {
  background: var(--retro-red);
  color: #fff;
  border-color: var(--retro-red);
}
.cookie-modal-content .cookie-btn:hover, .cookie-modal-content .cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
}

/* ===================
   RESPONSIVE ADJUSTMENTS
   =================== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-xs);
  }
  .section {
    padding: var(--spacing-lg) var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
  }
  .hero {
    padding: var(--spacing-lg) var(--spacing-xs);
  }
  .hero .container { padding: var(--spacing-lg) var(--spacing-xs) var(--spacing-s) var(--spacing-xs); }
  .content-wrapper, .content-grid, .feature-grid, .footer-menu, .card-container {
    flex-direction: column;
    gap: var(--spacing-s);
  }
  .feature, .testimonial-card, .card, .blog-post, .team-member {
    min-width: 0;
    max-width: 100%;
  }
  .testimonials .content-wrapper, .newsletter-signup form {
    flex-direction: column;
    gap: var(--spacing-s);
    align-items: flex-start;
  }
  .newsletter-signup form {
    width: 100%;
  }
  .newsletter-signup input[type=email] {
    width: 100%;
    min-width: 0;
  }
  .blog-search input {
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-start;
  }
  .map-placeholder {
    min-height: 80px;
    font-size: 0.99rem;
  }
  footer .container {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg) var(--spacing-xs) var(--spacing-s);
  }
  .footer-menu, .company-info, .social-links, .newsletter-signup {
    min-width: 0;
    max-width: 100%;
  }
  .featured-articles-grid, .training-list, .service-list {
    flex-direction: column;
    gap: var(--spacing-s);
  }
  .cookie-banner {
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: 16px var(--spacing-xs);
    font-size: 0.98rem;
  }
}

/* XS adjustments */
@media (max-width: 450px) {
  .logo img { height: 40px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.11rem; }
}

/* ===================
   ANIMATIONS & MICRO-INTERACTIONS
   =================== */
.btn-primary,
.card,
.feature,
.testimonial-card,
.newsletter-signup button[type=submit],
.cookie-btn,
.blog-post {
  transition: box-shadow 0.18s, transform 0.19s, background 0.17s, color 0.17s;
}
input[type=email],
input[type=text],
input[type=password] {
  transition: border 0.17s, background 0.17s;
}
/* ===================
   ACCESSIBILITY
   =================== */
a:focus, button:focus, input:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Hide main-nav and btn-primary on mobile */
@media (max-width: 890px) {
  .main-nav, .btn-primary {
    display: none!important;
  }
}

/* Show/hide mobile menu toggle on smaller screens */
@media (min-width: 891px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none!important;
  }
}

/* ===================
   PRINT
   =================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none!important; }
}
