/* =========================================================
   The Brand Affair — website
   Fonts uit de merkgids:
     - Glacial Indifference  -> titels (logo, About us, Contact)
     - Creato Display        -> tekst (nav, realisaties, body)
   Zet de echte fontbestanden in /fonts voor een 100% match.
   Zolang die ontbreken vallen we terug op Jost + Poppins.
   ========================================================= */

/* ---- Echte merkfonts (optioneel, drop bestanden in /fonts) ---- */
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Regular.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Bold.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Creato Display";
  src: url("../fonts/CreatoDisplay-Regular.woff2") format("woff2"),
       url("../fonts/CreatoDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Creato Display";
  src: url("../fonts/CreatoDisplay-Bold.woff2") format("woff2"),
       url("../fonts/CreatoDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* ---- Merkkleuren ---- */
:root {
  --olive:  #b3ac53;   /* accent / handgetekende cirkel */
  --sand:   #dddbc9;   /* licht beige */
  --red:    #861506;   /* diep rood (overlays) */
  --cream:  #fffef8;   /* gebroken wit */

  --font-title: "Glacial Indifference", "Jost", "Century Gothic", sans-serif;
  --font-body:  "Creato Display", "Poppins", "Segoe UI", sans-serif;

  --pad-x: clamp(1.5rem, 5vw, 4rem);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: #000;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* =========================================================
   Layout: full-screen "page" met achtergrondfoto
   ========================================================= */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

/* Rode overlay voor About & Contact */
.page__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Home: extra hoog zodat de knop(pen) onder de vouw vallen en pas
   bij het scrollen in beeld komen. */
.page--home {
  min-height: 148vh;
  min-height: 148svh;
}

/* Home: enkel een subtiele donkere gradient bovenaan voor leesbaarheid nav */
.page--home .page__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* About & Contact: diep rode tint over de (ontzadigde) foto */
.page--tinted .page__bg {
  filter: grayscale(0.35) contrast(1.02) brightness(0.9);
}
.page--tinted .page__overlay {
  background: var(--red);
  opacity: 0.86;
  mix-blend-mode: multiply;
}
.page--tinted::after {
  /* extra rode wash bovenop multiply voor de juiste warme diepte */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--red);
  opacity: 0.35;
  pointer-events: none;
}

/* =========================================================
   Navigatie
   ========================================================= */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.5vw, 1.9rem) var(--pad-x);
  gap: 1rem;
}

.nav__logo {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
}

.nav__link { position: relative; white-space: nowrap; }

/* Wrapper waarrond de handgetekende cirkel getekend wordt */
.mark {
  position: relative;
  display: inline-block;
}
.mark .circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 152%;
  height: 210%;
  transform: translate(-50%, -50%) rotate(-4deg);
  overflow: visible;
  pointer-events: none;
}
.mark .circle path {
  fill: none;
  stroke: var(--olive);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.1s ease forwards 0.25s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Hover: cirkel verschijnt subtiel rond niet-actieve links */
.nav__link:not(.mark)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25em;
  height: 1.5px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:not(.mark):hover::after { transform: scaleX(1); }

/* =========================================================
   Home — realisaties onderaan links
   ========================================================= */
.page__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
}

.home__actions {
  margin-top: auto;
  padding: 0 var(--pad-x) clamp(2rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1vw, 0.7rem);
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.action svg { width: 0.85em; height: 0.85em; flex: none; }
.action:hover { gap: 0.9rem; opacity: 0.85; }

/* =========================================================
   About & Contact — gecentreerde tekst
   ========================================================= */
.center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--pad-x) 6rem;
}

.center__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  line-height: 1.55;
  max-width: 72rem;
  color: var(--cream);
}
.center__text p { margin: 0; }
.center__text .spacer { height: 1.4em; }

.contact__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  line-height: 1.7;
  color: var(--cream);
}
.contact__text a { transition: color 0.25s ease; }
.contact__text a:hover { color: var(--olive); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav__links { gap: 1.25rem; }
  .mark .circle { width: 138%; height: 190%; }
}
