/* 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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #244254;
  background: #FAF6F1 url('../assets/pattern-retro.png') repeat;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #244254;
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: #D36B2F;
  text-decoration: none;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 7px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #244254;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.2rem;
  color: #B46B18;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}
strong {
  color: #B46B18;
  font-weight: 700;
}

/***** LAYOUT CONTAINERS *****/
.container {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #FFF8E6;
  border: 2px dashed #EDB575;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 4px 18px rgba(36,66,84,.04);
  margin-bottom: 20px;
}
/***** FLEXBOX PATTERNS *****/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFDEB;
  border: 2px solid #D9E5DF;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(36,66,84,.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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: 20px;
  font-size: 1.1rem;
  background: #F6EDD3;
  color: #282A24;
  border-left: 8px solid #EDB575;
  border-radius: 12px 24px 24px 12px;
  box-shadow: 0 3px 16px rgba(36,66,84,.06);
  padding: 20px 32px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #282A24;
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  letter-spacing: .4px;
  font-size: 1rem;
  color: #B46B18;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/***** MAIN NAVIGATION HEADER *****/
header {
  background: #EDB575 url('../assets/header-retro-wave.png') repeat-x;
  border-bottom: 3px solid #244254;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 16px;
  filter: sepia(.18) saturate(88%);
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
  background: none;
  color: #244254;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.06rem;
  transition: background .19s, color .19s;
}
nav a:hover, nav a:focus {
  background: #244254;
  color: #EDB575;
}
.cta.primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 1rem;
  padding: 10px 34px;
  margin-left: 10px;
  background-color: #244254;
  color: #FFF8E6;
  border-radius: 22px;
  border: 2px solid #EDB575;
  box-shadow: 0 3px 15px rgba(36,66,84,.06);
  cursor: pointer;
  text-decoration: none;
  transition: background .24s, color .24s, box-shadow .18s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #EDB575;
  color: #224254;
  border-color: #244254;
  box-shadow: 0 7px 24px rgba(36,66,84,.10);
}
/***** HAMBURGER MENU BUTTON *****/
.mobile-menu-toggle {
  display: none;
  background: #244254;
  color: #FFF8E6;
  border: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 96;
  box-shadow: 0 3px 14px rgba(36,66,84,.13);
  transition: background .22s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #EDB575;
  color: #244254;
}
/***** MOBILE MENU OVERLAY *****/
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(237,181,117,.95) url('../assets/pattern-retro.png') repeat;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.55,.13,.35,1);
  box-shadow: 0 0 60px 0 rgba(36,66,84,.10);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 18px 0 24px 22px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #244254;
  cursor: pointer;
  z-index: 210;
  padding: 3px 9px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #244254;
  color: #EDB575;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 32px;
  width: 100%;
}
.mobile-nav a {
  color: #244254;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: none;
  border-radius: 12px;
  padding: 12px 10px 12px 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background .19s, color .19s;
  margin-bottom: 4px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #244254;
  color: #EDB575;
}
/***** MAIN BUTTONS *****/
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 32px;
  border-radius: 18px;
  border: none;
  background: #EDB575;
  color: #244254;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s, color .15s, box-shadow .15s;
  outline: none;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: #244254;
  color: #FFF8E6;
  box-shadow: 0 5px 22px rgba(36,66,84,.12);
}
/***** BLOG & CARDS *****/
.blog-preview, .post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 14px;
}
.blog-card {
  background: #FFF5DC;
  border: 2px solid #EDB575;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(36,66,84,.07);
  padding: 24px 18px;
  min-width: 240px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .20s, border-color .20s;
}
.blog-card h3 {
  font-size: 1.19rem;
  margin-bottom: 7px;
  color: #244254;
}
.blog-card p {
  font-size: 1rem;
  color: #434237;
}
.blog-card a {
  align-self: flex-end;
  background: #244254;
  color: #FFFDEB;
  border-radius: 14px;
  padding: 6px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
  transition: background .16s, color .16s;
}
.blog-card a:hover, .blog-card a:focus {
  background: #EDB575;
  color: #244254;
}
.categories-menu {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  margin-top: 6px;
}
.categories-menu a {
  background: #EDB575;
  color: #244254;
  border-radius: 11px;
  padding: 7px 14px;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background .13s, color .13s;
}
.categories-menu a:hover, .categories-menu a:focus {
  background: #244254;
  color: #FFF8E6;
}
.popular-tags {
  margin-top: 20px;
  font-size: .97rem;
  color: #686152;
  letter-spacing: .03em;
}
.popular-tags strong { color: #B46B18; }
/***** HERO SECTION *****/
main section:first-child {
  background: #F6EDD3 url('../assets/pattern-retro.png') repeat;
  border-bottom: 4px dotted #EDB575;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 4px 28px -8px rgba(36,66,84,0.09);
}
main section:first-child h1 {
  color: #E1621E;
  text-shadow: 2px 2px 0 #FDCE8B, 4px 4px 0 #24425411;
  font-size: 2.8rem;
  margin-top: 17px;
  margin-bottom: 15px;
  letter-spacing: -1.9px;
}
main section:first-child p {
  color: #786137;
  font-size: 1.15rem;
  margin-bottom: 23px;
}
/***** FEATURE GRID (Index) *****/
.feature-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 18px 0;
}
.feature-grid > div {
  background: #FFF8E6;
  border-radius: 20px;
  border: 2px dashed #EDB575;
  box-shadow: 0 6px 28px rgba(36,66,84,.07);
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 340px;
  padding: 30px 20px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: box-shadow .20s;
}
.feature-grid > div:hover {
  box-shadow: 0 11px 32px rgba(36,66,84,.19);
}
.feature-grid img {
  height: 45px;
  width: 45px;
  margin-bottom: 2px;
  filter: sepia(0.16) brightness(104%);
}
.feature-grid h3 {
  font-size: 1.22rem;
  color: #B46B18;
  margin-bottom: 7px;
  letter-spacing: -.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature-grid p {
  font-size: .97rem;
  text-align: center;
  color: #524924;
}
/***** FOOTER *****/
footer {
  background: #244254 url('../assets/footer-retro-wave.png') repeat-x;
  color: #FFF8E6;
  font-size: 1rem;
  border-top: 4px solid #EDB575;
}
footer .container {
  padding-top: 34px;
  padding-bottom: 17px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-brand img {
  height: 36px;
  width: 36px;
}
.footer-links, .footer-legal, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.footer-links a, .footer-legal a {
  color: #FFF8E6;
  text-decoration: none;
  padding: 4px 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 5px;
  font-size: .99rem;
  letter-spacing: .02em;
  transition: background .13s, color .13s;
}
.footer-links a:hover, .footer-legal a:hover, .footer-links a:focus, .footer-legal a:focus {
  background: #EDB575;
  color: #244254;
}
.footer-contact img {
  height: 18px;
  margin-right: 5px;
  margin-bottom: -3px;
  vertical-align: middle;
}
.footer-contact a {
  color: #EDB575;
  text-decoration: underline;
  transition: color .16s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #FFFDEB;
}
.footer-social {
  flex-direction: row;
  gap: 14px;
  margin-top: 7px;
  align-items: center;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(2px 2px 2px #0001);
  opacity: .82;
  transition: filter .10s, opacity .12s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: grayscale(0) sepia(.21) hue-rotate(-34deg) drop-shadow(0 0 10px #EDB57544);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px dashed #EDB575;
  text-align: center;
  margin-top: 18px;
  font-size: .96rem;
  letter-spacing: .01em;
  color: #EDB575;
  padding: 15px 0 0 0;
}
/***** RESPONSIVE BREAKPOINTS *****/
@media (max-width: 1050px) {
  .container { max-width: 97vw; }
  .feature-grid > div { max-width: 100%; }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 760px) {
  nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 800px) {
  .content-grid, .card-container, .blog-preview, .post-previews {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  header img {
    height: 34px;
  }
  main section:first-child h1 {
    font-size: 2.1rem;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.13rem; }
  .blog-card {
    padding: 14px 8px;
    font-size: .97rem;
  }
  .testimonial-card {
    padding: 14px 11px;
    font-size: 1rem;
  }
  .footer-brand img {
    height: 27px;
    width: 27px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .card {
    padding: 18px 10px;
  }
  .text-section {
    padding: 15px 7px;
  }
  .feature-grid > div {
    padding: 16px 8px 14px 6px;
  }
}
/* Focus accessibility */
:focus-visible {
  outline: 3px dashed #B46B18;
  outline-offset: 2px;
  z-index: 2;
}
/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFF8E6;
  color: #244254;
  border-top: 3px solid #EDB575;
  box-shadow: 0 -2px 18px rgba(36,66,84,.08);
  padding: 22px 18px;
  z-index: 1110;
  font-size: 1rem;
  animation: cookieBannerIn .3s;
}
@keyframes cookieBannerIn {
  from { transform: translateY(70px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  flex: 1 1 180px;
  max-width: 420px;
}
.cookie-banner .cookie-btn {
  margin-left: 8px;
  border: 2px solid #EDB575;
  background: #EDB575;
  color: #244254;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  padding: 9px 28px;
  cursor: pointer;
  transition: background .17s, color .17s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #244254;
  color: #FFF8E6;
}
.cookie-banner .cookie-btn.secondary {
  background: #FFF8E6;
  color: #244254;
  border: 2px solid #244254;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: #EDB575;
  border-color: #EDB575;
  color: #244254;
}
/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top:0;
  width: 100vw; height: 100vh;
  background: rgba(37,50,61,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  animation: modalIn .2s;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF8E6 url('../assets/pattern-retro.png') repeat;
  color: #244254;
  border: 3px solid #EDB575;
  border-radius: 22px;
  max-width: 400px;
  min-width: 290px;
  padding: 32px 22px 22px 22px;
  box-shadow: 0 7px 44px rgba(36,66,84,.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.03rem;
  position: relative;
}
.cookie-modal-content h2 {
  color: #B46B18;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1rem;
  border-bottom: 1px dashed #D9E5DF;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-switch {
  --width: 40px;
  --height: 22px;
  display: inline-block;
  width: var(--width);
  height: var(--height);
  position: relative;
  margin-left: 6px;
  opacity: 0.9;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #EDB575;
  border-radius: 33px;
  transition: background .18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #244254;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFF8E6;
  box-shadow: 0 1px 2px #0001;
  transition: transform .18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 4px; right: 10px;
  font-size: 1.6rem;
  color: #B46B18;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 9px;
  transition: background .1s, color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #EDB575;
  color: #244254;
}
/***** TYPOGRAPHY SCALE & RETRO ACCENTS *****/
blockquote {
  font-size: 1.18rem;
  font-style: italic;
  background: #F6EDD3;
  border-radius: 16px;
  border-left: 8px solid #EDB575;
  padding: 14px 18px;
  color: #353129;
  margin: 28px 0 24px 0;
}
hr {
  border: none;
  border-bottom: 2px dashed #EDB575;
  margin: 34px 0;
}
/***** RETRO VISUAL ELEMENTS *****/
.text-section,
.card,
.testimonial-card,
.feature-grid > div {
  box-shadow: 0 1.5px 6px rgba(180,107,24,0.06), 0 8.5px 30px rgba(36,66,84,.07);
  border-radius: 18px;
}
/***** ANIMATION EFFECTS *****/
.cta.primary, .cookie-btn, .button, .blog-card a {
  transition: background .21s, color .18s, box-shadow .19s, border-color .15s;
}
.blog-card, .feature-grid > div {
  transition: box-shadow .22s, border-color .16s;
}
/***** MINIMUM CARD SPACING RULE *****/
.card, .testimonial-card, .feature-grid > div,
.blog-card, .text-section {
  margin-bottom: 20px;
}
/***** PREVENT ABSOLUTE OVERRIDES (except deco) *****/
.card, .blog-card, .testimonial-card, .feature-grid > div, .text-section {
  position: relative;
  z-index: 1;
}
/***** ADDITIONAL UTILITIES *****/
.visually-hidden { position: absolute; width:1px; height:1px; margin: -1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/***** PRINT OVERRIDE *****/
@media print { 
  .mobile-menu, .cookie-banner, .cookie-modal, .mobile-menu-toggle {
    display: none !important;
  }
}
