/* ============================================================
   SOLARMAR ENERGY AND CONSTRUCTION COMPANY
   Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------ */
:root {
  --navy-900: #0a1628;
  --navy-800: #0d1b2a;
  --navy-700: #1b2838;
  --navy-600: #23364a;

  --amber-400: #f4a261;
  --amber-300: #ffd166;
  --amber-500: #e76f51;

  --sand-200: #f8f9fa;
  --sand-300: #eef1f4;
  --sand-400: #e6e9ee;

  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dark: #1c2b3a;
  --text-gray: #5b6b7b;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --font-serif: "Playfair Display", serif;

  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.2);
  --shadow-glow: 0 0 30px rgba(255, 209, 102, 0.35);

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

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

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--sand-200);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
}

section {
  position: relative;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

/* Ayah flourish helpers */
.section-pad {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber-400);
}

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--amber-400);
  margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--solid {
  background: linear-gradient(135deg, var(--amber-300), var(--amber-400));
  color: var(--navy-900);
  box-shadow: var(--shadow-glow);
}

.btn--solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.5);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--text-light);
}

.btn--outline:hover {
  background: var(--text-light);
  color: var(--navy-900);
  transform: translateY(-3px);
}

.btn--dark {
  background: var(--navy-800);
  color: var(--text-light);
}

.btn--dark:hover {
  background: var(--navy-600);
  transform: translateY(-3px);
}

.btn .btn-arrow {
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* ------------------------------------------------------------
   4. Header / Navigation
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.header--scrolled {
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  height: 64px;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand__img {
  height: 38px;
  width: auto;
  flex: 0 0 auto;
  transition: height var(--transition);
}

.header--scrolled .brand__img {
  height: 32px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber-300) 0 6px, var(--amber-400) 6px 12px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--amber-300);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  overflow: hidden;
}

.lang-toggle button {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.lang-toggle button.is-active {
  background: var(--amber-400);
  color: var(--navy-900);
}

.header__cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay — industrial reveal */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  padding-left: clamp(1.6rem, 8vw, 6rem);
  background:
    linear-gradient(150deg, rgba(244, 162, 97, 0.07) 0%, rgba(13, 27, 42, 0) 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 48px),
    var(--navy-900);
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  transition: clip-path 0.72s cubic-bezier(0.77, 0, 0.18, 1), visibility 0.72s;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

/* Top industrial rail */
.mobile-menu::before {
  content: "SOLARMAR \25A0  ENERGY & CONSTRUCTION";
  position: absolute;
  top: 1.6rem;
  left: clamp(1.6rem, 8vw, 6rem);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--amber-300);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

/* Amber diagonal beam that sweeps open */
.mobile-menu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber-300), var(--amber-400));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.72s cubic-bezier(0.77, 0, 0.18, 1) 0.12s;
}

.mobile-menu.is-open::before {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open::after {
  transform: scaleY(1);
}

.mobile-menu a {
  position: relative;
  padding: 0.22rem 0 0.22rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.6vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(34px) skewX(-8deg);
  transition: color 0.25s ease, opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Sheet-metal marker */
.mobile-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--amber-300);
  transform: translateY(-50%) scale(0) rotate(45deg);
  transition: transform 0.3s ease 0.15s;
}

.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 16vw;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-300), rgba(244, 162, 97, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0) skewX(0);
}

.mobile-menu.is-open a::before {
  transform: translateY(-50%) scale(1) rotate(45deg);
}

.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.16s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.28s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.4s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.46s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 0.52s; }

.mobile-menu.is-open a:nth-child(1)::before { transition-delay: 0.3s; }
.mobile-menu.is-open a:nth-child(2)::before { transition-delay: 0.36s; }
.mobile-menu.is-open a:nth-child(3)::before { transition-delay: 0.42s; }
.mobile-menu.is-open a:nth-child(4)::before { transition-delay: 0.48s; }
.mobile-menu.is-open a:nth-child(5)::before { transition-delay: 0.54s; }
.mobile-menu.is-open a:nth-child(6)::before { transition-delay: 0.6s; }
.mobile-menu.is-open a:nth-child(7)::before { transition-delay: 0.66s; }

.mobile-menu.is-open a:nth-child(1)::after { transition-delay: 0.34s; }
.mobile-menu.is-open a:nth-child(2)::after { transition-delay: 0.4s; }
.mobile-menu.is-open a:nth-child(3)::after { transition-delay: 0.46s; }
.mobile-menu.is-open a:nth-child(4)::after { transition-delay: 0.52s; }
.mobile-menu.is-open a:nth-child(5)::after { transition-delay: 0.58s; }
.mobile-menu.is-open a:nth-child(6)::after { transition-delay: 0.64s; }
.mobile-menu.is-open a:nth-child(7)::after { transition-delay: 0.7s; }

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--amber-300);
}

.mobile-menu a:hover::after {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 22, 40, 0.72) 0%,
    rgba(13, 27, 42, 0.62) 45%,
    rgba(10, 22, 40, 0.85) 100%);
}

.hero__rays {
  position: absolute;
  top: -18%;
  right: -14%;
  width: 720px;
  height: 720px;
  pointer-events: none;
  background: repeating-conic-gradient(
    rgba(255, 209, 102, 0.09) 0deg 9deg,
    rgba(255, 209, 102, 0) 9deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 32%, #000 33%, #000 100%);
  mask-image: radial-gradient(circle, transparent 32%, #000 33%, #000 100%);
  animation: sunSpin 26s linear infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  max-width: 820px;
}

.hero__pipeline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
  margin-bottom: 1.6rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 0;
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: blur(6px);
}

.hero__pipeline span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-300);
}

.hero__pipeline span:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-400);
  margin-left: 1.1rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 1.3rem;
}

.hero__title .title-accent {
  background: linear-gradient(100deg, var(--amber-300), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ------------------------------------------------------------
   6. About Section
   ------------------------------------------------------------ */
.about {
  background: var(--text-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}

.about__media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about__media:hover .about__media-main img {
  transform: scale(1.05);
}

.about__media-float {
  position: absolute;
  bottom: -2.2rem;
  left: -2rem;
  background: var(--navy-800);
  color: var(--text-light);
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-width: 210px;
}

.about__media-float .numb {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--amber-300);
  line-height: 1;
}

.about__media-float .lbl {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.about__text .section-title {
  margin-bottom: 1.4rem;
}

.about__text p {
  color: var(--text-gray);
  margin-bottom: 1.1rem;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}

.about__value {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--sand-200);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--amber-400);
  transition: var(--transition);
}

.about__value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about__value svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--amber-400);
}

.about__value h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.about__value p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin: 0;
}

/* Stats counters band */
.stats {
  background: var(--navy-800);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.stats__item {
  text-align: center;
  padding: 0.8rem 0.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stats__item:last-child {
  border-right: none;
}

.stats__item .stat-numb {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--amber-300);
  line-height: 1;
}

.stats__item .stat-numb span {
  font-size: 0.6em;
  vertical-align: super;
}

.stats__item .stat-lbl {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   7. Services
   ------------------------------------------------------------ */
.services {
  background: var(--sand-200);
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(13, 27, 42, 0.06) 1.2px, transparent 1.2px),
    radial-gradient(rgba(244, 162, 97, 0.08) 1.2px, transparent 1.2px);
  background-size: 42px 42px;
  background-position: 0 0, 21px 21px;
}

.services__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services__header .section-label {
  justify-content: center;
}

.services__header .section-label::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber-400);
}

.services__header .section-title {
  color: var(--navy-800);
}

.services__header p {
  color: var(--text-gray);
  max-width: 560px;
  margin: 0.3rem auto 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--amber-400);
}

.service-card__icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(244, 162, 97, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--amber-300), var(--amber-400));
  box-shadow: var(--shadow-glow);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--amber-400);
  transition: var(--transition);
}

.service-card:hover .service-card__icon svg {
  color: var(--navy-900);
}

.service-card__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(13, 27, 42, 0.35);
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--navy-800);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
}

.service-card__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.service-card__link:hover {
  gap: 0.7rem;
}

/* ------------------------------------------------------------
   8. Why Choose Us (Parallax dark band)
   ------------------------------------------------------------ */
.why {
  color: var(--text-light);
  background: var(--navy-800);
  overflow: hidden;
}

.why__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero/morocco-solar-hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  background-attachment: fixed;
}

.why__inner {
  position: relative;
  z-index: 1;
}

.why__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label--dark { color: var(--amber-300); }
.section-label--dark::before { background: var(--amber-300); }

.why__header .section-label--dark::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber-300);
}

.why__values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.why-value {
  text-align: center;
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.why-value:hover {
  background: rgba(244, 162, 97, 0.12);
  border-color: rgba(255, 209, 102, 0.45);
  transform: translateY(-6px);
}

.why-value__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-400));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.3);
}

.why-value__icon svg {
  width: 30px;
  height: 30px;
  color: var(--navy-900);
}

.why-value h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.why-value p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   9. Gallery (base)
   ------------------------------------------------------------ */
.gallery {
  background: var(--text-light);
}

.gallery__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid rgba(13, 27, 42, 0.18);
  color: var(--text-gray);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--amber-400);
  color: var(--amber-500);
}

.filter-btn.is-active {
  background: var(--navy-800);
  color: var(--text-light);
  border-color: var(--navy-800);
}

/* ------------------------------------------------------------
   10. Blog
   ------------------------------------------------------------ */
.blog {
  background: var(--sand-200);
}

.blog__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.blog__header .section-label {
  justify-content: center;
}

.blog__header .section-label::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber-400);
}

.blog__header .section-title { color: var(--navy-800); }

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.blog-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.08);
}

.blog-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  background: var(--navy-900);
  color: var(--amber-300);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
}

.blog-card__body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 0.7rem;
}

.blog-card__meta span::before {
  content: "•";
  margin-right: 0.8rem;
  color: var(--amber-400);
}

.blog-card h3 {
  font-size: 1.12rem;
  color: var(--navy-800);
  margin-bottom: 0.6rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  flex: 1;
}

.blog-card__link {
  margin-top: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.blog-card__link:hover { gap: 0.7rem; }

/* ------------------------------------------------------------
   11. FAQ
   ------------------------------------------------------------ */
.faq {
  background: var(--text-light);
}

.faq__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq__intro .section-title {
  color: var(--navy-800);
  margin-bottom: 1.2rem;
}

.faq__intro p {
  color: var(--text-gray);
  margin-bottom: 1.6rem;
}

.faq__contact-card {
  background: var(--sand-200);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--sand-400);
}

.faq__contact-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq__contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-500);
  font-weight: 600;
  margin-top: 0.3rem;
  transition: color var(--transition);
}

.faq__contact-card a:hover { color: var(--navy-800); }

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--sand-200);
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-400);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.is-active {
  background: var(--text-light);
  border-color: var(--amber-400);
  box-shadow: var(--shadow-md);
}

.accordion-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  text-align: left;
}

.accordion-item__head h3 {
  font-size: 1.05rem;
  color: var(--navy-800);
}

.accordion-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--amber-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.accordion-item.is-active .accordion-item__icon {
  background: linear-gradient(135deg, var(--amber-300), var(--amber-400));
  color: var(--navy-900);
  transform: rotate(45deg);
}

.accordion-item__icon::before,
.accordion-item__icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.accordion-item__icon::after { transform: rotate(90deg); }

.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-item__body p {
  padding: 0 1.6rem 1.5rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   12. Contact
   ------------------------------------------------------------ */
.contact {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--text-light);
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.contact__header .section-title { margin-bottom: 1.2rem; }

.contact__header p {
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 480px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}

.contact__item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact__item-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-300);
}

.contact__item-icon svg { width: 22px; height: 22px; }

.contact__item h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact__item a, .contact__item span {
  font-weight: 600;
  color: var(--text-light);
}

.contact__item a:hover { color: var(--amber-300); }

.contact__map {
  margin-top: 0.4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  filter: grayscale(0.4) brightness(0.92);
}

.contact__map iframe {
  width: 100%;
  height: 230px;
  border: 0;
  display: block;
}

/* Contact form card */
.contact-form {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--navy-800);
}

.contact-form > p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

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

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

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--sand-400);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--sand-200);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.15);
  background: var(--text-light);
}

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

.contact-form .btn { width: 100%; margin-top: 0.4rem; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(46, 160, 67, 0.1);
  border: 1px solid rgba(46, 160, 67, 0.3);
  color: #1e7a3c;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.is-visible { display: flex; }

.form-error {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 83, 79, 0.1);
  border: 1px solid rgba(217, 83, 79, 0.35);
  color: #b02818;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-error.is-visible { display: block; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--navy-900);
  color: var(--text-light);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

.footer__brand .brand__img { height: 52px; }

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 1.1rem 0 0;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 1.4rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__links a {
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
  color: var(--amber-300);
  padding-left: 6px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer__contact-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer__contact-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--amber-400);
  margin-top: 2px;
}

.footer__contact-list a:hover { color: var(--amber-300); }

.footer__newsletter {
  margin-top: 1.6rem;
}

.footer__newsletter form {
  display: flex;
  margin-top: 0.8rem;
}

.footer__newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer__newsletter input::placeholder { color: rgba(255, 255, 255, 0.4); }

.footer__newsletter input:focus { outline: none; border-color: var(--amber-400); }

.footer__newsletter button {
  padding: 0.75rem 1.4rem;
  border-radius: 0;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-400));
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.footer__newsletter button:hover { filter: brightness(1.08); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__flag {
  display: none;
}

/* ------------------------------------------------------------
   14. Reveal animations (AOS-ish fallback)
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"] { transform: scale(0.9); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Delay helpers */
.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }
.reveal-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   15. Language toggle behavior
   Exactly one language visible — container display rules can NOT
   override the hidden language (spec 0-2-2 > e.g. .hero__title span 0-1-1).
   ------------------------------------------------------------ */
[data-fr] { display: none; }

html body.lang-en [data-fr] { display: none; }
html body.lang-en [data-en] { display: revert; }
html body.lang-fr [data-en] { display: none; }
html body.lang-fr [data-fr] { display: revert; }

/* ------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1150px) {
  .nav__list,
  .header__cta { display: none; }

  .hamburger { display: flex; }
}

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media-float { left: 1rem; }

  .blog__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .faq__layout { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3), .stats__item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .why__values { grid-template-columns: 1fr; }

  .about__values { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .hero__pipeline span:not(:last-child)::after { display: none; }

  .header__cta { display: none; }

  .gallery__header { flex-direction: column; align-items: flex-start; }

  .brand__img { height: 30px; }
  .header--scrolled .brand__img { height: 28px; }
}

@media (max-width: 768px) {
  .why__bg { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__rays { animation: none; }
}