/* ===========================================================================
   La Fresnaye SA — single-screen splash
   Faithful to the debr.be layout: a centred white wordmark and text blocks
   on a solid brand-colour background. Self-contained: no external fonts,
   frameworks, images or trackers.
   =========================================================================== */

:root {
  /* Solid brand background (deep agricultural green) */
  --bg:        #1d3b2a;
  --bg-deep:   #16301f;
  /* Transparent colour overlay laid over the full-screen photo.
     Raise the alpha for a darker tint, lower it to show more of the photo. */
  --overlay:   rgba(22, 48, 31, 0.62);
  /* Background of the centred content box. Higher alpha = less transparent. */
  --card-bg:   rgba(255, 255, 255, 0.78);
  --white:     #ffffff;
  /* Text colour (navy, matching the logo) */
  --text:      #002551;
  /* Serif used for titles (falls back to Georgia until Playfair loads) */
  --serif:     "Playfair Display", Georgia, "Times New Roman", serif;
  --muted:     rgba(0, 37, 81, 0.72);
  --rule:      rgba(0, 37, 81, 0.5);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-screen photograph that covers the whole page, with a transparent
   brand-colour overlay on top so the white content stays legible. */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
}

/* The photo itself, as a fixed full-viewport layer behind everything. Using a
   real positioned layer (rather than background-attachment: fixed) so it
   renders reliably in every browser and embedded preview. */
.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  /* Modern formats first (AVIF, then WebP), with the JPEG as a universal
     fallback. The last declaration the browser understands wins. */
  background-image: url("hero.jpg");
  background-image: -webkit-image-set(
    url("hero.avif") type("image/avif"),
    url("hero.webp") type("image/webp"),
    url("hero.jpg")  type("image/jpeg")
  );
  background-image: image-set(
    url("hero.avif") type("image/avif"),
    url("hero.webp") type("image/webp"),
    url("hero.jpg")  type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Transparent colour overlay (adjust --overlay opacity to taste) */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--overlay);
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  /* Centred content box sized to 60% of the viewport */
  width: 60vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vh, 2.2rem);
  /* Less-transparent panel so the content stands out from the photo */
  background: var(--card-bg);
  box-shadow: 0 24px 60px rgba(0, 18, 40, 0.45);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

/* On narrow screens 60vw is too cramped — let it breathe */
@media (max-width: 700px) {
  .card { width: 88vw; height: auto; min-height: 60vh; }
}

/* ---- Logo / wordmark ---------------------------------------------------- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
/* SVG logo image. Scales with the viewport; height is capped so it never
   dominates the 60vh content box. */
.logo-img {
  display: block;
  width: clamp(200px, 42vw, 420px);
  height: auto;
  max-height: 26vh;
  object-fit: contain;
}
/* Kept for the optional text wordmark fallback */
.logo-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
}
.logo-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---- Services ----------------------------------------------------------- */
.services {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.6;
}
.services p { margin: 0; font-weight: 500; letter-spacing: 0.01em; }

/* ---- Address ------------------------------------------------------------ */
.info {
  font-style: normal;
  font-size: 1rem;
  color: var(--text);
}

/* ---- Email -------------------------------------------------------------- */
.email { margin: 0; font-size: 1.05rem; }
.email a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.email a:hover { opacity: 0.7; }

/* ---- Legal -------------------------------------------------------------- */
.legal {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

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