/* ---- CSS 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;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F7E9D6; /* Light retro beige */
  color: #22160d;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #142850;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #C2784B;
}
ul {
  list-style: disc;
  margin-left: 1.3em;
}
strong {
  font-weight: 700;
}

/* ---- VINTAGE RETRO STYLE FONTS ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

h1, h2, h3, h4, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  letter-spacing: 1.5px;
  color: #2D1F17;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.16;
  font-weight: 900;
  margin-bottom: 18px;
  text-shadow: 2px 2px 0px #EBC7A1;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 16px;
  color: #B97D40;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #67432E;
  font-weight: 700;
}
p, li {
  font-size: 1rem;
  color: #453427;
}

/* ---- UTILITY CLASSES ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF6E0;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(70,42,10,0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #F9F0E3;
  border-radius: 16px;
  box-shadow: 0 0.5px 6px #dbb689a0;
  padding: 24px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  box-shadow: 0 4px 16px #cabcd19c;
  transform: translateY(-4px) scale(1.012);
}
.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;
  padding: 20px 24px;
  background: #FFF6E0;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px #CFA87260;
  border: 2px solid #E7AB7C;
  max-width: 480px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #513820;
}
.testimonial-card span {
  color: #88704D;
  font-family: 'Roboto', Arial, sans-serif;
  font-style: italic;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- RETRO COLOR PALETTE ---- */
:root {
  --primary: #142850;
  --secondary: #00A6A6;
  --accent: #F4F4F9;
  --vint-brown: #B97D40;
  --vint-orange: #E7AB7C;
  --vint-beige: #FFF6E0;
  --vint-dark: #22160d;
  --vint-shadow: #EBC7A1;
}

body {
  background: var(--vint-beige);
}

/* ---- HEADER ---- */
header {
  background: #FAEBCF;
  border-bottom: 4px double #E7AB7C;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 20px;
}
.logo img {
  height: 48px;
  filter: sepia(0.15) contrast(1.07);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 1.08rem;
  font-weight: 700;
  color: #744416;
  position: relative;
  padding: 4px 2px;
  transition: color 0.18s;
}
.main-nav a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #E7AB7C;
  border-radius: 2px;
  transition: width 0.22s;
  margin-top: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #B97D40;
}
.cta-btn {
  background: #142850;
  color: #FFF6E0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  padding: 11px 30px;
  border-radius: 35px;
  font-size: 1.07rem;
  box-shadow: 0 3px 18px #E7AB7C22;
  text-shadow: 1px 1px 0px #B97D4098;
  letter-spacing: 1px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.20s, color 0.15s, box-shadow 0.17s, transform 0.11s;
  outline: none;
  border-bottom: 2px solid #E7AB7C;
}
.cta-btn:hover, .cta-btn:focus {
  background: #E7AB7C;
  color: #142850;
  box-shadow: 0 1px 8px #A5623660, 0 4px 20px #E7AB7C80;
  transform: translateY(-3px) scale(1.024);
}

/* ---- HERO SECTION ---- */
.hero {
  background: #FAEBCF url('../assets/pattern-retro.svg') repeat top right;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 24px #ceb7913c;
  padding-top: 44px;
  padding-bottom: 54px;
  margin-bottom: 60px;
}
.hero .container {
  align-items: stretch;
}
.hero .content-wrapper {
  max-width: 850px;
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: #22160d;
  text-shadow: 2px 2px 0 #FFF6E0, 0 2px 10px #E7AB7C70;
}
.hero p {
  font-size: 1.25rem;
  max-width: 80%;
  color: #795438;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 20px 0;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #FDFAF5;
  border: 2px solid #E7AB7C;
  border-radius: 16px;
  padding: 28px 22px 20px 22px;
  box-shadow: 0 1.5px 9px #CFA87239;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 210px;
  transition: box-shadow 0.14s;
  margin-bottom: 8px;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 32px #e7ab7c38;
}
.feature-grid img {
  height: 56px;
  margin-bottom: 7px;
}

/* ---- PUBLICATION LIST ---- */
.publication-list {
  margin-top: 18px;
  margin-bottom: 0;
}
.publication-list li {
  background: #F9F0E3;
  border-radius: 12px;
  margin-bottom: 22px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px #e7ab7c29;
  border-left: 4px solid #B97D40;
  transition: box-shadow 0.13s;
}
.publication-list li:hover {
  box-shadow: 0 6px 24px #ecd4c497;
}

/* ---- TEXT IMAGE + TEXT SECTION ---- */
.text-section {
  padding-top: 0;
  gap: 22px;
}
.text-section ul {
  margin: 0 0 0 1.5em;
}
.text-section li {
  margin-bottom: 9px;
  color: #654328;
}

/* ---- FOOTER ---- */
footer {
  background: #FAEBCF;
  border-top: 5px double #E7AB7C;
  padding: 44px 0 24px 0;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  margin-top: 8px;
}
.footer-nav a {
  color: #8F5033;
  font-size: 1rem;
  border-bottom: 1.5px dashed #E7AB7C;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B97D40;
}
.logo-footer img {
  height: 40px;
  margin-bottom: 9px;
  filter: sepia(0.13) contrast(1.09);
}
.footer-contact {
  font-size: 0.98rem;
  color: #755E3E;
  margin-top: 8px;
}
.footer-contact img {
  height: 15px;
  vertical-align: text-bottom;
  display: inline-block;
  margin: 0 3px 0 6px;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  background: #212529;
  color: #FDFAF5;
  font-size: 2.1rem;
  border: none;
  border-radius: 38px;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1011;
  padding: 7px 17px 12px 17px;
  box-shadow: 0 2px 15px #b97d4050;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, transform 0.12s;
}
.mobile-menu-toggle:active {
  background: #B97D40;
  color: #fff;
  transform: scale(0.92);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAEBCF;
  box-shadow: 0 2px 16px #22160d55;
  z-index: 2050;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,.2,.09,.93);
  padding: 32px 22px 0 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #142850;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 38px;
  cursor: pointer;
  transition: color 0.10s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B97D40;
  transform: scale(1.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  color: #6B422B;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  border-bottom: 2px dotted #E7AB7C;
  padding: 6px 4px;
  border-radius: 5px;
  transition: background 0.09s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B97D40;
  background: #E7AB7C33;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: #F4E4C2;
  border: 2px solid #B97D40;
  border-radius: 18px;
  box-shadow: 0 3px 24px #B97D4070;
  padding: 10px 25px;
  z-index: 3030;
  animation: cookie-slidein 0.61s cubic-bezier(.19,.9,.3,1.15);
}
@keyframes cookie-slidein {
  from { transform: translateY(150px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 auto;
  color: #6E512B;
  font-size: 1.09rem;
}
.cookie-banner .cookie-btn {
  background: #142850;
  color: #FFF6E0;
  font-family: 'Montserrat', sans-serif;
  border: none;
  font-size: 0.99rem;
  border-radius: 30px;
  padding: 7px 21px;
  margin-left: 8px;
  box-shadow: 0 1.5px 6px #b97d4042;
  cursor: pointer;
  transition: background 0.20s, color 0.18s, box-shadow 0.17s, transform 0.10s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #E7AB7C;
  color: #142850;
}
.cookie-banner .cookie-settings {
  background: #FDFAF5;
  color: #B97D40;
  border: 1.5px dashed #B97D40;
  margin-left: 8px;
}

/* ---- COOKIE MODAL ---- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3040;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(70, 42, 10, 0.28);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #FFF6E0;
  border: 2px solid #E7AB7C;
  box-shadow: 0 7px 24px #78411360;
  border-radius: 22px;
  padding: 32px 26px 24px 26px;
  max-width: 380px;
  width: 94vw;
  min-width: 250px;
  position: relative;
  animation: cookie-modal-fadein 0.33s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: .5em;
  color: #B97D40;
}
.cookie-modal-close {
  position: absolute;
  right: 12px; top: 13px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #B97D40;
  cursor: pointer;
  transition: color 0.14s, transform 0.118s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #142850; transform: scale(1.18);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-category label {
  flex: 1 1 auto;
  color: #443016;
  font-weight: 600;
  font-size: 1.01rem;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 22px;
  border-radius: 12px;
  background: #F4F4F9;
  border: 1px solid #B97D40;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.11s;
}
.cookie-toggle:checked {
  background: #E7AB7C;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #B97D40;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle:checked::before {
  transform: translateX(14px);
  background: #142850;
}
.cookie-modal-btns {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-btns .cookie-btn {
  font-size: 1.03rem;
}

/* ---- RESPONSIVE BREAKPOINTS ---- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
  .feature-grid > div {
    min-width: 190px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 20px;
  }
  .main-nav { gap: 18px; }
  .feature-grid { gap: 18px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  header .container { flex-direction: row; gap: 8px; }
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    border-radius: 0 0 22px 22px;
    padding-top: 25px;
    padding-bottom: 32px;
  }
  .hero .content-wrapper {
    max-width: 100%;
  }
  .feature-grid > div, .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card-container, .content-grid, .feature-grid {
    gap: 12px;
  }
  .section {
    padding: 22px 7px;
    margin-bottom: 32px;
    border-radius: 10px;
  }
  .footer-nav { gap: 10px; flex-wrap: wrap; }
  .footer-contact { font-size: 0.95rem; }
  .testimonial-card { padding: 13px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.3rem; }
  .hero .content-wrapper, .section, .card {
    padding: 12px 2vw;
  }
  .feature-grid > div {
    padding: 15px 6px;
    min-width: 130px;
  }
}
@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 868px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

/* ---- RETRO DECORATIVE ACCENTS ---- */
.section, .feature-grid > div, .testimonial-card, .card {
  background-image: repeating-linear-gradient(135deg, #fdecd2 0px, #fff6e0 13px, #fdecd2 27px);
  background-blend-mode: lighten;
}
.section {
  border: 2.5px dashed #E7AB7C;
}

/* ---- BUTTONS & INTERACTIONS ---- */
button, .cta-btn, .cookie-btn {
  transition: all 0.17s cubic-bezier(.2,.77,.4,1.24);
  outline: none;
}
button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #142850;
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #B97D40bb; }
::-moz-placeholder { color: #B97D40bb; }
:-ms-input-placeholder { color: #B97D40bb; }
::placeholder { color: #B97D40bb; }

/* ---- SELECTION ---- */
::selection {
  background: #E7AB7C;
  color: #fff;
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: #efd6b0;
  border-radius: 8px;
  border: 2px solid #FFF6E0;
}
::-webkit-scrollbar-track {
  background: #F5DFBD;
}

/* ---- END ---- */
