/* ===== TSIL S.A.S. – Landing ===== */
:root {
  --orange: #f7991c;
  --orange-dark: #d97f08;   /* large text on light backgrounds (≥3:1) */
  --orange-text: #a85d00;   /* small text on light backgrounds (≥4.5:1) */
  --charcoal: #46463f;
  --charcoal-deep: #2f2f2a;
  --gray-bg: #ecebea;
  --text: #2b2b27;
  --muted: #5e5e57;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 40, 35, .12);
  --f-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --f-serif: "Lora", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Shared pieces ---------- */
.hex {
  display: inline-block;
  width: 34px; height: 30px;
  background: var(--orange);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  flex: none;
}
.title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: .95;
  letter-spacing: .5px;
  color: var(--orange-dark);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.title span { color: var(--charcoal); }
.section--dark .title { color: var(--orange); }
.section--dark .title span { color: var(--white); }
.title--center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  font-family: inherit;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--charcoal-deep); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-deep); }
.btn--block { width: 100%; }

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--charcoal); color: #e9e9e4; }
.waves {
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url("assets/texture.webp") center / cover;
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head--light p { color: #cfcfc8; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--orange);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; color: var(--charcoal);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--orange-text); }
.nav__cta { margin-left: 8px; padding: 10px 20px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(25,25,22,.88) 0%, rgba(25,25,22,.6) 45%, rgba(25,25,22,.1) 80%);
}
.hero__content { padding: 80px 0 60px; max-width: 1180px; }
.hero__content > * { max-width: 680px; }
.hero__kicker {
  display: inline-block;
  font-family: var(--f-serif); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .85rem;
  color: var(--orange); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: .95; margin: 0 0 20px; letter-spacing: .5px;
}
.hero__lead { font-size: 1.12rem; color: #ecebe6; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bar {
  background: var(--orange);
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%);
}
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.hero__facts div { display: flex; flex-direction: column; line-height: 1.25; }
.hero__facts strong { font-family: var(--f-display); font-weight: 400; font-size: 2.1rem; letter-spacing: 1px; color: var(--charcoal-deep); }
.hero__facts span { font-size: .88rem; font-weight: 500; color: #3a2a10; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about__text p { font-size: 1.05rem; text-align: justify; hyphens: auto; }
.about__cards { display: grid; gap: 22px; }
.mv {
  background: var(--white); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
  border-left: 6px solid var(--orange);
}
.mv--dark { background: var(--charcoal); color: #ecece6; border-left-color: var(--orange); }
.mv h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; letter-spacing: 1px; margin: 6px 0 6px; color: var(--orange-dark); }
.mv--dark h3 { color: var(--orange); }
.mv p { margin: 0; }
.mv .hex { width: 26px; height: 22px; }

.values { margin-top: 90px; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.value {
  position: relative; background: var(--white); border-radius: 40px; padding: 46px 24px 28px;
  text-align: center; box-shadow: var(--shadow);
}
.value .hex { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 50px; height: 44px; }
.value h3 { font-size: .95rem; letter-spacing: 4px; text-transform: uppercase; color: var(--orange-text); margin: 0 0 10px; }
.value p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Services explorer ---------- */
.explorer {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.explorer__list { background: var(--charcoal); padding: 14px 0; display: flex; flex-direction: column; }
.explorer__list button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px; color: #dcdcd5; font-weight: 500; font-size: .96rem; line-height: 1.3;
  border-left: 5px solid transparent; transition: background .15s, color .15s;
}
.explorer__list button span { font-family: var(--f-display); font-size: 1.4rem; color: var(--orange); min-width: 26px; }
.explorer__list button:hover { background: rgba(255,255,255,.06); color: var(--white); }
.explorer__list button[aria-selected="true"] { background: var(--orange); color: var(--charcoal-deep); border-left-color: var(--charcoal-deep); font-weight: 600; }
.explorer__list button[aria-selected="true"] span { color: var(--charcoal-deep); }
.explorer__list button:focus-visible { outline: 3px solid var(--white); outline-offset: -3px; }

.panel { display: grid; grid-template-rows: 260px auto; }
.panel[hidden] { display: none; }
.panel > img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.panel__body { padding: 8px 36px 36px; }
.panel h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; margin: 0 0 12px; color: var(--charcoal); letter-spacing: .5px; }
.panel__intro { color: var(--muted); margin: 0 0 22px; font-size: 1.02rem; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.items--cols { grid-template-columns: 1fr 1fr; column-gap: 26px; }
.items li { position: relative; padding-left: 28px; font-size: .98rem; }
.items li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 14px; background: var(--orange);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.items strong { color: var(--orange-text); }
.machine-groups { display: grid; gap: 22px; }
.machine-groups h4 {
  display: inline-block; margin: 0 0 10px; padding: 6px 18px; border-radius: 0 999px 999px 0;
  background: var(--orange); color: var(--charcoal-deep); font-family: var(--f-serif); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem;
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--gray-bg); padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

.cta-strip {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--orange); color: var(--charcoal-deep); padding: 24px 34px; border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.cta-strip p { margin: 0; font-family: var(--f-display); font-size: 1.9rem; letter-spacing: .5px; line-height: 1.1; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.project h3 { font-size: 1.08rem; margin: 12px 0 8px; color: var(--charcoal); line-height: 1.3; }
.project p { margin: 0; font-size: .93rem; color: var(--muted); }
.clients { margin: 40px 0; text-align: center; }
.clients p { margin: 0 0 14px; color: var(--muted); font-family: var(--f-serif); font-size: 1.05rem; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.clients li { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 1.5px; color: var(--charcoal); background: var(--white); padding: 8px 24px; border-radius: 8px; box-shadow: var(--shadow); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; grid-auto-flow: dense; }
.gallery__item { all: unset; cursor: zoom-in; border-radius: 10px; overflow: hidden; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.lightbox { position: fixed; inset: 0; background: rgba(20,20,18,.92); z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--white); font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.support article { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px; }
.support h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; letter-spacing: 1px; line-height: 1; margin: 12px 0 10px; color: var(--orange); }
.support p, .support ul { margin: 0; font-size: .94rem; }
.support ul { padding-left: 18px; }
.support li { margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.ccard {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; min-width: 0;
}
a.ccard:hover { transform: translateY(-2px); }
.ccard > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--orange); color: var(--charcoal-deep); flex: none; }
.ccard span { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; min-width: 0; }
.ccard small { font-weight: 500; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.ccard--phone { flex-wrap: wrap; }
.ccard--phone > span { flex: 1; }
.ccard__actions { display: flex; gap: 8px; width: 100%; }
.mini-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 999px; background: var(--charcoal); color: var(--white);
  font-size: .88rem; font-weight: 600; text-decoration: none; transition: background .2s;
}
.mini-btn:hover { background: var(--charcoal-deep); }
.mini-btn--wa { background: #25d366; color: var(--charcoal-deep); }
.mini-btn--wa:hover { background: #1ebe5b; }
.mini-btn svg { width: 16px; height: 16px; }
.contact__person { margin-top: 22px; font-family: var(--f-serif); font-size: 1.1rem; }
.contact__person strong { color: var(--orange-text); }

.quote { background: var(--charcoal); color: var(--white); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; }
.quote h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; letter-spacing: 1px; margin: 0; color: var(--orange); }
.quote > p { margin: 0 0 6px; color: #cfcfc8; font-size: .95rem; }
.quote label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.quote input, .quote select, .quote textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 2px solid transparent;
  background: var(--white); color: var(--text); width: 100%;
}
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--orange); }
.quote textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer__band { background: var(--charcoal-deep); border-top: 6px solid var(--orange); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; flex-wrap: wrap; }
.footer__inner img { height: 52px; width: auto; }
.footer__inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__inner nav a { color: #dcdcd5; text-decoration: none; font-weight: 500; }
.footer__inner nav a:hover { color: var(--orange); }
.footer__legal { padding: 16px 0; font-size: .85rem; color: var(--muted); text-align: center; }
.footer__legal p { margin: 0; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .values__grid, .projects, .support { grid-template-columns: repeat(2, 1fr); }
  .values__grid { row-gap: 44px; }
  .explorer { grid-template-columns: 260px 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 38px; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .menu-toggle span { height: 3px; background: var(--charcoal); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 18px; border-bottom: 4px solid var(--orange);
    box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--gray-bg); border-radius: 0; }
  .nav__cta { margin: 14px 0 0; }

  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__bar { clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%); }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .about__text p { text-align: left; }

  /* Explorer becomes accordion-like: horizontal scrollable tabs */
  .explorer { grid-template-columns: 1fr; }
  .explorer__list { flex-direction: row; overflow-x: auto; padding: 0; scroll-snap-type: x mandatory; }
  .explorer__list button { flex: none; border-left: 0; border-bottom: 4px solid transparent; padding: 14px 18px; scroll-snap-align: start; max-width: 220px; }
  .explorer__list button[aria-selected="true"] { border-bottom-color: var(--white); }
  .panel { grid-template-rows: 200px auto; }
  .panel__body { padding: 4px 20px 26px; }
  .items--cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .values__grid, .projects, .support, .contact__cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .hero__content { padding: 60px 0 40px; }
  .hero__facts strong { font-size: 1.7rem; }
  .hero__actions .btn { width: 100%; }
  .cta-strip { padding: 22px; }
  .cta-strip .btn { width: 100%; }
  .quote { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
