/* --- 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, font, 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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  background: #fff;
  color: #232B2B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }

/* --- CSS Variables for Monochrome Sophisticated --- */
:root {
  --primary: #232B2B;     /* deep charcoal black */
  --secondary: #968772;   /* elegant taupe (used sparingly) */
  --accent: #F8F9FA;      /* almost white */
  --gray-100: #f6f6f6;
  --gray-200: #e4e4e4;
  --gray-300: #cccccc;
  --gray-400: #888888;
  --gray-500: #555555;
  --gray-900: #181A1A;
  --shadow: 0 3px 18px rgba(35,43,43, 0.12);
  --radius: 12px;
}

/* --- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, ul, ol, li, table, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--gray-900);
  font-size: 1rem;
}
strong {
  color: var(--primary);
  font-weight: 600;
}
.section h2 {
  margin-bottom: 24px;
}
.text-section h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

/* --- Layout General ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Hero Section ---- */
.hero {
  background: var(--primary);
  color: var(--accent);
  padding: 52px 0 48px 0;
  margin-bottom: 48px;
}
.hero h1, .hero h2, .hero p {
  color: var(--accent);
}
.hero .cta-primary {
  margin-top: 26px;
}

/* --- Header --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(32,32,32,0.07);
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 20px;
  position: relative;
}
header a img {
  height: 40px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* CTA Buttons */
.cta-primary {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Roboto Slab', Georgia, serif;
  padding: 13px 34px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.13rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary);
  margin-left: 38px;
  letter-spacing: 0.04em;
  transition: background 0.16s, color 0.16s, box-shadow 0.28s;
  display: inline-block;
  text-align: center;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(35,43,43,0.18);
  text-decoration: none;
}

/* --- Feature Grid --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
  margin-bottom: 24px;
}
.feature-grid li {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 240px;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.16s;
  border: 1.5px solid var(--gray-200);
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 8px 30px rgba(35,43,43,0.17);
  transform: translateY(-2px) scale(1.012);
}
.feature-grid img {
  height: 38px;
  margin-bottom: 16px;
}
.feature-grid h3 {
  font-size: 1.23rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.feature-grid p {
  font-size: 1rem;
  color: var(--gray-500);
}

/* --- Cards and Testimonials --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px 24px 26px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.17s;
  border: 1.5px solid var(--gray-200);
  min-width: 260px;
  flex: 1 1 280px;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(35,43,43,0.17);
  transform: translateY(-2px) scale(1.015);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--gray-200);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(35,43,43,0.13);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.6;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 12px;
}
.star-rating img {
  height: 22px;
}

/* --- Info Boxes --- */
.info-box {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  gap: 16px;
  font-size: 1rem;
  padding: 15px 18px;
  margin-top: 16px;
}
.info-box img {
  height: 32px;
}

/* --- Text/Image Section --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- Table Styling --- */
table {
  background: var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 1.5px solid var(--gray-200);
}
thead th {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--gray-200);
}
tbody td {
  border-bottom: 1px solid var(--gray-200);
}
tbody tr:last-child td {
  border-bottom: none;
}
table th, table td {
  font-size: 1rem;
  vertical-align: middle;
  white-space: nowrap;
}
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    display: none;
  }
  tbody tr {
    margin-bottom: 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 8px 12px 8px;
    background: var(--accent);
  }
  tbody td {
    padding: 8px 12px;
    border-bottom: none;
    position: relative;
    font-size: 0.98rem;
  }
  tbody td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: var(--gray-400);
    display: inline-block;
    min-width: 92px;
  }
}

/* --- Footer --- */
footer {
  background: #181A1A;
  color: var(--accent);
  padding: 38px 0 6px 0;
  margin-top: 60px;
}
footer .container {
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
}
footer nav {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.90;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.footer-contact {
  margin-bottom: 12px;
}
.footer-contact img {
  height: 19px;
  display: inline;
  margin-right: 8px;
  vertical-align: middle;
}
.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
}
.social-links a img {
  height: 27px;
}
footer img[alt="Ashen Ember Analyse"] {
  margin-top: 8px;
  height: 42px;
  opacity: 0.90;
}
.copyright {
  font-size: 0.95rem;
  opacity: 0.65;
  margin-top: 10px;
}

/* --- Mobile Burger Menu --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  font-size: 2.15rem;
  padding: 8px 18px 6px 18px;
  border-radius: 9px;
  border: none;
  margin-left: 10px;
  z-index: 310;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,26,26, 0.97);
  box-shadow: 0 0 80px #232B2B66;
  z-index: 320;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.6,0,.4,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  align-items: flex-start;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  padding: 20px 26px 12px 10px;
  background: none;
  color: var(--accent);
  border: none;
  transition: color 0.14s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 36px 36px 0 28px;
  width: 88vw;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 10px 0 6px 0;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 16px;
    padding: 10px 8px;
  }
}
@media (max-width: 850px) {
  header .container {
    gap: 6px;
  }
  nav {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .feature-grid {
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 12px;
  }
}

/* --- Mobile Nav Activation --- */
@media (max-width: 768px) {
  header .container nav,
  header .container .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: absolute;
    right: 18px;
    top: 18px;
  }
  .hero {
    padding: 30px 0 22px 0;
    margin-bottom: 25px;
  }
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 8px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 16px 8px 14px 8px;
  }
  .footer-contact, footer nav, .social-links {
    margin-bottom: 8px;
  }
  footer .container {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 30px;
  }
}

/* --- Forms --- */
input, textarea, select {
  background: var(--accent);
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1rem;
  transition: border-color 0.14s, box-shadow 0.19s;
  box-shadow: 0 1px 4px rgba(35,43,43,0.06);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(150,135,114,0.08);
}

/* --- List Styling --- */
ul, ol {
  margin-left: 24px;
  margin-bottom: 8px;
}
ul li, ol li {
  margin-bottom: 7px;
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.7;
}
ul li:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
od li:before {
  content: none;
}

ol {
  list-style-type: decimal;
  margin-left: 30px;
}
ol li {
  padding-left: 0;
}

/* --- Micro-interactions & Animations --- */
.cta-primary, .card, .testimonial-card, .feature-grid li, .info-box, .mobile-menu, .mobile-menu-toggle, .mobile-nav a, .section {
  transition: 
    background 0.2s,
    color 0.2s,
    box-shadow 0.21s,
    transform 0.18s,
    border-color 0.15s;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 400;
  background: #fff;
  border-top: 3.5px solid var(--secondary);
  box-shadow: 0 -4px 22px rgba(35,43,43,0.16);
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  font-size: 1rem;
  color: var(--gray-900);
  width: 100vw;
  transition: transform 0.35s cubic-bezier(.7,0,.3,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner .cookie-text {
  flex: 1 1 300px;
  color: var(--gray-900);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-banner button {
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--primary);
  transition: background 0.15s, color 0.15s, border-color 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-banner .settings-btn {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-banner .settings-btn:hover {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 8vw 16px 8vw;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,26,26,0.65);
  z-index: 410;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeinModalBg 0.3s;
}
@keyframes fadeinModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 8px 44px rgba(35,43,43,0.20);
  border-radius: 15px;
  max-width: 420px;
  padding: 42px 34px 28px 34px;
  position: relative;
  z-index: 420;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalIn 0.37s cubic-bezier(.56, 1.36, .55, .97);
}
@keyframes modalIn {
  from { transform: scale(0.88) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-100);
  padding: 16px 13px;
  border-radius: 7px;
  border: 1.5px solid var(--gray-200);
}
.cookie-category .toggle {
  min-width: 44px;
  height: 26px;
  border-radius: 20px;
  background: var(--gray-300);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-category .toggle.checked {
  background: var(--secondary);
}
.cookie-category .toggle.disabled {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-category .toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(35,43,43,0.10);
  transition: left 0.15s;
}
.cookie-category .toggle.checked::after {
  left: 21px;
}
.cookie-category .toggle.disabled::after {
  background: var(--gray-200);
}
.cookie-modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 520px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 22px 6vw 16px 6vw;
    font-size: 1rem;
  }
  .cookie-modal h2 { font-size: 1.2rem; }
}

/* --- Visual Hierarchy and Spacing --- */
.section, .hero { box-sizing: border-box; }
.section:not(:last-child) { margin-bottom: 60px; }
main {
  min-height: 55vh;
}

/* --- Accessibility Focus Styles --- */
a:focus, button:focus, .cta-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.2px solid var(--secondary);
  outline-offset: 1.5px;
}

/* --- Utility Classes --- */
.hide { display: none !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }

/* --- Print --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { padding: 0; }
}
