/* RESET & NORMALIZATION */
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;
}
body {
  line-height: 1.5;
  background: #F8F3E6;
  color: #28475C;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #28475C;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #B17038;
  outline: none;
}
ul, ol {
  list-style: none;
  padding: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
:focus {
  outline: 2px dashed #D7AF5B;
  outline-offset: 2px;
}

/* VINTAGE RETRO PALETTE & FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
:root {
  --primary: #28475C;
  --secondary: #D7AF5B;
  --accent: #FFFFFF;
  --vintage-red: #C84630;
  --vintage-teal: #38948A;
  --vintage-cream: #FFF8EB;
  --vintage-brown: #8C6954;
  --vintage-blue: #6C8EA4;
  --shadow: 0 2px 16px rgba(40,71,92,0.09), 0 0.7px 2px rgba(216,175,91,0.18);
  --border-radius: 18px;
  --pattern-light: repeating-linear-gradient(-45deg, #F8F3E6, #F8F3E6 38px, #EFE2C3 38px, #EFE2C3 76px);
  --pattern-dark: repeating-linear-gradient(-45deg, #28475C 0px, #28475C 18px, #22384B 18px, #22384B 36px);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

/* SECTION SPACING (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* Header */
header {
  background: var(--vintage-cream);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  padding: 7px 0 3px 0;
  position: relative;
  color: var(--primary);
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}
header nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 17px;
  border-radius: 9px;
  padding: 7px 24px;
  margin-left: 12px;
  box-shadow: 1px 2px 8px rgba(200,170,75,0.12);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #FAF1CF;
  transition: background 0.17s, color 0.17s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #C84630;
  color: var(--accent);
}
header nav a:hover, header nav a:focus {
  color: var(--vintage-red);
  background: #f8ecd6;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  padding: 7px 13px 7px 13px;
  margin-left: 20px;
  transition: background 0.16s;
  z-index: 1001;
  border: 2px solid #CFA446;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #B17038;
  color: var(--accent);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 310px;
  height: 100vh;
  background: #FFF8EB;
  box-shadow: -2px 0 19px -7px #28475C2A;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.36s cubic-bezier(0.35,0.75,0.61,1.2);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  margin: 18px 20px 0 0;
  color: var(--primary);
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: #C84630; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 42px 38px 0 38px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  padding: 9px 3px;
  border-bottom: 1px dashed #E0A74533;
  transition: color 0.18s, background 0.18s;
  border-radius: 7px;
}
.mobile-nav a:hover,
.mobile-nav a:focus { color: #C84630; background: #EFE2C3; }
.mobile-nav a.cta { background: var(--secondary); color: var(--primary); margin-top: 16px; }

/* Hide nav and show menu button on mobile */
@media (max-width: 960px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 18px 0;
  text-shadow: 1px 2px 0 #D7AF5B44;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.16;
}
h3 {
  font-size: 1.4rem;
}
p,
.text-section {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #28323C;
  line-height: 1.75;
  margin-bottom: 12px;
}

strong { font-weight: 700; }

ul, ol {
  margin-bottom: 16px;
  font-size: 1.09rem;
  font-family: var(--font-body);
  color: #25333C;
  line-height: 1.68;
}
ul:not(.feature-grid) li {
  padding-left: 24px;
  margin-bottom: 8px;
  position: relative;
}
ul:not(.feature-grid) li::before {
  content: '\2013';
  font-family: var(--font-display);
  color: var(--vintage-red);
  font-size: 1.2em;
  position: absolute;
  left: 0; top: 0;
}

.text-section p {
  display: flex;
  align-items: center;
  gap: 12px;
}
.text-section img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  filter: sepia(0.1) hue-rotate(-12deg) contrast(1.18);
}

/* RETRO PATTERNS */
body {
  background-color: var(--vintage-cream);
  background-image: var(--pattern-light);
}

section {
  background: #fffffbcc;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1.5px solid #EFE2C3;
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}

/* FEATURE GRID & FLEX PATTERNS (MANDATORY) */
.feature-grid,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid {
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 175px;
  background: #F6EDD9;
  border: 1.5px solid #CFA44644;
  border-radius: 13px;
  padding: 18px 18px 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 5px #dfceaf33;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #483312;
  transition: box-shadow 0.22s, border-color 0.23s;
  position: relative;
}
.feature-grid li:hover {
  box-shadow: 0 8px 18px #b1703844;
  border-color: var(--secondary);
}
.feature-grid li img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  filter: sepia(0.3) hue-rotate(-8deg) saturate(1.4);
}
.feature-grid li span {
  font-size: 0.97rem;
  color: #99843D;
  font-style: italic;
  padding-top: 3px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #F6EDD9;
  border-radius: 15px;
  box-shadow: 0 1.5px 7px #8c695422;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 1.3px solid #A59B8F26;
  transition: box-shadow 0.22s, border-color 0.18s;
}

.card:hover, .card:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 6px 24px #C8463044;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

/* Retro Visual Touches for Cards/Sections */
section::before {
  content: '';
  position: absolute;
  left: 25px; top: 25px;
  width: 48px; height: 48px;
  border-radius: 18px;
  background: var(--secondary);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
section:nth-child(even)::before {
  left: unset; right: 25px;
}

/* CTA BUTTON STYLE */
.cta, a.cta, button.cta {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.19rem;
  font-weight: 900;
  padding: 12px 36px;
  border-radius: 10px;
  box-shadow: 0 3px 10px #D6CBAB1A;
  border: 2px solid #CFA44699;
  letter-spacing: 1px;
  text-shadow: 1px 1.5px 0 #fff7c3;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.18s;
  margin-top: 8px;
  position: relative;
}
.cta:hover, .cta:focus {
  background: #C84630;
  color: var(--accent);
  transform: translateY(-3px) scale(1.035) rotate(-1deg);
  box-shadow: 0 14px 28px #c846302f, 0 2.5px 7px #b1703840;
}

/* CARDS & GRID SYSTEM */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section, .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .container {
    padding: 0 9px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px 20px 32px;
  background: #FFF8EB;
  border-radius: 18px;
  box-shadow: 0 2px 20px #D7AF5B1f, 0 0.7px 2px #28475C11;
  margin-bottom: 20px;
  border: 2px dashed #D7AF5B55;
  position: relative;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #28475C;
  font-style: italic;
  margin: 0 0 8px 0;
  font-family: var(--font-body);
}
.testimonial-card span {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #A67D42;
  text-shadow: 0 1px 0 #fffccc;
  align-self: flex-end;
}

/* TEXT SECTIONS IN CARDS & CONTACT */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

/* FOOTER */
footer {
  background: var(--vintage-blue);
  color: #fff;
  border-top: 5px solid var(--secondary);
  box-shadow: 0 -2px 12px #CFA4460f;
  padding-top: 26px;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 7px;
  transition: color 0.16s, background 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #D7AF5B;
  color: #28475C;
}
.footer-social {
  display: flex;
  gap: 19px;
  margin-bottom: 10px;
}
.footer-social img {
  width: 31px;
  height: 31px;
  filter: grayscale(0.2) sepia(0.1) brightness(1.05);
  opacity: 0.91;
  transition: filter 0.16s, opacity 0.14s;
}
.footer-social img:hover {
  filter: none; opacity: 1;
}
.footer-legal {
  color: #fff1e4;
  font-size: 0.96rem;
}
@media (max-width: 600px) {
  .footer-nav { gap: 12px; }
  footer .container { padding: 0 3px; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #FFF8EB;
  color: #28475C;
  border-top: 3px solid #D7AF5B;
  box-shadow: 0 -3px 18px #CFA44629;
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5010;
  padding: 22px 16px;
  animation: cookie-slide-up 0.48s cubic-bezier(0.36,0.60,0.54,1.11);
  gap: 28px;
}
@keyframes cookie-slide-up {
  0% { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.04rem;
  color: #28475C;
  margin-bottom: 0;
  margin-right: 25px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn,
button.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 7px;
  padding: 7px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.01rem;
  border: 2px solid #CFA44655;
  transition: background 0.16s, color 0.17s, transform 0.15s;
  box-shadow: 0 2px 7px #c846301b;
  margin: 0 2px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #C84630;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
}
.cookie-btn.settings {
  background: #28475C;
  color: #fff;
  border-color: #666C77;
}
.cookie-btn.settings:hover { background: #38948A; }

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -56%);
  background: #FFF8EB;
  border-radius: 17px;
  box-shadow: 0 12px 44px #28475C55, 0 1.5px 10px #D7AF5B2b;
  z-index: 5050;
  padding: 36px 32px 28px 32px;
  min-width: 275px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.44s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes cookie-modal-in {
  0% { transform: scale(0.8) translate(-50%, -45%); opacity: 0; }
  100% { transform: scale(1) translate(-50%, -56%); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-family: var(--font-display);
}
.cookie-modal .cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EFE2C3;
  padding: 11px 19px;
  border-radius: 9px;
  color: #333;
  font-family: var(--font-body);
  font-size: 1.04rem;
}
.cookie-modal .switch {
  appearance: none;
  display: inline-block;
  width: 36px; height: 22px;
  background: #C84630;
  border-radius: 16px;
  position: relative;
  outline: none;
  margin-left: 9px;
  vertical-align: middle;
}
.cookie-modal .switch:checked { background: #38948A; }
.cookie-modal .switch:before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: #FFEFC5;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 5px;
  transition: left 0.18s;
}
.cookie-modal .switch:checked:before {
  left: 17px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-size: 1.04rem;
  padding: 7px 21px;
}
.cookie-modal .cat-required {
  color: #AA3700;
  font-size: 0.99rem;
  font-family: var(--font-body);
  background: transparent;
  border: none;
}

/* Hide modal by default */
.cookie-modal[aria-hidden='true'] {
  display: none;
}

/* PAGE & MAIN STYLES */
main {
  padding: 38px 0 14px 0;
}

/* FEATURE ITEM FLEX PATTERN */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing for .card, .card-container, .content-grid, .feature-grid */
.card,.feature-grid li {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid {
  gap: 20px !important;
}

/* Microinteractions */
.card, section, .feature-grid li, .testimonial-card, .cta, .cookie-btn, .footer-nav a, .mobile-nav a {
  transition: box-shadow 0.2s, background 0.2s, color 0.16s, border 0.16s, transform 0.17s;
}

/* FORM ELEMENTS (if any injected or shown) */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.4px solid #D7AF5B44;
  border-radius: 8px;
  background: #FFF;
  padding: 9px 13px;
  margin-bottom: 14px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #28475C;
  outline: none;
}

/* VISUAL HIERARCHY (RETRO TOUCHES) */
section {
  border-width: 1.7px;
  background-image: repeating-linear-gradient(-8deg, #FFF8EB 0 25px, #EFE2C3 25px 50px);
}
/* Decorative border for important sections */
section:first-child {
  border-width: 2.6px;
  border-color: var(--secondary);
  box-shadow: 0 6px 32px #dab97433;
  background-image: none;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  main { padding: 19px 0 9px 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.14rem; }
  .cta, a.cta, button.cta {
    font-size: 1.01rem;
    padding: 11px 18px;
  }
  section {
    padding: 20px 6px;
    margin-bottom: 37px;
  }
  .testimonial-card {
    padding: 16px 12px;
    font-size: 1.01rem;
  }
  .feature-grid li {
    min-width: 95px;
    padding: 10px 9px 7px 15px;
  }
  .cookie-modal {
    padding: 19px 8px 14px 8px;
  }
}

/* RETRO-LOOKING SCROLLBAR */
::-webkit-scrollbar {
  width: 11px;
  background: #EFE2C3;
}
::-webkit-scrollbar-thumb {
  background: #D7AF5B;
  border-radius: 15px;
  border: 2px solid #EFE2C3;
}

/* ENSURE Z-INDEX FOR ALL INTERACTIVE COMPONENTS */
header { z-index: 1000; }
.mobile-menu { z-index: 2200; }
.cookie-banner { z-index: 5010; }
.cookie-modal { z-index: 5050; }

/* HIDE/SHOW FOR ANIMATED BANNER & MODAL */
.cookie-banner.hide { display: none !important; }
.cookie-modal[aria-hidden="true"] { display: none !important; }

/* ACCESSIBILITY POLISH */
.cta:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  box-shadow: 0 0 0 3px #D7AF5B88;
  outline: none;
}

/* FORBIDDEN PROPERTIES GUARD (NO GRID/COLUMNS) */
/* No display:grid, grid-*, columns, column-* or break-inside anywhere */
