/* ==========================================================================
   Aave Graphic Services — stylesheet
   Mobile-first. Plain CSS, no preprocessor, no framework.
   ========================================================================== */

:root {
  --color-bg:        #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #5c5c5c;
  --color-border:    #dedede;
  --color-accent:    #1a1a1a; /* keep neutral/minimal; swap for a brand colour later */
  --color-placeholder: #808080; /* 50% grey, matches placeholder image files */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
  --gap: 1.5rem;
  --gap-sm: 0.75rem;
}

/* ---- Reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Reserve the scrollbar's width up front, so a page that only crosses the
   viewport-height threshold after something loads in (an image, a web
   font) never nudges the whole layout sideways when the scrollbar
   appears/disappears. Supported in current Chrome/Edge/Firefox; browsers
   without it just fall back to the old (occasionally shifting) behavior. */
html { scrollbar-gutter: stable; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

/* ---- Language toggle: show/hide by document language ---- */
html[data-lang="nl"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="nl"] { display: none !important; }

/* ---- Layout helpers ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Site header ---- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  background: none;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.nav-toggle::before { transform: translateY(-6px); position: absolute; }
.nav-toggle span { }
.nav-toggle::after { transform: translateY(6px); position: absolute; }

.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(80vw, 320px);
  height: 100vh;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.05rem;
}
.nav-list a {
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}
.nav-list a[aria-current="page"] {
  font-weight: 700;
  border-bottom: 2px solid var(--color-text);
}
.nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.lang-toggle {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.lang-toggle button {
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: var(--color-muted);
}
.lang-toggle button[aria-pressed="true"] {
  border-color: var(--color-text);
  color: var(--color-text);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Overlay behind the mobile nav drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 780px) {
  .nav-toggle, .nav-close, .nav-backdrop { display: none; }
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    border-left: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .nav-list { flex-direction: row; gap: 1.75rem; font-size: 0.95rem; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
}
/* The hero is sized by the image itself, not by a fixed box: no forced
   aspect-ratio, so there's no leftover space for a background color to
   show through, and no upscaling past the photo's native resolution
   either. A photo narrower than the viewport is simply centered — the
   hero's height always matches whatever the photo's own proportions
   give at the current width. */
.hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-media img { display: block; max-width: 100%; height: auto; }
.hero-caption {
  padding-block: 2rem 1rem;
}
.hero-caption h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  margin: 1rem 0 0.5rem;
}
.hero-caption .lede {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--color-text);
  color: var(--color-bg);
}
.btn.btn-outline {
  background: none;
  color: var(--color-text);
}

/* ---- Section spacing ---- */
.section { padding-block: 2.5rem; }
.section-tight { padding-block: 1.5rem; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.section-heading .lede { color: var(--color-muted); }
.section-alt { background: #f7f7f7; }

/* Small semi-bold label that introduces a short block of text without
   the weight of a full section heading — same idea as the footer's
   small-caps column headings, just used inline in the page content. */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}


/* ---- Portfolio category sections (portfolio.html) ---- */
.category-section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 5rem;
}
.category-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 1rem;
}
.category-section-heading h2 { margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}
/* scale-down: same reasoning as .hero-media img above — never upscale
   past native size; smaller photos sit centered on the grey background
   instead of being stretched to fill the square. */
.gallery-item img { width: 100%; height: 100%; object-fit: scale-down; }

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-nav a {
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Feature / three-up columns (services, values) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { color: var(--color-muted); font-size: 0.95rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-card h3 { font-size: 1.1rem; }
.pricing-price {
  font-size: 1.8rem;
  font-weight: 700;
}
.pricing-card ul { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; margin-bottom: 0.5rem; }
.pricing-card ul li { padding-left: 1.1em; position: relative; }
.pricing-card ul li::before { content: "\2013"; position: absolute; left: 0; }
.pricing-note {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  color: var(--color-muted);
}

/* ---- About page blocks ---- */
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.4fr 1fr; }
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
}
.checkbox-group input { width: auto; }
.form-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.form-consent input { margin-top: 0.2rem; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-details h2 { font-size: 1.05rem; }
.contact-details dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.92rem; }
.contact-details dt { color: var(--color-muted); }
.contact-details dd { margin: 0; }
.contact-map {
  aspect-ratio: 4 / 3;
  background: var(--color-placeholder);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 0.2rem;
  padding-block: 2.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-grid h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.footer-nav a { text-decoration: none; display: block; padding: 0.2rem 0; }
.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
