/* ========== CSS RESET & NORMALIZE ========== */
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: #FAF7F2;
  color: #204056;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; }

/* Fallback font stacks */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'), local('OpenSans-Regular');
}

/* ============= BRAND COLORS & RETRO PALETTE ============= */
:root {
  --primary: #204056;
  --secondary: #79AEB2;
  --accent: #FAF7F2;
  --retro-red: #d0553b;
  --retro-yellow: #EFC664;
  --retro-green: #a7b76a;
  --retro-blue: #84A5B1;
  --retro-brown: #634832;
  --retro-cream: #F5E9D0;
  --retro-orange: #E39351;
  --font-display: 'Montserrat', 'Futura', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', 'Georgia', 'Times', Times, serif;
  --text-dark: #2D2723;
  --text-light: #fff;
  --border-radius: 14px;
  --shadow-light: 0 2px 8px rgba(32,64,86,0.08);
  --shadow-retro: 0 4px 12px rgba(99,72,50,0.12);
  --transition-base: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ========== TYPOGRAPHY (Vintage/Retro Aesthetic) ========== */
h1, .h1 {
  font-family: var(--font-display), 'Montserrat', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-shadow: 0 2px 0 #EFC66422, 0 4px 8px #63483211;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display), 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--retro-brown);
  margin-bottom: 16px;
  text-shadow: 0 1px 0 #EFC66411;
}
h3, .h3 {
  font-family: var(--font-display), 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--retro-red);
  margin-bottom: 14px;
}

body, p, label, li, address, cite {
  font-family: var(--font-body), 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

blockquote {
  font-family: 'Montserrat', var(--font-display), sans-serif;
  font-size: 1.1rem;
  color: var(--retro-blue);
  border-left: 4px solid var(--retro-yellow);
  padding-left: 16px;
  margin-bottom: 10px;
}
cite {
  font-size: 0.95rem;
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

strong {
  font-weight: 700;
  color: var(--primary);
}
.subheadline {
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--retro-orange);
  margin-bottom: 24px;
  font-weight: 600;
}

/* ============= SPACING & LAYOUTS (Flexbox ONLY) ============= */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin-bottom: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper.text-section {
  align-items: flex-start;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  padding: 24px 20px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  border: 2px solid var(--secondary);
}
.card:hover, .card:focus-within {
  transform: translateY(-3px) scale(1.013);
  box-shadow: 0 8px 24px rgba(32,64,86,0.13);
  border-color: var(--retro-red);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fffdfa;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 2px dashed var(--retro-yellow);
}
.stars {
  font-family: 'Montserrat', var(--font-display);
  color: var(--retro-yellow);
  font-size: 1.3rem;
  margin-top: 8px;
  letter-spacing: 1px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-blue);
  color: var(--text-light);
  padding: 24px 18px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  margin-bottom: 20px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--retro-brown);
  padding: 0;
  box-shadow: 0 2px 6px rgba(32,64,86,0.10);
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 22px 0;
  min-height: 58px;
}
.main-nav > a img {
  height: 42px;
  width: auto;
  display: block;
  margin-right: 16px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin: 0 14px;
}
.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--retro-yellow);
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  transition: background var(--transition-base), color var(--transition-base);
  position: relative;
}
.main-nav ul li a.active, .main-nav ul li a:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  font-weight: bold;
}
.main-nav ul li a:hover {
  background: var(--retro-orange);
  color: #fffdfa;
}
.cta-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--retro-orange);
  color: #fffdfa;
  padding: 10px 26px;
  border-radius: 25px;
  font-weight: bold;
  box-shadow: 0 3px 12px 0 #63483218;
  border: none;
  transition: box-shadow var(--transition-base), background var(--transition-base), transform var(--transition-base);
  letter-spacing: 0.5px;
  margin-left: 10px;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 8px 20px 0 #63483238;
  transform: scale(1.05);
}

/* ========== HERO SECTION RETRO STYLING ========== */
.hero {
  background: repeating-linear-gradient(135deg, var(--retro-yellow), var(--retro-yellow) 38px, var(--accent) 38px, var(--accent) 78px);
  padding: 38px 0;
  margin-bottom: 42px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

/* ========== BUTTONS & INTERACTIVE STATES ========== */
button, .cta-btn {
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
button:focus, .cta-btn:focus {
  outline: 3px dashed var(--secondary);
  outline-offset: 2px;
}

/* ========== FLEX PATTERNS MANDATORY CLASSES ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  padding: 32px 0 24px 0;
  margin-top: 38px;
  border-top: 6px solid var(--retro-yellow);
  box-shadow: 0 -3px 14px rgba(99,72,50,0.15);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--retro-yellow);
  opacity: 0.84;
  transition: color var(--transition-base), opacity var(--transition-base);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fffdfa;
  opacity: 1;
}
.contact-details {
  font-size: 0.98rem;
  color: #ffe8ae;
  text-align: center;
  margin-bottom: 10px;
}
.contact-details a {
  color: #fffefa;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  color: #D6B476;
  font-size: 0.93rem;
  margin-top: 12px;
  font-family: var(--font-display);
}

/* ========== MOBILE MENU (Burger) ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  z-index: 110;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  font-size: 2rem;
  border-radius: 50%;
  border: 2px solid #ddd1b0;
  box-shadow: 0 4px 14px #6348321a;
  transition: background var(--transition-base), color var(--transition-base);
}
.mobile-menu-toggle:focus {
  outline: 3px dashed var(--retro-blue);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: var(--retro-cream);
  box-shadow: -8px 0 34px rgba(99,72,50,0.2);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin-top: 22px;
  margin-right: 24px;
  background: var(--retro-red);
  color: #fffdfa;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  transition: background var(--transition-base);
  box-shadow: 0 2px 8px #63483214;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 38px 32px;
  width: 100%;
  gap: 10px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  padding: 12px 22px;
  border-radius: 10px;
  margin-bottom: 6px;
  width: 100%;
  transition: background var(--transition-base), color var(--transition-base);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-red);
  color: #fffdfa;
}

/* Hide main desktop nav on mobile */
@media (max-width: 900px) {
  .main-nav ul,
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

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

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 3px solid var(--retro-brown);
  box-shadow: 0 -3px 16px rgba(99,72,50,0.10);
  gap: 24px;
  animation: slide-up-banner 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes slide-up-banner {
  from { transform: translateY(100%); opacity: 0.3; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-left: 3px;
  transition: background var(--transition-base), color var(--transition-base);
}
.cookie-accept {
  background: var(--retro-green);
  color: var(--retro-brown);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--primary);
  color: #fffdfa;
}
.cookie-reject {
  background: var(--retro-red);
  color: #fffdfa;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #b23525;
}
.cookie-settings {
  background: #fffdfa;
  color: var(--retro-brown);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--secondary);
  color: #fffdfa;
}

/* Cookie Settings Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32, 64, 86, 0.34);
  align-items: center;
  justify-content: center;
  animation: fade-in-modal 0.33s cubic-bezier(.4,0,.2,1);
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--accent);
  padding: 38px 28px;
  border-radius: 18px;
  max-width: 90vw;
  width: 350px;
  box-shadow: 0 8px 40px rgba(99,72,50,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  color: var(--primary);
  position: relative;
}
.cookie-modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--retro-red);
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 46px;
  height: 22px;
  background: var(--retro-blue);
  border-radius: 19px;
  position: relative;
  transition: background var(--transition-base);
  cursor: pointer;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-label {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fffdfa;
  transition: left var(--transition-base);
  box-shadow: 0 1px 3px #2040561e;
}
.cookie-toggle input:checked + .cookie-toggle-label {
  left: 24px;
  background: var(--retro-green);
}
/* Essential always enabled */
.cookie-category.essential .cookie-toggle {
  background: var(--retro-green);
  pointer-events: none;
}
.cookie-modal-content .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.5rem;
  color: var(--retro-red);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-base);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}

/* ========== BASIC ELEMENTS & LISTS ========== */
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
  position: relative;
}
ul li strong, ol li strong {
  color: var(--primary);
}
ul li::before {
  content: '\2022';
  color: var(--retro-red);
  font-weight: bold;
  font-size: 1.05em;
  margin-right: 9px;
  position: relative;
  top: -1px;
}
ol li::before {
  content: '';
  display: none;
}
/* Remove bullet for nav, footer, mobile-nav */
.main-nav ul li, .footer-nav, .mobile-nav {
  list-style: none;
}

address {
  font-style: normal;
  color: var(--retro-brown);
  font-weight: 500;
}

/* ========== SHADOWS, BORDERS, EFFECTS ========== */
.card, .feature-item, .testimonial-card, .cookie-modal-content {
  box-shadow: var(--shadow-retro);
  border-radius: var(--border-radius);
}

/* ========== INTERACTIONS & MICROANIMATIONS ========== */
.cta-btn, .card, .feature-item, .mobile-nav a {
  transition: box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), transform var(--transition-base), border var(--transition-base);
}
.card:active {
  transform: scale(0.98);
}
.testimonial-card:hover {
  box-shadow: 0 8px 20px #d0a95e24;
}

/* ========== ACCESSIBILITY HIGH CONTRAST FOR TESTIMONIALS ETC ========== */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #1d1c18 !important;
  background: #fffdfa !important;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
  .main-nav {
    flex-direction: row;
    padding: 14px 0;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.14rem; }
  .main-nav > a img { height: 32px; }
  .hero {
    padding: 18px 0 24px 0;
    margin-bottom: 24px;
  }
  .content-wrapper, .content-grid, .card-container, .testimonial-card {
    flex-direction: column !important;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    padding: 18px 10px;
    margin-bottom: 16px;
  }
}
@media (max-width: 580px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .card, .testimonial-card, .feature-item, .cookie-modal-content {
    padding: 12px 4vw;
  }
  .section {
    padding: 24px 2vw;
    margin-bottom: 36px;
  }
}

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

/* ========== DECORATIVE RETRO RIBBON, PATTERNS (Optional) ========== */
.hero::after {
  content: '';
  display: block;
  width: 140px;
  height: 7px;
  margin: 18px 0 0 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--retro-orange),
      var(--retro-orange) 14px,
      var(--retro-yellow) 14px,
      var(--retro-yellow) 28px
    );
  border-radius: 3.5px;
  opacity: 0.65;
}

/* ========== END OF CSS ========== */
