/* ==========================================================================
   SL CONSULT - GLOBAL STYLESHEET
   Visual Identity & Brand Standards V2.0 (May 2026)
   ========================================================================== */

/* ── DESIGN SYSTEM & VARIABLE TOKENS ── */
:root {
  /* Brand Guidelines Primary Colors */
  --blue:          #0088CC; /* SL Blue - Primary, links, buttons */
  --blue-dark:     #0E71B0; /* Dark Blue - Hover, accents */
  --blue-navy:     #005CAA; /* Navy Blue - Headings, header text */
  --blue-accent:   #3389D7; /* Accent Blue - Highlights, CTAs */
  --blue-light:    #e6f4fb; /* Light Blue Tint - Background accents */

  /* Brand Guidelines Neutrals (Light Theme) */
  --ink:           #333333; /* Dark Gray - Main Text & headings */
  --ink-2:         #4C4C4C; /* Medium Gray - Secondary text */
  --ink-3:         #807F7F; /* Light Gray - Labels & hints */
  --border:        #C5C5C5; /* Border Gray - Borders & lines */
  --surface:       #F5F5F5; /* Background Gray - Alternating sections */
  --white:         #FFFFFF; /* White - Base background */

  /* Structural & Effect Tokens */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  
  --shadow-sm:     0 2px 4px rgba(51, 51, 51, 0.05);
  --shadow-md:     0 8px 24px rgba(51, 51, 51, 0.08);
  --shadow-lg:     0 16px 40px rgba(0, 136, 204, 0.12);
  --shadow-inset:  inset 0 2px 4px rgba(0, 0, 0, 0.06);

  --max-w:         1240px;
  --transition:    300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Tokens */
html[data-theme="dark"] {
  /* Brand Primary Colors adjusted for Dark Mode */
  --blue:          #33A2FF; /* Slightly brighter blue for AA contrast on dark background */
  --blue-dark:     #0088CC; 
  --blue-navy:     #6AD2FF;
  --blue-accent:   #4FAFFF;
  --blue-light:    #162C4E; /* Darker blue tint */

  /* Neutrals adjusted for Dark Mode */
  --ink:           #F5F5F5; /* Main Text & headings (Light Gray) */
  --ink-2:         #E0E0E0; /* Secondary text */
  --ink-3:         #9E9E9E; /* Labels & hints */
  --border:        #444444; /* Darker border */
  --surface:       #181D26; /* Dark section background */
  --white:         #0F1319; /* Pure dark background */
  
  --shadow-sm:     0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:     0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ── BASE RESET & GENERAL STYLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Targeted Transitions for Theme Toggling */
body, section, header, nav, footer, 
.service-card, .ref-card, .about__value, .about__timeline, 
input, select, textarea, .btn, .nav__links a, .theme-toggle, 
.cookie-banner, .timeline-dot, .timeline-item::before {
  transition: background-color var(--transition), 
              color var(--transition), 
              border-color var(--transition), 
              box-shadow var(--transition),
              transform var(--transition);
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
}

/* ── UTILITIES & GRID SYSTEM ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media(min-width:768px){ .container { padding: 0 40px; } }
@media(min-width:1024px){ .container { padding: 0 48px; } }

.section {
  padding: 88px 0;
  position: relative;
}
.section--alt {
  background-color: var(--surface);
}
.section--dark {
  background-color: #0F1319;
  color: #F5F5F5;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--blue-navy);
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 22px);
}

p {
  color: var(--ink-2);
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
}
.btn-primary:hover {
  background-color: var(--blue-dark);
  color: #FFFFFF;
  border-color: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
  text-decoration: none;
}
.btn-primary:active {
  box-shadow: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover {
  background-color: var(--blue-light);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-ghost-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: #FFFFFF;
  text-decoration: none;
}

/* ── STICKY NAV & HEADER ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .nav {
  background-color: rgba(15, 19, 25, 0.90);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media(min-width:768px){ .nav__inner { padding: 0 40px; } }

/* Logo Branding conforming to Section 2 of Brand Guidelines */
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo:hover {
  text-decoration: none;
}
.nav__logo-sl {
  font-size: 24px;
  font-weight: 800;
  color: #0088CC; /* Brand SL Blue */
  letter-spacing: -0.03em;
}
.nav__logo-consult {
  font-size: 15px;
  font-weight: 300;
  color: #333333; /* Brand Dark Gray */
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-theme="dark"] .nav__logo-consult {
  color: #FFFFFF; /* White variant for dark background */
}

.nav__links {
  display: none;
  list-style: none;
  gap: 6px;
}
@media(min-width:960px){
  .nav__links {
    display: flex;
    align-items: center;
  }
}
.nav__links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__links a:hover {
  color: var(--blue);
  background-color: var(--blue-light);
  text-decoration: none;
}

/* Controls container (Language switcher + Theme toggle) */
.nav__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cta {
  display: none;
}
@media(min-width:960px){
  .nav__cta {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Lang Switcher conforming to Guidelines Section 13 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}
html[data-theme="dark"] .lang-switch {
  background-color: rgba(255, 255, 255, 0.05);
}
.lang-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--ink-3);
  letter-spacing: .04em;
  line-height: 1;
  transition: background-color var(--transition), color var(--transition);
}
.lang-btn:hover {
  background-color: var(--white);
  color: var(--ink);
}
.lang-btn.active {
  background-color: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

/* Premium Dark Mode Toggle Switch */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--ink-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
html[data-theme="dark"] .theme-toggle {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFD700; /* Sunny yellow for dark mode */
}
.theme-toggle:hover {
  background-color: var(--blue-light);
  color: var(--blue);
  border-color: var(--blue);
  transform: rotate(15deg);
}

/* Burger Mobile Menu Button */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
@media(min-width:960px){ .nav__burger { display: none; } }

/* Mobile Menu Panel */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 24px;
  z-index: 99;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__mobile.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.nav__mobile ul {
  list-style: none;
}
.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.nav__mobile .btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* ── HERO SECTION ── */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background-color: var(--white);
  overflow: hidden;
  position: relative;
}

/* Subtiler Deko-Hintergrund für Premium-Ästhetik */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 136, 204, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  position: relative;
  z-index: 1;
}
@media(min-width:960px){
  .hero__grid {
    grid-template-columns: 55fr 45fr;
    min-height: calc(100vh - 72px - 128px);
  }
}

.hero__text {
  align-self: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--blue);
  border-radius: 50%;
}

.hero__h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 800;
  color: var(--blue-navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__h1 em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero__trust-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.hero__trust-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue);
  opacity: .25;
}
.hero__trust-dots span:first-child { opacity: 1; }
.hero__trust-dots span:nth-child(2) { opacity: .55; }

/* Hero Image Panel with Glassmorphic KPIs */
.hero__visual {
  position: relative;
  display: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  align-self: stretch;
}
@media(min-width:960px){
  .hero__visual {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    height: 100%;
  }
}

.hero__img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  min-height: 520px;
  transition: transform 6s ease;
}
.hero__visual:hover .hero__img {
  transform: scale(1.05);
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 25, 40, 0.75) 0%,
    rgba(14, 113, 176, 0.20) 50%,
    transparent 80%
  );
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  animation: float 4s ease-in-out infinite;
}
.hero__badge--tl {
  top: 24px;
  left: 24px;
}
.hero__badge small {
  display: block;
  font-weight: 400;
  opacity: .85;
  margin-top: 2px;
  font-size: 11px;
}

/* Dynamic KPI Panel Glassmorphism */
.hero__img-kpi {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(15, 25, 40, 0.60);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.hero__img-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-navy);
  opacity: .9;
  margin-bottom: 6px;
}
html[data-theme="dark"] .hero__img-kpi-label {
  color: var(--blue-accent);
}
.hero__img-kpi-num {
  font-size: clamp(32px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #FFFFFF;
}
.hero__img-kpi-sub {
  font-size: 12px;
  opacity: .8;
  margin-top: 4px;
}
.hero__img-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__img-kpi-mini-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-accent);
}
.hero__img-kpi-mini-label {
  font-size: 11px;
  opacity: .75;
  margin-top: 2px;
}

/* ── STATS BAR SPREAD ── */
.stats-bar {
  background-color: var(--blue);
  padding: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}
@media(min-width:640px){ .stats-bar__inner { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-item:last-child { border-right: none; }
@media(max-width:639px){
  .stat-item:nth-child(2) { border-right: none; }
}
.stat-item__number {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-item__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  font-weight: 600;
}

/* ── SERVICES COMPONENT ── */
.services__intro {
  max-width: 640px;
  margin-bottom: 56px;
}
.services__intro p {
  font-size: 18px;
  margin-top: 16px;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media(min-width:640px){ .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:960px){ .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 136, 204, 0.25);
  transform: translateY(-4px);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background-color: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
}

.service-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--blue-navy);
}

.service-card p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  margin-top: auto; /* Push lists and link to the bottom */
}
.service-card__list li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.service-card__list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23e6f4fb'/%3E%3Cpath d='M5 8.5l2 2 4-4' stroke='%230088CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
  margin-top: 3px;
}
html[data-theme="dark"] .service-card__list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23162C4E'/%3E%3Cpath d='M5 8.5l2 2 4-4' stroke='%2333A2FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
}

.service-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card__link:hover {
  text-decoration: none;
}
.service-card__link::after {
  content: '→';
  transition: transform var(--transition);
}
.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ── PROCESS TIMELINE ── */
.process__intro {
  max-width: 580px;
  margin-bottom: 64px;
}
.process__intro p {
  font-size: 18px;
  margin-top: 16px;
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}
@media(min-width:768px){
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.process__step {
  position: relative;
  padding: 24px;
  text-align: center;
}
@media(min-width:768px){
  .process__step::after {
    content: '';
    position: absolute;
    top: 48px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--border);
    z-index: 0;
  }
  .process__step:last-child::after { display: none; }
}

.process__num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  position: relative;
  z-index: 1;
}
.process__step--active .process__num {
  background-color: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 0 0 6px var(--blue-light);
}

.process__step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--blue-navy);
}
.process__step p {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 220px;
  margin: 0 auto;
}

/* ── REFERENCES GALLERY ── */
.references__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.references__header div { max-width: 560px; }
.references__header p { font-size: 18px; margin-top: 12px; }

.ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px){ .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .ref-grid { grid-template-columns: repeat(2, 1fr) 1fr; } }

.ref-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.ref-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ref-card__img-wrap {
  overflow: hidden;
  height: 180px;
  position: relative;
}
.ref-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter var(--transition);
}
.ref-card:hover .ref-card__img {
  transform: scale(1.05);
}

.ref-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Featured Ref Card styling */
.ref-card--featured {
  position: relative;
  overflow: hidden;
  background-color: #0F1319;
  border-color: transparent;
  grid-row: span 2;
  min-height: 480px;
}
@media(max-width:1023px){ .ref-card--featured { grid-row: span 1; min-height: auto; } }

.ref-card--featured .ref-card__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: saturate(.6) brightness(.6);
  z-index: 0;
  transition: transform 6s ease;
}
.ref-card--featured:hover .ref-card__bg-img {
  transform: scale(1.03);
}

.ref-card--featured .ref-card__content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  flex: 1;
}

.ref-card__sector {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.ref-card--featured .ref-card__sector {
  color: var(--blue-accent);
}

.ref-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--blue-navy);
}
.ref-card--featured h3 {
  color: #FFFFFF;
}

.ref-card p {
  font-size: 14px;
  color: var(--ink-2);
}
.ref-card--featured p {
  color: rgba(255, 255, 255, 0.8);
}

.ref-card__amount {
  display: inline-block;
  background-color: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-top: auto;
  align-self: flex-start;
}
.ref-card--featured .ref-card__amount {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.ref-card--featured .ref-card__big {
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 24px;
}
.ref-card--featured .ref-card__big-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ── ABOUT & TIMELINE ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media(min-width:960px){
  .about__grid {
    grid-template-columns: 48fr 52fr;
  }
}

.about__text p {
  font-size: 17px;
  line-height: 1.75;
  margin-top: 20px;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.about__value {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.about__value:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 136, 204, 0.15);
}
.about__value-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 6px;
}
.about__value p {
  font-size: 13px;
  margin-top: 0;
  color: var(--ink-2);
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.about__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(15, 25, 40, 0.85));
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 500;
}

.about__timeline {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15px;
  width: 2px;
  bottom: 0;
  background-color: var(--border);
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--blue-light);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.timeline-dot svg {
  width: 14px;
  height: 14px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2.5;
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.timeline-text strong {
  color: var(--ink);
}

/* ── CTA BAND ── */
.cta-band {
  background-color: var(--blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(26px, 4vw, 36px);
  max-width: 560px;
  margin-bottom: 0;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-top: 10px;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* ── CONTACT & FORM ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media(min-width:960px){
  .contact__grid {
    grid-template-columns: 42fr 58fr;
  }
}

.contact__info p {
  font-size: 17px;
  margin-top: 16px;
}

.contact__details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact__detail-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
}
.contact__detail-label {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact__detail-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 2px;
}
.contact__detail-value a {
  color: var(--ink);
  text-decoration: none;
}
.contact__detail-value a:hover {
  color: var(--blue);
}

/* Form Styles */
.contact__form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .contact__form {
  background-color: var(--surface);
}

.contact__form h3 {
  font-size: 22px;
  color: var(--blue-navy);
  margin-bottom: 8px;
}
.contact__form > p {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}
@media(min-width:560px){ .form-row { grid-template-columns: 1fr 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full {
  grid-column: 1/-1;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.15);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-submit {
  margin-top: 24px;
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 15px;
}

.form-note {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 14px;
}

/* ── FOOTER SECTIONS ── */
footer {
  background-color: #0F1319;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media(min-width:640px){ .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:960px){ .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; } }

.footer__brand .nav__logo-sl {
  color: #FFFFFF;
}
.footer__brand .nav__logo-consult {
  color: rgba(255, 255, 255, 0.6);
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer__col a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer__contact-item {
  font-size: 14px;
  line-height: 1.6;
}
.footer__contact-item a {
  color: rgba(255, 255, 255, 0.6);
}
.footer__contact-item a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__copy {
  font-size: 13px;
}
.footer__legal {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
}
.footer__legal a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}
.footer__social a:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── MISC UTILITIES ── */
.text-blue { color: var(--blue); }
.divider { height: 1px; background-color: var(--border); }
.counter { display: inline-block; }

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform .8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

/* Keyframe Float Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 580px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
html[data-theme="dark"] .cookie-banner {
  background-color: rgba(15, 19, 25, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}
.cookie-banner.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--blue-navy);
}
.cookie-banner p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--ink-2);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.cookie-actions button {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid var(--blue);
  transition: all var(--transition);
}
.cookie-btn-accept {
  background-color: var(--blue);
  color: #FFFFFF;
}
.cookie-btn-accept:hover {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.cookie-btn-reject {
  background-color: transparent;
  color: var(--blue);
}
.cookie-btn-reject:hover {
  background-color: var(--blue-light);
}

/* ── SPECIFIC LEGAL PAGES STYLING ── */
.legal-body {
  background-color: var(--surface);
}
.legal-container {
  max-width: 800px;
  margin: 64px auto;
  padding: 48px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.legal-container h1 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--blue-navy);
}
.legal-container h2 {
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--blue-navy);
}
.legal-container p {
  margin-bottom: 16px;
  color: var(--ink-2);
}
.legal-container ul {
  margin-bottom: 16px;
  margin-left: 24px;
  color: var(--ink-2);
}
.legal-container li {
  margin-bottom: 6px;
}
.legal-container .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
}
.legal-container .back:hover {
  color: var(--blue-dark);
  text-decoration: none;
}
.legal-container .back::before {
  content: '←';
}
