/* SIA Maintenance ' industrial, grounded, professional */
:root {
  --bg: #e8e4dc;
  --bg-deep: #0f1a22;
  --ink: #132029;
  --ink-soft: #3d4f5c;
  --paper: #f3f0e8;
  --line: rgba(19, 32, 41, 0.14);
  --accent: #c45c26;
  --accent-hover: #a6491a;
  --steel: #2f5f73;
  --header-h: 5.25rem;
  --max: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 95, 115, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, #ddd8ce 0%, var(--bg) 40%, #d5d0c6 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bg-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  overflow: visible;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(15, 26, 34, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 100%;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}

.brand:hover { color: #fff; }

.brand-logo {
  display: block;
  height: 4.1rem;
  width: auto;
  max-width: min(72vw, 15rem);
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.footer-logo {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  opacity: 0.95;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: #fff;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  margin: 0.35rem 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 34, 0.35) 0%, rgba(15, 26, 34, 0.55) 45%, rgba(15, 26, 34, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 26, 34, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.hero-title,
h1.hero-title {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.8vw, 3.1rem) !important;
  line-height: 1.12;
  max-width: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.hero-title span {
  display: inline;
}

.hero-lead {
  max-width: 40rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-lead span {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@keyframes hero-zoom {
  to { transform: scale(1); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  color: var(--steel);
  font-weight: 500;
}

/* Sections shared */
.section-head {
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

.section-head p { margin: 0; }

.services-preview,
.about,
.president,
.services,
.works,
.quote,
.contact {
  padding: 5.5rem 0;
}

.services-preview {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(19, 32, 41, 0.025) 12px,
      rgba(19, 32, 41, 0.025) 13px
    ),
    var(--paper);
  border-block: 1px solid var(--line);
}

.preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.preview-list li {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-top: 3px solid var(--accent);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  padding: 1.35rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.preview-list li img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.preview-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 32, 41, 0.05) 35%,
    rgba(19, 32, 41, 0.85) 100%
  );
}

.preview-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(19, 32, 41, 0.25);
}

.preview-list li:hover img {
  transform: scale(1.05);
}

.preview-list span {
  position: relative;
  z-index: 1;
  display: block;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-panel {
  background: var(--bg-deep);
  color: #fff;
  padding: 2rem;
}

.about-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.about-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.about-panel span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Services */
.services {
  background: #ddd8ce;
}

.services-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) 1.3fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row p {
  margin: 0;
  align-self: center;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-deep);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s;
  opacity: 0.92;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(15, 26, 34, 0.9));
  color: #fff;
}

.gallery-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.works-videos {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.works-video h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.35rem;
}

.works-video p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
}

.works-video-frame {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 34rem;
  margin-inline: auto;
  width: min(100%, 22rem);
}

.works-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.works-more {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.works-more-toggle {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.works-more-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.works-more-panel {
  width: 100%;
  display: grid;
  gap: 1.5rem;
}

.works-more-panel[hidden] {
  display: none;
}

.works-photos {
  display: grid;
  grid-template-columns: minmax(0, 28rem);
  justify-content: center;
  gap: 1.25rem;
}

.works-photos .gallery-item {
  width: 100%;
}

.works-photos .gallery-item img {
  aspect-ratio: 3 / 4;
}

@media (max-width: 760px) {
  .works-videos {
    grid-template-columns: 1fr;
  }

  .works-video-frame {
    max-height: 28rem;
  }
}


/* Quote / forms */
.quote {
  background: var(--bg-deep);
  color: #fff;
}

.quote h2,
.quote .quote-intro p {
  color: #fff;
}

.quote .quote-intro p {
  color: rgba(255, 255, 255, 0.75);
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

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

.form label {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.optional {
  opacity: 0.6;
  font-weight: 400;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 26, 34, 0.45);
  color: #fff;
  padding: 0.75rem 0.85rem;
  font: inherit;
  border-radius: 0;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form select option {
  color: var(--ink);
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f7a4d;
}

.form-status.is-error {
  color: #c0392b;
}

/* Dark sections (devis) keep lighter tones for contrast */
.quote .form-status {
  color: #9fd4b0;
}

.quote .form-status.is-error {
  color: #f0a090;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.contact-info dl {
  margin: 0 0 2rem;
  display: grid;
  gap: 1.25rem;
}

.contact-info dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-info dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.form-compact {
  background: var(--paper);
  border: 1px solid var(--line);
}

.form-compact h3 {
  margin-bottom: 0.25rem;
}

.form-compact label {
  color: var(--ink);
}

.form-compact input,
.form-compact textarea {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.contact .form-compact .form-status {
  color: #1f7a4d;
}

.contact .form-compact .form-status.is-error {
  color: #c0392b;
}

.map-wrap {
  min-height: 420px;
  border: 1px solid var(--line);
  background: #c9c4b8;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* Footer */
.site-footer {
  background: #0a1218;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  max-width: 16rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover { color: #fff; }

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Legal page */
.legal {
  padding: 8rem 0 4rem;
  min-height: 70vh;
}

.legal-lead {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.legal section {
  margin-bottom: 2rem;
  max-width: 40rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 18, 24, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1000px);
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .preview-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .president-grid,
  .quote-grid,
  .contact-grid,
  .service-row,
  .activity-scope {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 26, 34, 0.97);
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open,
  .site-nav.is-visible {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a::after { display: none; }

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

  .preview-list { grid-template-columns: repeat(2, 1fr); }

  .hero-content { padding-bottom: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-media img { animation: none; transform: none; }
  .gallery-item img { transition: none; }
}


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

/* President */
.president {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.president-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 3rem;
  align-items: start;
}

.president-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.president-panel {
  background: var(--bg-deep);
  color: #fff;
  padding: 2rem;
}

.president-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.president-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.president-panel li {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.president-panel strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Activities */
.activities-list {
  display: grid;
  gap: 1.5rem;
}

.activity-card {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.activity-card:last-child {
  border-bottom: 1px solid var(--line);
}

.activity-card h3 {
  max-width: 28ch;
  margin-bottom: 0.85rem;
}

.activity-card p {
  max-width: 48rem;
}

.activity-label {
  margin: 1.1rem 0 0.45rem;
  color: var(--ink);
  font-weight: 600;
}

.activity-card ul {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-width: 42rem;
}

.activity-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.activity-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

.activity-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.25rem;
}

.activity-goal {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}


.address-block {
  line-height: 1.55;
}

.address-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-style: italic;
}

.btn-directions {
  display: inline-flex;
  margin-top: 0.9rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

.btn-directions:hover {
  background: var(--accent-hover);
  color: #fff;
}
