/* ===================================================
   Mezni Étanchéité — styles
   =================================================== */

:root {
  --navy-900: #0a1a2e;
  --navy-800: #0e2238;
  --navy-700: #163455;
  --navy-600: #1f4570;

  --accent: #ef6c2c;
  --accent-dark: #d4551a;
  --accent-light: #ff8a4d;

  --ink: #16202c;
  --muted: #5b6675;
  --muted-light: #8892a0;

  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e6e9ef;

  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(14, 34, 56, 0.06);
  --shadow-md: 0 12px 30px rgba(14, 34, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 34, 56, 0.18);

  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; color: var(--navy-900); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 1rem; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(239, 108, 44, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(239, 108, 44, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}
.btn-whatsapp:hover { background: #1fb956; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(10, 26, 46, 0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(10, 26, 46, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo-mark {
  width: 40px; height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: inline-flex;
  flex-direction: column;
}
.logo-text em { font-style: normal; font-weight: 500; font-size: 0.62em; color: var(--accent-light); letter-spacing: 0.14em; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; color: var(--accent-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,35,0.75) 0%, rgba(10,20,35,0.55) 45%, rgba(8,16,28,0.92) 100%),
    linear-gradient(100deg, rgba(10,20,35,0.6) 10%, rgba(10,20,35,0.15) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 90px;
  max-width: 780px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(239, 108, 44, 0.14);
  border: 1px solid rgba(239, 108, 44, 0.4);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.86);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-badges li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
}
.hero-badges strong { color: #fff; font-family: var(--font-head); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--accent-light);
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-content .section-lead,
.about-content p { color: var(--muted); margin-bottom: 26px; font-size: 1.02rem; }

.check-list { display: grid; gap: 14px; margin-bottom: 40px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--navy-900); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 8px; max-width: 130px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-media { aspect-ratio: 4/3; overflow: hidden; }
.process-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.process-card:hover .process-media img { transform: scale(1.06); }
.process-num {
  position: absolute;
  top: 16px; left: 16px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.process-card h3 { font-size: 1.02rem; padding: 22px 22px 6px; }
.process-card p { color: var(--muted); font-size: 0.9rem; padding: 0 22px 24px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-900);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute; inset: auto 0 0 0;
  padding: 34px 18px 14px;
  background: linear-gradient(0deg, rgba(9,17,29,0.92), rgba(9,17,29,0));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 70px 0;
  color: #fff;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.78); font-size: 1.02rem; }
.cta-banner-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.contact-list { display: grid; gap: 22px; margin: 34px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: 12px;
  color: var(--accent-dark);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.contact-list a, .contact-list span { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.contact-list a:hover { color: var(--accent-dark); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 20px;
}
.form-row { display: grid; gap: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-2 > div { display: grid; gap: 8px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
input, textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 108, 44, 0.14);
}
textarea { resize: vertical; }
.form-submit { justify-content: center; width: 100%; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--muted-light); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.72); padding-top: 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand p { margin-top: 18px; font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
.logo-footer .logo-text { color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; }
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: 0.94rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col li { font-size: 0.94rem; }

.footer-contact-list { gap: 16px; }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-contact-list svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--accent-light);
}
.footer-contact-list a,
.footer-contact-list span {
  font-size: 0.94rem;
  line-height: 1.4;
  word-break: break-word;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom-inner { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 92px;
  width: 44px; height: 44px;
  background: var(--navy-800);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6, 12, 20, 0.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 900;
  padding: 40px;
  flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(900px, 90vw); max-height: 74vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; margin-top: 18px; font-size: 0.95rem; opacity: 0.85; }
.lightbox-close {
  position: absolute; top: 26px; right: 30px;
  background: transparent; border: none;
  color: #fff; font-size: 2.2rem; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Reveal animation (progressive enhancement only) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .about-media img { aspect-ratio: 16/9; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy-900);
    padding: 110px 32px 40px;
    box-shadow: -20px 0 50px rgba(0,0,0,0.35);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 26px; }
  .main-nav.is-open a { font-size: 1.05rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-content { padding-top: 120px; padding-bottom: 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 26px; }
  .stat-row { gap: 28px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 78px; width: 40px; height: 40px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
