/* ================= Gaspart — atelier stylesheet ================= */

:root {
  --bg: #F3EEE3;
  --bg-panel: #EAE2CF;
  --ink: #241F1B;
  --ink-soft: #6B6153;
  --line: #D6CCB4;
  --alu: #6E7580;
  --alu-soft: #E4E7E9;
  --wood: #8A5A34;
  --wood-soft: #EFDFCB;
  --dark: #1B1815;
  --dark-ink: #EFE8DA;
  --dark-line: #3A352E;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--wood);
  margin: 0 0 0.9em;
  font-weight: 500;
}

/* ---------------- header ---------------- */
 
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 238, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
 
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
 
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
 
.brand img { height: 120px; width: auto; }
 
nav.main-nav {
  display: flex;
  gap: 2.1rem;
  font-size: 0.98rem;
}
 
nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
 
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--ink);
}
 
nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--wood);
}
 
.nav-toggle { display: none; }

/* ---------------- hero ---------------- */

.hero {
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 1.1em; }

.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 1.1em;
}

.hero-media { position: relative; }

/* the wordmark's own flourish, used as a quiet backdrop the photograph
   sits into — the loop of the G cradles the bottom-left of the frame */
.hero-mark {
  position: absolute;
  z-index: 0;
  left: -20%;
  bottom: -12%;
  width: 145%;
  max-width: none;
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}

.hero-media .framed {
  position: relative;
  z-index: 1;
}

/* frame-corner motif: literal corner brackets, echoing a stretched canvas frame */
.framed {
  position: relative;
  padding: 14px;
}

.framed::before,
.framed::after,
.framed .fc-tl,
.framed .fc-br {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--wood);
}

.framed::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.framed::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.framed .fc-tl { top: 0; right: 0; border-left: none; border-bottom: none; }
.framed .fc-br { bottom: 0; left: 0; border-right: none; border-top: none; }

.framed img { border: 1px solid var(--line); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 13px 26px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--wood); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--wood); color: var(--wood); }

.btn-row { display: flex; gap: 14px; margin-top: 2em; flex-wrap: wrap; }

/* ---------------- sections ---------------- */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* intro / feature split */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.intro-split p { color: var(--ink-soft); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.feature-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: baseline;
}

.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list .mat {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wood);
  font-size: 0.98rem;
}

.feature-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* material cards */

.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.material-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.material-card:hover { transform: translateY(-3px); }

.material-card .mc-media { aspect-ratio: 4/3; overflow: hidden; }
.material-card .mc-media img { width: 100%; height: 100%; object-fit: cover; }

.material-card .mc-body { padding: 30px 30px 34px; }

.material-card .eyebrow { margin-bottom: 0.5em; }

.material-card p { color: var(--ink-soft); margin: 0.7em 0 1.2em; }

.mc-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--wood);
}

/* gallery */

.gallery-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.gallery-strip img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }

/* about / opleiding */

.about-section {
  background: var(--dark);
  color: var(--dark-ink);
}

.about-section .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-section .eyebrow { color: #C8935F; }

.about-section p { color: #C9C1B2; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 16px 0;
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  font-size: 0.94rem;
}

.timeline li:last-child { border-bottom: 1px solid var(--dark-line); }

.timeline .yr {
  font-family: var(--serif);
  font-style: italic;
  color: #C8935F;
}

.timeline .role { color: #DAD3C4; }

/* ---------------- page hero (subpages) ---------------- */

.page-hero {
  padding: 56px 0 0;
}

.page-hero .wrap {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 16ch; }
.page-hero p.lede { max-width: 56ch; color: var(--ink-soft); font-size: 1.1rem; margin-top: 1em; }

.banner {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  margin: 0;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

.copy-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.copy-grid .body-copy p { color: var(--ink-soft); }

.side-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 28px;
  align-self: start;
}

.side-panel h3 { margin-bottom: 0.8em; }
.side-panel ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: 0.95rem; }
.side-panel li { margin-bottom: 0.5em; }

.side-panel-images {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-panel-images figure {
  margin: 0;
}

.side-panel-images img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.side-panel-images figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------------- contact page ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-block { margin-bottom: 2.2rem; }
.contact-block:last-child { margin-bottom: 0; }

.contact-block .label {
  font-size: 0.8rem;
  color: var(--wood);
  margin-bottom: 0.4em;
}

.contact-block a.big-link {
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.notice {
  background: var(--wood-soft);
  border-left: 3px solid var(--wood);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #5C3E20;
  margin-bottom: 2rem;
}


/* ---------------- footer ---------------- */

footer.site-footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 56px 0 32px;
}

footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

footer .brand img { height: 50px; }
footer .brand img {
  filter: invert(100%);}
footer .brand { margin-bottom: 1em; }

footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #C8935F;
  margin: 0 0 1em;
  font-weight: 500;
}

footer p, footer a { color: #C9C1B2; font-size: 0.95rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--dark-ink); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.6em; }

.footer-bottom {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--dark-line);
  font-size: 0.85rem;
  color: #8A8177;
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .hero .wrap,
  .intro-split,
  .material-grid,
  .gallery-strip,
  .about-section .wrap,
  .copy-grid,
  .contact-grid,
  footer .wrap {
    grid-template-columns: 1fr;
  }

  .hero { padding: 40px 0 56px; }
  .hero-media { order: -1; }
  section { padding: 56px 0; }
  .brand img { height: 96px; }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 22px 32px 32px;
    gap: 1.4rem;
    font-size: 1.15rem;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(27, 24, 21, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  nav.main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible { background: var(--wood); border-color: var(--wood); }

  .nt-bars { display: flex; flex-direction: column; gap: 4px; }

  .nav-toggle span:not(.nt-bars):not(.nt-label) {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--bg);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nt-label {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bg);
  }

  /* turn the three bars into an × when the menu is open */
  .nav-toggle[aria-expanded="true"] .nt-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nt-bars span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nt-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .gallery-strip { grid-template-columns: 1fr; }
  .side-panel { order: -1; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 2.4rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .brand img { height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .material-card { transition: none; }
  nav.main-nav { transition: none; }
  .nav-toggle span:not(.nt-bars):not(.nt-label) { transition: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}
#imgtop{
  object-position: top;
}