/* =============================================================
   ADNOCTIS — style.css
   Premium corporate one-page website
   Brand: Bleu Nuit / Or Champagne Éteint / Charbon
   ============================================================= */

/* ---- CSS Custom Properties (Brand System) ---- */
:root {
  /* Core palette — from Adnoctis brand guide */
  --color-bg:           #0A1128;   /* Bleu Nuit */
  --color-surface:      #111827;   /* slightly lighter navy surface */
  --color-surface-2:    #1a2236;   /* elevated surface */
  --color-charcoal:     #323031;   /* Charbon */
  --color-gold:         #C5B358;   /* Or Champagne Éteint */
  --color-gold-muted:   #a9994a;   /* gold hover / pressed */
  --color-mist:         #E0E0E0;   /* Gris Brume */
  --color-text-primary: #EDEAE0;   /* warm off-white for legibility on navy */
  --color-text-secondary: #9DA3B4; /* muted secondary text */
  --color-text-tertiary:  #6b7280; /* very muted labels */
  --color-border:       rgba(197, 179, 88, 0.18); /* gold-tinted border */
  --color-border-subtle: rgba(255,255,255,0.07);
  --color-overlay:      rgba(10, 17, 40, 0.72);
  --color-overlay-hero: rgba(8, 14, 35, 0.60);

  /* Typography scale */
  --font-heading:     'Montserrat', sans-serif;
  --font-body:        'Lato', sans-serif;
  --font-mono:        'Roboto Mono', monospace;

  --text-xs:    0.70rem;   /* 11.2px — labels */
  --text-sm:    0.8125rem; /* 13px */
  --text-base:  1rem;      /* 16px */
  --text-md:    1.125rem;  /* 18px */
  --text-lg:    1.375rem;  /* 22px */
  --text-xl:    1.75rem;   /* 28px */
  --text-2xl:   2.25rem;   /* 36px */
  --text-3xl:   3rem;      /* 48px */
  --text-4xl:   3.75rem;   /* 60px */
  --text-5xl:   4.75rem;   /* 76px */

  /* Spacing */
  --space-section: 8rem;
  --space-section-sm: 5rem;
  --container-max: 1200px;
  --container-pad: 2rem;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-hero:   2000ms ease-in-out;

  /* Radius */
  --radius-sm:   2px;
  --radius-base: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* =============================================================
   UTILITY
   ============================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1.15;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
  white-space: nowrap;
}

/* Gold filled button */
.btn-gold {
  background: var(--color-gold);
  color: var(--color-bg);
  border: 1px solid var(--color-gold);
}
.btn-gold:hover {
  background: var(--color-gold-muted);
  border-color: var(--color-gold-muted);
}

/* Outlined button */
.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — applied via JS */
.site-header.scrolled {
  background: rgba(10, 17, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.35rem var(--container-pad);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-text-primary);
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  margin-left: 1rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 0.65rem 1.4rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: flex;
  flex-direction: column;
  background: rgba(10, 17, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem var(--container-pad) 2rem;
  gap: 0;
}
.nav-mobile[hidden] {
  display: none;
}

.nav-mobile-link {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: color var(--transition-fast);
}
.nav-mobile-link:hover {
  color: var(--color-gold);
}

.nav-mobile-cta {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
  font-size: var(--text-xs);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Slide backgrounds */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Elegant navy fallback when images are missing */
  background-color: #0d1830;
  opacity: 0;
  transition: opacity var(--transition-hero);
  transform: scale(1.04);
  /* Subtle Ken Burns — restrained */
  animation: kenburns 18s ease-in-out infinite alternate;
}

.hero-slide--active {
  opacity: 1;
}

@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.05); }
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 14, 35, 0.90) 0%,
    rgba(8, 14, 35, 0.50) 40%,
    rgba(8, 14, 35, 0.30) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 7rem;
}

.hero-content .container {
  position: relative;
}

/* Text slides */
.hero-slides-text {
  position: relative;
  min-height: 320px;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 760px;
}

.hero-text--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 300;
  color: rgba(237, 234, 224, 0.7);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.65;
}

.hero-btn {
  align-self: flex-start;
}

/* Progress dots */
.hero-progress {
  display: flex;
  gap: 8px;
  margin-top: 3.5rem;
}

.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.22);
  border: none;
  padding: 0;
  cursor: default;
  transition: background var(--transition-base), width var(--transition-base);
}

.hero-dot--active {
  width: 48px;
  background: var(--color-gold);
}

/* =============================================================
   SECTIONS — shared
   ============================================================= */
.section {
  padding: var(--space-section) 0;
}

.section-intro {
  margin-bottom: 3.5rem;
}

/* =============================================================
   OVERVIEW
   ============================================================= */
.overview {
  background: var(--color-bg);
}

.overview-body {
  display: grid;
  grid-template-columns: 24px 1fr 1fr;
  gap: 0 4rem;
  align-items: start;
}

.overview-rule {
  width: 1px;
  height: 100%;
  min-height: 80px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  margin-top: 4px;
}

.overview-text {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-primary);
}

.overview-text--secondary {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* =============================================================
   AREAS OF FOCUS
   ============================================================= */
.focus {
  background: var(--color-surface);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
}

.focus-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-slow);
}
.focus-card:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
}

.focus-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.focus-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  /* Elegant navy gradient when image is absent */
  background-color: #141e35;
  position: relative;
  overflow: hidden;
}

.focus-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(17, 24, 39, 0.80));
}

.focus-card-content {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.focus-card-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.focus-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

/* Gold underline on title on hover */
.focus-card:hover .focus-card-title {
  color: var(--color-gold);
  transition: color var(--transition-base);
}

.focus-card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* =============================================================
   APPROACH
   ============================================================= */
.approach {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

/* Subtle decorative background texture */
.approach-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(197, 179, 88, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(10, 17, 40, 0.8) 0%, transparent 80%);
  pointer-events: none;
}

.approach-title-el {
  color: var(--color-text-primary);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border-subtle);
}

.approach-tile {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
  transition: background var(--transition-base);
}
.approach-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      to top,
      rgba(10, 17, 40, 0.82) 0%,
      rgba(10, 17, 40, 0.46) 55%,
      rgba(10, 17, 40, 0.22) 100%
    ),
    var(--tile-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 450ms ease;
}

.approach-tile:hover::before {
  opacity: 0;
}

.approach-tile:hover {
  background: var(--color-surface);
}

.approach-tile-inner {
  position: relative;
  z-index: 1;
  padding: 2.75rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  gap: 0.45rem;
  border-top: 2px solid transparent;
  transition: border-color var(--transition-base);
}
.approach-tile:hover .approach-tile-inner {
  border-top-color: var(--color-gold);
}

.approach-tile-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  line-height: 1.25;
}

.approach-tile-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  min-height: 3.2em;
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-desc {
  margin-top: 1.5rem;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 360px;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-detail-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.04em;
  transition: opacity var(--transition-fast);
}
.contact-detail-link:hover {
  opacity: 0.75;
}

.contact-detail-loc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* ----- Form ----- */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.form-field:focus-within .form-label {
  color: var(--color-gold);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 0.65rem 0;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition-base);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-bottom-color: var(--color-gold);
}

.form-input::placeholder {
  color: transparent;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-error {
  font-size: var(--text-xs);
  color: #e88;
  min-height: 1em;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.form-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Form success state */
.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--color-surface);
}
.form-success[hidden] {
  display: none;
}

.form-success-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-success-icon {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--color-gold);
  display: block;
}

.form-success-text {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--color-charcoal);
  border-top: 1px solid var(--color-border-subtle);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-text-primary);
}

.footer-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  max-width: 380px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.1em;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Large desktop — generous whitespace */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
  .hero-headline {
    font-size: var(--text-5xl);
  }
}

/* Tablet landscape */
@media (max-width: 1100px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-headline {
    font-size: var(--text-3xl);
  }
  .overview-body {
    grid-template-columns: 24px 1fr;
    gap: 0 2.5rem;
  }
  .overview-text--secondary {
    grid-column: 2;
    margin-top: 1.5rem;
  }
}

/* Tablet portrait */
@media (max-width: 860px) {
  :root {
    --space-section: 5.5rem;
  }
  .nav-desktop,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact-desc {
    max-width: none;
  }
  .hero-headline {
    font-size: var(--text-2xl);
  }
  .hero-sub {
    font-size: var(--text-base);
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --container-pad: 1.25rem;
    --space-section: 4rem;
  }
  .hero {
    min-height: 580px;
    align-items: flex-end;
  }
  .hero-content {
    padding-bottom: 5rem;
  }
  .hero-headline {
    font-size: 1.65rem;
    letter-spacing: -0.02em;
  }
  .hero-slides-text {
    min-height: 280px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: var(--text-xl);
  }
  .overview-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .overview-rule {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================
   PRINT (minimal reset)
   ============================================================= */
@media print {
  .site-header,
  .hero-progress { display: none; }
  body { background: #fff; color: #000; }
}
