/* =========================================================
   Green Clean Services — static recreation
   Palette: green #58ac35 / leaf #1bb010 · charcoal #454444
            navy #141B4D · text #515151
   ========================================================= */

:root {
  --green: #58ac35;
  --green-dark: #468a2a;
  --green-leaf: #1bb010;
  --green-light: #99ba4a;
  --logo-blue: #387cad;
  --navy: #141b4d;
  --charcoal: #2f2f2f;
  --dark: #252525;
  --gray-700: #515151;
  --gray-500: #6c6c6c;
  --gray-300: #d6d6d6;
  --gray-100: #f4f4f3;
  --white: #ffffff;
  --black: #000000;

  --font-title: "Montserrat", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --max-width: 1200px;
  --header-h: 84px;
  --transition: 220ms ease;
}

/* ---------- Base ---------- */

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

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

html, body { width: 100%; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--dark);
  margin: 0 0 0.5em;
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--green); color: #fff; padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  pointer-events: none;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.header-bar {
  position: relative;
  height: 84px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.header-bar-bg {
  position: absolute;
  inset: 0;
  background: rgba(47, 47, 47, 0.82);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
}
/* When scrolled past hero, fade in a translucent dark bar */
.site-header.is-scrolled .header-bar-bg { opacity: 1; }
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0 28px 0 36px;
  text-decoration: none;
}
/* Brand mark — single PNG, used in the header (white-text variant for the
   dark bar) and in the contact section (full-color variant on light bg). In
   the header it scales up while the bar is still transparent over the hero
   photo (with a soft drop-shadow for legibility) and shrinks back when the
   dark bar fades in. */
.logo {
  display: block;
  height: 56px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.site-header:not(.is-scrolled) .logo {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.site-header .logo {
  transform-origin: left top;
  transform: scale(1.4);
  transition: transform 220ms ease, margin-top 220ms ease;
  margin-top: 20px;
}
.site-header.is-scrolled .logo {
  transform: scale(1);
  margin-top: 4px;
}
.logo-large {
  height: 95px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* preferred on browsers that support dynamic viewport units */
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  display: block;
  margin: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Photo-style vignette: top 55% of the image is untouched, bottom fades
     smoothly to dark so the tagline anchored at the bottom-left reads cleanly. */
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.72) 100%);
}
.hero-content {
  position: absolute;
  left: 0; right: auto;
  bottom: 16%;
  padding: 0 56px;
  text-align: left;
  max-width: 760px;
}
.hero-tagline {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  color: #fff;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: left;
  /* Soft drop shadow only — the bottom vignette does the heavy lifting. */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ---------- Service sections ---------- */

.service {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}
.service:nth-of-type(even) { background: var(--gray-100); }

.service-strip {
  display: block;
  height: 4px;
  background: var(--green);
  width: 100%;
  margin-bottom: 70px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  margin-bottom: 60px;
}

/* Left image: rounded right edge (the "leaf-cutout" shape) */
.service-media {
  position: relative;
  margin-left: -28px;
}
.service-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0 50% 50% 0 / 0 50% 50% 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  background: #ddd;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.service:hover .service-img-wrap img { transform: scale(1.04); }

/* Green tag overlaid on the image's left side */
.service-tag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px 14px 56px;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(88, 172, 53, 0.35);
  white-space: nowrap;
  line-height: 1.2;
}

/* Right text */
.service-text {
  padding-right: 24px;
}
.service-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--dark);
  margin: 0 0 18px;
  line-height: 1.3;
  letter-spacing: 0;
}
.service-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--green);
  margin: 0 0 22px;
}
.contact-rule { margin-bottom: 26px; }
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-list li {
  position: relative;
  padding: 4px 0;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Three thumbnails below the row */
.service-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}
.thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eee;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: zoom-in;
  position: relative;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.thumb:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(0, 0, 0, 0.25); }
.thumb:hover img { transform: scale(1.05); }
.thumb:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
/* Subtle zoom-icon overlay on hover to hint clickability */
.thumb::after {
  content: "+";
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(88, 172, 53, 0.85);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.thumb:hover::after,
.thumb:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

/* Decorative leaf in bottom-right of each service */
.leaf-decoration {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 200px;
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(-12deg);
}
.leaf-right { right: -40px; left: auto; }

/* ---------- Contact ---------- */

.contact {
  background: #fff;
  padding: 100px 0 90px;
  position: relative;
  border-top: 1px solid #eaeaea;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info {
  text-align: center;
}
.contact-info .logo {
  margin: 0 auto 18px;
  align-items: center;
}
.contact-rule {
  margin: 0 auto 24px;
}
.contact-phone {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green);
  margin: 0;
  line-height: 1.3;
}
.contact-phone a { color: var(--green); }
.contact-phone a:hover { color: var(--green-dark); }

.contact-mail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.contact-mail a {
  color: var(--gray-700);
  border-bottom: 1px solid transparent;
}
.contact-mail a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.contact-info > .contact-mail:first-of-type { margin-top: 18px; }

.contact-address {
  margin: 18px 0 26px;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.contact-label {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

/* Form */

.contact-form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a8a8a8;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 172, 53, 0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-error {
  display: none;
  color: #b3261e;
  font-size: 12px;
  margin-top: 4px;
}
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #b3261e;
  background: #fff5f4;
}
.form-field.has-error .form-error { display: block; }

.btn-envoyer {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 14px 36px;
  cursor: pointer;
  justify-self: start;
  margin-top: 4px;
  transition: background var(--transition), transform var(--transition);
}
.btn-envoyer:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  display: block;
}
.lightbox-caption {
  color: #e3e3e3;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: center;
  max-width: 760px;
  min-height: 1.4em;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 300;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: rgba(88, 172, 53, 0.9);
  border-color: var(--green);
  transform: scale(1.06);
  outline: none;
}
.lightbox-close { top: 24px; right: 24px; font-size: 34px; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-prev:focus-visible { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover, .lightbox-next:focus-visible { transform: translateY(-50%) scale(1.06); }

@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox-btn { width: 44px; height: 44px; font-size: 24px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev  { left: 8px; }
  .lightbox-next  { right: 8px; }
}

/* Lock background scroll when lightbox is open */
body.lightbox-open { overflow: hidden; }

/* ---------- Legal / privacy page ---------- */

.legal-page { padding-top: 84px; /* header height so content isn't hidden */ background: #fff; }
.legal {
  padding: 64px 0 96px;
}
.legal-container {
  max-width: 820px;
}
.legal-eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.legal-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.legal-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green);
  margin: 0 0 28px;
}
.legal-intro {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.legal h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--dark);
  margin: 44px 0 14px;
  line-height: 1.35;
}
.legal p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0 0 14px;
}
.legal ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.legal ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 1rem;
  color: var(--gray-700);
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.legal a {
  color: var(--green);
  border-bottom: 1px solid rgba(88, 172, 53, 0.35);
}
.legal a:hover { color: var(--green-dark); border-bottom-color: var(--green-dark); }
.legal-card {
  background: var(--gray-100);
  border-left: 3px solid var(--green);
  padding: 18px 22px;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 6px 0 22px;
}
.legal-card strong { color: var(--dark); font-weight: 600; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 0 !important;
  padding: 12px 24px;
  border: 2px solid var(--green) !important;
  transition: background var(--transition), color var(--transition);
}
.legal-back:hover { background: var(--green); color: #fff !important; }

/* ---------- Footer (dark navy bar) ---------- */

.site-footer {
  background: var(--navy);
  color: #cfd5e0;
}
.footer-bar {
  padding: 18px 28px;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bar p { margin: 0; }
.footer-bar a {
  color: #cfd5e0;
  border-bottom: 1px solid rgba(207, 213, 224, 0.45);
}
.footer-bar a:hover { color: #fff; border-bottom-color: #fff; }
.footer-bar .sep { margin: 0 10px; color: rgba(207, 213, 224, 0.5); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .brand { padding-left: 28px; }
  .site-header .logo { height: 48px; }
  .header-bar-bg {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 60% 70%, 50% 100%, 0 100%);
  }

  .hero { height: 70vh; min-height: 440px; }

  .service-row { grid-template-columns: 1fr; gap: 30px; }
  .service-media { margin-left: 0; }
  .service-img-wrap { border-radius: 0 0 50% 50% / 0 0 12% 12%; aspect-ratio: 16 / 9; }
  .service-tag { left: 0; top: auto; bottom: 16px; transform: none; padding-left: 28px; }
  .service-text { padding-right: 0; padding: 0 28px; }

  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .site-header .logo { height: 40px; }
  .logo-large { height: 78px; }

  .service { padding: 50px 0 40px; }
  .service-strip { margin-bottom: 50px; }
  .service-thumbs { grid-template-columns: 1fr; gap: 16px; }
  .leaf-decoration { width: 130px; }

  .contact { padding: 70px 0 60px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bar { font-size: 0.75rem; padding: 16px 20px; }
  .footer-bar .sep { margin: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
