/*
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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;  padding: 0;  border: 0;  font-size: 100%;  font: inherit;  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
}
*, *:before, *:after {
  box-sizing: border-box;
}

/*
VINTAGE RETRO BRAND PALETTE
--------------------------------------*/
:root {
  --primary: #283747;
  --secondary: #E8EAF6;
  --accent: #FBB13C;
  --retro-red: #C94F4F;
  --retro-blue: #5D8CAE;
  --retro-green: #78A678;
  --retro-brown: #a38053;
  --retro-cream: #FFF8F0;
  --retro-outline: #ba995c;
  --text-main: #2d2320;
  --text-dark: #222;
  --text-light: #faf3e8;
  --shadow: rgba(45, 35, 32, 0.13);
  --shadow-dark: rgba(40, 55, 71, .14);
  --border-radius-main: 16px;
  --border-radius-small: 8px;
  --section-bg: #FFFBF3;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
        url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm45_QphziTn89dtpQ.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxM.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  src: url('https://fonts.gstatic.com/s/robotoslab/v24/BngMUXZYTXPIvIBgJJSb6ufN5qU.woff2') format('woff2');
}

html {
  font-size: 16px;
  background: var(--section-bg);
}
body {
  color: var(--text-main);
  background: var(--section-bg);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}

/*
TYPOGRAPHY: VINTAGE/RETRO LOOK
--------------------------------------*/
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Roboto Slab', Arial, serif;
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 1px 2px 0 var(--accent), 0 0 1px var(--retro-outline);
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
}
p, li, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.125rem;
}
p {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-main);
}
li {
  margin-bottom: 10px;
}
cite {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: var(--retro-red);
  font-size: 1rem;
}
strong, b {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}

/*
CONTAINER PATTERNS
--------------------------------------*/
.container {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
/* Section spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: var(--border-radius-main);
  box-shadow: 0 3px 24px var(--shadow);
}
section:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Feature grid on desktop */
.feature-grid {
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  background: #fffbe7;
  border: 2px solid var(--retro-brown);
  border-radius: var(--border-radius-main);
  box-shadow: 0 3px 16px var(--shadow);
  padding: 28px 24px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.19s cubic-bezier(.78,.07,.49,.92), box-shadow 0.22s;
  position: relative;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  filter: sepia(.29) contrast(1.1) brightness(.95);
}
.feature:hover,
.card:hover {
  box-shadow: 0 6px 26px var(--shadow-dark), 0 1px 8px var(--accent);
  transform: translateY(-5px) scale(1.03);
  z-index: 3;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe7;
  border: 2px solid var(--accent);
  border-radius: var(--border-radius-main);
  box-shadow: 0 3px 16px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.21s;
}

/* Used for FAQs & images next to text */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border: 2px solid var(--retro-blue);
  border-left: 10px solid var(--accent);
  border-radius: var(--border-radius-main);
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px var(--shadow);
  font-size: 1.1rem;
  color: var(--text-dark);
}
.testimonial-card p {
  color: var(--text-dark);
}

/*
HEADER, NAV & CTA
--------------------------------------*/
header {
  width: 100%;
  background: #EEE7DA linear-gradient(90deg,var(--retro-cream) 90%, var(--retro-outline) 100%);
  box-shadow: 0 3px 18px var(--shadow-dark);
  position: relative;
  z-index: 10;
  padding-bottom: 4px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--border-radius-small);
  position: relative;
  transition: background .17s linear, color .17s;
}
header nav a:hover,
header nav a:focus {
  background: var(--accent);
  color: #fff;
}
header .cta {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, serif;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.14rem;
  padding: 12px 28px;
  border-radius: 100px;
  margin-left: 16px;
  box-shadow: 0 2px 8px var(--shadow-dark), 0 0 0 2px var(--retro-brown) inset;
  border: none;
  transition: background .17s, color .17s, box-shadow .17s;
  text-shadow: 1px 1px 1px #f9eacb;
  cursor: pointer;
}
header .cta:hover,
header .cta:focus {
  background: var(--retro-red);
  box-shadow: 0 4px 16px var(--accent), 0 1px 14px var(--shadow-dark);
}

header img {
  height: 56px;
  max-width: 210px;
  margin-right: 8px;
}

/*
MOBILE MENU
--------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 2rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--retro-blue);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  background: #fffbe7;
  top: 0; left: 0;
  height: 100vh;
  width: 85vw;
  min-width: 230px;
  max-width: 375px;
  box-shadow: 8px 0 26px var(--shadow-dark);
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.91,.01,.33,.99);
  z-index: 5000;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  border: 0;
  font-size: 2rem;
  border-radius: 8px;
  padding: 5px 12px;
  align-self: flex-end;
  margin-bottom: 18px;
  transition: background .19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 12px 10px;
  color: var(--primary);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Overlay for mobile menu */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40, 55, 71, .27);
  z-index: 4999;
}
.mobile-menu.open + .mobile-menu-backdrop {
  display: block;
}

/*
FOOTER
--------------------------------------*/
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 40px 0 18px 0;
  border-top: 7px dotted var(--retro-outline);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: 'Montserrat', 'Roboto Slab', Arial, serif;
  color: var(--accent);
  font-size: 1.3rem;
}
.footer-nav, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-nav a, .footer-links a {
  color: var(--text-light);
  font-size: 1.08rem;
  padding: 4px 0;
  transition: color .13s;
}
.footer-nav a:hover, .footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--retro-cream);
}
.footer-contact img {
  width: 18px; height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-copyright {
  flex-basis: 100%;
  color: #CAB18B;
  text-align: right;
  font-size: 0.93rem;
  margin-top: 12px;
  font-family: 'Roboto Slab', serif;
}

/*
BUTTONS & INTERACTION
--------------------------------------*/
.cta, .button, button, input[type=submit] {
  font-family: 'Montserrat', 'Roboto Slab', Arial, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 12px 32px;
  box-shadow: 0 2px 8px var(--shadow-dark), 0 0 0 2px var(--retro-outline) inset;
  cursor: pointer;
  transition: background .17s, color .17s, box-shadow .17s, transform .12s;
  text-shadow: 1px 1px 1px #f9eacb;
  margin-top: 10px;
  margin-bottom: 10px;
  outline: none;
  letter-spacing: 1px;
  display: inline-block;
}
.cta:hover, .button:hover, button:hover, input[type=submit]:hover,
.cta:focus, .button:focus, button:focus, input[type=submit]:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent), 0 1px 14px var(--shadow-dark);
  transform: scale(1.045);
}

/* Decorative Retro Patterns */
section {
  position: relative;
  overflow-x: hidden;
}


/* Focus States for Accessibility */
a:focus, button:focus, .cta:focus {
  outline: 3px dashed var(--accent);
  outline-offset: 2px;
}

/*
COOKIE CONSENT BANNER
--------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: #fffaeb;
  border-top: 2px solid var(--retro-outline);
  box-shadow: 0 -2px 22px var(--shadow-dark);
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 10000;
  padding: 20px 10px 20px 10px;
  transition: transform .24s cubic-bezier(.55,.02,.47,1);
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner-text {
  flex: 1 1 420px;
  color: var(--text-main);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.015rem;
  padding: 9px 19px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px var(--shadow-dark) inset;
  margin-right: 4px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  transition: background .14s, color .14s, box-shadow .14s;
}
.cookie-btn.accept {
  background: var(--retro-green);
}
.cookie-btn.reject {
  background: var(--retro-red);
}
.cookie-btn.settings {
  background: var(--retro-blue);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-brown);
  color: #fffbe7;
}

/* Cookie Settings Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(40, 55, 71, 0.29);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}
.cookie-modal.show {
  display: flex;
}
.cookie-modal-content {
  background: #fffbe7;
  border-radius: 18px;
  border: 2px solid var(--retro-blue);
  padding: 28px 32px 22px 32px;
  box-shadow: 0 4px 26px var(--shadow-dark), 0 1px 8px var(--accent);
  max-width: 420px;
  width: 95vw;
  position: relative;
  animation: cookieModalAnim .29s cubic-bezier(.6,.1,.25,1);
}
@keyframes cookieModalAnim {
  from { transform: scale(.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, serif;
  font-size: 1.275rem;
  color: var(--primary);
  margin-bottom: 13px;
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  color: var(--retro-red);
  font-size: 1.7rem;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  color: var(--accent);
}
.cookie-modal-categories {
  margin: 20px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
}
.cookie-category input[type=checkbox] {
  margin-right: 10px;
  accent-color: var(--retro-blue);
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  display: flex;
  gap: 6px;
}
.cookie-category.essential label {
  color: var(--retro-green);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}

/*
MISCELLANEOUS & MICRO-INTERACTIONS
--------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: #f8efe3;
}
::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 6px;
}

/* Cards, List Items, FAQ */
ol > li { margin-bottom: 15px; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffbe7;
  border-radius: var(--border-radius-small);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
}

/* Blockquote style for blog/posts */
blockquote {
  border-left: 5px solid var(--accent);
  margin: 22px 0;
  padding: 12px 30px;
  background: #fff7e0;
  color: var(--retro-red);
  border-radius: 14px;
  font-family: 'Montserrat', 'Roboto Slab', serif;
  font-size: 1.14rem;
}


/*
RESPONSIVENESS (MOBILE-FIRST)
--------------------------------------*/
@media (max-width: 1050px) {
  .container {
    max-width: 900px;
    padding: 0 14px;
  }
  .feature {
    min-width: 180px;
    max-width: 100%;
    padding: 20px 12px;
  }
}

@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .footer-brand {
    margin-bottom: 14px;
  }
  .footer-contact {
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper,
  .feature-grid,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    min-width: 92vw;
    margin-right: 0;
  }
  section {
    padding: 26px 2vw;
    margin-bottom: 42px;
  }
  .testimonial-card {
    padding: 14px 11px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  .feature, .card {
    padding: 13px 7px;
  }
  section {
    padding: 12px 1vw;
  }
  .cookie-modal-content {
    padding: 17px 7px 18px 7px;
  }
}

/*
ANIMATIONS
--------------------------------------*/
header, section, footer, .feature, .card, .testimonial-card {
  animation: fadeinUp .67s cubic-bezier(.62,.22,.13,1.01);
}
@keyframes fadeinUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*
PRINT FRIENDLY
--------------------------------------*/
@media print {
  * {
    background: none !important;
    color: #222 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  header, footer, nav, .cta, .cookie-banner {
    display: none !important;
  }
  section, main, .container {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
}
