/* ==========================================================================
   Atelier Ess — main stylesheet
   Shared across /en/, /fr/, /de/ and every future page.
   Design tokens live in :root — update colors/fonts there, not inline.
   ========================================================================== */

:root {
  /* ---- Brand palette ----
     Official hex values from Guidedemarque-atelieress.pdf (section 05, Colorimétrie). */
  --color-slate: #8f98a1;       /* Rainy — primary section background.
     White text on this background measures ~2.9:1, below WCAG AA — kept as-is
     deliberately to preserve the exact official brand hex (2026 pre-launch audit). */
  --color-slate-dark: #767f88;  /* hover / pressed state (darkened Rainy) */
  --color-slate-deep: #565e66;  /* footer-adjacent shadow tone (darkened Rainy) */
  --color-cloud: #d5caca;
  --color-solcream: #f0dcc5;
  --color-cash: #f6ebe3;
  --color-brandy: #bb8f8b;
  --color-darksage: #818751;
  --color-ink: #1d1d1b;         /* Noir */
  --color-white: #ffffff;
  --color-overlay-light: rgba(29, 29, 27, 0.18);
  --color-overlay-strong: rgba(29, 29, 27, 0.45);

  /* ---- Typography ----
     Fraunces stands in for Bogart / Winchester New ITC (both licensed
     commercial fonts) until you send over the purchased font files —
     it shares their warm, high-contrast display-serif character.
     Montserrat is the body/nav workhorse per your brief.
     Replace either by editing fonts.css and the two stacks below —
     nothing else in the file needs to change. */
  --font-serif: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Spacing / layout ---- */
  --container-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  --section-pad-y: clamp(4rem, 9vw, 8rem);
  --nav-h: 92px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */

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

* {
  margin: 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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-white);
  background: var(--color-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.15;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 1000;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}

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

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                         */
/* ---------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.85em 1.6em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-white);
  color: var(--color-ink);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------------------------------------------------------------------- */
/* Site header / nav                                                      */
/* ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: var(--color-slate);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-primary {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.nav-primary a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.nav-primary a:hover::after,
.nav-primary a:focus-visible::after,
.nav-primary a[aria-current="page"]::after {
  right: 0;
}

.brand-mark {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
}

.brand-mark img {
  height: 46px;
  width: auto;
}

.nav-secondary {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}

.icon-link:hover,
.icon-link:focus-visible {
  opacity: 1;
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  gap: 0.3rem;
}

.lang-switch-toggle svg {
  width: 20px;
  height: 20px;
}

.lang-switch-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
  border-radius: 50%;
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--color-white);
  border-radius: 0.75rem;
  padding: 0.4rem;
  min-width: 9rem;
  box-shadow: 0 12px 32px rgba(20, 22, 25, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.lang-switch.is-open .lang-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
}

.lang-switch-menu a:hover,
.lang-switch-menu a:focus-visible {
  background: rgba(35, 38, 42, 0.06);
}

.lang-switch-menu a[aria-current="true"] {
  color: var(--color-slate-dark);
  font-weight: 700;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
  border-radius: 50%;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-slate);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 22, 25, 0.05) 0%, rgba(20, 22, 25, 0.05) 55%, rgba(20, 22, 25, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}

.hero-wordmark {
  width: min(720px, 82vw);
  margin-inline: auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.18));
}

/* ---------------------------------------------------------------------- */
/* About / intro section                                                  */
/* ---------------------------------------------------------------------- */

.about {
  padding-block: var(--section-pad-y);
}

.about .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-visual {
  text-align: right;
}

.about-visual img {
  width: min(280px, 100%);
  height: auto;
  margin-left: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.about-visual h2 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.75rem, 6.2vw, 4.25rem);
  line-height: 1.1;
}

.about-copy p {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 300;
  opacity: 0.95;
}

.about-copy p + p {
  margin-top: 1.4em;
}

/* ---------------------------------------------------------------------- */
/* Services section                                                       */
/* ---------------------------------------------------------------------- */

.services {
  position: relative;
  background: var(--color-slate-deep);
}

.services-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 22, 25, 0.55) 0%, rgba(20, 22, 25, 0.35) 32%, rgba(20, 22, 25, 0.05) 60%);
}

.services-content {
  position: relative;
  z-index: 1;
  padding-block: var(--section-pad-y);
}

.services-grid {
  display: flex;
  flex-direction: column;
  max-width: 34rem;
}

.service-intro .section-label {
  margin-bottom: 1.25rem;
}

.service-item {
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.service-intro .service-item {
  border-top: 0;
  padding-top: 0;
}

.service-item h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.service-item p {
  font-size: 1.0625rem;
  font-weight: 300;
  max-width: 34ch;
  opacity: 0.92;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.services-badge {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.75rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  z-index: 1;
  width: clamp(96px, 9vw, 128px);
}

/* ---------------------------------------------------------------------- */
/* Process section                                                        */
/* ---------------------------------------------------------------------- */

.process {
  padding-block: var(--section-pad-y);
}

.process .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.process-media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 648 / 654;
}

.process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.process-media-caption {
  position: absolute;
  inset: clamp(1.25rem, 3vw, 2rem);
  max-width: 92%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(20, 22, 25, 0.45);
}

html[lang="fr"] .process-media-caption {
  max-width: 84%;
  font-size: clamp(2.3rem, 4.1vw, 3.15rem);
  line-height: 1.2;
}

html[lang="de"] .process-media-caption {
  max-width: 86%;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.2vw, 2rem);
  text-align: center;
}

.process-step h3 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.625rem, 3vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 1.0625rem;
  font-weight: 300;
  max-width: 40ch;
  margin-inline: auto;
  opacity: 0.92;
}

/* ---------------------------------------------------------------------- */
/* Page hero (simple centered intro — About / Services / Contact)         */
/* ---------------------------------------------------------------------- */

.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 7.5vw, 4.75rem);
  line-height: 1.05;
}

.page-hero h1 em {
  font-style: italic;
}

.page-hero .page-hero-subtitle {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Photo variant — Services / Contact hero with full-bleed background image */
.page-hero--photo {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding-block: 0;
  overflow: hidden;
}

.page-hero--photo .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

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

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(29, 29, 27, 0.1) 0%, rgba(29, 29, 27, 0.15) 55%, rgba(29, 29, 27, 0.55) 100%);
}

.page-hero--photo h1 {
  font-size: clamp(4rem, 9vw, 6rem);
}

.page-hero--photo h1 em {
  font-style: normal;
}

/* ---------------------------------------------------------------------- */
/* Intro text block — bold lead line + paragraphs (Services intro)        */
/* ---------------------------------------------------------------------- */

.intro-text {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.intro-text p {
  font-size: 1.1875rem;
  font-weight: 300;
  text-align: justify;
  text-align-last: left;
}

.intro-text p.lead {
  font-weight: 700;
  font-size: 1.3125rem;
}

.intro-text p + p {
  margin-top: 1.1em;
}

/* ---------------------------------------------------------------------- */
/* Accordion — Services list                                              */
/* ---------------------------------------------------------------------- */

.accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.accordion-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
  padding-right: clamp(2.5rem, 6vw, 3.5rem);
  text-align: left;
  cursor: pointer;
}

.accordion-trigger h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 3.2vw, 2.1rem);
}

.accordion-chevron {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.accordion-item.is-open .accordion-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  transition: grid-template-rows 0.35s var(--ease);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: minmax(0, 1fr);
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.accordion-item.is-open .accordion-panel-inner {
  padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.accordion-panel p {
  max-width: 62rem;
  font-size: 1.0625rem;
  font-weight: 300;
  opacity: 0.95;
}

.accordion-panel p + p {
  margin-top: 1em;
}

.accordion-includes-label {
  margin-top: 1.25em;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.accordion-includes {
  max-width: 62rem;
  margin-top: 0.6em;
  padding-left: 1.15rem;
}

.accordion-includes li {
  list-style: disc;
  font-size: 1.0625rem;
  font-weight: 300;
  opacity: 0.95;
}

.accordion-includes li + li {
  margin-top: 0.4em;
}

/* ---------------------------------------------------------------------- */
/* Process list — centered numbered steps (Services page)                 */
/* ---------------------------------------------------------------------- */

.process-list {
  padding-block: var(--section-pad-y);
  text-align: center;
}

.process-list h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 2.5rem;
}

.process-list-sprig {
  width: clamp(90px, 10vw, 130px);
  height: auto;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  opacity: 0.9;
}

.process-list-steps {
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.process-list-step h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3125rem;
  margin-bottom: 0.6rem;
}

.process-list-step p {
  font-size: 1.0625rem;
  font-weight: 300;
  opacity: 0.95;
}

/* ---------------------------------------------------------------------- */
/* Feature block — alternating photo + copy (About-page bio / Alps)       */
/* ---------------------------------------------------------------------- */

.feature {
  padding-block: var(--section-pad-y);
}

.feature .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.feature--reverse .container {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.feature--reverse .feature-media {
  order: 1;
}

.feature--reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.feature-copy p {
  font-size: 1.0625rem;
  font-weight: 300;
  opacity: 0.95;
}

.feature-copy p + p {
  margin-top: 1.1em;
}

.feature-icon {
  width: 44px;
  height: auto;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

/* Framed photo: arch-topped, inset on all sides within a floral pattern panel */
.feature-media--framed {
  position: relative;
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9% 17%;
  background-image: url("../images/pattern-fleur.svg");
  background-repeat: repeat;
  background-size: 220px auto;
  background-position: center;
  border-radius: 2px;
  overflow: hidden;
}

.feature-media--framed img {
  width: 100%;
  height: 88%;
  object-fit: cover;
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
  box-shadow: 0 20px 50px rgba(20, 22, 25, 0.25);
}

/* Arch photo: rounded top corners, deer motif overlapping the base */
.feature-media--arch {
  position: relative;
}

.feature-media--arch .arch-frame {
  aspect-ratio: 4 / 5;
  border-radius: 40% 40% 0 0 / 22% 22% 0 0;
  overflow: hidden;
}

.feature-media--arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-pending {
  width: 76%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: var(--color-slate-deep);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-media--arch .photo-pending {
  width: 100%;
}

.feature-media--arch .icon-deer {
  position: absolute;
  left: -6%;
  bottom: -10%;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(20, 22, 25, 0.3));
}

/* ---------------------------------------------------------------------- */
/* Statement block — centered icon + heading + copy (Culture / Approach)  */
/* ---------------------------------------------------------------------- */

.statement {
  position: relative;
  padding-block: var(--section-pad-y);
  text-align: center;
}

/* When two content sections sit back-to-back with no visual divider between
   them, their stacked top+bottom padding reads as one big awkward gap —
   trim the second section's top padding so the rhythm stays tight. */
.feature + .statement,
.feature--reverse + .statement,
.statement + .feature,
.statement + .feature--reverse {
  padding-top: calc(var(--section-pad-y) * 0.42);
}

.feature:has(+ .statement),
.feature--reverse:has(+ .statement) {
  padding-bottom: calc(var(--section-pad-y) * 0.75);
}

.statement:has(+ .feature),
.statement:has(+ .feature--reverse) {
  padding-bottom: calc(var(--section-pad-y) * 0.68);
}

/* The hero is already vertically centered in its own box — if the section
   right after it adds a big top padding before any visible content, the
   hero reads as sitting too high relative to the whole gray expanse. */
.page-hero + .feature {
  padding-top: calc(var(--section-pad-y) * 0.2);
}

.statement .container {
  position: relative;
  max-width: 52rem;
}

.statement-icon {
  width: 72px;
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.statement h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.8vw, 2.05rem);
  margin-bottom: 1.5rem;
}

.statement p {
  font-size: 1.0625rem;
  font-weight: 300;
  opacity: 0.95;
}

.statement p.statement-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  opacity: 1;
  width: max-content;
  max-width: min(90vw, 60rem);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.statement p + p {
  margin-top: 1.1em;
}

.statement-decor {
  position: absolute;
  width: clamp(64px, 7vw, 96px);
  height: auto;
  opacity: 0.95;
}

.statement-decor--top-right {
  top: -3.5rem;
  right: -7.5rem;
  width: clamp(48px, 5.2vw, 72px);
  transform: rotate(-8deg);
}

.statement-decor--bottom-left {
  position: static;
  width: clamp(72px, 8vw, 108px);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  transform: rotate(9deg);
}

@media (max-width: 900px) {
  .page-hero {
    min-height: 0;
    padding-block: 9.4rem 2.9rem;
  }

  .feature .container,
  .feature--reverse .container {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature-media,
  .feature--reverse .feature-copy {
    order: initial;
  }

  .feature-media--framed {
    aspect-ratio: 4 / 5;
  }

  .feature-media--arch .icon-deer {
    top: -8%;
    bottom: auto;
    left: auto;
    right: -6%;
  }

}

/* ---------------------------------------------------------------------- */
/* Contact page — photo hero with overlapping form card                   */
/* ---------------------------------------------------------------------- */

.contact-hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(2rem, 5vw, 3rem)) clamp(3rem, 8vw, 5rem);
}

.contact-hero .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero-top {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: clamp(2rem, 6vw, 3.5rem);
}

.contact-hero-top h1 {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 6rem);
}

.contact-hero-top h1 em {
  font-style: normal;
}

.contact-form-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
}

.contact-form-card {
  width: 100%;
  max-width: 30rem;
  background: rgba(143, 152, 161, 0.94);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 70px rgba(20, 22, 25, 0.35);
}

.contact-form-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 2.35rem);
  margin-bottom: 1.5rem;
}

.form-field {
  display: block;
  margin-top: 1.15rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.form-field span {
  display: block;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  padding: 0.65em 0.85em;
  color: var(--color-white);
  font: inherit;
  font-weight: 300;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: 1.75rem;
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.85em;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

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

.form-fine-print {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
  opacity: 0.8;
}

.contact-form-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.contact-form-note--error {
  color: var(--color-ink);
  font-weight: 700;
}

.contact-footer-info {
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.contact-footer-info strong {
  font-weight: 700;
}

/* ---------------------------------------------------------------------- */
/* Simple placeholder pages (Services / Contact stand-ins)                */
/* ---------------------------------------------------------------------- */

.placeholder {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: calc(var(--nav-h) + var(--section-pad-y)) var(--section-pad-y);
}

.placeholder-inner {
  max-width: 40rem;
}

.placeholder h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

.placeholder p {
  font-size: 1.0625rem;
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------------- */
/* Footer / closing CTA                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  text-align: center;
}

.footer-wordmark {
  width: clamp(240px, 26vw, 360px);
  height: auto;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.footer-btn {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.footer-fine-print {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

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

@media (max-width: 900px) {
  .intro-text p {
    text-align: left;
  }

  .about + .services .services-content {
    padding-top: calc(var(--section-pad-y) * 0.5);
  }

  .nav-primary {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    justify-self: stretch;
    width: auto;
    background: var(--color-slate);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-primary a {
    font-size: 1rem;
  }

  .nav-open .nav-primary {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-secondary .btn .btn-label {
    display: none;
  }

  .nav-secondary .btn {
    padding: 0.75em;
    border-radius: 50%;
  }

  .about .container,
  .process .container {
    grid-template-columns: 1fr;
  }

  .about-copy {
    order: 2;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-media img {
    object-position: 70% center;
  }

  .services-badge {
    display: none;
  }

  .process-media {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 560px) {
  .service-item p {
    max-width: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Cookie consent banner                                                  */
/* ---------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  z-index: 2000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 64rem;
  margin-inline: auto;
  background: var(--color-slate-deep);
  color: var(--color-white);
  border-radius: 0.65rem;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 16px 40px rgba(20, 22, 25, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-banner-accept,
.cookie-banner-reject {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cookie-banner-accept {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1.5px solid var(--color-white);
}

.cookie-banner-accept:hover {
  background: var(--color-cash);
}

.cookie-banner-reject {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.cookie-banner-reject:hover {
  border-color: var(--color-white);
}

.cookie-banner-accept:focus-visible,
.cookie-banner-reject:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.cookie-settings-link {
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  opacity: 1;
}

@media (min-width: 480px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Legal pages (mentions légales / privacy) and footer legal links        */
/* ---------------------------------------------------------------------- */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin-top: 0.75rem;
}

.footer-legal a {
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  opacity: 1;
}

.legal {
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) var(--section-pad-y);
}

.legal-inner {
  max-width: 46rem;
}

.legal h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.legal-updated {
  font-size: 0.9375rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
}

.legal p + p {
  margin-top: 0.85rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  list-style: disc;
  margin-top: 0.4rem;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
