/* --- 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, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.5;
  background: #E6E1D3;
  color: #2F3E54;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.03em;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* --- FONT IMPORTS (GOOGLE FONTS) --- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --primary: #2F3E54;
  --secondary: #C9B27C;
  --accent: #E6E1D3;
  --vintage-red: #B75E48;
  --vintage-dark: #394248;
  --vintage-blue: #729AAD;
  --vintage-green: #7B927A;
  --vintage-orange: #E2A962;
  --card-bg: #F9F6ED;
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-base: 0 2px 10px rgba(55,40,20,0.10), 0 1.5px 3.5px rgba(44,40,33,0.04);
  --border-radius: 16px;
  --border-base: 2px solid var(--secondary);
  --pattern-url: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><rect x="0" y="0" width="6" height="6" fill="%23E2A962" fill-opacity="0.08" /></svg>');
}

/* --- GENERAL CONTAINERS & STRUCTURE --- */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pattern-url) var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-base);
}
@media (max-width: 600px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 5px;
  }
}

/* --- TYPOGRAPHY --- */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--vintage-red);
  letter-spacing: -1.2px;
  font-weight: 900;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--vintage-dark);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.7px;
}
h4, h5, h6{
  font-family: var(--font-display);
}
p, address, li, ul, .text-section, label {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--primary);
}
p, .text-section {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--vintage-red);
}

/* --- LINKS & CTAs --- */
a {
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--vintage-red);
  text-decoration: underline;
}

.cta {
  padding: 12px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 28px;
  box-shadow: 0 1.5px 6px rgba(80, 60, 33, 0.11);
  border: 2.5px solid var(--primary);
  margin: 10px 0 0 0;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.12s;
  outline: 0;
  letter-spacing: 0.08em;
  display: inline-block;
  text-align: center;
}
.cta.primary {
  background: var(--vintage-orange);
  color: var(--primary);
  border: 2.5px solid var(--vintage-dark);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 32px rgba(55,40,20,0.09);
}

/* --- HEADER, NAV, LOGO --- */
header {
  background: var(--accent);
  border-bottom: var(--border-base);
  box-shadow: 0 2.5px 13px rgba(44, 40, 33, 0.08);
}
header > .container {
  min-height: 74px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px 12px 18px;
}
header img[alt="NumisBanlung"] {
  height: 58px;
  width: auto;
  filter: grayscale(15%) contrast(1.1);
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0 6px 0;
  position: relative;
  border-radius: 2px;
  transition: color 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--vintage-red);
  background: rgba(201,178,124,0.11);
  text-decoration: none;
}
header .cta.primary {
  margin-left: 20px;
  margin-right: 0;
}

@media (max-width: 1020px) {
  .main-nav { gap: 14px; }
  header img[alt="NumisBanlung"] { height: 48px; margin-right: 8px; }
  header > .container { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  header > .container {
    flex-direction: row;
    align-items: center;
    padding: 14px 8px;
    gap: 4px;
  }
  .main-nav, header .cta.primary {
    display: none !important;
  }
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  cursor: pointer;
  z-index: 101;
  transition: background 0.21s, color 0.17s;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 12px;
    top: 18px;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  z-index: 200;
  background: var(--accent);
  box-shadow: 2px 14px 60px rgba(33, 28, 18,0.24);
  transform: translateX(-100vw);
  transition: transform 0.44s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 8px;
  padding: 7px 13px 7px 14px;
  margin: 24px 0 12px 14px;
  border: 2px solid var(--primary);
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--vintage-red);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
  padding: 18px 18px 14px 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.21rem;
  color: var(--primary);
  padding: 13px 0 9px 0;
  border-bottom: 1.5px dashed var(--secondary);
  margin-right: 22px;
  transition: background 0.18s, color 0.2s;
  border-radius: 0 12px 12px 0;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--vintage-red);
  padding-left: 11px;
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- HERO SECTIONS --- */
.hero {
  padding: 0;
  margin-bottom: 46px;
  background: var(--pattern-url) var(--accent);
  border-bottom: var(--border-base);
  box-shadow: 0 2.5px 16px rgba(39, 32, 26, 0.09);
}
.hero .container {
  padding-top: 34px;
  padding-bottom: 14px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 6px;
}
.hero h1 { margin-bottom: 6px; }
.hero p {
  font-size: 1.25rem;
  color: var(--vintage-dark);
  opacity: 0.93;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .hero {
    padding: 0;
    margin-bottom: 22px;
  }
  .hero .container { padding: 21px 5px 10px 5px; }
}

/* --- FEATURE GRIDS and CARDS --- */
.feature-grid, .features .feature-grid, .services .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.feature-grid > div, .feature-grid > li {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-base);
  padding: 26px 22px 20px 22px;
  min-width: 210px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid var(--secondary);
  transition: border 0.22s, box-shadow 0.18s, transform 0.19s;
}
.feature-grid > div:hover,
.feature-grid > li:hover {
  border: 2.5px solid var(--vintage-orange);
  box-shadow: 0 7px 28px rgba(52,32,18,0.12);
  transform: translateY(-2px) scale(1.018);
  background: #F1E2C5;
}
.feature-grid img {
  height: 48px;
  width: 48px;
  margin-bottom: 11px;
  filter: sepia(22%) contrast(1.09);
}

/* --- CARDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-base);
  border: var(--border-base);
  padding: 26px 24px 22px 24px;
}

/* --- GRIDS & SECTIONS --- */
.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;
}
@media (max-width: 768px) {
  .feature-grid, .features .feature-grid, .services .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials, .testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe9;
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 14px rgba(44,40,33,0.07);
  border: 2.5px solid var(--secondary);
  margin-bottom: 20px;
  flex: 1 1 320px;
  font-size: 1.12rem;
  color: #231E1C !important; /* CRITICAL CONTRAST */
  line-height: 1.58;
  transition: box-shadow 0.17s, border 0.19s, transform 0.15s;
}
.testimonial-card strong {
  color: var(--vintage-red);
  font-weight: bold;
  margin-left: 22px;
  font-size: 1.06rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(52,32,18,0.11);
  border-color: var(--vintage-blue);
  transform: translateY(-2px) scale(1.02);
  background: #fff6df;
}
@media (max-width: 650px) {
  .testimonial-card, .testimonials, .testimonial-slider { flex-direction: column; gap: 14px; }
  .testimonial-card strong { margin-left: 0; }
}

/* --- FEATURE ITEM --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- LISTS --- */
ul, ol {
  margin-bottom: 15px;
  padding-left: 0;
}
.feature-grid ul, .feature-grid li, .features ul, .features li {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 0 16px;
}
.feature-grid li:before {
  content: '\2022  ';
  color: var(--vintage-orange);
  font-weight: bold;
  margin-right: 6px;
  font-size: 1.15em;
}

/* --- LEGAL, ABOUT, TEXT BLOCKS ---*/
.legal, .about, .contact-details, .contact-form, .text-section, .map-embed {
  margin-top: 16px;
}
.text-section {
  background: rgba(201,178,124,0.09);
  border-radius: 10px;
  padding: 17px 15px 12px 15px;
}
.text-section strong {
  display: block;
  margin-bottom: 5px;
  color: var(--vintage-red);
}

/* --- BADGES, TAGS ---*/
.badge {
  background: var(--vintage-orange);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 3.5px 15px;
  border-radius: 16px;
  margin-left: 8px;
  letter-spacing: 0.06em;
  box-shadow: 0 1.5px 6px rgba(80, 60, 33, 0.11);
  display: inline-block;
}

/* --- ADDRESS / CONTACT INFO --- */
address {
  font-style: normal;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
address img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--accent);
  border-top: var(--border-base);
  box-shadow: 0 -1.5px 13px rgba(46,35,18,0.07);
  padding: 34px 0 20px 0;
}
footer .container {
  align-items: center;
  flex-direction: column;
  gap: 21px;
  padding: 0 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  opacity: 1;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-orange);
  text-decoration: underline;
}
footer p {
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.97rem;
  opacity: 0.87;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-body);
  z-index: 5000;
  box-shadow: 0 -7px 21px rgba(40, 30, 22,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 34px;
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  border-top: 3px solid var(--primary);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  flex: 1 1 320px;
  font-size: 1.06rem;
  margin: 0;
  color: var(--primary);
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  padding: 7px 19px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  background: var(--accent);
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.19s, color 0.15s;  
}
.cookie-btn.accept {
  background: var(--vintage-orange);
  color: var(--primary);
  border-color: var(--vintage-dark);
}
.cookie-btn.reject {
  background: #fffbe9;
}
.cookie-btn.settings {
  background: var(--card-bg);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--vintage-red);
  color: #fffbe9;
}
@media (max-width:600px) {
  .cookie-banner { flex-direction: column; gap: 16px; padding: 12px 4vw; font-size: 1.02rem; }
  .cookie-actions { flex-direction: column; gap: 10px; }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(44,36,17,0.22);
  z-index: 5010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.55,0,.1,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: var(--card-bg);
  color: var(--primary);
  border-radius: 18px;
  padding: 32px 32px 20px 32px;
  max-width: 96vw;
  width: 390px;
  box-shadow: 0 9px 44px rgba(74,36,18,0.20);
  border: 3px solid var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-dialog h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 19px;
  margin-bottom: 12px;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  background: #d8d3c7;
  border-radius: 14px;
  position: relative;
  transition: background 0.16s;
}
.cookie-switch[aria-checked="true"] {
  background: var(--vintage-orange);
}
.cookie-switch-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-switch[aria-checked="true"] .cookie-switch-thumb {
  left: 20px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-savebtn {
  margin-top: 14px;
  align-self: flex-end;
  padding: 8px 22px;
  color: var(--accent);
  background: var(--vintage-blue);
  font-family: var(--font-display);
  font-size: 1.01rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.cookie-savebtn:hover, .cookie-savebtn:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-modal-close {
  position: absolute;
  right: 9px; top: 9px;
  font-size: 1.5rem;
  color: var(--vintage-dark);
  border:none; background:none;
  cursor:pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--vintage-red);
}
@media (max-width:480px) {
  .cookie-modal-dialog { padding: 18px 6vw 12px 6vw; width:92vw; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.section, .card, .feature-grid > div, .feature-grid > li, .testimonial-card, .cta, .cookie-banner, .cookie-menu, .cookie-modal-dialog {
  transition-property: box-shadow, background, border, color, transform, opacity;
  transition-duration: .21s;
}

/* --- FORM ELEMENTS & MAP EMBED --- */
.map-embed {
  background: var(--accent);
  border-radius: 12px;
  padding: 13px 11px 4px 11px;
  box-shadow: 0 1.5px 12px rgba(87,67,41,0.11);
}

/* --- MISC RETRO ELEMENTS --- */
.card, .feature-grid > div, .feature-grid > li, .testimonial-card, .section {
  border-radius: 14px 24px 12px 20px/20px 14px 24px 18px; /* retro shape */
}
.section {
  border-style: double;
  border-width: 4px;
  border-color: var(--vintage-orange) var(--secondary) var(--accent) var(--vintage-blue);
  background-blend-mode: luminosity;
}

/* --- FOCUS STATES ACCESSIBILITY --- */
a:focus, button:focus, .cta:focus, .cookie-btn:focus, .footer-nav a:focus, .main-nav a:focus {
  outline: 3px dashed var(--vintage-red);
  outline-offset: 2.5px;
  background: rgba(225,155,140,0.11);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
  h1, .hero h1 { font-size: 1.44rem; }
  h2 { font-size: 1.11rem; }
  .section, .content-wrapper { gap: 13px; }
  .feature-grid > div, .feature-grid > li, .card { padding: 11px 10px 10px 10px; min-width: 95%; }
  .testimonial-card { font-size: 1rem; padding: 13px 8px; }
}

/* --- PRINT FRIENDLY RESET --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #110c0d; }
  .section, .card, .feature-grid > div { background: #fff !important; box-shadow: none!important; border: none!important; }
}

/* --- END OF CSS --- */
