/*
Theme Name: Themis Metrics
Template: twentytwentyfive
Description: Thème Themis Metrics — Première agence panafricaine de notation ESG
Version: 1.0
Author: Themis Metrics
*/

/* ============================================================
   VARIABLES & PALETTE
   ============================================================ */
:root {
  --blue-royal: #1400FF;
  --blue-dark: #0A00CC;
  --blue-mid: #1200E0;
  --gold: #D4A017;
  --orange: #F07020;
  --orange-dark: #C95510;
  --white: #FFFFFF;
  --gray-light: #F5F5F0;
  --gray-text: #111111;
  --gray-mid: #666666;
  --gray-border: #EEEEEE;

  /* Badges */
  --badge-rating-bg: #EDE7F6;
  --badge-rating-fg: #534AB7;
  --badge-macro-bg: #FFF3E0;
  --badge-macro-fg: #D85A30;
  --badge-etude-bg: #E1F5EE;
  --badge-etude-fg: #0F6E56;
  --badge-indice-bg: #FFF8E1;
  --badge-indice-fg: #B8860B;

  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', var(--font-title), sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #0D1B3E;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p, li, span, label {
  font-family: 'Inter', var(--font-body), sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.tm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tm-section {
  padding: 80px 0;
}

.tm-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0A00CC;
}

.tm-section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 680px;
  margin-bottom: 48px;
}

.tm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Nos services layout */
.tm-services-layout { display: flex; gap: 40px; align-items: stretch; }
.tm-services-img { flex: 0 0 45%; min-width: 0; }
.tm-services-content { flex: 0 0 55%; min-width: 0; }
.tm-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tm-center { text-align: center; }
.tm-flex { display: flex; align-items: center; }
.tm-flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   WORDPRESS DEFAULT OVERRIDES
   ============================================================ */
.entry-title,
.page-title,
.wp-block-post-title,
h1.entry-title,
.site-header,
.wp-site-blocks > header,
body > header:not(.tm-topbar):not(.tm-header) {
  display: none !important;
}

.site-content,
.wp-site-blocks,
main.wp-block-group,
.entry-content,
article.page,
.page-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.tm-topbar {
  background: var(--blue-dark);
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  font-family: 'Inter', sans-serif;
}

.tm-topbar .tm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tm-topbar-left,
.tm-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tm-topbar a {
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.tm-topbar a:hover { color: var(--gold); }

.tm-topbar .tm-topbar-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.tm-topbar-platform {
  background: var(--gold);
  color: #000 !important;
  padding: 3px 12px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 12px;
}

.tm-topbar-platform:hover { background: #c49010 !important; color: #000 !important; }

/* ============================================================
   HEADER
   ============================================================ */
.tm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.tm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
}

/* Logo */
.tm-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0D1B3E;
  line-height: 1;
  gap: 0;
}

.tm-logo-themis,
.tm-logo-metrics {
  color: #0A00CC;
  font-weight: 800;
}

/* Logo image */
.tm-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
  flex-shrink: 0;
}

.tm-logo {
  display: flex;
  align-items: center;
}

/* Navigation */
.tm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tm-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.tm-nav > ul > li {
  position: relative;
}

.tm-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--gray-text);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.tm-nav > ul > li > a:hover,
.tm-nav > ul > li.current-menu-item > a,
.tm-nav > ul > li.current-menu-parent > a {
  color: var(--blue-royal);
  background: rgba(20,0,255,0.05);
}

/* Dropdown arrow */
.tm-nav > ul > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.tm-nav > ul > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Mega dropdown — full-width horizontal */
.tm-nav > ul > li.menu-item-has-children {
  position: relative;
}

.tm-nav ul ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: auto;
  min-width: max-content;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--blue-royal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  list-style: none;
  padding: 16px 24px;
  z-index: 100;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.tm-nav ul li:hover > ul,
.tm-nav ul li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tm-nav ul ul li {
  flex: 0 0 auto;
}

.tm-nav ul ul li a {
  display: block;
  padding: 10px 22px;
  font-size: 13.5px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gray-text);
  white-space: nowrap;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.tm-nav ul ul li a:hover {
  color: var(--blue-royal);
  background: rgba(20,0,255,0.05);
}

/* CTA button in header */
.tm-header-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
  margin-left: 12px;
}

.tm-header-cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

/* Hamburger */
.tm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.tm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-text);
  transition: all 0.3s;
}

/* Mobile nav */
.tm-mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 16px 0;
}

.tm-mobile-nav.active { display: block; }

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

.tm-mobile-nav ul li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-text);
  border-bottom: 1px solid var(--gray-border);
}

.tm-mobile-nav ul li ul {
  background: var(--gray-light);
}

.tm-mobile-nav ul li ul li a {
  padding-left: 40px;
  font-weight: 400;
  font-size: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.tm-btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.tm-btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.tm-btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.tm-btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.tm-btn-outline-blue {
  background: transparent;
  color: var(--blue-royal);
  border-color: var(--blue-royal);
}

.tm-btn-outline-blue:hover {
  background: var(--blue-royal);
  color: var(--white);
}

.tm-btn-white {
  background: var(--white);
  color: var(--blue-royal);
  border-color: var(--white);
}

.tm-btn-white:hover {
  background: var(--gray-light);
  color: var(--blue-dark);
}

/* ============================================================
   HERO
   ============================================================ */
.tm-hero {
  position: relative;
  background: var(--blue-dark);
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video background */
.tm-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.tm-hero-video.is-ready {
  opacity: 1;
}

/* Overlay bleu royal */
.tm-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(20, 0, 255, 0.55);
  z-index: 1;
}

/* Mobile : masquer la vidéo, fond plein */
@media (max-width: 768px) {
  .tm-hero-video { display: none; }
  .tm-hero { background: #1400FF; }
}

.tm-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.tm-hero-label {
  display: inline-block;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.tm-hero h1 {
  color: #ffffff;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.tm-hero-subtitle {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.tm-hero-subtitle strong {
  font-weight: 600;
  color: #ffffff;
}

.tm-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  justify-content: center;
}

/* Counters */
.tm-hero-counters {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.tm-counter {
  text-align: center;
}

.tm-counter-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.tm-counter-label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-top: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ============================================================
   INNER HERO (pages intérieures)
   ============================================================ */
.tm-hero-inner {
  background: var(--blue-dark);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.tm-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,212,255,0.15) 0%, transparent 60%);
}

.tm-hero-inner .tm-container { position: relative; z-index: 1; text-align: center; }

.tm-breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-family: var(--font-body);
  letter-spacing: 1px;
}

.tm-breadcrumb a { color: rgba(255,255,255,0.6); }
.tm-breadcrumb a:hover { color: var(--gold); }

.tm-hero-inner h1 {
  color: var(--white);
  margin-bottom: 16px;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tm-hero-inner .tm-hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
  margin: 0 auto 28px;
}

.tm-hero-inner .tm-hero-buttons {
  margin-bottom: 0;
  justify-content: center;
}

/* ============================================================
   CARDS
   ============================================================ */
.tm-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.tm-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.tm-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(20,0,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.tm-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-text);
}

.tm-card p {
  font-size: 14.5px;
  color: var(--gray-mid);
  line-height: 1.65;
}

.tm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1400FF;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), gap var(--transition);
}

.tm-card-link:hover { color: #FF6B00; text-decoration: underline; gap: 10px; }

/* Service cards */
.tm-service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.tm-service-card:hover {
  border-color: var(--blue-royal);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.tm-service-card .tm-card-number {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-border);
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.tm-service-card:hover .tm-card-number { color: rgba(20,0,255,0.12); }

.tm-service-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 8px;
}

.tm-service-card .tm-service-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-royal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.tm-service-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* ============================================================
   BADGES
   ============================================================ */
.tm-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tm-badge-rating { background: var(--badge-rating-bg); color: var(--badge-rating-fg); }
.tm-badge-macro { background: var(--badge-macro-bg); color: var(--badge-macro-fg); }
.tm-badge-etude { background: var(--badge-etude-bg); color: var(--badge-etude-fg); }
.tm-badge-indice { background: var(--badge-indice-bg); color: var(--badge-indice-fg); }

/* ============================================================
   INSIGHT CARDS
   ============================================================ */
.tm-insight-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.tm-insight-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.tm-insight-card-body {
  padding: 24px;
}

.tm-insight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tm-insight-date {
  font-size: 12px;
  color: var(--gray-mid);
}

.tm-insight-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.tm-insight-card .tm-card-link {
  color: var(--blue-royal);
}

/* ============================================================
   METHODOLOGY CARDS
   ============================================================ */
.tm-meth-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-meth-card:hover {
  border-color: var(--blue-royal);
  box-shadow: var(--shadow);
}

.tm-meth-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-royal);
}

.tm-meth-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-text);
}

.tm-meth-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
  flex: 1;
}

/* ============================================================
   RATING SCALE
   ============================================================ */
.tm-rating-scale {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tm-rating-item {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  color: var(--white);
}

.tm-rating-item .tm-rating-grade {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.tm-rating-item .tm-rating-desc {
  font-size: 11.5px;
  line-height: 1.4;
  opacity: 0.9;
}

.tm-rating-aplus { background: #0A3D7A; }
.tm-rating-a { background: #1A5FA0; }
.tm-rating-bplus { background: #D4A017; }
.tm-rating-b { background: #CC7A00; }
.tm-rating-bminus { background: #D85A30; }
.tm-rating-d { background: #CC2200; }

/* ============================================================
   FORM
   ============================================================ */
.tm-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
}

.tm-form h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.tm-form .tm-form-subtitle {
  color: var(--gray-mid);
  margin-bottom: 32px;
  font-size: 15px;
}

.tm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.tm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-form-group.full { grid-column: 1 / -1; }

.tm-form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-text);
}

.tm-form-group input,
.tm-form-group select,
.tm-form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--gray-text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.tm-form-group input:focus,
.tm-form-group select:focus,
.tm-form-group textarea:focus {
  border-color: var(--blue-royal);
}

.tm-form-group textarea { resize: vertical; min-height: 100px; }

.tm-form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.tm-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.tm-form-checkbox label {
  font-size: 14px;
  color: var(--gray-mid);
  cursor: pointer;
}

/* ============================================================
   SECTION COLORS
   ============================================================ */
.tm-bg-white { background: var(--white); }
.tm-bg-light { background: var(--gray-light); }
.tm-bg-blue { background: var(--blue-dark); }
.tm-bg-green { background: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.tm-footer {
  background: #2c2c2c;
  color: #ffffff;
  padding: 64px 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.tm-footer-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tm-footer-tagline {
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.6;
}

.tm-footer-contact p {
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.tm-footer-col ul li {
  margin-bottom: 10px;
}

.tm-footer-col ul li a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #ffffff;
  transition: opacity var(--transition);
}

.tm-footer-col ul li a:hover { opacity: 0.7; }

/* Newsletter */
.tm-newsletter-text {
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tm-newsletter-form {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}

.tm-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px 0 0 4px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  font-family: var(--font-body);
}

.tm-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.tm-newsletter-form input:focus { border-color: var(--gold); }

.tm-newsletter-form button {
  padding: 10px 18px;
  background: #ffffff;
  color: #2c2c2c;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.tm-newsletter-form button:hover { opacity: 0.85; }

.tm-newsletter-spam {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.tm-footer-linkedin a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ffffff;
  transition: opacity var(--transition);
}

.tm-footer-linkedin a:hover { opacity: 0.7; }

/* Footer bottom */
.tm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
}

.tm-footer-bottom a {
  color: #ffffff;
  transition: opacity var(--transition);
}

.tm-footer-bottom a:hover { opacity: 0.7; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.tm-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tm-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.tm-animate-delay-1 { transition-delay: 0.1s; }
.tm-animate-delay-2 { transition-delay: 0.2s; }
.tm-animate-delay-3 { transition-delay: 0.3s; }
.tm-animate-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   ABOUT PAGE — TARGET CARDS
   ============================================================ */
.tm-audience-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.tm-audience-card:hover {
  filter: brightness(0.85);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tm-audience-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.tm-audience-card h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.tm-audience-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* ============================================================
   STEPS / PROCESS
   ============================================================ */
.tm-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.tm-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--gray-border);
}

.tm-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.tm-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-royal);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.tm-step h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-text);
}

.tm-step p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ============================================================
   THEMISCLOUD — TAG MARQUEE
   ============================================================ */
.tm-tag-marquee {
  background: var(--blue-dark);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.tm-tag-marquee-inner {
  display: inline-flex;
  gap: 12px;
  animation: marquee 25s linear infinite;
}

.tm-tag-marquee-inner .tm-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   VALUES CARDS
   ============================================================ */
.tm-value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.tm-value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.tm-value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.tm-value-card h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 10px;
}

.tm-value-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* ============================================================
   TWO-COLUMN ABOUT SECTION
   ============================================================ */
.tm-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tm-about-logo-box {
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 300px;
}

.tm-about-logo-text {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--blue-royal);
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.tm-cta-section {
  background: var(--blue-dark);
  padding: 80px 0;
  text-align: center;
}

.tm-cta-section h2 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.tm-cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ============================================================
   PILLARS
   ============================================================ */
.tm-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tm-pillar {
  border-left: 4px solid var(--blue-royal);
  padding: 24px;
  background: var(--gray-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tm-pillar h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--blue-royal);
}

.tm-pillar p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}

.tm-pillar ul {
  margin: 8px 0 0 16px;
  font-size: 14px;
  color: var(--gray-mid);
}

.tm-pillar ul li { margin-bottom: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .tm-section { padding: 56px 0; }
  .tm-grid-2, .tm-grid-3, .tm-pillars { grid-template-columns: 1fr; }
  .tm-grid-4 { grid-template-columns: 1fr; }
  .tm-services-layout { flex-direction: column; }
  .tm-services-img { flex: none; width: 100%; height: 260px; }
  .tm-services-content { flex: none; width: 100%; }
  .tm-footer-grid { grid-template-columns: 1fr; }
  .tm-hero-counters { gap: 28px; }
  .tm-form-grid { grid-template-columns: 1fr; }
  .tm-about-split { grid-template-columns: 1fr; gap: 32px; }
  .tm-steps { flex-direction: column; gap: 24px; }
  .tm-steps::before { display: none; }
  .tm-rating-scale { flex-direction: column; }
  .tm-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Header responsive */
  .tm-nav { display: none; }
  .tm-header-cta { display: none; }
  .tm-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .tm-hero h1 { white-space: normal; }
  .tm-hero-buttons { flex-direction: column; }
  .tm-hero-buttons .tm-btn { width: 100%; text-align: center; justify-content: center; }
  .tm-form { padding: 24px; }
  .tm-topbar-right .tm-topbar-linkedin { display: none; }
}
