/* ==== CSS RESET & VARIABLE DEFINITIONS ==== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:root {
  --color-bg: #f7f7f7;
  --color-bg-secondary: #ffffff;
  --color-primary: #101214;
  --color-secondary: #ffffff;
  --color-accent: #AD8700;
  --color-muted: #d5d7db;
  --color-border: #222428;
  --color-shadow: rgba(0,0,0,0.07);
  --color-hover-bg: #22242A;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(0,0,0,0.11);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ==== BODY & TYPOGRAPHY ==== */
body {
  background: var(--color-bg);
  color: #181818;
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #101214;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-weight: 500;
  font-size: 1.25rem;
}
p {
  margin-bottom: 1rem;
  font-size: 1.12rem;
  color: #232323;
}
strong {
  color: #181818;
  font-weight: 600;
}

/* ==== CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-section {
  gap: 18px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  max-height: 44px;
  margin-right: 20px;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 0 8px 0;
  border-radius: 4px;
  color: #fff;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
nav a.cta-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 30px;
  margin-left: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 16px var(--color-card-shadow);
  border: none;
  transition: background 0.22s, box-shadow 0.22s;
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: 0 4px 24px var(--color-shadow);
}
nav a:hover, nav a:focus {
  color: var(--color-primary);
  background: var(--color-muted);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #181818;
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-muted);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 20, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,.2,.3,1);
  padding-top: 44px;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 220;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-menu-close:hover {
  background: #23232344;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 26px;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.3rem;
  font-family: var(--font-display);
  padding: 9px 0;
  border-radius: 4px;
  transition: background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2f3642;
}

@media (max-width: 990px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
}

/* ==== MAIN STRUCTURE & SECTIONS ==== */
main {
  flex: 1 1 auto;
  min-height: 60vh;
}
section {
  background: var(--color-bg-secondary);
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  display: flex;
}
section .container {
  flex-direction: column;
  gap: 16px;
}

/* ==== FLEX & SPACING PATTERNS (as requested) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  box-shadow: 0 4px 20px var(--color-card-shadow);
  border-radius: 15px;
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(30,30,30,.18);
  transform: translateY(-4px) scale(1.015);
}
.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: 18px;
  background: #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 28px 26px 22px 26px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #232323;
  font-size: 1.10rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.94rem;
  color: #222;
  font-family: var(--font-display);
  margin-top: 4px;
  opacity: 0.87;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== BUTTONS & CALL TO ACTION ==== */
.cta-btn, .btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 30px;
  box-shadow: 0 1px 10px var(--color-shadow);
  border-radius: 28px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  margin-top: 14px;
  transition: background 0.2s, transform 0.18s, box-shadow 0.17s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 20px var(--color-hover-bg);
}
.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
  box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  border-color: var(--color-primary);
  background: var(--color-muted);
  color: var(--color-primary);
}

/* ===== LISTS & ICONS ===== */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #212121;
  font-size: 1.08rem;
}
li img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
}

/* ==== FOOTER ==== */
footer {
  background: #101113;
  color: var(--color-secondary);
  padding: 36px 0 36px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 38px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #ededed;
  font-size: 1rem;
  padding: 2px 0;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .98rem;
  color: #f0f0f0;
  opacity: .94;
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: #181818ee;
  color: var(--color-secondary);
  box-shadow: 0 -2px 12px var(--color-shadow);
  padding: 22px 18px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  animation: fadeInBanner 0.6s cubic-bezier(.7, .2, .3, 1);
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .btn {
  margin-top: 0;
  margin-left: 12px;
  margin-right: 0;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 22px;
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .btn-settings {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  box-shadow: none;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--color-muted);
  color: var(--color-primary);
}

.cookie-modal {
  position: fixed;
  z-index: 900;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(16, 16, 16, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #171717;
  border-radius: 18px;
  box-shadow: 0 4px 40px rgba(10,10,10,.2);
  max-width: 370px;
  width: 94vw;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalReveal 0.44s cubic-bezier(.7, .2, .3, 1);
  position: relative;
}
@keyframes modalReveal {
  from { opacity: 0; transform: scale(0.9) translateY(45px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-content h3 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px 0 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}
.cookie-modal-content .cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e2e2e2;
  border-radius: 16px;
  position: relative;
  outline: none;
  vertical-align: middle;
  transition: background 0.2s;
}
.cookie-modal-content .cookie-switch:checked {
  background: var(--color-primary);
}
.cookie-modal-content .cookie-switch::before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #aaa;
  transition: left 0.2s;
}
.cookie-modal-content .cookie-switch:checked::before {
  left: 20px;
}
.cookie-modal-content .btn-row {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal-content .modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.7rem;
  color: #444;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 5px;
}
.cookie-modal-content .modal-close:hover {
  background: #eee;
}

/* ===== MONOCHROME SOPHISTICATED OVERRIDES ===== */
body, section, main, .card, .testimonial-card {
  background: #fff;
  color: #101214;
}
header, footer {
  background: #181818;
  color: #fff;
}
section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,34,34,.08);
}
.card, .testimonial-card {
  background: #f7f7f7;
}
h1, h2, h3, h4, h5, h6 {
  color: #181818;
}
av a.cta-btn, .cta-btn, .btn {
  background: #181818;
  color: #fff;
  box-shadow: 0 3px 16px rgba(0,0,0,.11);
}
av a.cta-btn:hover, .cta-btn:hover, .btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ===== EFFECTS, SHADOWS, HIERARCHY ===== */
.card, .testimonial-card {
  box-shadow: 0 3px 12px 1px rgba(34,36,38,0.1);
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(0,0,0,0.14);
  transform: translateY(-3px) scale(1.018);
}

/* ==== VISUAL HIERARCHY & SPACING ==== */
section .container > h2 {
  margin-bottom: 13px;
  margin-top: 2px;
}
.content-wrapper > ul {
  margin-bottom: 14px;
  margin-top: 5px;
  gap: 12px;
}
.content-wrapper > a.cta-btn {
  margin-top: 20px;
}

/* ==== RESPONSIVE DESIGN (MOBILE FIRST) ==== */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 991px) {
  .container { max-width: 96vw; }
}
@media (max-width: 820px) {
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px;
  }
  .footer-contact {
    margin-top: 20px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 26px 7px 26px 7px;
    margin-bottom: 30px;
    border-radius: 8px;
  }
  .container {
    padding: 0 7px;
  }
  .content-grid, .card-container, .testimonial-card {
    flex-direction: column !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  nav a.cta-btn, .cta-btn, .btn {
    padding: 11px 18px;
    font-size: .95rem;
  }
}
@media (max-width: 520px) {
  h1{font-size: 1.27rem}; h2{font-size: 1.09rem;}
  .cookie-modal-content {padding: 19px 6px;}
  .cookie-banner {font-size:.95rem;}
}

/* ==== UTILITY & MICRO INTERACTIONS ==== */
.fade-in {
  animation: fadeIn .3s cubic-bezier(.7,.2,.3,1);
}
@keyframes fadeIn {
  from {opacity: 0;transform:translateY(18px);}
  to {opacity: 1;transform:translateY(0);}
}

.focus-vis {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

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

/* ==== Z-INDEX STACKING ==== */
header { z-index: 30; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 500; }
.cookie-modal { z-index: 900; }

/* ===== ACCESSIBILITY: FOCUS ==== */
a:focus, button:focus, .cta-btn:focus, .btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==== PRINT STYLES ==== */
@media print {
  header, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  section, .section {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
}
