/*------------------ CSS RESET & NORMALIZE ------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F5F7FA;
}
body {
  min-height: 100vh;
  color: #223459;
  background: #F7F5EA;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: .02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #223459;
  text-decoration: none;
  transition: color .2s;
}
a:focus {
  outline: 2px dotted #FFAA1D;
  outline-offset: 2px;
}
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: 0.016em;
  color: #223459;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
  color: #CE8D4B;
  letter-spacing: 0.06em;
}
strong {
  color: #b06626;
  font-weight: 900;
  font-size: 1.06em;
}

/*------------------ VINTAGE RETRO PALETTE ------------------*/
:root {
  --primary: #223459;
  --secondary: #F5F7FA;
  --accent: #FFAA1D;
  --retro-brown: #A17C52;
  --retro-orange: #FFAA1D;
  --retro-beige: #F7F5EA;
  --retro-red: #C2643A;
  --retro-blue: #5873A3;
  --retro-mint: #C1CFB2;
  --retro-cream: #F4ECD8;
  --retro-shadow: rgba(34,52,89, .12);
}

/*------------------ GENERAL LAYOUT CONTAINERS ------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 18px;
  box-shadow: 0 3px 30px var(--retro-shadow);
}
.cta {
  background: var(--retro-orange);
  color: #2F2414;
  border-radius: 16px;
  margin-bottom: 60px;
}

/* Spacing for card containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-beige);
  border: 2px solid var(--retro-brown);
  border-radius: 14px;
  box-shadow: 0 2px 18px var(--retro-shadow);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 250px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 44px var(--retro-shadow);
  transform: translateY(-3px) scale(1.015);
}
.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 {
  background: var(--retro-cream);
  color: #223459;
  border-left: 5px solid var(--retro-orange);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px var(--retro-shadow);
}
.text-section:last-child {
  margin-bottom: 0;
}

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

/*------------------ BUTTONS ------------------*/
.button-primary {
  background: var(--retro-orange);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 13px 34px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 3px 16px var(--retro-shadow);
  cursor: pointer;
  margin-left: 17px;
  letter-spacing: 0.03em;
  transition: background .16s, transform .16s, box-shadow .15s;
  text-shadow: 0 1px 1px #c17a2c22;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #BA7A09;
  color: #fff;
  box-shadow: 0 5px 32px var(--retro-shadow);
  transform: translateY(-2px) scale(1.04);
}
.button-secondary {
  background: none;
  color: var(--primary);
  border: 2px dashed var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 32px;
  font-size: 1.07rem;
  padding: 12px 32px;
  margin-top: 18px;
  margin-bottom: 7px;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  cursor: pointer;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.03);
}

/*------------------ HEADER AND NAVIGATION ------------------*/
header {
  background: #F7F5EA;
  border-bottom: 4px solid var(--retro-brown);
  padding: 0;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px #a17c5212;
}
header .container {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 10px 18px;
}
header img {
  height: 42px;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  color: #422e1d;
  padding: 7px 12px 7px 10px;
  border-radius: 19px;
  transition: background .17s, color .17s;
}
header nav a.active, header nav a:hover, header nav a:focus {
  background: #ffe6bb;
  color: var(--retro-orange);
}
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--retro-orange);
  cursor: pointer;
  padding: 7px 12px;
}
.mobile-menu-toggle:focus {
  outline: 2px dotted var(--retro-orange);
}

/*------------------ MOBILE MENU ------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-brown);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.74,0,.28,1);
  box-shadow: 2px 0 25px #0002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--retro-orange);
  position: absolute;
  top: 19px;
  right: 28px;
  cursor: pointer;
  z-index: 140;
  transition: color .17s;
}
.mobile-menu-close:focus {
  outline: 2px dotted var(--retro-cream);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 70px;
  width: 100%;
  padding-left: 10vw;
  gap: 14px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 11px 0px;
  border-radius: 19px;
  width: 90%;
  transition: background .17s, color .16s;
  position: relative;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE6BB44;
  color: var(--retro-orange);
}

/*------------------ HERO ------------------*/
.hero {
  padding: 56px 0 48px 0;
  background: repeating-linear-gradient(135deg,#FFE6BB 0px,#FFE6BB 27px,#F5F7FA 27px,#F5F7FA 44px);
  border-bottom: 5px double var(--retro-brown);
  min-height: 280px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--retro-red);
  text-shadow: 0 2px #FFD08A;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.15rem;
  color: #594014;
  margin-bottom: 23px;
}

/*------------------ TESTIMONIALS ------------------*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe8;
  border: 2px dashed var(--retro-orange);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--retro-shadow);
  max-width: 680px;
}
.testimonial-card p {
  color: #222208;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--retro-blue);
  font-weight: 700;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

/*------------------ FOOTER ------------------*/
footer {
  background: #F5F7FA;
  border-top: 5px double var(--retro-brown);
  padding-top: 32px;
  padding-bottom: 21px;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 34px 50px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  font-size: 1rem;
  color: var(--retro-brown);
  padding: 5px 0;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background .18s, color .18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-red);
  background: #FFF5DA;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}
footer p, footer a {
  color: #6C593C;
  font-size: 0.95rem;
}
footer a:hover {
  color: var(--retro-orange);
}

/*------------------ TYPING FORMS, CTA & UTILITIES ------------------*/
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
}
input, textarea, select {
  background: #FFF8EC;
  border: 2px solid #eec176;
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 16px;
  transition: border .18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 2px solid var(--retro-orange);
  background: #fff;
}

.cta h2 {
  color: #642c0c;
  text-shadow: 0 1px #FAF0DE;
}
.cta p {
  color: #643f19;
}

/*------------------ COOKIE BANNER & MODAL ------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF8EC;
  border-top: 3px solid var(--retro-orange);
  box-shadow: 0 -6px 32px #a17c5242;
  padding: 24px 16px 16px 16px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .39s cubic-bezier(.74,0,.28,1);
  pointer-events: auto;
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #492d14;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
}
.cookie-banner button {
  padding: 9px 22px;
  border-radius: 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  transition: background .14s, color .14s, box-shadow .13s;
  cursor: pointer;
  margin-top: 3px;
}
.cookie-banner .accept {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #b06626;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #b06626;
  border: 2px dashed #b06626;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ffe8c8;
  color: #7a3c00;
}
.cookie-banner .settings {
  background: #fffbe8;
  color: #b06626;
  border: 1px solid #eec176;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #ffe2b4;
}

/* MODAL OVERLAY */
.cookie-modal-overlay {
  background: #A17C52BB;
  position: fixed;
  z-index: 2600;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity .28s cubic-bezier(.74,0,.28,1);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF7EA;
  border: 2px solid var(--retro-orange);
  padding: 34px 30px;
  border-radius: 19px;
  box-shadow: 0 6px 48px #A17C5266;
  max-width: 340px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  z-index: 3000;
  animation: cookie-modal-fadein .28s cubic-bezier(.74,0,.28,1);
}
@keyframes cookie-modal-fadein {
  from { transform: translateY(180px) scale(.91); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #b06626;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #492d14;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--retro-orange);
  width: 17px; height: 17px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal .close-modal {
  background: none;
  color: #b06626;
  border: none;
  font-size: 1.6rem;
  font-family: inherit;
  position: absolute;
  right: 18px; top: 10px;
  cursor: pointer;
  transition: color .12s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #955f19;
}

/*------------------ LISTS RETRO STYLE ------------------*/
ul {
  padding-left: 0;
}
ul > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #2B2506;
  font-weight: 500;
}
ul > li:before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--retro-orange);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
  box-shadow: 0 1px 2px #d0770f44;
}

/*------------------ RESPONSIVE DESIGN ------------------*/
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
  }
  .footer .content-wrapper, footer .content-wrapper {
    gap: 17px 13px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 20px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
  header .container {
    flex-wrap: wrap;
    padding: 5px 8px;
    gap: 9px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .button-primary {
    margin-left: 0;
  }
  .section {
    padding: 27px 8px;
    margin-bottom: 40px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .testimonial-card {
    padding: 12px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .cta {
    padding-bottom: 18px;
  }
}
@media (max-width: 580px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .hero {
    padding: 29px 0 20px 0;
    min-height: 170px;
  }
  .section {
    padding: 16px 3px;
    border-radius: 8px;
  }
}

/*------------------ ANIMATIONS & MICRO-INTERACTIONS ------------------*/
.card, .testimonial-card, .text-section {
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:active, .testimonial-card:active, .text-section:active {
  transform: scale(0.98);
}
.button-primary, .button-secondary {
  transition: background .17s, color .17s, border .17s, box-shadow .12s, transform .15s;
}

/*------------------ RETRO DECORATIVE ELEMENTS ------------------*/
.section, .hero, .card, .testimonial-card, .cta, .text-section {
  position: relative;
}
.section:before {
  content: '';
  position: absolute;
  top: 24px;
  left: -18px;
  width: 46px;
  height: 8px;
  border-radius: 6px;
  background: #FFD08A33;
  z-index: 1;
  display: block;
}
@media (max-width: 580px) {
  .section:before {
    left: -10px;
    width: 24px;
  }
}
.hero:after {
  content: '';
  position: absolute;
  right: 0;
  top: 46%;
  width: 110px;
  height: 27px;
  border-radius: 18px 7px 21px 44px;
  background: #FAF0DE;
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
  display: block;
}
@media (max-width: 580px) {
  .hero:after {
    width: 47px;
    height: 10px;
    right: 0;
    top: 68%;
  }
}

/*------------------ VISUAL HIERARCHY ------------------*/
.content-wrapper > h1, .content-wrapper > h2 {
  margin-top: 15px;
  margin-bottom: 4px;
}
.card h3, .text-section h3 {
  margin-top: 0;
  margin-bottom: 7px;
}
.card p, .text-section p {
  margin-bottom: 6px;
}

/********************* Z-Index Reference *******************
 * header:      50
 * mobile-menu: 120
 * mobile-close: 140
 * cookie-banner: 2500
 * cookie-modal: 3000
 ***********************************************************/

/* Hide main nav on mobile */
@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/******* Accessibility: Always ensure Contrast in Testimonial Cards ******/
.testimonial-card p,
.testimonial-card span {
  color: #2B2506;
  background: transparent;
}

/*------------------ Utility Classes ------------------*/
.hide {
  display: none !important;
}
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }

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