/* =========================================================
   Eneskay SARL — Brand Stylesheet
   Palette: Blue · Gray · White
   ========================================================= */

:root {
  --blue-900: #0b1e4a;
  --blue-800: #11296b;
  --blue-700: #1e3a8a;
  --blue-600: #1e40af;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-50:  #eff6ff;

  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;

  --white: #ffffff;

  --text: var(--gray-800);
  --muted: var(--gray-500);
  --bg: var(--white);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 12px 32px rgba(30, 58, 138, 0.25);

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container: 1200px;
  --header-h: 76px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

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

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Typography ===== */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--blue-600); }
.eyebrow-light { color: rgba(255, 255, 255, 0.8); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 0 0 22px;
}
.section-title.light { color: var(--white); }

.lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin: 0 0 28px;
  max-width: 60ch;
}

.section-head {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 720px;
}
.section-head .lead { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(30, 58, 138, 0.35);
}

.btn-outline {
  border: 2px solid var(--blue-700);
  color: var(--blue-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue-700);
  color: var(--white);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: color 0.3s;
}
.site-header.scrolled .brand { color: var(--blue-700); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  /* Logo art has a black background; blend so it sits cleanly on either light or dark headers. */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition: filter 0.3s ease;
}
.site-header:not(.scrolled) .brand-logo {
  /* On dark hero, invert blend so the dark plate disappears against dark header */
  mix-blend-mode: screen;
}
.brand-logo-footer {
  mix-blend-mode: screen;
  height: 52px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text-tail {
  align-self: flex-end;
  padding-bottom: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: var(--blue-700);
}
.site-header:not(.scrolled) .brand-sub { color: var(--blue-300); }
.brand-light .brand-sub { color: var(--blue-300); }
.brand-light, .brand-light .brand-name { color: var(--white); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color 0.3s;
}
.nav a:hover { color: var(--white); }
.site-header.scrolled .nav a { color: var(--gray-700); }
.site-header.scrolled .nav a:hover { color: var(--blue-700); }

.nav-cta { display: inline-flex; }

@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.site-header.scrolled .menu-toggle span { background: var(--gray-800); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
}

.mobile-menu {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 24px;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
  display: none;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a { color: var(--gray-800); font-weight: 500; }

@media (max-width: 900px) {
  .mobile-menu:not([hidden]) { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 30, 74, 0.3) 0%, rgba(30, 58, 138, 0.5) 100%),
    radial-gradient(ellipse at top right, var(--blue-600) 0%, var(--blue-900) 60%, var(--gray-900) 100%);
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -10%;
  right: -10%;
  height: 60%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4)),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 80px,
      rgba(255, 255, 255, 0.08) 80px,
      rgba(255, 255, 255, 0.08) 110px);
  transform: perspective(700px) rotateX(58deg);
  transform-origin: bottom;
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 70% 30%, rgba(96, 165, 250, 0.25), transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.hero-title .accent {
  color: var(--blue-300);
  position: relative;
  white-space: nowrap;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-400), transparent);
  border-radius: 2px;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 800px;
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--white);
}
.stat-num::after { content: "+"; color: var(--blue-300); }
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollCue 1.6s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== About ===== */
.section-about { background: var(--white); }

.check-list {
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--gray-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 2px solid var(--blue-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 12px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}

.vision-card {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: var(--white);
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
.vision-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3), transparent 70%);
}
.vision-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 24px;
}
.vision-text {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  color: rgba(255, 255, 255, 0.92);
}
.vision-text em {
  color: var(--blue-300);
  font-style: normal;
  font-weight: 600;
}

/* ===== Services ===== */
.section-services {
  background: var(--gray-50);
  position: relative;
}
.section-services::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.25);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--gray-900);
}
.service-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ===== Projects ===== */
.section-projects { background: var(--white); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 800px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.project-img svg {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img svg { transform: scale(1.05); }

.project-body { padding: 28px; }
.project-body .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--gray-900);
}
.project-body p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.97rem;
}

/* ===== Why Us ===== */
.section-why {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.section-why .container { position: relative; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.35s ease;
  position: relative;
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--blue-400);
  transform: translateY(-4px);
}
.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 14px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--white);
}
.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Contact ===== */
.section-contact { background: var(--gray-50); }

.contact-list { margin: 28px 0 0; display: grid; gap: 22px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-300);
}
.contact-list li strong {
  color: var(--gray-900);
  font-weight: 600;
}
.contact-list li > div { color: var(--gray-600); line-height: 1.6; font-size: 0.97rem; }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-900);
  transition: all 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.form-status {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--blue-700);
  min-height: 1em;
}
.form-status.success { color: #047857; }
.form-status.error { color: #b91c1c; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-tag {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 30ch;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.site-footer ul a:hover { color: var(--blue-300); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
