/* ================================================================
   CRAFTING IT — Stylesheet
   Palette : Navy #0D1B2A | Blue #1B4F8A | Amber #F59E0B | White #FFF
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1B2A;
  --navy-deep:  #071018;
  --blue:       #1B4F8A;
  --blue-light: #2563EB;
  --amber:      #F59E0B;
  --amber-dark: #D97706;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-300:   #CBD5E1;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --text:       #1E293B;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);

  --transition: .25s ease;
  --nav-h:      68px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ── Utilities ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--gray-100); }
.section--dark { background: var(--navy); color: var(--white); }

.section__header {
  max-width: 660px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--amber); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}
.section__title--left { text-align: left; }
.section__title--light { color: var(--white); }

.section__desc {
  color: var(--gray-500);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn--primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn--full { width: 100%; justify-content: center; }

/* ── Navigation ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.nav__logo strong { font-weight: 800; }
.nav__logo-text--light { color: var(--white); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__link--cta {
  background: var(--amber);
  color: var(--navy) !important;
  font-weight: 700;
}
.nav__link--cta:hover {
  background: var(--amber-dark);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Animated rail lines */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__rail {
  position: absolute;
  bottom: -10%;
  width: 2px;
  height: 130%;
  background: linear-gradient(to bottom, transparent, rgba(27,79,138,.5) 30%, rgba(27,79,138,.3) 70%, transparent);
  transform-origin: bottom center;
  animation: rail-appear 1.6s ease forwards;
  opacity: 0;
}
.hero__rail--1 { left: 30%; transform: rotate(-8deg); animation-delay: .2s; }
.hero__rail--2 { left: 32%; transform: rotate(-8deg); animation-delay: .35s; }
.hero__rail--3 { left: 28%; transform: rotate(-8deg); animation-delay: .5s; opacity: 0; }

/* Simulate sleepers crossing rails */
.hero__rail--1::before,
.hero__rail--2::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -60px;
  width: 180px;
  height: 2px;
  background: rgba(27,79,138,.2);
  box-shadow: 0 80px 0 rgba(27,79,138,.15), 0 160px 0 rgba(27,79,138,.1),
              0 240px 0 rgba(27,79,138,.08), 0 320px 0 rgba(27,79,138,.06);
}

@keyframes rail-appear {
  from { opacity: 0; transform: rotate(-8deg) translateY(60px); }
  to   { opacity: 1; transform: rotate(-8deg) translateY(0); }
}

/* Signal */
.hero__signal {
  position: absolute;
  right: 18%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: signal-rise 1.2s .6s ease forwards;
  opacity: 0;
  transform: translateY(40px);
}
@keyframes signal-rise {
  to { opacity: 1; transform: translateY(0); }
}
.signal__head {
  width: 32px;
  height: 48px;
  background: #1a2e44;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2a3f58;
}
.signal__light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.signal__light--amber {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber), 0 0 24px rgba(245,158,11,.4);
  animation: blink 3s 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: .2; }
}
.signal__pole {
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, #2a3f58, #1a2e44);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: hero-in 1s .4s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--amber);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255,255,255,.7);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fade-in 1s 1.5s ease forwards;
  opacity: 0;
}
@keyframes fade-in { to { opacity: 1; } }

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scroll-pulse 2s 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { transform: scaleY(1); opacity: .4; }
  50%      { transform: scaleY(.5); opacity: .2; }
}

/* ── Stats ────────────────────────────────────────────────────── */
.stats {
  background: var(--blue);
  padding: 56px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__number::after { content: '+'; font-size: .6em; }

.stat__label {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  line-height: 1.5;
}

/* ── Expertises ───────────────────────────────────────────────── */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.expertise__card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.expertise__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber);
}
.expertise__card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  grid-row: span 1;
}
.expertise__card--featured h3 { color: var(--white); }
.expertise__card--featured p  { color: rgba(255,255,255,.68); }

.expertise__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(245,158,11,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 20px;
}
.expertise__card--featured .expertise__icon {
  background: rgba(245,158,11,.15);
}

.expertise__card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.expertise__card p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── Services ─────────────────────────────────────────────────── */
.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-300);
  align-items: start;
  transition: background var(--transition);
}
.service__item:first-child { border-top: 1px solid var(--gray-300); }

.service__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gray-300);
  line-height: 1;
  padding-top: 4px;
  transition: color var(--transition);
}
.service__item:hover .service__num { color: var(--amber); }

.service__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service__text {
  color: var(--gray-500);
  font-size: .9375rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service__tags li {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color var(--transition), color var(--transition);
}
.service__item:hover .service__tags li {
  border-color: var(--amber);
  color: var(--navy);
}

/* ── À propos ─────────────────────────────────────────────────── */
.apropos__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.apropos__visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apropos__track {
  position: relative;
  width: 120px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.apropos__track-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--navy), var(--blue), var(--navy));
  transform: translateX(-50%);
  border-radius: 2px;
}
.apropos__sleeper {
  width: 80px;
  height: 8px;
  background: var(--gray-300);
  border-radius: 3px;
  z-index: 1;
  animation: sleeper-fade 1s ease forwards;
  opacity: 0;
}
.apropos__sleeper--1 { animation-delay: .1s; }
.apropos__sleeper--2 { animation-delay: .2s; }
.apropos__sleeper--3 { animation-delay: .3s; }
.apropos__sleeper--4 { animation-delay: .4s; }
.apropos__sleeper--5 { animation-delay: .5s; }
.apropos__sleeper--6 { animation-delay: .6s; }

@keyframes sleeper-fade {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.apropos__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(245,158,11,.3);
  box-shadow: 0 0 40px rgba(245,158,11,.1);
  animation: badge-pulse 4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 40px rgba(245,158,11,.1); }
  50%      { box-shadow: 0 0 60px rgba(245,158,11,.2); }
}

.apropos__content p {
  color: var(--gray-500);
  margin-bottom: 16px;
  font-size: .9375rem;
  line-height: 1.75;
}
.apropos__content p strong { color: var(--navy); }

.apropos__values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-300);
}
.value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
}
.value__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__intro {
  color: rgba(255,255,255,.65);
  font-size: .9375rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact__coords {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__coord {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact__coord-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(245,158,11,.15);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__coord-label {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact__coord-value {
  color: rgba(255,255,255,.8);
  font-size: .9375rem;
  line-height: 1.6;
}
.contact__coord-value a {
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}
.contact__coord-value a:hover { color: var(--amber); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__label {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}
.form__label span { color: var(--amber); }
.form__input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form__input::placeholder { color: rgba(255,255,255,.3); }
.form__input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255,255,255,.09);
}
.form__input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F59E0B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form__select option { background: var(--navy); }
.form__textarea { resize: vertical; min-height: 112px; }
.form__mention {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding-top: 72px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.4);
  margin-top: 16px;
  line-height: 1.6;
}

.footer__links h4,
.footer__contact h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__contact address {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.9;
  color: rgba(255,255,255,.55);
}
.footer__contact a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__contact a:hover { color: var(--amber); }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ── Animations on scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .expertise__grid      { grid-template-columns: repeat(2, 1fr); }
  .footer__inner        { grid-template-columns: repeat(2, 1fr); }
  .apropos__inner       { grid-template-columns: 1fr; }
  .apropos__visual      { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__link { padding: 12px 16px; width: 100%; }
  .nav__burger { display: flex; }

  .stats__grid         { grid-template-columns: repeat(2, 1fr); }
  .expertise__grid     { grid-template-columns: 1fr; }
  .contact__inner      { grid-template-columns: 1fr; }
  .footer__inner       { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom-inner { flex-direction: column; gap: 6px; text-align: center; }

  .service__item { grid-template-columns: 1fr; gap: 8px; }
  .service__num  { font-size: 2rem; }
  .section       { padding: 64px 0; }
  .hero          { min-height: 100svh; }
}

@media (max-width: 480px) {
  .stats__grid    { grid-template-columns: 1fr; }
  .hero__actions  { flex-direction: column; }
  .btn            { width: 100%; justify-content: center; }
  .contact__form  { padding: 24px; }
}
