/* ==========================================================================
   Atelier Orée — Design system premium paysagiste
   Palette organique · typographie élégante · formes douces
   ========================================================================== */

:root {
  /* Palette principale */
  --forest: #1a3c2e;
  --forest-deep: #0f2419;
  --forest-mid: #2d5a45;
  --sage: #8fa88a;
  --sage-light: #b8c9b4;
  --sage-pale: #e4ebe2;
  --sand: #e8dcc8;
  --sand-warm: #d4c4a8;
  --sand-deep: #c4a574;
  --cream: #f7f4ee;
  --cream-pure: #fbf9f5;
  --wood: #8b6b4a;
  --wood-light: #a88968;
  --ink: #1c1c1a;
  --ink-soft: #3d3d38;
  --muted: #6b6b63;
  --white: #ffffff;
  --black: #0a0a0a;

  /* Sémantique */
  --bg: var(--cream);
  --bg-elevated: var(--cream-pure);
  --text: var(--ink);
  --text-muted: var(--muted);
  --primary: var(--forest);
  --primary-hover: var(--forest-mid);
  --accent: var(--sage);
  --border: rgba(26, 60, 46, 0.1);
  --border-strong: rgba(26, 60, 46, 0.18);

  /* Typo */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  /* Rayons organiques */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Ombres douces */
  --shadow-sm: 0 2px 12px rgba(15, 36, 25, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 36, 25, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 36, 25, 0.14);
  --shadow-glow: 0 0 0 1px rgba(143, 168, 138, 0.25);

  /* Layout */
  --container: 1180px;
  --container-wide: 1400px;
  /* Marges latérales partagées header / footer / contenu */
  --gutter: 1.25rem;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: var(--space-md);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sage);
}

/* ---------- Layout ---------- */
/* Coque unique : même largeur max + mêmes marges G/D pour header, footer et pages */
.container {
  box-sizing: border-box;
  width: min(100%, calc(var(--container) + var(--gutter) * 2));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  box-sizing: border-box;
  width: min(100%, calc(var(--container-wide) + var(--gutter) * 2));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header et footer : strictement la même coque (largeur + marges) */
.site-header > .container,
.site-footer .container {
  box-sizing: border-box;
  width: min(100%, calc(var(--container) + var(--gutter) * 2));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--cream {
  background: var(--cream-pure);
}

.section--sage {
  background: linear-gradient(165deg, var(--sage-pale) 0%, var(--cream) 100%);
}

.section--forest {
  background: var(--forest);
  color: var(--cream);
}

.section--forest h2,
.section--forest h3,
.section--forest .eyebrow {
  color: var(--cream);
}

.section--forest .eyebrow {
  color: var(--sage-light);
}

.section--forest .eyebrow::before {
  background: var(--sage);
}

.section--forest p {
  color: rgba(247, 244, 238, 0.78);
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header--center .eyebrow {
  justify-content: center;
}

.section-header--center p {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--forest-mid);
  box-shadow: var(--shadow-md);
  color: var(--cream);
}

.btn--secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 244, 238, 0.55);
}

.btn--secondary:hover {
  background: rgba(247, 244, 238, 0.12);
  border-color: var(--cream);
  color: var(--cream);
}

.btn--outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn--outline:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn--sand {
  background: var(--sand);
  color: var(--forest-deep);
}

.btn--sand:hover {
  background: var(--sand-warm);
  color: var(--forest-deep);
}

.btn--light {
  background: var(--cream);
  color: var(--forest);
}

.btn--light:hover {
  background: var(--white);
  color: var(--forest);
  box-shadow: var(--shadow-md);
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.site-header.is-scrolled .nav-logo-text,
.site-header.is-scrolled .nav-link {
  color: var(--forest-deep);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--forest-mid);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--forest);
}

.site-header.is-scrolled .btn--nav {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.site-header--solid {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.site-header--solid .nav-logo-text,
.site-header--solid .nav-link {
  color: var(--forest-deep);
}

.site-header--solid .nav-link:hover,
.site-header--solid .nav-link.is-active {
  color: var(--forest-mid);
}

.site-header--solid .nav-toggle span {
  background: var(--forest);
}

.site-header--solid .btn--nav {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 110;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--forest-mid), var(--forest));
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-logo-mark svg {
  width: 22px;
  height: 22px;
  color: var(--sage-light);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  line-height: 1;
}

.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(247, 244, 238, 0.88);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
}

.site-header--solid .nav-link:hover,
.site-header--solid .nav-link.is-active,
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  background: var(--sage-pale);
}

.btn--nav {
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 244, 238, 0.45);
}

.btn--nav:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
  transform: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  z-index: 110;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-out) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 36, 25, 0.55) 0%,
      rgba(15, 36, 25, 0.25) 35%,
      rgba(15, 36, 25, 0.55) 70%,
      rgba(15, 36, 25, 0.88) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 20% 80%,
      rgba(26, 60, 46, 0.5) 0%,
      transparent 60%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3.5rem, 10vh, 6.5rem);
  padding-top: calc(var(--header-h) + 2rem);
}

.hero__eyebrow {
  color: var(--sage-light);
}

.hero__eyebrow::before {
  background: var(--sage);
}

.hero h1 {
  color: var(--cream);
  max-width: 14ch;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.hero__text {
  color: rgba(247, 244, 238, 0.85);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 38ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: var(--space-xl);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  max-width: 520px;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.1;
}

.hero__stat span {
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.65);
  letter-spacing: 0.02em;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--forest);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(143, 168, 138, 0.2) 0%,
      transparent 45%
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-2 8-8 14-16 16 8 2 14 8 16 16 2-8 8-14 16-16-8-2-14-8-16-16z' fill='%238fa88a' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(247, 244, 238, 0.75);
  font-size: 1.15rem;
  max-width: 48ch;
}

.page-hero .eyebrow {
  color: var(--sage-light);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(247, 244, 238, 0.55);
  margin-bottom: var(--space-md);
}

.breadcrumb a:hover {
  color: var(--cream);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.about-visual__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual__badge {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--forest);
  color: var(--cream);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 200px;
}

.about-visual__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-visual__badge span {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.4;
}

.about-content .lead {
  margin-bottom: var(--space-md);
}

.about-content p {
  margin-bottom: var(--space-md);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cream-pure);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.about-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.about-feature__icon svg {
  width: 20px;
  height: 20px;
}

.about-feature strong {
  display: block;
  font-size: 0.95rem;
  color: var(--forest-deep);
  margin-bottom: 0.15rem;
}

.about-feature span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Services cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

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

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 1.5rem 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--forest-deep);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* Services page detailed cards */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.service-detail:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}

.service-detail:nth-child(even) .service-detail__media {
  order: 2;
}

.service-detail__media {
  min-height: 320px;
  position: relative;
}

.service-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.service-detail__body {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  background: var(--sage-pale);
  border-radius: var(--radius-full);
  width: fit-content;
  font-size: 0.9rem;
  color: var(--forest);
}

.service-detail__price strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.service-detail h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.service-detail > .service-detail__body > p {
  margin-bottom: 1.25rem;
}

.benefits-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.benefits-list li svg {
  width: 18px;
  height: 18px;
  color: var(--forest-mid);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, 22vw);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 5;
}

.gallery-item:nth-child(3) {
  grid-column: span 5;
}

.gallery-item:nth-child(4) {
  grid-column: span 4;
}

.gallery-item:nth-child(5) {
  grid-column: span 4;
}

.gallery-item:nth-child(6) {
  grid-column: span 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(15, 36, 25, 0.75) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.35rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay span {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Before / After ---------- */
.ba-wrapper {
  max-width: 960px;
  margin-inline: auto;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
}

.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider__after {
  clip-path: inset(0 0 0 50%);
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--cream);
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--forest);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  color: var(--forest);
}

.ba-slider__knob svg {
  width: 22px;
  height: 22px;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--sage-pale);
  border-radius: var(--radius-full);
  color: var(--forest);
}

/* ---------- Process steps ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sage) 10%,
    var(--sage) 90%,
    transparent
  );
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.process-step__num {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--cream-pure);
  border: 1.5px solid var(--sage);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.92rem;
  margin-inline: auto;
}

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

.why-card {
  display: flex;
  gap: 1.15rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}

.why-card__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--sage);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.2rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.testimonial__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--sand-deep);
  margin-bottom: 1rem;
}

.testimonial__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--forest-deep);
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sage), var(--forest-mid));
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial__author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--forest-deep);
}

.testimonial__author span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
  background: var(--forest-deep);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 36, 25, 0.92) 0%,
    rgba(26, 60, 46, 0.75) 55%,
    rgba(15, 36, 25, 0.85) 100%
  );
}

.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(247, 244, 238, 0.8);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  max-width: 42ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ---------- Footer (BLACK full width) ---------- */
.site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.72);
  width: 100%;
}

.footer-main {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand .nav-logo-text {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.footer-social a:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.85rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.15rem;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--forest-deep);
  margin-bottom: 0.4rem;
}

.form-label .req {
  color: var(--wood);
  margin-left: 0.15rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-pure);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 0.9rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(45, 90, 69, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #a0a098;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a3c2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.form-check input {
  margin-top: 0.25rem;
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: var(--sage-pale);
  border-radius: var(--radius-sm);
  color: var(--forest);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid var(--sage);
}

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

/* Quick quote form */
.quote-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.quote-panel h3 {
  margin-bottom: 0.4rem;
}

.quote-panel > p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-info-card {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  height: 100%;
}

.contact-info-card h2 {
  color: var(--cream);
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.contact-info-card > p {
  color: rgba(247, 244, 238, 0.7);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sage-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-item a,
.contact-item span,
.contact-item p {
  color: rgba(247, 244, 238, 0.9);
  font-size: 1rem;
}

.contact-item a:hover {
  color: #fff;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--forest-deep);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-map__fake {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 40% 45%,
      rgba(143, 168, 138, 0.25) 0%,
      transparent 40%
    ),
    linear-gradient(160deg, #1a3c2e 0%, #0f2419 50%, #1c2e24 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.contact-map__pin {
  text-align: center;
  color: var(--cream);
}

.contact-map__pin svg {
  width: 36px;
  height: 36px;
  color: var(--sand-deep);
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

.contact-map__pin span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-form-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.social-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(247, 244, 238, 0.8);
  transition: background var(--transition), border-color var(--transition);
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sage);
  color: #fff;
}

.social-row svg {
  width: 18px;
  height: 18px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

/* ---------- Decorative leaf divider ---------- */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-md) 0;
  color: var(--sage);
}

.leaf-divider::before,
.leaf-divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--sage));
}

.leaf-divider::after {
  background: linear-gradient(90deg, var(--sage), transparent);
}

.leaf-divider svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--forest-deep);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.35rem;
    color: var(--cream) !important;
    padding: 0.85rem 1.25rem;
  }

  .nav-menu .btn--nav {
    margin-top: 1rem;
    background: var(--cream);
    color: var(--forest);
    border-color: var(--cream);
    min-height: 52px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .site-header.is-scrolled .nav-toggle.is-open span,
  .site-header--solid .nav-toggle.is-open span {
    background: var(--cream);
  }

  .about-grid,
  .contact-layout,
  .service-detail,
  .service-detail:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail__media {
    order: 0;
  }

  .service-detail__media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-track {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .process-track::before {
    display: none;
  }

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

  .about-visual__badge {
    right: 1rem;
    bottom: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-2xl: 4rem;
    --space-3xl: 5rem;
    --gutter: 0.75rem;
  }

  .services-grid,
  .testimonials-grid,
  .why-grid,
  .process-track,
  .form-row,
  .footer-grid,
  .about-features {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    gap: 1.25rem;
  }

  .about-visual__main {
    aspect-ratio: 4 / 4.5;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .ba-slider {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
