/* --- CSS RESET & BASE STYLES --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  background-color: #fff;
  color: #161616;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s, border 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding-left: 0;
}
strong {
  font-weight: 600;
}

/* --- VARIABLES FOR MONOCHROME_SOPHISTICATED STYLE --- */
:root {
  --color-black: #161616;
  --color-darkgray: #232323;
  --color-lightgray: #eaeaea;
  --color-white: #fff;
  --color-accent: #be2a12;
  --color-primary: #161616;
  --color-secondary: #f5f5f5;
  --color-border: #d5d5d5;
  --color-shadow: rgba(22,22,22,0.07);
  --radius: 12px;
  --shadow: 0 2px 16px rgba(22,22,22,0.06), 0 1.5px 3.5px rgba(34,34,34,0.06);
  --transition: 0.2s cubic-bezier(.4,.2,.2,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #161616;
    color: #ededed;
  }
}

/* --- TYPOGRAPHY SCALES & HIERARCHY --- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--color-black);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-black);
  margin-bottom: 16px;
}
.lead {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--color-black);
  margin-bottom: 8px;
  font-weight: 500;
}
p, li, ul, ol {
  font-size: 1rem;
  font-family: var(--font-body);
  color: #232323;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

@media (max-width: 768px) {
  h1, .h1 {font-size: 2rem;}
  h2, .h2 {font-size: 1.45rem;}
  h3, .h3 {font-size: 1.1rem;}
  .lead {font-size: 1.05rem;}
}


/* --- CONTAINER & SPACING SYSTEM --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}
@media (max-width: 768px) {
  .container {padding-left: 14px; padding-right: 14px;}
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 0px 24px 0px;
    margin-bottom: 40px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 110;
}
header .container {
  display: flex;
  align-items: center;
  min-height: 80px;
  gap: 32px;
  justify-content: space-between;
}
header img {
  max-height: 48px;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-display);
  color: var(--color-black);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 5px;
  letter-spacing: 0.01em;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
nav a.cta {
  color: var(--color-white);
  background: var(--color-black);
  margin-left: 10px;
  font-weight: 600;
  border-radius: 6px;
  padding: 7px 22px;
  box-shadow: 0 4px 20px rgba(20,20,20,0.07);
  transition: background 0.18s;
}
nav a.cta:hover, nav a.cta:focus {
  background: var(--color-accent);
  color: #fff;
}
nav a:hover:not(.cta), nav a:focus:not(.cta) {
  background: var(--color-lightgray);
  color: var(--color-accent);
}
@media (max-width: 1000px) {
  nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
}

/* --- MOBILE NAVI BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 22px;
  width: 44px;
  height: 44px;
  z-index: 150;
  border-radius: 50%;
  background: var(--color-black);
  color: #fff;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px var(--color-lightgray);
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,22,22,0.98);
  color: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.29s cubic-bezier(.88,.09,.33,.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 26px;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 10001;
  padding: 0 8px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 120px;
  margin-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  padding: 8px 0px 8px 6px;
  margin-right: 36px;
  border-radius: 8px;
  transition: background 0.2s, color 0.16s;
}
.mobile-nav a.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 6px 26px rgba(190,42,18,0.12);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-lightgray);
  color: var(--color-accent);
}
.mobile-nav a.cta:hover {
  background: var(--color-black);
}

@media (min-width: 901px) {
  .mobile-menu {display: none;}
  .mobile-menu-toggle {display: none;}
}

@media (max-width: 440px) {
  .mobile-nav {
    margin-right: 0;
    margin-left: 16px;
    gap: 16px;
  }
}

/* --- MAIN --- */
main {
  min-height: 60vh;
  margin-top: 0;
}

/* --- BUTTONS & LINKS --- */
.cta, .button, .btn {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 7px;
  background: var(--color-black);
  color: #fff;
  font-size: 1.11rem;
  display: inline-block;
  text-align: center;
  padding: 11px 30px;
  margin-top: 18px;
  box-shadow: 0 2px 13px var(--color-shadow);
  transition: background 0.2s, color 0.18s, transform 0.15s;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cta:hover, .cta:focus, .button:hover, .btn:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

/* --- FLEXBOX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px;
  flex: 1 1 300px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(22,22,22,0.13);
}
.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;
  margin-bottom: 42px;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}
.feature {
  background: var(--color-lightgray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.1px solid var(--color-border);
  padding: 26px 18px 22px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature img {
  max-width: 46px;
  margin-bottom: 10px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 10px 32px rgba(22,22,22,0.13);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 1000px) {
  .features-grid {
    gap: 16px;
  }
  .feature {
    min-width: 160px;
    max-width: 100%;
    padding: 21px 10px;
  }
}
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 13px;
  }
  .feature {
    min-width: 0;
    padding: 18px 12px 16px 12px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1.1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, border 0.35s;
  position: relative;
  flex: 1 1 340px;
  max-width: 680px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 28px rgba(22,22,22,0.11);
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #212121;
  font-weight: 400;
  margin-bottom: 0;
  flex: 1;
}
.testimonial-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: #5b5b5b;
  min-width: 110px;
  padding-left: 12px;
}
.testimonial-details span:last-child {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
@media (max-width: 800px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 9px 12px 12px;
    font-size: 1em;
  }
  .testimonial-details {
    align-items: flex-start;
    font-size: 0.93rem;
    padding-left: 0;
  }
}

/* --- SECTION & CARD SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 24px 0 0 0;
  }
}
.card, .feature, .testimonial-card {
  margin-bottom: 20px;
}
/* Prevent element overlap */
.card:not(:last-child), .feature:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}

/* --- FORM ELEMENTS --- */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-lightgray);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  color: #212121;
  font-family: var(--font-body);
  margin-bottom: 13px;
  transition: border 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
label {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 5px;
  display: block;
}

/* --- FOOTER --- */
footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 38px 0 22px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
footer img {
  max-width: 60px;
  margin-right: 17px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: #212121;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 0 0 2px 0;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
.contact-info {
  display: flex;
  flex-direction: column;
  font-size: 0.97rem;
  align-items: flex-end;
  gap: 3px;
  color: #232323;
}
.contact-info img {
  height: 15px;
  width: auto;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 7px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .contact-info {
    align-items: flex-start;
    gap: 4px;
  }
}

/* --- COOKIE CONSENT BANNER & PREFERENCES --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  min-height: 72px;
  background: var(--color-black);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  z-index: 5000;
  box-shadow: 0 -2px 12px var(--color-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.29s, transform 0.29s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-right: 25px;
  color: #fff;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn, .cookie-btn-accept, .cookie-btn-reject {
  border-radius: 5px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 24px;
  cursor: pointer;
  transition: background 0.19s, color 0.16s;
}
.cookie-btn-accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #a71f12;
  color: #fff;
}
.cookie-btn-reject {
  background: var(--color-lightgray);
  color: var(--color-black);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #e3e3e3;
  color: var(--color-accent);
}
.cookie-btn-settings {
  background: none;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--color-black);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
/* Cookie modal/popup */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  background: rgba(34,34,34,0.86);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 6000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #111;
  padding: 34px 22px 24px 22px;
  border-radius: 18px 18px 0 0;
  max-width: 420px;
  min-width: 320px;
  margin-bottom: 0;
  flex-direction: column;
  box-shadow: 0 8px 44px rgba(22,22,22,0.16);
  display: flex;
  gap: 22px;
  position: relative;
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-toggle-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #181818;
}
.cookie-toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: var(--color-lightgray);
  position: relative;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-toggle-switch[aria-checked="true"] {
  background: var(--color-accent);
}
.cookie-toggle-thumb {
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 2px;
  transition: left 0.18s;
}
.cookie-toggle-switch[aria-checked="true"] .cookie-toggle-thumb {
  left: 16px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  color: #232323;
  font-size: 1.33rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 8px 17px 8px;
  }
  .cookie-banner .cookie-text {
    margin-bottom: 12px;
    margin-right: 0;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 7px;
  }
  .cookie-modal-content {
    min-width: 92vw;
    max-width: 99vw;
    padding: 18px 1vw 17px 1vw;
  }
}

/* --- ANIMATIONS, MICRO-INTERACTIONS --- */
a, button, .cta, .feature, .card, .testimonial-card, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.18s, color 0.15s, box-shadow 0.24s, border 0.17s, transform 0.15s;
}
.cta, .button, .btn, .feature, .card {
  transition: box-shadow 0.22s cubic-bezier(.33,.6,.22,1), background 0.16s, color 0.16s, border 0.13s, transform 0.13s;
}
.cta:active, .button:active, .btn:active {
  transform: scale(0.98) !important;
}

/* --- MISC --- */
hr {
  border: 0;
  border-top: 1.7px solid var(--color-border);
  margin: 40px 0;
}
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; opacity: 1; }

/* --- Hide visually (accessibility) --- */
.visually-hidden {
  position: absolute;
  left: -9000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* --- OVERLAY & Z-INDEX DEBUG --- */
[aria-modal="true"] {
  z-index: 10000 !important;
}

/* --- MONOCHROME-SOPHISTICATED OVERRIDES --- */
body,
header,
footer {
  background: var(--color-white);
}
.card, .feature, .testimonial-card {
  background: var(--color-white);
}

/* --- UTILITY --- */
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom: 0 !important;}
.mt-1 {margin-top: 7px !important;}
.mb-1 {margin-bottom: 7px !important;}
.mt-2 {margin-top: 16px !important;}
.mb-2 {margin-bottom: 16px !important;}
.mt-3 {margin-top: 24px !important;}
.mb-3 {margin-bottom: 24px !important;}

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