/* ===================== CSS RESET & ROOT ===================== */
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;
}
body {
  background: #fff;
  color: #161616;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ===================== VARIABLES ===================== */
:root {
  --color-bg-light: #fff;
  --color-bg-dark: #161616;
  --color-bg-grey: #F6F6F6;
  --color-grey-1: #333;
  --color-grey-2: #666;
  --color-grey-3: #BDBDBD;
  --color-grey-4: #ededed;
  --color-black: #161616;
  --color-white: #fff;
  --color-primary: #222;   /* Replaces brand's dark green for monochrome */
  --color-accent: #B78C5B;
  --color-error: #a91c1c;
  --color-shadow: rgba(20,20,20,.05);

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

/* ===================== BASE LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--color-shadow);
  transition: box-shadow 0.2s;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* For spacing between stacked elements */
}
.text-section {
  margin-bottom: 24px;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-black);
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--color-primary);
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--color-grey-1);
  font-weight: 500;
}
.subheadline {
  font-size: 1.15rem;
  color: var(--color-grey-2);
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}
p {
  margin-bottom: 14px;
  color: var(--color-grey-1);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-grey-2);
  line-height: 1.6;
}
strong {
  font-weight: 600;
  color: var(--color-black);
}
address {
  font-style: normal;
  color: var(--color-grey-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  background: var(--color-bg-light);
  border-bottom: 2px solid var(--color-grey-4);
  box-shadow: 0 1px 8px var(--color-shadow);
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 38px;
}
nav.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-grey-1);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 28px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: none;
  transition: color 0.15s, background 0.17s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  margin-left: 24px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-black);
  box-shadow: 0 4px 16px var(--color-shadow);
  transform: translateY(-1px) scale(1.03);
}

/* ===================== FLEXBOX LAYOUTS (FEATURES) ===================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-grid > div {
  flex: 1 1 225px;
  min-width: 225px;
  background: var(--color-grey-4);
  border-radius: 14px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.14s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* ===================== TESTIMONIAL CARDS ===================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 26px;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 20px;
  max-width: 520px;
}
.testimonial-card p {
  font-size: 1.18rem;
  color: var(--color-black);
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-grey-2);
}
.testimonial-card strong {
  color: var(--color-primary);
}

/* ===================== CARD CONTAINER ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 225px;
  background: var(--color-grey-4);
  border-radius: 12px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 16px 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 18px var(--color-shadow);
  transform: scale(1.028);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===================== FLEX CONTENT GRIDS ===================== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-grey-4);
  box-shadow: 0 -1px 8px var(--color-shadow);
  margin-top: 60px;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-grey-2);
  padding: 4px 0;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-black);
  text-decoration: underline;
}
footer img {
  height: 30px;
}

/* ===================== MOBILE NAVIGATION ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 103;
  width: 44px;
  height: 44px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.12s, color 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 102;
  background: var(--color-bg-dark);
  color: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.62,0,0.55,1), box-shadow 0.22s;
  box-shadow: -8px 0 34px 0 rgba(0,0,0,0.20);
  flex-direction: column;
  padding: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px; right: 30px;
  z-index: 104;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-grey-3);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
  margin: 84px 0 0 36px;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.15s, border-bottom 0.16s;
  border-bottom: 2px solid transparent;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  bottom: 32px;
  min-width: 320px;
  max-width: 92vw;
  background: var(--color-bg-dark);
  color: var(--color-white);
  border-radius: 16px 16px 16px 16px;
  box-shadow: 0 4px 32px 0px rgba(10,10,10,.23);
  z-index: 300;
  display: flex;
  align-items: center;
  padding: 28px 24px;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.48s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
  font-family: var(--font-body);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0%);
}
.cookie-banner-text {
  flex: 1 1 0%;
  font-size: 1.04rem;
  color: var(--color-white);
  max-width: 340px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex-direction: row;
  align-items: center;
}
.cookie-btn {
  padding: 9px 22px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 24px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, transform 0.13s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-btn.settings {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-grey-3);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-black);
}
.cookie-btn.reject {
  background: #494949;
  color: var(--color-white);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-1px) scale(1.035);
  box-shadow: 0 5px 16px var(--color-shadow);
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,12,12,0.40);
  z-index: 310;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(40,40,40,0.20);
  padding: 36px 32px 24px 32px;
  max-width: 97vw;
  width: 430px;
  color: var(--color-black);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 14px;
  background: none;
  border: none;
  color: var(--color-black);
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-grey-3);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-size: 1.05rem;
  color: var(--color-black);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--color-grey-3);
  position: relative;
  cursor: pointer;
  transition: background 0.22s;
  margin-right: 8px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-grey-1);
  transition: left 0.15s, background 0.11s;
}
.cookie-toggle input:checked + .slider {
  left: 18px;
  background: var(--color-accent);
}
.cookie-category[data-essential='true'] .cookie-toggle,
.cookie-category[data-essential='true'] label {
  opacity: 0.6;
  pointer-events: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid > div { min-width: 190px; padding: 26px 16px; }
}
@media (max-width: 880px) {
  .footer-nav { gap: 14px; }
  .content-wrapper { gap: 22px; }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 22px 16px;
  }
  .section {
    padding: 26px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 18px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .cookie-banner { padding: 18px 10px; }
  .cookie-modal { padding: 18px 8px; width: 95vw; font-size: 0.97rem; }
}

/* ===================== FORMS, TABLES, GENERIC ===================== */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-grey-3);
  border-radius: 5px;
  background: var(--color-grey-4);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border 0.16s, background 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-black);
}

button, input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.section, .feature-grid > div, .testimonial-card, .card {
  animation: fadeUp 0.8s cubic-bezier(.3,0,.18,1) both;
  animation-delay: .12s;
}

/* ===================== SCROLLBARS ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-grey-4);
}
::-webkit-scrollbar-thumb {
  background: var(--color-grey-3);
  border-radius: 14px;
}

/* ===================== OVERLAY Z-INDEX GUARD ===================== */
.mobile-menu, .cookie-modal-overlay, .cookie-banner {
  z-index: 300 !important;
}

/* ===================== UTILITY ===================== */
.gap-top-32 {
  margin-top: 32px;
}
.gap-bot-32 {
  margin-bottom: 32px;
}

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

/* ===================== END OF CSS ===================== */
