/* --- 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,
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  background: #fff;
  color: #111;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #111;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #222;
  text-decoration: none;
}

ul, ol {
  padding-left: 1.5em;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #111;
  margin-bottom: 24px;
}
h1 { font-size: 2.5rem; letter-spacing: -0.01em; margin-top: 10px;}
h2 { font-size: 2rem; margin-top: 10px;}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p, ul, li, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #191919;
}
strong { font-weight: 600; }

blockquote {
  font-style: italic;
  border-left: 3px solid #222;
  padding-left: 16px;
  margin: 20px 0;
  color: #222;
  background: #f7f7f7;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(20,20,20,0.11);
  transition: box-shadow 0.2s;
}
.section:last-child, .container section:last-child {
  margin-bottom: 0;
}

/* --- FLEXBOX LAYOUTS (No grid/columns) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #f4f4f4;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(60,60,60,0.07);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(50,50,50,0.20);
}

.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: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #fafafc;
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  color: #151515;
}
.testimonial-card strong {
  color: #111;
  font-weight: bold;
  margin-bottom: 4px;
}
.testimonial-card img {
  width: 20px;
  height: 20px;
  display: inline-block;
}

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

/* --- FEATURE GRID (for index/services) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fcfcfd;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 32px 20px 24px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s;
  margin-bottom: 0;
}
.feature-grid > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.feature-grid > div h3 {
  font-size: 1.21rem;
  margin-bottom: 7px;
  color: #181818;
}
.feature-grid > div p {
  color: #3c3c3c;
  font-size: 1rem;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 40px rgba(20,20,20,0.12);
}

/* ---- HEADER & NAVIGATION ---- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
  transition: box-shadow 0.18s;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  height: 64px;
}
.logo img {
  display: block;
  height: 46px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #151515;
  padding: 8px 14px;
  border-radius: 7px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s;
}
nav a.cta {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 8px 24px;
  box-shadow: 0 2px 10px rgba(20,20,20,0.10);
  font-weight: 700;
  transition: background 0.20s, color 0.20s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #333;
  color: #fff;
}
nav a:hover, nav a:focus {
  background: #e5e5e5;
  color: #111;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #222;
  cursor: pointer;
  margin-left: 16px;
  z-index: 110;
  line-height: 1;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #111;
}

/* ---- MOBILE NAVIGATION ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 24, 24, 0.97);
  z-index: 200;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 24px 20px 12px 20px;
  cursor: pointer;
  align-self: flex-end;
  z-index: 201;
  transition: color 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #FFD966;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 7px;
  letter-spacing: 0.02em;
  transition: background 0.20s, color 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #222;
  color: #FFD966;
}

/* --- HERO & CTA --- */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: #111;
  color: #fff !important;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 30px rgba(30,30,30,0.12);
  letter-spacing: 0.03em;
  margin-top: 18px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  cursor: pointer;
}
.cta:hover, 
.cta:focus {
  background: #FFD966;
  color: #111 !important;
  box-shadow: 0 8px 38px rgba(0,0,0,0.15);
  outline: none;
}

/* --- ICON-BUTTONS (inside contact etc.) --- */
a img, .contact-btn img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  height: 22px;
  width: 22px;
}

/* ---- LISTS ---- */
ul {
  margin-bottom: 14px;
}
li {
  margin-bottom: 8px;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 0 28px 0;
  background: #161616;
  color: #eee;
  border-top: 1px solid #262626;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
}
footer nav {
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: #ccc;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 0;
  background: none;
  border-radius: 0;
  text-decoration: underline;
}
footer nav a:focus,
footer nav a:hover {
  color: #fff;
  background: none;
  text-decoration: none;
}
footer .logo img {
  height: 40px;
}
footer p {
  margin-top: 18px;
  color: #bbb;
  font-size: 0.97rem;
}

/* ---- TEXT SECTION ENRICHMENT ---- */
.text-section {
  margin: 20px 0 0 0;
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid #ececec;
}
.text-section h3 {
  color: #222;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

/* ---- COLORED ACCENTS FOR MONOCHROME SOPHISTICATED ---- */
hr {
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 36px 0;
}

/* ---- FORMS ---- */
input, textarea, select {
  background: #fafafd;
  border: 1px solid #d1d1d1;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 10px 13px;
  color: #111;
  margin-bottom: 16px;
  transition: border-color 0.14s;
  width: 100%;
  max-width: 100%;
  outline: none;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #111;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  color: #181818;
  font-weight: 600;
  margin-bottom: 7px;
  display: inline-block;
}
button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #191919;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
  margin-top: 8px;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: #FFD966;
  color: #181818;
  outline: none;
  box-shadow: 0 6px 22px rgba(50,50,50,0.10);
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #222;
  color: #fff;
  z-index: 500;
  padding: 22px 16px 18px;
  min-height: 76px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 24px rgba(20,20,20,0.11);
  gap: 24px;
  animation: cookieBannerSlideUp 0.44s cubic-bezier(.36,1.17,.44,1.03);
}
@keyframes cookieBannerSlideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner .cookie-message {
  flex: 2 1 220px;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
}
.cookie-banner .cookie-btn {
  background: #fff;
  color: #181818;
  border: none;
  border-radius: 900px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 2px 12px rgba(20,20,20,0.08);
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .cookie-btn.settings {
  background: #191919;
  color: #FFD966;
  border: 1px solid #FFD966;
}
.cookie-banner .cookie-btn.accept {
  background: #FFD966;
  color: #191919;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: #191919;
  border: 1px solid #d0d0d0;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #111;
  color: #FFD966;
  outline: none;
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 600;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.83);
  justify-content: center;
  align-items: center;
  animation: cookieOverlayFade 0.33s;
}
@keyframes cookieOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #111;
  border-radius: 20px;
  padding: 38px 32px 32px 32px;
  min-width: 320px;
  min-height: 230px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.17);
  max-width: 95vw;
  animation: cookieModalGrow 0.35s cubic-bezier(.42,1.5,.39,.97);
}
@keyframes cookieModalGrow {
  0% { transform: scale(0.87); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #181818;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal label {
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #181818;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #e6e6e6;
  border-radius: 900px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: #FFD966;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  height: 14px; width: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(.52,0,1,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.cookie-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions .cookie-btn {
  padding: 11px 22px;
  font-size: 0.99rem;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 21px; right: 27px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: #191919;
}

/* --- RESPONSIVE DESIGN (Mobile-first) --- */
@media (max-width: 1140px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 990px) {
  .section {
    padding: 32px 10px;
  }
  .container {
    padding: 0 7px;
  }
}
@media (max-width: 860px) {
  .feature-grid {
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  .feature-grid > div {
    flex: 1 1 100%;
    min-width: 99%;
    max-width: 100%;
    padding: 24px 10px 18px 10px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 22px 2vw;
    margin-bottom: 32px;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    padding: 0 6px;
  }
  .logo img { height: 34px; }
  .feature-grid { gap: 12px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.03rem; }
  .logo img { height: 30px; }
  footer { padding: 24px 0 12px 0; }
  .cookie-modal { padding: 22px 9vw; min-width: unset; }
}

/* --- MICRO-INTERACTIONS / TRANSITIONS --- */
a, button, .cta, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, border 0.15s;
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.17s, background 0.17s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 12px 36px rgba(10,10,10,0.15);
  z-index: 1;
  background: #f7f7f7;
}

/* --------- UTILITY CLASSES --------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-18 { margin-top: 18px !important; }
.mb-12 { margin-bottom: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ------ ACCESSIBILITY ------- */
:focus {
  outline: 2px solid #FFD966;
  outline-offset: 2px;
}

/* ------ OVERRIDE BRAND COLOR w/ MONOCHROME ------- */
/* For .monochrome_sophisticated: only black/white/gray + high contrast */
body, .section, .feature-grid > div, .card, .testimonial-card, .cookie-modal {
  background: #fff;
  color: #181818;
}
header, footer {
  background: #151515;
  color: #fafafc;
  border: none;
}
nav a, .mobile-nav a {
  color: #f7f7f7;
  background: none;
}
nav a.cta, .cta, .mobile-nav a.cta {
  background: #151515;
  color: #fff !important;
}
nav a:hover, nav a:focus, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #e5e5e5;
  color: #111 !important;
}
.cta:hover, .cta:focus, .cookie-btn:hover, .button:hover {
  background: #111 !important;
  color: #FFD966 !important;
}

/* ------ ENSURE NO OVERLAP & PROPER Z-INDEX ------ */
.section, .card, .testimonial-card, .feature-grid > div {
  z-index: 0;
}
.mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 9999; }

/* ------ Hide cookie modal on print ------ */
@media print {
  .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
