/* ===== CSS RESET & BASE 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* ===== VINTAGE RETRO BRAND COLORS ===== */
:root {
  --primary: #243746;
  --secondary: #D9A441;
  --accent: #F4F7FA;
  --retro-orange: #e8882e;
  --retro-red: #b0413e;
  --retro-blue: #508fa3;
  --retro-green: #7eb572;
  --retro-cream: #fff3e1;
  --retro-brown: #79644c;
  --shadow: rgba(60,40,32,0.11);
}

/* ===== FONTS: RETRO & MODERN COMBO ===== */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  background-color: var(--accent);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Impact, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}
h1 { font-size: 2.3rem; line-height: 1.1; margin-bottom: 18px; }
h2 { font-size: 1.5rem; line-height: 1.13; margin-bottom: 16px; }
h3 { font-size: 1.15rem; line-height: 1.18; margin-bottom: 10px; }

p, ul, ol {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* ========== RETRO HEADINGS ACCENTS ========== */
h1, h2, h3 {
  position: relative;
  padding-left: 9px;
}
h1:before, h2:before, h3:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 85%;
  background: var(--secondary);
  border-radius: 3px;
  opacity: 0.8;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px; /* Prevents default unwanted spacing */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== SPACE, SECTION, FLEXBOX LAYOUTS ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid var(--retro-brown);
}
.card:hover {
  box-shadow: 0 4px 18px var(--shadow);
  transform: translateY(-6px) scale(1.02);
}
.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: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--retro-cream);
  border-left: 10px solid var(--retro-orange);
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 14px 6px 14px 6px;
}
.testimonial-card p {
  color: #2d2821;
  font-size: 1.05rem;
}
.testimonial-name {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  color: var(--retro-brown);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== HERO SECTION ========== */
.hero {
  background: var(--retro-cream);
  border-bottom: 6px double var(--secondary);
  box-shadow: 0 2px 22px var(--shadow);
  padding: 50px 0 40px 0;
}
.hero h1 {
  color: var(--retro-red);
  text-shadow: 2px 2px 0 var(--retro-brown), 0px 2px 8px var(--shadow);
  text-transform: uppercase;
  font-size: 2.6rem;
}
.hero p {
  color: var(--primary);
  font-size: 1.13rem;
  margin-bottom: 22px;
}

/* ========== FEATURE GRID & CARDS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--accent);
  border-radius: 12px 32px 12px 24px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 24px 22px 18px 22px;
  border: 2px solid var(--retro-brown);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: background 0.2s, box-shadow 0.2s;
}
.feature img {
  height: 42px;
  width: 42px;
  margin-bottom: 4px;
  filter: sepia(0.5) brightness(0.95) contrast(1.2);
}
.feature h3 {
  color: var(--retro-orange);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature:hover {
  background: var(--retro-cream);
  box-shadow: 0 4px 14px var(--shadow);
}

/* ========== TEXT SECTION ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul, .text-section ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
  list-style: disc inside;
}
.text-section img {
  margin-right: 10px;
  opacity: 0.7;
  vertical-align: middle;
}

/* ========== CTA SECTION ========== */
.cta {
  background: var(--retro-blue);
  padding: 48px 0 44px 0;
  text-align: center;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -2px 22px var(--shadow);
}
.cta h2 {
  color: var(--retro-cream);
  text-shadow: 2px 2px 0 var(--retro-brown);
}
.cta p {
  color: var(--retro-cream);
  font-size: 1.12rem;
}

/* ========== BUTTONS ========== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  border-radius: 30px;
  background-color: var(--secondary);
  color: var(--primary);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
  box-shadow: 0 2px 7px var(--shadow);
  border: 2px solid var(--primary);
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
}
.button:hover, .button:focus {
  background-color: var(--retro-orange);
  color: var(--retro-cream);
  transform: translateY(-2px) scale(1.02) rotate(-1deg);
  box-shadow: 0 6px 18px var(--retro-brown);
}
.button-primary {
  background-color: var(--retro-orange);
  color: var(--retro-cream);
  border: 2px solid var(--retro-brown);
}
.button-primary:hover, .button-primary:focus {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 14px var(--retro-red);
  transform: translateY(-2px) scale(1.04) rotate(1deg);
}


/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--primary);
  box-shadow: 0 4px 28px var(--shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.logo img {
  height: 48px;
  filter: drop-shadow(1px 2px 0 var(--secondary));
  padding: 7px 0 7px 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 6px 9px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-orange);
  background: var(--retro-cream);
}
header .button-primary {
  margin-left: 16px;
  font-size: 0.98rem;
  padding: 10px 20px;
}
.mobile-menu-toggle {
  background: var(--retro-orange);
  color: var(--retro-cream);
  border-radius: 9px;
  font-size: 1.7rem;
  padding: 6px 18px;
  margin-left: 18px;
  display: none;
  border: 2px solid var(--retro-brown);
  transition: background 0.14s, color 0.14s, transform 0.2s;
  z-index: 31;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--retro-cream);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.77,0,0.18,1);
  z-index: 70;
  box-shadow: 8px 0 50px var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 32px 0 0 0;
  opacity: 0.988;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--retro-red);
  color: var(--retro-cream);
  font-size: 2rem;
  border-radius: 13px;
  margin: 12px 32px 24px 0;
  padding: 4px 14px;
  border: 2px solid var(--retro-brown);
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  padding: 0 38px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  padding: 15px 0 13px 0;
  font-size: 1.15rem;
  width: 100%;
  color: var(--retro-orange);
  border-bottom: 1px dotted var(--retro-brown);
  margin-bottom: 0;
  text-transform: uppercase;
  transition: color 0.18s, background 0.18s, padding 0.18s;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--retro-red);
  background: var(--secondary);
  font-weight: 700;
  padding-left: 15px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: var(--retro-cream);
  padding-top: 38px;
  padding-bottom: 28px;
  border-top: 7px double var(--secondary);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}
.footer-logo img {
  height: 42px;
  filter: drop-shadow(2px 2px 0 var(--secondary));
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 18px 0 13px 0;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.98rem;
  transition: color 0.15s, background 0.15s;
  border-radius: 7px;
  padding: 3px 9.5px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
  background: var(--retro-cream);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 11px 0;
  color: var(--retro-cream);
  font-size: 0.97rem;
}
.footer-contact img {
  height: 18px;
  margin-right: 8px;
  opacity: 0.7;
  vertical-align: middle;
}
.footer-bottom {
  border-top: 1px solid var(--retro-brown);
  margin-top: 26px;
  padding-top: 14px;
  color: var(--secondary);
  font-size: 0.95rem;
}

/* ========== FORMS, LINKS ========== */
a {
  transition: color 0.15s, background 0.15s;
  outline: none;
}
a:focus {
  outline: 2px solid var(--retro-orange);
  outline-offset: 2px;
}

/* ========== RESPONSIVE & MOBILE ========== */
@media (max-width: 1024px) {
  .feature-grid { gap: 16px; }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .feature-grid { flex-direction: column; align-items: stretch; }
  .card-container { flex-direction: column; }
  footer .container { flex-direction: column; gap: 16px; align-items: stretch; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.19rem; }
  .section { margin-bottom: 36px; padding: 26px 5px; }
  .hero { padding: 25px 0 22px 0; }
  .cta { padding: 34px 0 34px 0; }
  .feature-grid, .card-container, .content-grid { flex-direction: column; gap: 14px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
  header .button-primary { display: none; }
  .footer-nav { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-contact { font-size: 0.98rem; gap: 4px; }
  .text-image-section { flex-direction: column; gap: 16px; }
  .feature { min-width: 0; padding: 16px 14px; }
}
@media (max-width: 600px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .footer-logo img, .logo img { height: 37px; }
  .cta h2 { font-size: 1.08rem; }
  .card { padding: 13px 7px; }
  .feature-grid { gap: 9px; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-cream);
  color: var(--retro-brown);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 22px 30px 19px 30px;
  box-shadow: 0 -2px 26px var(--shadow);
  border-top: 5px double var(--secondary);
  z-index: 200;
  animation: fadeInCookie 0.7s;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(90px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-consent-buttons {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 12px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.98rem;
  border: 2px solid var(--primary);
  padding: 10px 22px;
  margin-right: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px var(--shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-orange);
  color: var(--retro-cream);
}
.cookie-btn.settings {
  background: var(--retro-cream);
  color: var(--retro-brown);
  border: 2px solid var(--retro-brown);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.97rem;
    padding: 12px 14px 13px 11px;
  }
  .cookie-consent-buttons { gap: 7px; }
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 220;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(36,55,70,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.3s;
}
.cookie-modal {
  background: var(--accent);
  border: 4px solid var(--secondary);
  border-radius: 19px;
  max-width: 420px;
  padding: 34px 28px 26px 28px;
  box-shadow: 0 8px 38px var(--shadow);
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal h2 {
  color: var(--primary);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 18px;
  text-align: left;
}
.cookie-modal .cookie-category {
  margin-bottom: 15px;
  border-bottom: 1px dotted var(--retro-brown);
  padding-bottom: 7px;
}
.cookie-modal .category-title {
  font-weight: 700;
  color: var(--retro-orange);
  font-size: 1rem;
  margin-bottom: 3px;
  font-family: 'Oswald', Arial, sans-serif;
}
.cookie-modal .category-desc {
  color: var(--primary);
  font-size: 0.97rem;
  margin-bottom: 3px;
}
.cookie-toggle {
  accent-color: var(--retro-orange); /* fallback for old browsers: orange enabled on modern browsers */
  width: 23px; height: 23px;
  margin-right: 9px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 17px 7px 14px 7px; }
}

/* ========== MISC: ICONS, LISTS, ETC ========== */
ul, ol {
  margin-bottom: 18px;
  margin-left: 18px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
  list-style-type: disc;
  color: var(--primary);
}
.confirmation-section {
  text-align: center;
  background: var(--retro-cream);
  border-radius: 22px;
  box-shadow: 0 4px 18px var(--shadow);
  padding: 44px 19px 30px 19px;
}
.confirmation-section h1 {
  color: var(--retro-orange);
  margin-bottom: 15px;
}
.confirmation-section a.button-primary {
  margin: 32px auto 0 auto;
}

/* ========== RETRO-NOSTALGIC DETAILS ========== */
.section, .hero, .cta, .card, .feature, .testimonial-card, .confirmation-section, .cookie-modal {
  /* Retro-pattern overlay with transparency for subtle paper effect */
  background-image: repeating-linear-gradient(135deg, rgba(217,164,65,0.04) 0px, rgba(217,164,65,0.04) 2.5px, transparent 2.5px, transparent 7.5px);
}

/* ========== FOCUS VISIBLE ACCESSIBILITY ========== */
:focus-visible {
  outline: 2.5px dashed var(--retro-orange);
  outline-offset: 2.5px;
}

/* ========== Z-INDEX MANAGE ========== */
header { z-index: 30; }
.mobile-menu { z-index: 70; }
.cookie-consent-banner { z-index: 200; }
.cookie-modal-overlay { z-index: 220; }

/* ========== UTILITIES: SPACING ========== */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.pt-2 { padding-top: 16px !important; }

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