/* --- 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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background-color: #F6EDDD;
  color: #2A3358;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #09857B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C76327;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
  margin: 0 0 1.5em 0;
}
strong {
  font-weight: 700;
}

/* --- RETRO VINTAGE THEME COLORS & FONTS --- */
:root {
  --color-primary: #2A3358; /* Brand Deep Blue */
  --color-secondary: #09857B; /* Teal retro shade (was #09B6E6; adjusted for retro look) */
  --color-accent: #F4D191; /* Soft vintage yellow accent */
  --color-base-bg: #F6EDDD; /* Light, warm, vintage paper */
  --color-muted: #EFE7D1;
  --color-orange: #C76327; /* Retro orange */
  --color-brown: #7B5335; /* Vintage brown for shadows & deco */
  --color-cream: #FFF7ED;
  --color-white: #FFF;
  --color-dark: #2A241D;
  /* Fonts */
  --display-font: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --body-font: 'Roboto', 'Arial', sans-serif;
}

/* --- BASE TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--display-font);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  text-shadow: 1px 2px var(--color-cream),2px 3px var(--color-orange),0 0 5px #0001;
}
h2, .h2 {
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px var(--color-cream);
}
h3, .h3 {
  font-family: var(--display-font);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h4, .h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
p, .text-section, li {
  font-size: 1rem;
  color: var(--color-dark);
}
blockquote {
  font-family: var(--display-font);
  font-size: 1.15rem;
  color: var(--color-orange);
  background: var(--color-cream);
  padding: 16px 32px;
  margin: 0 0 12px 0;
  border-left: 6px solid var(--color-brown);
  border-radius: 10px 30px 25px 10px;
  box-shadow: 0 4px 24px 0 #0001;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-primary);
  box-shadow: 0 6px 28px -20px var(--color-brown);
  padding: 0;
  position: relative;
  z-index: 40;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
nav > a img {
  height: 39px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav ul li {
  margin-bottom: 0;
}
nav ul li a {
  font-family: var(--display-font);
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 1.13rem;
  color: var(--color-accent);
  padding: 7px 14px;
  border-radius: 12px;
  transition: background 0.13s, color 0.13s;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta-btn {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--display-font);
  font-weight: 800;
  padding: 11px 36px;
  font-size: 1.19rem;
  border: none;
  border-radius: 36px 18px 30px 36px;
  box-shadow: 2px 6px 0 var(--color-brown), 0 3px 16px 0 #0002;
  letter-spacing: 0.06em;
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.15s, transform 0.13s, box-shadow 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
  box-shadow: 3px 10px 0 var(--color-brown), 0 8px 32px 0 #0002;
}

/* --- MOBILE MENU SYSTEM --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.13s;
  box-shadow: 0 3px 12px 0 #0002, 1px 2px 0 var(--color-brown);
  z-index: 204;
  position: relative;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed var(--color-brown);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--color-primary);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.67,.9,.22,1.01);
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: -4px 0 32px #0004;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.3rem;
  padding: 20px 30px 8px 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
  padding: 20px 36px;
}
.mobile-nav a {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.44rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  padding: 13px 14px;
  margin-bottom: 2px;
  border-radius: 24px;
  width: 100%;
  transition: background 0.18s, color 0.13s, transform 0.1s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-orange);
  color: var(--color-white);
  transform: scale(1.04);
}

/* Hide nav & show burger on mobile */
@media (max-width: 1024px) {
  nav ul, nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  nav ul, nav .cta-btn { display: flex; }
}

/* --- LAYOUT CONTAINERS & SECTIONS --- */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: transparent;
  width: 100%;
  align-items: flex-start;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-base-bg);
  border-radius: 34px 12px 64px 22px;
  box-shadow: 0 3px 20px -7px var(--color-brown), 0 1px 0 var(--color-cream);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--color-cream);
  border-radius: 22px 44px 18px 14px;
  margin-bottom: 20px;
  box-shadow: 2px 6px 0 var(--color-brown), 0 10px 30px #0001;
  padding: 28px 22px;
  transition: transform 0.15s, box-shadow 0.18s;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
}
.card:hover {
  transform: translateY(-4px) scale(1.025) rotate(-0.5deg);
  box-shadow: 4px 14px 0 var(--color-brown), 0 14px 40px #0002;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-muted);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 22px #0001, 2px 4px 0 var(--color-orange);
  border-left: 6px solid var(--color-orange);
}
.testimonial-card blockquote {
  margin: 0;
  background: none;
  padding: 0 12px;
  border: none;
  color: var(--color-orange);
  font-size: 1.07rem;
  text-shadow: 1px 1px var(--color-cream);
}
.testimonial-card > div {
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--display-font);
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-muted);
  border-radius: 16px 40px 12px 10px;
  padding: 18px 20px 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 7px 26px -12px var(--color-brown);
  border-left: 4px solid var(--color-orange);
}

.text-section {
  padding: 0 0 10px 0;
  font-size: 1rem;
  color: var(--color-dark);
}

/* --- LIST STYLING (RETRO BULLETS) --- */
ul > li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 10px;
}
ul > li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0.25em; top: 0.7em;
  width: 0.75em; height: 0.75em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-brown));
  box-shadow: 1px 2px 0 var(--color-brown);
}

ol {
  list-style: decimal inside;
  margin-left: 0.5em;
}
ol > li {
  margin-bottom: 8px;
  padding-left: 0.3em;
}

/* --- PRICING LISTS & CARDS --- */
.section ul li span {
  font-family: var(--display-font);
  color: var(--color-orange);
  font-weight: bold;
  margin-left: 8px;
  font-size: 1.09em;
}
.section ul ul {
  margin-top: 6px;
  margin-bottom: 12px;
  padding-left: 0;
}
.section ul ul li {
  padding-left: 2.3em;
  font-size: 0.97em;
}

/* --- BUTTONS & INTERACTIONS --- */
button, .button {
  outline: none;
  font-family: var(--display-font);
  border: none;
  cursor: pointer;
  border-radius: 18px 36px 18px 12px;
  padding: 11px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-orange);
  transition: background 0.13s, box-shadow 0.12s, transform 0.13s;
  margin-right: 10px;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 2px 8px 0 var(--color-brown), 0 7px 22px #0001;
  transform: scale(1.03);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  padding: 40px 0 24px 0;
  color: var(--color-accent);
  font-size: 1.07em;
  box-shadow: 0 -6px 44px -24px var(--color-brown);
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 26px;
}
footer a {
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--display-font);
  font-size: 1.05em;
  transition: color 0.12s;
}
footer a:hover, footer a:focus {
  color: var(--color-orange);
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer .text-section {
  font-size: 1em;
  color: var(--color-accent);
  font-family: var(--body-font);
  margin-top: 12px;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--color-brown);
  color: var(--color-accent);
  z-index: 2999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 15px 22px 15px;
  font-family: var(--body-font);
  font-size: 1rem;
  box-shadow: 0 -8px 36px #0006;
  animation: cookie-slide-up 0.65s cubic-bezier(.7,1.42,.16,1.01);
}
@keyframes cookie-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin: 0 8px;
  padding: 10px 22px;
  font-size: 1.04em;
  font-family: var(--display-font);
  border-radius: 18px 12px 20px 8px;
  border: none;
  background: var(--color-orange);
  color: var(--color-accent);
  font-weight: bold;
  transition: background 0.13s, color 0.12s, transform 0.12s;
  box-shadow: 1px 2px 0 var(--color-primary), 0 2px 8px #0002;
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: scale(1.025);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--color-orange);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #2a241dab;
  z-index: 3001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--color-cream);
  color: var(--color-dark);
  border-radius: 30px 20px 50px 24px;
  box-shadow: 0 10px 120px var(--color-brown), 0 0 2px var(--color-brown);
  padding: 36px 32px 30px 32px;
  max-width: 430px;
  width: 92vw;
  font-family: var(--display-font);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.43s cubic-bezier(.6,1,.18,.94);
}
@keyframes cookie-modal-in {
  from { transform: translateY(60px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.48rem;
  font-family: var(--display-font);
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  padding: 10px 0;
}
.cookie-category .toggle {
  width: 46px; height: 24px;
  border-radius: 18px;
  background: var(--color-muted);
  position: relative;
  transition: background 0.13s;
  margin-right: 10px;
}
.cookie-category .toggle input {
  opacity: 0; width: 0; height: 0;
}
.cookie-category .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-orange);
  transition: left 0.13s, background 0.13s;
}
.cookie-category .toggle input:checked + .toggle-slider {
  left: 24px;
  background: var(--color-secondary);
}
.cookie-category .desc {
  color: var(--color-brown);
  font-size: 0.97em;
  font-family: var(--body-font);
}
.cookie-modal .cookie-btn {
  margin-top: 20px;
  align-self: flex-end;
}
.cookie-modal .essential {
  color: var(--color-brown);
  font-style: italic;
  opacity: 0.7;
}

/* --- RESPONSIVITY: MOBILE FIRST, FLEX SYSTEM --- */
.section, .card, .feature-item, .testimonial-card {
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 1024px) {
  .container { padding: 0 10px; }
  .section { padding: 26px 5px; margin-bottom: 40px; }
  .card { padding: 16px 10px; }
  .testimonial-card, .feature-item { padding: 12px 10px; }
  .content-wrapper { gap: 16px; }
  nav { padding: 12px 13px; }
  footer .container { padding: 0 10px; }
}
@media (max-width: 768px) {
  nav, .footer .container { flex-direction: column; align-items: stretch; }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card, .feature-item { flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .card { min-width: 0; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  h1, .h1 { font-size: 2.0rem; }
  h2, .h2 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .section { padding: 14px 2.5vw; }
  .card { padding: 10px 4px; }
  h1,.h1 { font-size: 1.4rem; }
  h2,.h2 { font-size: 1.09rem; }
  nav > a img, footer a img { height: 32px; }
  .cta-btn { font-size: 1.01rem; padding: 8px 18px; }
}

/* --- ANIMATIONS (RETRO MICROINTERACTIONS) --- */
.card, .feature-item, .testimonial-card {
  will-change: transform;
  transition: transform 0.14s, box-shadow 0.17s;
}
.card:active, .feature-item:active, .cta-btn:active {
  transform: scale(0.97);
}

/* --- DECORATIVE RETRO PATTERN (OPTIONAL) --- */
.section {
  position: relative;
  overflow: visible;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: -18px;
  width: 50px; height: 50px;
  background: repeating-linear-gradient(45deg,#F4D191 0 4px,#EFE7D1 4px 8px);
  opacity: 0.18;
  border-radius: 40% 80% 80% 50%;
  z-index: 0;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px; right: -18px;
  width: 44px; height: 44px;
  background: radial-gradient(circle, #C76327 56%, transparent 90%);
  opacity: 0.15;
  border-radius: 40% 80% 80% 60%;
  z-index: 0;
}

/* --- MISC: FOCUS STATES, ACCESSIBILITY --- */
a, button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .toggle {
  outline: none;
}
a:focus, .cta-btn:focus, button:focus, .cookie-btn:focus, .mobile-menu-close:focus, .toggle:focus {
  box-shadow: 0 0 0 3px var(--color-accent);
  outline: none;
}

::-webkit-input-placeholder { color: #938060; }
::-moz-placeholder { color: #938060; }
:-ms-input-placeholder { color: #938060; }
::placeholder { color: #938060; opacity: 1; }

/* --- PRINT OPTIMIZATION --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #222; }
  .section { box-shadow: none; background: #fff; }
}

/* --- Util: Hide visually but keep accessible --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
section {
  padding: 20px 0;
}
