/* ==========================================================================
   CSS RESET & NORMALIZE + Vintage Retro Variables
   ========================================================================== */

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;
}
footer p, footer span,
footer small {
  color: white !important;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background-color: #FFF6E7;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
input, button, textarea, select {
  font-family: inherit;
}
button {
  border: none;
  cursor: pointer;
  background: none;
}

:root {
  /* Brand Colors */
  --sc-primary: #203264;
  --sc-secondary: #E5A03B;
  --sc-accent: #F4F6F8;
  --sc-bg: #FFF6E7;
  /* Retro Colors */
  --retro-orange: #e1852c;
  --retro-navy: #223264;
  --retro-mustard: #ead27a;
  --retro-mint: #bed9bd;
  --retro-brown: #583c2b;
  --retro-red: #c24747;
  --retro-cream: #f3eed9;
  --retro-shadow: rgba(40,29,5,0.08);
  /* Font Families */
  --display-font: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  --body-font: 'Roboto', 'Trebuchet MS', Arial, sans-serif;
  --retro-display: 'Montserrat', 'Bahnschrift', 'Arial Rounded MT', Arial, sans-serif;
  --retro-body: 'Roboto', 'Segoe UI', 'Verdana', sans-serif;
  /* Radius */
  --radius: 16px;
  --radius-large: 28px;
  /* Shadow */
  --sc-shadow: 0 4px 14px 0 var(--retro-shadow);
  /* Patterns */
  --sc-pattern: repeating-linear-gradient(135deg,var(--retro-cream) 0 8px,var(--retro-mint) 8px 16px,var(--retro-cream) 16px 24px);
}

/* ==========================================================================
   TYPOGRAPHY (vintage/retro)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--retro-display), var(--display-font), Arial, sans-serif;
  color: var(--sc-primary);
  letter-spacing: 0.025em;
  text-shadow: 0 2px 0 #ead27a55;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li, ul, ol, blockquote {
  font-family: var(--retro-body), var(--body-font), Arial, sans-serif;
  color: var(--retro-brown);
  font-size: 1rem; /* 16px */
  margin-bottom: 14px;
}
p.subtitle {
  font-family: var(--retro-body), var(--body-font);
  font-size: 1.25rem;
  color: var(--retro-brown);
  margin-bottom: 20px;
  font-style: italic;
  background: rgba(234,210,122,0.35);
  padding: 0.5em 1em;
  border-radius: var(--radius-large);
}
strong {
  color: var(--retro-navy);
}
small {
  color: var(--retro-brown);
  opacity: 0.7;
}

/* ==========================================================================
   LAYOUT CLASSES & CONTAINER
   ========================================================================== */
.container {
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: var(--radius-large);
  box-shadow: var(--sc-shadow);
}
.content-wrapper,
.footer-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: space-between;
}
.feature {
  background: var(--retro-mustard);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 230px;
  flex: 1 1 220px;
  box-shadow: 0 2px 8px 0 var(--retro-shadow);
  border: 2px solid #f8d893;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px 0 var(--retro-shadow);
  z-index: 1;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 var(--retro-shadow);
  overflow: hidden;
}
.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;
  background: #fffdec;
  border-left: 6px solid var(--retro-orange);
  border-radius: 16px;
  box-shadow: 0 4px 14px 0 var(--retro-shadow);
  margin-bottom: 20px;
}
.testimonial-card p {
  color: var(--sc-primary);
  font-size: 1.10rem;
}
.testimonial-card span {
  font-family: var(--retro-body),sans-serif;
  font-size: 0.95rem;
  color: var(--retro-brown);
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Contact Details Columns */
.contact-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-details .text-section {
  flex: 1 1 230px;
  min-width: 230px;
  background: var(--retro-mint);
  padding: 20px 24px;
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.contact-details .text-section h3 {
  margin-top: 0;
  color: var(--retro-brown);
  background: rgba(202,163,91,0.08);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 1.07rem;
}

/* =======================================================================
   HEADER, LOGO & NAV
   ======================================================================= */
header {
  background: var(--sc-primary);
  color: var(--retro-cream);
  box-shadow: 0 4px 16px 0 var(--retro-shadow);
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 21;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-right: 32px;
  font-size: 1.25rem;
}
.logo img {
  height: 48px;
  width: auto;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 0%;
}
.main-nav a {
  font-family: var(--retro-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--retro-mustard);
  padding: 6px 15px;
  border-radius: 9px;
  position: relative;
  transition: background 0.20s, color 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--retro-orange);
  color: #fffdec;
  outline: none;
}
.btn-primary {
  background: var(--retro-orange);
  color: #fff;
  font-family: var(--retro-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  padding: 10px 28px;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 var(--retro-shadow);
  margin-left: 16px;
  display: inline-block;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  border: 2px solid var(--retro-navy);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--sc-primary);
  color: var(--retro-mustard);
  box-shadow: 0 4px 20px 0 var(--retro-shadow);
  transform: translateY(-3px) scale(1.025);
  outline: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--retro-navy);
  color: var(--retro-mustard);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  transition: background 0.15s;
  z-index: 101;
  border: 2px solid var(--retro-mustard);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--retro-mustard);
  color: var(--retro-navy);
  outline: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: var(--sc-primary);
  color: var(--retro-mustard);
  z-index: 222;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.86,.01,.39,1.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 28px;
  width: 100%;
  height: 100vh;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--retro-mustard);
  background: none;
  border: none;
  margin-left: 20px;
  transition: color 0.15s;
  z-index: 224;
  align-self: flex-end;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--retro-orange);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 0 42px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--retro-display);
  font-size: 1.22rem;
  color: var(--retro-mustard);
  padding: 10px 18px 10px 2px;
  transition: background 0.17s, color 0.17s;
  border-radius: 12px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--retro-orange);
  color: #fffdec;
  outline: none;
}

@media (max-width: 1060px) {
  header .container { flex-wrap: wrap; }
  .main-nav { gap: 12px; }
}

@media (max-width: 900px) {
  .main-nav { gap: 5px; }
  .logo { margin-right: 12px; }
}

@media (max-width: 900px) {
  .section { padding: 30px 12px; }
  .feature { min-width: 180px; padding: 18px 10px; }
  .testimonial-card { flex-direction: column; gap: 8px; padding: 18px; }
  .features-grid { gap: 10px; }
  .container { padding: 0 8px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
  .logo img { height: 38px; }
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    min-width: 0;
    width: 100%;
  }
  .content-grid,
  .testimonials-section .content-wrapper,
  .content-wrapper,
  .footer-section .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .contact-details {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.4rem; }
  .btn-primary { font-size: 0.95rem; padding: 10px 18px; }
  .logo img { height: 28px; }
  .section { padding: 20px 2px; }
}

/* ==========================================================================
   HERO SECTIONS & BANNERS
   ========================================================================== */
.hero {
  background: var(--sc-pattern);
  background-size: 32px 32px;
  padding: 60px 0 40px 0;
  border-bottom: 4px solid var(--retro-orange);
  box-shadow: 0 4px 42px 0 var(--retro-shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 0;
  background: rgba(255,255,245,0.82);
  border-radius: 40px 40px 16px 16px;
  padding: 42px 30px 30px 38px;
  box-shadow: var(--sc-shadow);
  max-width: 730px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--retro-navy);
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .hero { padding: 26px 0 16px 0; }
  .hero .content-wrapper { padding: 26px 12px 12px 12px; }
}

/* ==========================================================================
   GENERAL SECTION STYLING
   ========================================================================== */
.section, main section:not(.hero) {
  margin-bottom: 60px;
  background: var(--retro-cream);
  border-radius: var(--radius-large);
  box-shadow: 0 4px 24px var(--retro-shadow);
}
main section:last-child, 
.section:last-child, 
footer {
  margin-bottom: 0;
}

/* ==========================================================================
   LISTS, UL, OL
   ========================================================================== */
ul, ol {
  padding-left: 30px;
  margin-bottom: 24px;
  font-size: 1.08rem;
  color: var(--retro-brown);
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 5px;
  position: relative;
}
ul li:before {
  content: '\2022';
  color: var(--retro-orange);
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
  font-size: 1.3em;
  vertical-align: middle;
}
.footer-section ul, .footer-section ol {
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--sc-primary);
  color: var(--retro-cream);
  padding: 48px 0 36px 0;
  font-size: 1rem;
  border-top: 4px solid var(--retro-orange);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--retro-mustard);
  font-family: var(--retro-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 12px;
  margin-top: 12px;
}
.footer-links a {
  color: var(--retro-mustard);
  font-family: var(--retro-display);
  font-size: 1.05rem;
  transition: color 0.15s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--retro-orange);
  text-decoration: underline;
  outline: none;
}
.footer-contact {
  font-family: var(--retro-body);
  color: var(--retro-cream);
  font-size: 0.95em;
  opacity: 0.84;
}
@media (max-width: 650px) {
  footer .container, .footer-section .content-wrapper {
    gap: 14px;
  }
  .footer-brand img { height: 25px; }
  .footer-links { flex-direction: column; gap: 7px; }
}

/* ==========================================================================
   TEXT-SECTIONS, SERVICES, INFO BLOCKS
   ========================================================================== */
.text-section {
  background: rgba(234,210,122,0.22);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px var(--retro-shadow);
}
/* For 'footer-section' legal/info pages */
.footer-section {
  padding: 40px 0;
  background: #fbf7e5;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  margin-bottom: 40px;
  box-shadow: 0 0px 12px 0 var(--retro-shadow);
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-primary,
button,
input[type='submit'] {
  font-family: var(--retro-display);
  font-weight: 700;
  cursor: pointer;
  background: var(--retro-orange);
  color: #fff;
  border: 2px solid var(--retro-navy);
  box-sizing: border-box;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 1.09rem;
  letter-spacing: 0.045em;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s, transform 0.13s;
  box-shadow: 0 2px 8px 0 var(--retro-shadow);
}
.btn-primary:hover,
.btn-primary:focus,
button:hover,
button:focus{
  background: var(--sc-primary);
  color: var(--retro-mustard);
  box-shadow: 0 4px 22px 0 var(--retro-shadow);
  transform: translateY(-2px);
  outline: none;
}

/* ==========================================================================
   COOKIE BANNER & CONSENT MODAL
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--retro-mustard);
  color: var(--sc-primary);
  padding: 20px 8px 24px 8px;
  z-index: 3000;
  box-shadow: 0 -6px 30px 0 var(--retro-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-family: var(--retro-body);
  font-size: 1rem;
  animation: cookie-slidein 0.6s cubic-bezier(.21,.83,.44,.97);
}
@keyframes cookie-slidein {
  0% { transform: translateY(120%); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p,
.cookie-banner .cookie-text {
  color: var(--sc-primary);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.cookie-banner button {
  min-width: 110px;
  border-radius: 17px;
  padding: 9px 18px;
  font-size: 1rem;
  background: var(--sc-primary);
  color: var(--retro-mustard);
  border: 2px solid var(--sc-primary);
  box-shadow: 0 2px 4px 0 var(--retro-shadow);
  transition: background 0.12s, color 0.12s, transform 0.12s;
  font-family: var(--retro-display);
  margin-right: 3px;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--retro-orange);
  color: #fff;
  border: 2px solid var(--retro-orange);
  outline: none;
}
.cookie-banner .cookie-secondary {
  background: #fffdec;
  color: var(--retro-brown);
  border: 2px solid var(--retro-brown);
}

/* ----- Cookie Preferences Modal ----- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32, 50, 100, 0.40);
  z-index: 3100;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-bg 0.13s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes cookie-modal-bg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--retro-cream);
  border-radius: 30px;
  box-shadow: 0 6px 32px var(--retro-shadow);
  padding: 40px 32px 32px 32px;
  min-width: 320px;
  max-width: 96vw;
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--retro-body);
  animation: cookie-modal-content 0.29s cubic-bezier(.29,.8,.32,1) both;
}
@keyframes cookie-modal-content {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1);  }
}
.cookie-modal-content h3 {
  color: var(--sc-primary);
  margin-top: 0;
  margin-bottom: 16px;
}
.cookie-modal-content ul {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.cookie-modal-content li {
  margin-bottom: 13px;
  color: var(--retro-brown);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal-content input[type='checkbox'] {
  width: 22px; height: 22px; accent-color: var(--retro-orange);
}
.cookie-modal .cookie-close-modal {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  color: var(--sc-primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-close-modal:hover,
.cookie-modal .cookie-close-modal:focus { color: var(--retro-red); outline: none; }

@media (max-width:560px) {
  .cookie-modal-content {
    min-width: 0;
    padding: 22px 8px;
  }
}

/* ==========================================================================
   ACCESSIBILITY FOCUS STYLE
   ========================================================================== */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px dashed var(--retro-red);
  outline-offset: 2px;
}

/* ==========================================================================
   MISC/VISUAL NOSTALGIA ELEMENTS
   ========================================================================== */
.card, .feature, .testimonial-card, .contact-details .text-section, .cookie-banner, .cookie-modal-content {
  border-radius: var(--radius);
  box-shadow: 0 2px 10px 0 var(--retro-shadow);
}
.pattern-header-bar {
  background: var(--sc-pattern);
  height: 16px;
  width: 100%;
}

/* Waves and Patterns for Nostalgic Feel - decorative, not for content! */
.decor-wave {
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 18px;
  background: linear-gradient(90deg,var(--retro-cream) 0 6px, var(--retro-mint) 6px 18px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   TRANSITIONS & MICRO-INTERACTIONS
   ========================================================================== */
.section, .card, .feature, .testimonial-card, .btn-primary, button, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.18s, background 0.22s, border-color 0.17s, transform 0.13s;
}
.card:hover,
.card:focus {
  box-shadow: 0 8px 28px 0 var(--retro-shadow);
  transform: translateY(-2px) scale(1.015);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.d-none {
  display: none !important;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.show { display: flex !important; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  header, nav, .btn-primary, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body, main, .container, .section { background: #fff; color: #111; }
  .card, .feature, .testimonial-card, .contact-details .text-section {
    background: #fff;
    border: 1px solid #ced3dd;
    box-shadow: none;
  }
}
