/* ==================================================================
   RIDGY — stylesheet
   ------------------------------------------------------------------
   Display type : Newsreader  (serif  — headings)
   Body type    : Geist       (grotesk — text, labels, navigation)
   Accent       : slate-blue

   Structure
     1. Fonts
     2. Tokens (:root)
     3. Reset & base
     4. Layout shell
     5. Header
     6. Hero            (home only)
     7. Page header     (inner pages)
     8. Sections & headings
     9. Services
    10. Links & CTA
    11. Factyn inset
    12. Contact table
    13. Footer
    14. Entrance animation

   Ridge motif lives in /assets as four SVGs; the eyebrow marker is
   an inline data-URI (too small to warrant a file).
   ================================================================== */


/* 1. FONTS ========================================================= */

@font-face {
  font-family: 'Geist'; font-weight: 400; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist'; font-weight: 500; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist'; font-weight: 600; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
}

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');


/* 2. TOKENS ======================================================== */

:root {
  /* colour */
  --ink:         #14161a;
  --ink-soft:    #565a61;
  --paper:       #ffffff;
  --line:        #e4e5e7;
  --line-strong: #c9cbce;
  --accent:      #3f5d72;
  --accent-dark: #2c4456;
  --accent-pale: #eef1f3;

  /* type */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Geist', system-ui, sans-serif;

  /* metrics */
  --measure: 36rem;                       /* reading width        */
  --shell:   62rem;                       /* max content width    */
  --pad:     clamp(1.5rem, 5vw, 3.5rem);  /* horizontal padding   */
  --gap:     clamp(5rem, 10vw, 9rem);     /* vertical section gap */
}


/* 3. RESET & BASE ================================================== */

*       { box-sizing: border-box; margin: 0; padding: 0; }
html    { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* 4. LAYOUT SHELL ================================================== */

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section            { padding-top: var(--gap); }
section:last-child { padding-bottom: var(--gap); }
.page-header + section { padding-top: clamp(3rem, 6vw, 5rem); }


/* 5. HEADER ======================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { display: block; width: 28px; height: 15px; }

.site-nav {
  display: flex;
  gap: 1.9rem;
}
.site-nav a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"] { font-weight: 500; }


/* 6. HERO  (home only) ============================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 11vw, 8rem) 0 clamp(6rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 2; }

.hero__ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  width: 100%; height: 7rem;
  display: block;
  pointer-events: none;
}

.eyebrow-tag {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border-radius: 3px;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.hero__sub {
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--ink-soft);
}


/* 7. PAGE HEADER  (inner pages) ==================================== */

.page-header {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(5rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}
.page-header .wrap { position: relative; z-index: 2; }

.page-header__kicker {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-header h1 {
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.page-header__ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  width: 100%; height: 3rem;
  display: block;
  pointer-events: none;
}


/* 8. SECTIONS & HEADINGS =========================================== */

/* eyebrow — section label with the ridge motif at its smallest */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.8rem;
  height: 0.7rem;
  background-repeat: no-repeat;
  background-position: left center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='29' height='11' viewBox='0 0 29 11' fill='none'><path d='M1 10L8 3L12 6L19 1L28 8' stroke='%233f5d72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* italic-accent helper, shared by every heading level */
em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  max-width: 20ch;
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
}

/* lead paragraph */
.lede {
  max-width: var(--measure);
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.lede strong   { font-weight: 500; color: var(--ink); }
.lede--ink     { color: var(--ink); }
.lede--spaced  { margin-top: 2rem; }

/* large serif opening statement (Over, Factyn inner pages) */
.statement {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
}


/* 9. SERVICES ====================================================== */

/* compact list — home page */
.services {
  margin-top: 3rem;
  border-top: 1px solid var(--line-strong);
}
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1.6rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.service:hover { background: var(--accent-pale); }
.service__num {
  padding-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.service p {
  grid-column: 2;
  max-width: var(--measure);
  margin-top: 0.3rem;
  color: var(--ink-soft);
}

/* detailed blocks — Aanpak page */
.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.6rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 1px solid var(--line-strong); }
.service-detail__num {
  padding-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service-detail__body { grid-column: 2; }
.service-detail h3 {
  margin-bottom: 0.9rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.service-detail p {
  max-width: var(--measure);
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 38rem) {
  .service,
  .service-detail { grid-template-columns: 1fr; }
  .service p,
  .service-detail__body { grid-column: 1; }
  .service__num,
  .service-detail__num { padding-top: 0; margin-bottom: 0.4rem; }

  /* Stack the masthead so the nav doesn't crowd the wordmark on
     phones; close up the hero so it tucks against the header. */
  .site-header__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 0 0.9rem;
  }
  .site-nav {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  .hero { padding-top: 2.75rem; }
}


/* 10. LINKS & CTA ================================================== */

/* one base link rule for body copy */
.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link:hover { color: var(--accent-dark); border-color: var(--accent); }

/* quiet call-to-action */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.15s ease, color 0.15s ease;
}
.cta:hover { gap: 0.75rem; color: var(--accent-dark); }


/* 11. FACTYN INSET ================================================= */

.factyn {
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  border-left: 2px solid var(--accent);
}
.factyn__tag {
  margin-bottom: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.factyn h2 { margin-bottom: 0.9rem; }


/* 12. CONTACT TABLE ================================================ */

.contact-table { margin-top: 1.75rem; }
.contact-table__row {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-table__row:first-child { border-top: 1px solid var(--line-strong); }
.contact-table__label {
  min-width: 7rem;
  padding-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-table__value { font-size: 1.0625rem; color: var(--ink); }


/* 13. FOOTER ======================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--gap);
  padding: clamp(5rem, 9vw, 7.5rem) 0 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer__ridge {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  width: 100%; height: 3rem;
  display: block;
  pointer-events: none;
}

.site-footer__row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-footer__nav a {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer__nav a:hover { color: var(--accent); }


/* 14. ENTRANCE ANIMATION =========================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .reveal:nth-child(1) { animation-delay: 0.04s; }
  .reveal:nth-child(2) { animation-delay: 0.13s; }
  .reveal:nth-child(3) { animation-delay: 0.22s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
