/* CSS 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 {  margin: 0;  padding: 0;  border: 0;  font-size: 100%;  font: inherit;  vertical-align: baseline;}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
table {border-collapse: collapse; border-spacing: 0;}
* {box-sizing: border-box;}
img {max-width: 100%; height: auto; display: block;}

/* =========== VINTAGE RETRO THEME VARIABLES & BASE FONTS ========== */
:root {
  --color-primary: #22643C;
  --color-secondary: #C19130;
  --color-accent: #F5F3EF;
  --color-dark: #2F2213;
  --color-bg: #FFF9EE;
  --color-light: #FFFFFF;
  --color-card: #FAEFDC;
  --color-border: #BFAB8A;
  --color-contrast: #39302B;
  --shadow-card: 0 4px 20px rgba(50, 38, 20, 0.08);
  --border-radius: 20px;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Lato', 'Arial', sans-serif;
  --font-retro: 'Montserrat', 'Lato', 'Arial Rounded MT Bold', sans-serif;
  --transition: 0.25s cubic-bezier(.55,.09,.68,.53);
  --pattern-bg: repeating-linear-gradient(135deg, #F5F3EF 0 20px, #F7E7C5 20px 40px);
}

/* =========== BASE ========== */
body {
  background: var(--pattern-bg), var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {gap: 16px;}

/* =========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-retro);
  color: var(--color-primary);
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 0 rgba(194, 145, 48, 0.09);
}
h1 {
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-secondary);
}
h4, h5, h6 {
  font-size: 1.125rem;
  font-weight: 600;
}
p, li, a, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-contrast);
}
strong {color: var(--color-primary);font-weight: bold;}
em {font-style: italic;}

/* For retro look */
h1, h2, h3, h4 {text-transform: uppercase;}

/* =========== HEADERS & NAV ========== */
header {
  background: var(--color-accent);
  border-bottom: 4px double var(--color-secondary);
  box-shadow: 0 6px 18px rgba(50,38,20,0.05);
  padding: 0 0;
  width: 100%;
}
header {
  min-height: 70px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1001;
  justify-content: center;
}
header > a img {
  height: 54px;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 16px;
}
header nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 12px;
  font-family: var(--font-retro);
  font-size: 1.05rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-light);
  box-shadow: 0 2px 6px 0 rgba(34, 100, 60, 0.10);
  outline: none;
}
.cta-btn {
  font-family: var(--font-retro);
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: 18px;
  padding: 10px 32px;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  margin-left: 32px;
  box-shadow: 0 0 0 rgba(34, 100, 60, 0);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: 0;
  border-bottom: 4px solid var(--color-secondary);
  letter-spacing: 0.06em;
  position: relative;
  top: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-bottom: 4px solid var(--color-primary);
  box-shadow: 0 6px 18px 0 rgba(194, 145, 48, 0.13);
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  margin-left: 20px;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 1003;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {background: var(--color-secondary);color: var(--color-primary);}

/* =========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,100,60,0.87);
  z-index: 3000;
  padding: 40px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.59,.11,.31,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2.5rem;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 50%;
  margin-bottom: 24px;
  width: 48px;
  height: 48px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-left: 6px;
  margin-top: 16px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.14rem;
  text-decoration: none;
  padding: 11px 0 11px 8px;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 0.08em;
  font-family: var(--font-retro);
  transition: background var(--transition), color var(--transition);
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* =========== HERO/SECTIONS/CARDS ========== */
main {
  margin-top: 24px;
  margin-bottom: 50px;
}
section {margin-bottom: 60px; padding: 40px 20px;}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.card {
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 250px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: 0 10px 28px 0 rgba(194,145,48,0.18);
  transform: translateY(-4px) scale(1.03);
}

.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: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-light);
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(60,50,30,0.05);
  margin-bottom: 24px;
  max-width: 600px;
  min-width: 220px;
  color: #2c220a;
}
.testimonial-card p {margin: 0; color: #2c220a; font-size: 1.08rem; text-align: center;}
.testimonial-card strong { color: var(--color-secondary);font-size: 1.07rem; letter-spacing: 0.02em;}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 12px;
}

/* =========== UL / LI FEATURES LISTS ========== */
ul {
  margin-left: 2px;
  margin-bottom: 12px;
  padding-left: 0;
  font-size: 1.06rem;
}
ul li {
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  line-height: 1.6;
}
ul li img {
  width: 29px;
  height: 29px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
  padding: 1.5px;
  box-shadow: 0 2px 6px rgba(34,100,60,0.06);
  border: 2px solid var(--color-primary);
}

/* =========== INPUTS (markets.html) ========== */
input[type="text"] {
  background: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-top: 10px;
  margin-bottom: 16px;
  color: var(--color-dark);
  box-shadow: 0 1px 3px rgba(34,100,60,0.04);
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input[type="text"]:disabled {
  color: #a69d91;
  background: #ede7db;
  opacity: 1;
}

/* =========== LINKS ========== */
a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-primary);
}

/* =========== FOOTER ========== */
footer {
  background: var(--color-accent);
  border-top: 4px double var(--color-secondary);
  padding: 0 0;
  position: relative;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  min-height: 146px;
  padding: 32px 0;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-primary);
  font-family: var(--font-retro);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  padding: 5px 9px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  background: #f2e2c4;
}
footer .contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 7px;
}
footer .contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark);
  font-size: 0.98rem;
}
footer .contact-details img {
  width: 19px;
  height: 19px;
  margin-right: 4px;
}
footer .footer-social {
  display: flex;
  gap: 19px;
  margin-top: 14px;
  align-items: center;
}
footer .footer-social a img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff5e0;
  box-shadow: 0 2px 8px rgba(194,145,48,0.10);
  transition: filter 0.18s;
}
footer .footer-social a:hover img {
  filter: brightness(0.82) sepia(1) hue-rotate(-25deg) saturate(1.7);
}

/* =========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #f0e5ce;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -2px 10px rgba(34,100,60,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 18px 22px 18px;
  font-size: 1.01rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  animation: fadein-banner 0.7s both;
}
@keyframes fadein-banner { from { opacity: 0; bottom: -400px;} to { opacity: 1; bottom: 0;}}
.cookie-banner p {margin: 0; font-size: 1rem;}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  font-family: var(--font-retro);
  border: none;
  background: var(--color-secondary);
  color: var(--color-light);
  border-radius: 10px;
  padding: 10px 19px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(194,145,48,0.09);
  transition: background var(--transition), color var(--transition), transform 0.18s;
  font-size: 1rem;
  margin-left: 0;
}
.cookie-btn.reject {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-light);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5000;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(60, 50, 30, 0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-modal-bg 0.34s both;
}
@keyframes fade-modal-bg { from { opacity: 0;} to { opacity: 1; } }
.cookie-modal {
  background: #fff9ee;
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(34,100,60,0.12);
  padding: 44px 32px 32px 32px;
  min-width: 310px;
  max-width: 97vw;
  animation: popup-cookie .29s cubic-bezier(.41,1.01,.68,1.12) both;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
@keyframes popup-cookie { from { transform: scale(0.8); opacity: 0;} to { transform: scale(1); opacity: 1;} }
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e2dabd;
}
.cookie-category:last-child {border-bottom: none;}
.cookie-category label {
  flex: 1;
  font-size: 1.07rem;
  color: var(--color-primary);
}
.cookie-toggle {
  position: relative;
  width: 43px;
  height: 24px;
  display: inline-block;
}
.cookie-toggle input { display: none; }
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #B2A479;
  border-radius: 16px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.17s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-secondary);
}
.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-light);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(18px);
}
.cookie-category .info {
  font-size: 0.93rem;
  color: #b69a62;
  font-style: italic;
  margin-left: 10px;
}
.essential span {
  font-size: 0.95rem;
  color: #887730;
  font-weight: 600;
}

/* =========== RESPONSIVE ========== */
@media (max-width: 1150px) {
  .content-wrapper {padding-left: 10px; padding-right: 10px;}
}
@media (max-width: 950px) {
  .footer .content-wrapper, .content-wrapper {flex-wrap: wrap;}
}
@media (max-width: 900px) {
  section {padding-left: 7px; padding-right: 7px;}
  .footer nav {flex-direction: column;}
}
@media (max-width: 768px) {
  .container {padding-left: 8px; padding-right: 8px;}
  .footer .content-wrapper, .content-wrapper {flex-direction: column; gap: 20px;}
  header nav {display: none !important;}
  .cta-btn {margin-left: 0;}
  .mobile-menu-toggle {display: flex;}
  header {padding: 8px 15px 8px 11px;}
  .footer .contact-details {margin-bottom: 16px;}
  .footer-social {margin-bottom: 12px;}
  .content-wrapper {gap: 14px;}
  .testimonial-card {max-width: 100vw;}
  .section {padding: 25px 5px;}
  .text-image-section {flex-direction: column; align-items: flex-start; gap: 20px;}
  .content-grid {flex-direction: column; gap: 13px;}
  .card-container {flex-direction: column; gap: 13px;}
  input[type="text"] {width: 100%; font-size: 0.97rem;}
  h1 { font-size: 2.15rem;}
  h2 { font-size: 1.42rem;}
  h3 { font-size: 1.13rem;}
}
@media (max-width: 540px) {
  header > a img {height: 42px;}
  .cookie-banner {flex-direction: column; align-items: flex-start; padding: 17px 7px 8px 11px; gap: 15px;}
  .cookie-banner-buttons {gap:11px;}
  .cookie-modal {padding: 24px 8px 18px 14px;}
}

/* =========== RETRO EFFECTS & NOSTALGIC ELEMENTS ========== */
section, .card, .testimonial-card, .cookie-modal {position: relative;}

.card:after {
  content: '';
  display: block;
  position: absolute;
  left: -16px; bottom: -16px;
  width: 44px; height: 44px;
  background: url('../assets/deco/retro-corner.svg') no-repeat;
  background-size: cover;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* =========== RETRO PATTERN BORDER ON HERO ========== */
section:first-of-type {
  border-top: 8px dashed var(--color-secondary);
  border-radius: 28px 28px 8px 8px;
  box-shadow: 0 3px 18px rgba(194,145,48,0.08);
  background: var(--color-card);
  margin-bottom: 60px;
}

/* =========== MICRO-INTERACTIONS ========== */
button, .cta-btn, .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition), transform 0.19s;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.99);
}

/* Focus styling for accessibility */
a:focus,
button:focus,
.cta-btn:focus,
.cookie-btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Hide visually but accessible */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* End of style.css */
