/* ============================================
   ENALIAM — Design system
   ============================================ */

:root {
  --navy: #1c2733;
  --navy-soft: #2b3a4a;
  --red: #d6272c;
  --orange: #f5820a;
  --gold: #f2c200;
  --white: #ffffff;
  --off-white: #f6f7f9;
  --grey-100: #eef1f4;
  --grey-300: #d7dde3;
  --grey-500: #8a97a3;
  --grey-700: #4d5964;

  --font-heading: "Bitter", Georgia, serif;
  --font-body:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(28, 39, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 39, 51, 0.12);
  --transition: 0.25s ease;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
  color: var(--grey-700);
}
button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(245, 130, 10, 0.35);
}
.btn-primary:hover {
  background: #db7205;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-full {
  width: 100%;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(28, 39, 51, 0);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.logo img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}
.site-header.scrolled .main-nav a:not(.btn) {
  color: var(--navy);
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.main-nav a:not(.btn):hover::after {
  width: 100%;
}
.nav-cta {
  padding: 11px 22px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition),
    background var(--transition);
}
.site-header.scrolled .nav-toggle span {
  background: var(--navy);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero,
.cta-banner {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}
.hero-media,
.cta-banner .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(28, 39, 51, 0.92) 20%,
    rgba(28, 39, 51, 0.75) 55%,
    rgba(28, 39, 51, 0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow.center,
.section-title.center,
.section-lead.center {
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  color: var(--white);
}
.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.section-lead {
  font-size: 1.08rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-title.center,
.eyebrow.center {
  margin-left: auto;
  margin-right: auto;
}
#services .eyebrow,
#services .section-title,
#services .section-lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
#services .section-lead {
  margin-bottom: 56px;
}

/* Services grid */
.grid {
  display: grid;
  gap: 28px;
}
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 28px;
  height: 28px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* References logos */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.logo-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .logos-grid {
    grid-template-columns: 1fr;
  }
}

/* Split layout (approche / about / contact) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse {
  direction: rtl;
}
.split-reverse > * {
  direction: ltr;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.section-approche {
  background: var(--off-white);
}

.check-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.check-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.check-dot {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.check-list h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.check-list p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-300);
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--orange);
}
.stat span {
  font-size: 0.85rem;
  color: var(--grey-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tag-list li {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  padding: 8px 16px;
  border-radius: 999px;
}

/* CTA banner */
.cta-banner {
  padding: 110px 0;
  text-align: center;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}
.cta-content .btn {
  margin-top: 10px;
}

/* Contact */
.contact-info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-info a:hover {
  color: var(--orange);
}

.contact-form-wrap {
  aspect-ratio: unset;
}
.contact-form {
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.form-row input,
.form-row textarea {
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 10, 0.15);
}
.form-note {
  font-size: 0.88rem;
  color: var(--grey-700);
  min-height: 1.2em;
  margin: 0;
}
.form-note.success {
  color: #1a8a4a;
  font-weight: 600;
}
.form-note.error {
  color: var(--red);
  font-weight: 600;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo {
  background: var(--white);
}
.footer-logo img {
  height: 34px;
}
.footer-tagline {
  font-size: 0.9rem;
  margin: 0;
  max-width: 380px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--orange);
}
.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    gap: 44px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 36px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.2);
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 22px;
  }
  .main-nav a:not(.btn) {
    color: var(--white);
    font-size: 1.05rem;
  }
  .nav-cta {
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle span {
    background: var(--white);
  }
  .site-header.scrolled .nav-toggle span {
    background: var(--navy);
  }
  .site-header.nav-open .nav-toggle span {
    background: var(--white);
  }

  .section {
    padding: 72px 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split-reverse {
    direction: ltr;
  }
  .split-media {
    order: -1;
  }
  .split-media.contact-form-wrap {
    order: 0;
  }
  .split-media img {
    aspect-ratio: 16/10;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: unset;
    padding: 150px 0 90px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-form {
    padding: 26px;
  }
  .cta-banner {
    padding: 80px 0;
  }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card {
    transition: none;
  }
}

/* ============ BLOG ============ */
.blog-hero {
  padding: 160px 0 60px;
  background: var(--off-white);
}
.blog-hero .eyebrow,
.blog-hero .section-title,
.blog-hero .section-lead {
  max-width: 720px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.blog-card-date {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}
.blog-card h2 {
  font-size: 1.25rem;
  margin: 0;
}
.blog-card p {
  font-size: 0.95rem;
  color: var(--grey-700);
  margin: 0;
}
.blog-card-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 130px 0 40px;
  }
}

/* Article page */
.article-hero {
  padding: 160px 0 40px;
  background: var(--off-white);
}
.article-hero .container {
  max-width: 760px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--grey-700);
  margin-top: 8px;
}
.article-body {
  padding: 20px 0 100px;
}
.article-body .container {
  max-width: 760px;
}
.article-body p {
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 24px;
}
.article-back:hover {
  color: var(--red);
}

/* Weekly commentary block */
.blog-commentary {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px;
  color: var(--white);
  margin-top: 48px;
}
.blog-commentary .eyebrow {
  color: var(--gold);
}
.blog-commentary h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 20px;
}
.blog-commentary p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  max-width: 780px;
}
.blog-commentary-take {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  margin-top: 28px;
}
.blog-commentary-take p {
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 500;
}
.blog-commentary-signature {
  display: block;
  margin-top: 20px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .blog-commentary {
    padding: 32px 24px;
  }
}
