/* =========================
   CSS RESET & BASE STYLES
   ========================= */
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 {
  scroll-behavior: smooth;
  background: #F9F9F9;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #191919;
  line-height: 1.7;
  background: #FAFAFA;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #191919;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: disc inside;
  padding-left: 1em;
  margin: 16px 0 16px 16px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
::-webkit-input-placeholder { color: #79797a; }
::-moz-placeholder { color: #79797a; }
:-ms-input-placeholder { color: #79797a; }
::placeholder { color: #79797a; }

/* ============================
   COLOR VARIABLES & Fallbacks
   ============================ */
:root {
  --color-black: #151517;
  --color-white: #fff;
  --color-gray: #e3e5ea;
  --color-dark: #222327;
  --color-light: #f5f7fa;
  --color-midgray: #b2b6be;
  /* brand colors */
  --color-primary: #151517;
  --color-secondary: #F4C542;
  --color-accent: #F5F7FA;
  --color-link: #191919;
  --color-link-hover: #226998;
  /* monospace fallback */
}

/* =======================
   TYPOGRAPHY & HIERARCHY
   ======================= */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.12rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.95rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
p.lead, .lead {
  font-size: 1.25rem;
  color: #292929;
}
.text-section h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.12rem;
}
.text-section p {
  color: var(--color-dark);
  margin-bottom: 8px;
}

/* =======================
   FLEX CONTAINERS & SPACING
   ======================= */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 24px 0 rgba(10,20,28,0.04);
  box-sizing: border-box;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 2px 18px 0 rgba(30,34,38,0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #e9eaea;
  transition: box-shadow 0.21s cubic-bezier(.44,.13,.48,.87), border 0.165s;
}
.card:hover {
  box-shadow: 0 4px 36px 0 rgba(30,34,38,0.14);
  z-index: 2;
  border: 1px solid var(--color-primary);
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #fafbfd;
  box-shadow: 0 2px 12px 0 rgba(24,27,32,0.07);
  border: 1px solid #ededf2;
  min-width: 260px;
  max-width: 95%;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 36px 0 rgba(30,36,41,0.14);
  border: 1px solid var(--color-secondary);
}
.testimonial-card > div {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.testimonial-card p {
  color: #18181C;
  margin-bottom: 0;
}

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

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: var(--color-white);
  box-shadow: 0 2px 14px rgba(26,27,35,0.06);
  padding: 0;
  width: 100%;
  z-index: 30;
  position: relative;
}
.header-flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.main-nav a {
  color: var(--color-primary);
  opacity: 0.93;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.19s, border 0.19s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  outline: none;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-black);
  color: var(--color-white);
  padding: 10px 30px;
  border-radius: 28px;
  border: none;
  outline: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.21s;
  box-shadow: 0 4px 16px 0 rgba(34,34,34,0.11);
  cursor: pointer;
  margin-left: 16px;
  letter-spacing: 0.03em;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-black);
  box-shadow: 0 7px 20px 0 rgba(244,197,66,0.10);
}

/* Hide nav for mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
}
header .container a img {
  height: 40px;
  width: auto;
}

/* =======================
   MOBILE NAVIGATION
   ======================= */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 20px;
    z-index: 102;
    width: 46px;
    height: 46px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.22s;
    box-shadow: 0 3px 12px 0 rgba(34,32,26,0.13);
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--color-secondary);
    color: var(--color-black);
  }
}

.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,21,0.97);
  z-index: 1050;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.59,-0.01,.45,1.01);
}
.mobile-menu.active {
  transform: translateX(0);
  animation: slideInMenu 0.35s cubic-bezier(.63,.02,.41,1.01);
}
@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  margin: 28px 0 18px 24px;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  background: none;
  border: none;
  font-size: 2.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 1060;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 7vh 28px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.07em;
  font-weight: 600;
  padding: 12px 0 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0.98;
  outline: 0;
  transition: color 0.14s, background 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(244,197,66,0.07);
  outline: none;
}
@media (min-width: 981px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: #f5f6f9;
  color: var(--color-black);
  border-top: 1px solid #e2e2e9;
  margin-top: 60px;
  padding: 0;
  font-size: 0.99rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding: 40px 0 32px 0;
}
footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .footer-nav a {
  color: var(--color-primary);
  opacity: 0.78;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 2px;
  transition: color 0.15s;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1.0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 210px;
  font-size: 0.99rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  filter: grayscale(100%);
}
footer .container a img {
  height: 36px;
  margin-bottom: 10px;
}
footer p {
  opacity: 0.93;
  margin-bottom: 8px;
  color: #505053;
}
@media (max-width: 900px) {
  .footer-flex {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* =======================
   UTILITY CLASSES & GRIDS
   ======================= */
.text-section {
  margin-bottom: 20px;
}
.map-placeholder {
  background: #f2f3f7;
  border: 1px dashed #b2b6be;
  border-radius: 8px;
  text-align: center;
  padding: 24px;
  font-size: 1rem;
  color: #6a6a6c;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .map-placeholder {
    padding: 16px;
    font-size: 0.96rem;
  }
}

/* =======================
   BUTTONS & LINK STYLES
   ======================= */
button {
  border: none;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid var(--color-secondary);
}
a {
  transition: color 0.18s, border 0.18s;
}
a:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

/* =============================
   SPACING & RESPONSIVE LAYOUTS
   ============================= */
@media (max-width: 768px) {
  .container {
    padding: 0 11px;
  }
  .footer-flex {
    padding: 34px 0 16px 0;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 34px;
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  h3 {
    font-size: 1.03rem;
  }
  .card {
    min-width: 160px;
    padding: 16px 11px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.07rem; }
  .section,
  .section .container {
    padding: 11px 3px;
  }
}

/* =======================
   MONOCHROME DRAMATIC THEME
   ======================= */
body, .section {
  background: var(--color-white);
}
.section {
  box-shadow: 0 2px 32px -8px rgba(33,34,52,0.08);
}
h1, h2, h3, h4, h5 {
  color: var(--color-black);
}
.cta-btn {
  background: var(--color-black);
  color: var(--color-white);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-black);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* Cards & Testimonials - monochrome elegance */
.card, .testimonial-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 2px 22px 0 rgba(25,29,33,0.07);
}
.testimonial-card p {
  color: #232326;
}
.testimonial-card strong {
  color: var(--color-primary);
}

/* ======================
   TRANSITIONS & EFFECTS
   ====================== */
.card, .cta-btn, .main-nav a, .mobile-menu-toggle, .mobile-menu-close, .testimonial-card {
  transition: all 0.18s cubic-bezier(.42,.02,.475,.93);
}

.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 44px 0 rgba(29,33,49,0.19);
  border: 1px solid var(--color-secondary);
}

.cta-btn:active {
  transform: scale(0.99);
  background: #222227;
  color: #fff;
}

/* Focus & Keyboard UX */
.cta-btn:focus, .main-nav a:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .footer-nav a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #161619;
  color: #fff;
  z-index: 1200;
  padding: 20px 24px 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 12px 0 rgba(10,11,14,0.20);
  min-height: 72px;
  gap: 24px;
  animation: fadeInCookie 0.4s cubic-bezier(.59,0,.41,1);
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  font-size: 1rem;
  color: #ededed;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-right: 3px;
  outline: none;
  background: #fff;
  color: #2b2b2c;
  transition: background 0.21s, color 0.21s, box-shadow 0.19s;
  box-shadow: 0 2px 9px 0 rgba(49,49,68,0.07);
  cursor: pointer;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-secondary);
  color: var(--color-black);
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.cookie-settings:focus, .cookie-btn.cookie-settings:hover {
  background: var(--color-white);
  color: var(--color-black);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 10px 15px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    gap: 6px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.23s linear;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  min-width: 320px;
  max-width: 96vw;
  padding: 30px 32px;
  box-shadow: 0 12px 44px 0 rgba(30,29,38,0.13);
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInUp 0.31s cubic-bezier(.56,.06,.43,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 8px;
}
.cookie-category-label {
  flex: 1 1 auto;
  font-size: 1rem;
  color: var(--color-black);
  margin-right: 16px;
}
.cookie-category-toggle {
  margin-left: 10px;
  font-size: 1.04rem;
  background: #ededf1;
  border-radius: 14px;
  min-width: 44px;
  min-height: 27px;
  border: 1px solid #e0e3ea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.14s;
}
.cookie-category-toggle input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.cookie-category-toggle input[type=checkbox]:disabled {
  accent-color: #bbb;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  min-width: 112px;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 6vw;
    min-width: 0;
    width: 97vw;
  }
}

/* =======================
   ACCESSIBILITY
   ======================= */
[tabindex="0"]:focus {
  outline: 2px dashed var(--color-secondary)!important;
  outline-offset: 2px;
}

/* =======================
   MISC
   ======================= */
::-webkit-scrollbar {
  width: 10px;
  background: #ededf6;
}
::-webkit-scrollbar-thumb {
  background: #c4c8ce;
  border-radius: 6px;
}

/* =======================
   PRINT
   ======================= */
@media print {
  .mobile-menu, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
}
