/* L4B Technologies UG — Technical Documentation Theme */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-border: #d8dce3;
  --color-border-light: #e8ebf0;
  --color-text: #1e2430;
  --color-text-muted: #5a6270;
  --color-navy: #1a2332;
  --color-navy-dark: #121a26;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #eff6ff;
  --color-row-alt: #f0f2f6;
  --color-success: #166534;
  --color-success-bg: #ecfdf5;
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  --max-width: 1200px;
  --header-height: 64px;
  --sidebar-width: 240px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.1);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--color-navy);
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ---- Header & Navigation ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.main-nav {
  display: none;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
  margin: 0;
}

.main-nav > ul > li > a,
.nav-trigger {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.nav-trigger:hover,
.main-nav > ul > li:hover > a {
  color: var(--color-accent);
}

/* Mega Menu */
.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  pointer-events: none;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mega-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col li { margin-bottom: 0.5rem; }

.mega-col a {
  color: var(--color-text);
  font-size: 0.9rem;
}

.mega-col a:hover { color: var(--color-accent); }

.mega-col p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  overflow-y: auto;
  z-index: 999;
  padding: 1rem 1.25rem 2rem;
  border-top: 1px solid var(--color-border);
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--color-text);
  font-weight: 500;
}

.mobile-nav .sub-menu {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-nav .sub-menu a {
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* ---- Main Layout ---- */

main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-navy);
}

.section-header p {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  max-width: 640px;
}

/* ---- Hero (minimal, no bg image on homepage) ---- */

.hero-minimal {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 3rem;
}

.hero-minimal h1 {
  font-size: 2.25rem;
  max-width: 720px;
  margin-bottom: 1rem;
}

.hero-minimal .hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero with background image (subpages) */
.hero-image {
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  color: #fff;
  position: relative;
}

.hero-image h1,
.hero-image p {
  color: #fff;
}

.hero-image .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.hero-image--1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)), url("../img/hero-1.jpg");
}

.hero-image--2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)), url("../img/hero-2.jpg");
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.hero-image .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-image .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---- Icon Strip ---- */

.icon-strip {
  background: var(--color-navy);
  padding: 1.25rem 0;
}

.icon-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.icon-strip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.icon-strip-item svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* ---- Sidebar + Content Layout ---- */

.sidebar-layout {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

.sidebar-nav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 0;
  height: fit-content;
}

.sidebar-nav h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--color-text);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-left-color: var(--color-accent);
}

.sidebar-content h2 {
  margin-bottom: 1.25rem;
}

.service-cards {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.service-card .card-link {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- Data Tables ---- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.data-table th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:nth-child(even) td {
  background: var(--color-row-alt);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Definition lists */
.dl-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.dl-grid dt,
.dl-grid dd {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--color-border-light);
}

.dl-grid dt {
  background: var(--color-row-alt);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-navy);
}

.dl-grid dd {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.dl-grid dt:nth-child(4n+1),
.dl-grid dd:nth-child(4n+2) {
  background: var(--color-surface);
}

.dl-grid dt:nth-child(4n+3),
.dl-grid dd:nth-child(4n) {
  background: var(--color-row-alt);
}

@media (min-width: 768px) {
  .dl-grid {
    grid-template-columns: 200px 1fr;
  }
  .dl-grid dt { border-right: 1px solid var(--color-border-light); }
}

/* ---- Stats ---- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* ---- Process Steps ---- */

.process-list {
  counter-reset: process;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-list li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  margin: 0;
  align-items: start;
}

.process-list li:nth-child(even) {
  background: var(--color-row-alt);
}

.process-list li:last-child { border-bottom: none; }

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.process-list h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.process-list p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- Certification Grid ---- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cert-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.cert-item svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-navy);
  margin: 0 auto 0.75rem;
}

.cert-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.cert-item p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- FAQ Accordion ---- */

.faq-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list details {
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.faq-list details:nth-child(even) {
  background: var(--color-row-alt);
}

.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list .faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---- CTA Section ---- */

.cta-section {
  background: var(--color-navy);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* ---- Content Pages ---- */

.page-content {
  padding: 2.5rem 0 3.5rem;
}

.page-content .container-narrow {
  max-width: 780px;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
}

.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }

.content-grid {
  display: grid;
  gap: 2rem;
}

.content-with-image {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.content-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.content-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.section-bg-image {
  background-size: cover;
  background-position: center;
  padding: 3rem 0;
}

.section-bg-image--1 {
  background-image: linear-gradient(rgba(247, 248, 250, 0.92), rgba(247, 248, 250, 0.92)), url("../img/section-1.jpg");
}

.section-bg-image--2 {
  background-image: linear-gradient(rgba(247, 248, 250, 0.92), rgba(247, 248, 250, 0.92)), url("../img/section-2.jpg");
}

.section-bg-image--3 {
  background-image: linear-gradient(rgba(247, 248, 250, 0.92), rgba(247, 248, 250, 0.92)), url("../img/section-3.jpg");
}

.section-bg-image--4 {
  background-image: linear-gradient(rgba(247, 248, 250, 0.92), rgba(247, 248, 250, 0.92)), url("../img/section-4.jpg");
}

/* ---- Cards & Grids ---- */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 { margin-bottom: 0.5rem; }

.values-grid {
  display: grid;
  gap: 1rem;
}

.value-item {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 0 0.75rem 1rem;
  background: var(--color-surface);
}

.value-item h3 { font-size: 1rem; }

.team-portrait {
  max-width: 300px;
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--color-border);
}

/* ---- References ---- */

.case-study {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.case-study h3 {
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.case-meta {
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.case-meta dt {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.case-meta dd {
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

/* ---- Career ---- */

.job-listing {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.job-listing h3 { margin-bottom: 0.35rem; }

.job-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.benefits-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 0.5rem 0.75rem;
  background: var(--color-row-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Contact Form ---- */

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-info dl {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-info dt,
.contact-info dd {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-info dt {
  background: var(--color-row-alt);
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-info dd {
  margin: 0;
  font-size: 0.9rem;
}

.contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.form-consent input {
  width: auto;
  margin: 0.25rem 0 0;
  flex-shrink: 0;
}

.form-consent label {
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0;
}

.success-message {
  background: var(--color-success-bg);
  border: 1px solid #86efac;
  color: var(--color-success);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ---- Blog ---- */

.article-list {
  display: grid;
  gap: 1.5rem;
}

.article-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.article-preview time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.article-preview h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.article-preview h2 a {
  color: var(--color-navy);
}

.article-preview h2 a:hover {
  color: var(--color-accent);
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

/* ---- Legal Pages ---- */

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 0.4rem; }

.footer-grid a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Cookie Banner ---- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.25rem;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
  min-width: 240px;
}

.cookie-inner a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-cookie-accept {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---- Scroll Animations ---- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Feature List ---- */

.feature-list {
  list-style: none;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-list li {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  position: relative;
  margin: 0;
}

.feature-list li:nth-child(even) {
  background: var(--color-row-alt);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 1rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---- Responsive ---- */

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }

  .hero-minimal h1 { font-size: 2.75rem; }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
  }

  .content-with-image {
    grid-template-columns: 1fr 1fr;
  }

  .case-meta {
    grid-template-columns: 120px 1fr;
  }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }

  .sidebar-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
    align-items: start;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
