/* ========================================
   ILY Conseil — Design System
   Sober, minimalistic, geometric
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors derived from logo */
  --navy: #1B2A4A;
  --navy-light: #2A3D64;
  --navy-dark: #111D35;
  --navy-90: rgba(27, 42, 74, 0.9);
  --navy-10: rgba(27, 42, 74, 0.10);
  --navy-05: rgba(27, 42, 74, 0.05);

  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --light-gray: #E8EBF0;
  --mid-gray: #9AA3B4;
  --text-dark: #1B2A4A;
  --text-body: #3D4E6A;
  --text-light: #6B7A94;

  /* Accent — subtle gold for CTA & highlights */
  --accent: #C8A96E;
  --accent-light: #D4BC8A;
  --accent-dark: #A88C55;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-py: 120px;
  --container-max: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s var(--ease);
  --transition-med: 0.4s var(--ease);
  --transition-slow: 0.7s var(--ease);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 42, 74, 0.12);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--accent);
}

p {
  max-width: 640px;
  color: var(--text-body);
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-py) 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.75);
}

.section--offwhite {
  background: var(--off-white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 60px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-med);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SVG Logo */
.logo-svg {
  height: 68px;
  width: auto;
  display: block;
  color: var(--white);
  transition: color var(--transition-med);
}

.navbar.scrolled .logo-svg {
  color: var(--navy);
}

.logo-svg--footer {
  color: rgba(255, 255, 255, 0.75);
  height: 70px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-med);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a:hover {
  color: var(--white);
}

.navbar.scrolled .navbar-links a {
  color: var(--text-body);
}

.navbar.scrolled .navbar-links a:hover {
  color: var(--text-dark);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 4px;
  margin-left: 12px;
}

.navbar.scrolled .lang-switch {
  background: var(--navy-05);
}

.lang-switch button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 3px;
}

.lang-switch button.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.navbar.scrolled .lang-switch button {
  color: var(--text-light);
}

.navbar.scrolled .lang-switch button.active {
  background: var(--navy);
  color: var(--white);
}

/* Mobile menu button */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
}

.navbar.scrolled .navbar-toggle span {
  background: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 800px;
  height: 800px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 0;
  transform: rotate(25deg);
  pointer-events: none;
}

/* Geometric decorations inspired by the logo brackets */
.hero-geo {
  position: absolute;
  pointer-events: none;
}

.hero-geo--1 {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-right: none;
  border-bottom: none;
}

.hero-geo--2 {
  bottom: 20%;
  right: 15%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(200, 169, 110, 0.15);
  border-left: none;
  border-top: none;
}

.hero-geo--3 {
  top: 40%;
  right: 30%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content h4 {
  margin-bottom: 28px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 28px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 48px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ---------- About ---------- */
.about-content {
  max-width: 760px;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 680px;
}

.about-stats-bar {
  background: var(--navy);
  margin-top: 80px;
  padding: 60px 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  padding: 48px 32px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Approach / Process ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
}

.approach-step {
  padding: 50px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  counter-increment: step;
}

.approach-step:last-child {
  border-right: none;
}

.approach-step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.approach-step h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.approach-step p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 50px 32px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-med);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  position: relative;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.team-card h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 auto;
  max-width: 300px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-text h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-info-text a:hover {
  color: var(--accent);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1px solid var(--light-gray);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--mid-gray);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  padding: 60px 0 30px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand img {
  height: 38px;
  border-radius: 4px;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .approach-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
  }

  .approach-step:last-child {
    border-bottom: none;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats-bar {
    margin-top: 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 998;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .navbar-toggle {
    display: flex;
    z-index: 999;
  }

  .navbar-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navbar-toggle.open span {
    background: var(--white) !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-geo {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .lang-switch {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}