/* CSS RESET & BASELINE ------------------------------ */
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, menu, 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  background: #F7F3EA;
  color: #35322B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
a {
  color: #134C8E;
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E1781F;
  text-decoration: underline;
}

/* CUSTOM RETRO COLORS and EFFECTIVE PALETTE ------------ */
:root {
  --primary: #134C8E;
  --primary-dark: #062848;
  --secondary: #F1F3F7;
  --accent: #FFD600;
  --retro-blue: #5998C5;
  --retro-brown: #A57B5B;
  --retro-teal: #179999;
  --retro-orange: #E1781F;
  --retro-bg: #F7F3EA;
  --card-bg: #FFF7D1;
  --text-main: #35322B;
  --text-dark: #1B1710;
  --retro-shadow: 0 4px 24px 0 rgba(30,22,12,0.09);
  --retro-border: #A57B5B;
}

body {
  background: var(--retro-bg);
  color: var(--text-main);
}

/* FONTS and RETRO TYPOGRAPHY SCALE --------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 22px;
  text-shadow: 2px 2px 0 #FFD600, 0 2px 8px rgba(13,53,120,0.07);
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--retro-orange);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--retro-brown);
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}
h4, .h4 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
p, li, strong, ol {
  font-family: 'Roboto', Arial, sans-serif;
}
p {
  margin-bottom: 16px;
  font-size: 1.06rem;
}
strong {
  font-weight: 700;
}
ol, ul {
  margin-bottom: 18px;
  font-size: 1rem;
}
li {
  margin-bottom: 9px;
}
blockquote {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  padding: 18px 30px;
  background: #FFF7D1;
  border-left: 5px solid var(--retro-orange);
  border-radius: 10px; 
  margin: 30px 0;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* GENERAL CONTAINER AND STRUCTURE --------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffde9;
  border-radius: 22px;
  box-shadow: var(--retro-shadow);
  position: relative;
}
.content-wrapper.text-section {
  background: #fff;
  border-left: 8px double var(--accent);
  border-right: 8px double var(--accent);
  border-radius: 18px;
}

/* FLEXBOX PATTERN CLASSES (MANDATORY) ----------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CUSTOM STRUCTURE FLEX (Features / Products / Tips / Footer) */
.features-grid, .tips-grid, .news-feed, .products-list, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}
.features-grid > div, .tips-grid > div, .products-list > div, .news-feed > article, .testimonials-list > .testimonial-card {
  flex: 1 1 320px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 3px 18px 0 rgba(165,123,91,0.08);
  padding: 30px 24px 24px 24px;
  border: 1.5px solid var(--retro-border);
  margin-bottom: 20px;
  position: relative;
}
.features-grid > div img, .features-grid > div svg {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.tips-grid > div h2 {
  color: var(--retro-blue);
  font-size: 1.4rem;
}
.tips-grid {
  background: #F5E5C1;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(228,178,52,0.08);
}

.products-list > div h2,
.features-grid > div h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--retro-brown);
  font-family: 'Montserrat', 'Roboto', sans-serif;
}

.news-feed > article {
  border-left: 8px solid var(--retro-blue);
  background: #F0F8FF;
  border-radius: 13px;
  margin-bottom: 20px;
}

.testimonials-list {
  gap: 32px;
}
.testimonial-card {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(19,76,142,0.10);
  border-radius: 18px;
  padding: 28px 24px 22px 24px;
  border: 2.5px dashed var(--retro-orange);
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #1B1710;
  flex-direction: column;
  align-items: flex-start;
  min-width: 260px;
  max-width: 400px;
  transition: transform 0.18s cubic-bezier(.61,.16,.58, 1), box-shadow .18s;
}
.testimonial-card:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 24px 0 rgba(165,123,91,.16);
}
.testimonial-card strong {
  display: block;
  margin-top: 10px;
  color: #675347;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

/* CALL TO ACTION BUTTONS (Retro Aesthetic) ------------- */
.cta-button,
.cta-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 1px;
  font-weight: 900;
  background: var(--accent);
  color: var(--primary-dark);
  border: 3px solid var(--retro-brown);
  padding: 13px 32px;
  margin-top: 20px;
  font-size: 1.22rem;
  border-radius: 44px 22px 44px 22px;
  box-shadow: 0 5px 16px rgba(165,123,91,0.10);
  cursor: pointer;
  text-decoration: none;
  text-shadow: none;
  transition: background .20s, color .18s, box-shadow .19s, transform .18s;
}
.cta-nav {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
  font-weight: 900;
  margin-left: 12px !important;
}
.cta-button:hover, .cta-button:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 0 5px 24px rgba(225,120,31,0.20);
  transform: scale(1.045) rotate(-1deg);
  border-color: #C05A03;
}
.cta-nav:hover, .cta-nav:focus {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--retro-brown);
  box-shadow: 0 3px 12px 0 rgba(255,214,0,0.09);
}

/* MAIN NAVIGATION --------------------------------------*/
.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  background: var(--retro-bg);
  padding: 16px 0;
  border-bottom: 2px solid var(--retro-brown);
  z-index: 40;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 7px 13px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: all .16s;
  margin-left: 0px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-orange);
  background: #FFF7D1;
  text-decoration: underline;
}
.main-nav a img {
  width: 48px;
  min-width: 48px;
  height: auto;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
}

/* Responsive nav cta */
@media (max-width: 1000px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* MOBILE BURGER MENU -----------------------------------*/
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: var(--retro-blue);
  color: #fff;
  border: 2px solid var(--retro-brown);
  border-radius: 40px;
  padding: 2px 18px 2px 13px;
  margin-left: auto;
  margin-right: 0;
  cursor: pointer;
  box-shadow: 1px 3px 10px 0 rgba(89,152,197,.12);
  transition: background .18s;
  position: relative;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F7F3EA;
  z-index: 2000;
  box-shadow: 0 0 100px 0 rgba(20,24,40,0.1);
  overflow-y: auto;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(.71,-0.05,.83,.67);
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: transparent;
  border: none;
  color: var(--retro-orange);
  position: absolute;
  right: 32px; top: 22px;
  cursor: pointer;
  z-index: 2100;
  transition: color .18s, background .1s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--primary);
  background: #F7F3EA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 70px;
  gap: 8px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.28rem;
  color: var(--primary-dark);
  text-decoration: none;
  background: transparent;
  border-radius: 10px;
  padding: 12px 0 12px 10px;
  font-weight: 700;
  min-width: 160px;
  transition: background .18s, color .18s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD600;
  color: var(--retro-orange);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* FOOTER STYLES (Retro patterns) -----------------------*/
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 34px;
  margin-bottom: 18px;
  padding: 32px 0 0 0;
  background: #FFEFC7;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -4px 30px 3px rgba(165,123,91,.07);
  border-top: 4px double var(--retro-orange);
}
.footer-grid > a img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 155px;
}
.footer-nav a {
  color: var(--retro-brown);
  font-size: 1.12rem;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .14s, color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--retro-orange);
}
.footer-contact {
  font-size: 1.08rem;
  color: var(--text-main);
  margin-right: 20px;
}
.footer-contact p {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact img {
  width: 18px;
  height: auto;
  display: inline-block;
  margin-right: 2px;
}
.legal-disclaimer {
  flex: 1 1 100%;
  color: #83603D;
  font-size: 0.97rem;
  margin-top: 18px;
}
.social-media-links {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.social-media-links a img {
  width: 30px;
  height: auto;
}

/* SECTION + CARD ALIGHNMENT / SPACING ------------------*/
section, .section {
  margin-bottom: 60px;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--retro-shadow);
  border: 1.5px solid var(--retro-border);
  padding: 28px 22px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid, .card-container, .products-list, .features-grid, .news-feed, .testimonials-list {
  gap: 24px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .content-grid, .features-grid, .products-list, .news-feed, .testimonials-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 22px;
    padding: 24px 6px 2px 6px;
  }
  .container {
    padding: 0 9px;
  }
  .content-wrapper {
    padding: 28px 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}

/* OL/UL inside text-section */
.text-section ul,
.text-section ol {
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 7px;
}

/* OL/UL NUMBERS and RETRO BULLETS */
ul {
  list-style-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><circle cx="5" cy="5" r="5" fill="%23FFD600"/></svg>');
}
ol {
  list-style-type: decimal;
  list-style-position: inside;
}
ul li {
  padding-left: 0.3em;
}
ol li {
  padding-left: 0.2em;
}

/* TABLE (for future pages) */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  background: #fffde9;
  border-radius: 16px;
}
th, td {
  border: 1px solid #ecd69e;
  padding: 10px 1em;
}
th {
  background: #FDF5C6;
}

/* COOKIE CONSENT COMPONENT -----------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF7D1;
  color: var(--primary-dark);
  font-size: 1.11rem;
  z-index: 9999;
  box-shadow: 0 -2px 14px 0 rgba(165,123,91, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 12px 16px 12px;
  border-top: 5px double var(--retro-orange);
  animation: cookieBannerAppear .7s cubic-bezier(.58,1.56,.57,1) both;
}
@keyframes cookieBannerAppear {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  background: var(--retro-orange);
  color: #fff;
  border: none;
  padding: 9px 23px;
  border-radius: 17px;
  margin: 0 2px;
  cursor: pointer;
  transition: background .16s, color .13s, transform .16s, box-shadow .21s;
  box-shadow: 0 2px 8px 0 rgba(225,120,31,.11);
}
.cookie-banner button.accept {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-banner button.reject {
  background: var(--retro-blue);
  color: #fff;
}
.cookie-banner button:hover, 
.cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.07) rotate(-2deg);
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--primary-dark);
  border: 2px dashed var(--retro-orange);
  padding: 9px 17px;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* COOKIE CONSENT MODAL ---------------------------------*/
.cookie-modal-backdrop {
  background: rgba(38,34,28,.28);
  position: fixed;
  z-index: 10001;
  left: 0; right: 0; top: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
  animation: fadeIn .27s linear;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffde9;
  box-shadow: 0 4px 45px 0 rgba(165,123,91,.20);
  border: 5px double var(--retro-blue);
  border-radius: 22px;
  max-width: 390px;
  width: 96vw;
  padding: 32px 27px 20px 27px;
  color: var(--primary-dark);
  z-index: 10003;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: popinModal .36s cubic-bezier(.41,1.51,.63,.93) both;
}
@keyframes popinModal {
  from { opacity:0; transform: scale(.8); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.31rem;
  color: var(--retro-orange);
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04rem;
  color: var(--primary-dark);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--retro-orange);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--retro-orange);
}
.cookie-modal .essential {
  color: var(--retro-blue);
  font-weight: bold;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 14px; top: 16px;
  background: transparent;
  font-size: 2rem;
  color: var(--retro-orange);
  border: none;
  cursor: pointer;
  transition: color .12s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border-radius: 16px;
  padding: 9px 18px;
  border: none;
  background: var(--retro-orange);
  color: #fff;
  font-size: 1.06rem;
  box-shadow: 0 2px 8px 0 rgba(225,120,31,.12);
  transition: background .16s, color .13s, transform .16s;
  cursor: pointer;
}
.cookie-modal .modal-actions button.save {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-modal .modal-actions button:hover,
.cookie-modal .modal-actions button:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.07) rotate(-1deg);
}

/* MEDIA QUERIES (Responsive design) --------------------*/
@media (max-width: 640px) {
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.23rem; }
  h3, .h3 { font-size: 1.05rem; }
  .content-wrapper, .section {
    padding: 16px 2px;
    margin-bottom: 32px;
  }
  .footer-grid {
    gap: 13px;
    padding: 13px 2px 2px 2px;
  }
  .cta-button, .cta-nav {
    font-size: 1rem;
    padding: 10px 16px;
  }
}

/* ANIMATIONS & HOVER EFFECTS ----------------------------*/
.cta-button, .cta-nav, .cookie-banner button, .cookie-banner .cookie-settings-btn,
.cookie-modal .modal-actions button {
  outline: none;
}

.cta-button:active, .cta-nav:active, .cookie-banner button:active, .cookie-modal .modal-actions button:active {
  transform: scale(.97) rotate(0deg);
}

.news-feed > article:hover {
  box-shadow: 0 8px 22px 0 rgba(89,152,197,0.12);
  border-left-color: var(--retro-orange);
  transform: scale(1.02) rotate(-0.5deg);
  transition: all .15s;
}

/* Misc: focus indicators and accessibility --------------*/
button:focus, a:focus {
  outline: 2px dotted var(--retro-blue);
  outline-offset: 3px;
}

/* Hide cookie banner for print */
@media print {
  .cookie-banner, .cookie-modal-backdrop, .mobile-menu { display: none !important; }
}

/* MISC ----------- */
::selection {
  background: var(--accent);
  color: var(--text-dark);
}

/* Hide visually (for e.g. accessibility) */
.sr-only {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
