/* =========================================================
   Inquisition Tattoo Studio — main stylesheet
   Mobile-first: base styles are for phones, the @media
   blocks further down add changes for bigger screens.
   ========================================================= */

/* ---------- 1. Colours & sizes (change them here once) ---------- */
:root {
  --black: #000;
  --ink: #0d0d0d;          /* slightly lighter black for sections */
  --line: #2a2a2a;         /* thin borders */
  --white: #fff;
  --grey: #b8b8b8;         /* secondary text, still good contrast on black */
  --max-width: 1200px;
  --gutter: 16px;          /* side spacing on phones */
  --font-heading: "Times New Roman", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- 2. Basic reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

a { color: var(--white); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  /* Long words (e.g. "VEELGESTELDE") may break instead of running off small screens.
     hyphens: auto uses the lang="nl"/"en" of the page to split words correctly. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 { font-size: clamp(2rem, 8vw, 3.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* Visible focus outline for keyboard users */
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Hidden visually, but still read by screen readers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Respect "reduce motion" (set on the phone/computer, e.g. because of dizziness or migraine) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* "Skip to content" link, only visible when focused with the keyboard */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--white); color: var(--black);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: var(--gutter); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 4rem 0; border-top: 1px solid var(--line); }
.section--ink { background: var(--ink); }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.125rem; color: var(--grey); max-width: 60ch; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.btn:hover,
.btn:focus-visible { background: var(--white); color: var(--black); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- 4. Image placeholders ----------
   Grey boxes that stand in for photos. To use a real photo,
   replace the <div class="placeholder ..."> with:
   <img src="images/your-photo.webp" alt="describe the photo" width="800" height="1000" loading="lazy">
*/
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: repeating-linear-gradient(45deg, #151515 0 12px, #1b1b1b 12px 24px);
  border: 1px dashed #444;
  color: #8f8f8f;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  aspect-ratio: 4 / 5;      /* portrait, like Instagram posts */
}
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--wide { aspect-ratio: 16 / 9; }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo img { width: 150px; }

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

/* NL / EN switch */
.lang-switch { display: flex; gap: 0.25rem; font-size: 0.8rem; letter-spacing: 0.1em; }
.lang-switch a { text-decoration: none; padding: 0.75rem 0.6rem; color: var(--grey); }  /* bigger tap area */
.lang-switch a[aria-current="true"] { color: var(--white); border-bottom: 1px solid var(--white); }

/* Hamburger button (phones only) */
.menu-toggle {
  background: none; border: 1px solid var(--line); color: var(--white);
  width: 44px; height: 44px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--white); }

/* On phones the menu is hidden until the button adds the class "is-open" (see js/main.js).
   It is only hidden when JavaScript runs (class "js" on <html>, set in the <head> of every page).
   Without JavaScript the menu is simply shown as a list under the logo, so every page stays reachable. */
.js .main-nav { display: none; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .main-nav { order: 3; flex-basis: 100%; }
.main-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.main-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1rem; }
.main-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
/* Current page: underlined, not only a different colour */
.main-nav a[aria-current="page"] { color: var(--grey); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; min-height: 85vh; display: flex; align-items: flex-end; overflow: hidden; }

.hero .placeholder {
  position: absolute; inset: 0;
  aspect-ratio: auto; border: 0;
  align-items: flex-start; padding-top: 6rem;
}

/* Dark gradient so the text stays readable over any photo */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.2) 70%);
}

.hero-content { position: relative; z-index: 1; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2.5rem, 11vw, 6rem); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.hero-tags li {
  border: 1px solid var(--line); background: rgba(0,0,0,0.6);
  padding: 0.3rem 0.7rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- 7. Intro ---------- */
.intro-grid { display: grid; gap: 2rem; }

/* ---------- 8. Recent work grid ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }

/* ---------- 9. Artists ---------- */
.artist-grid { display: grid; gap: 2rem; }
.artist-card h3 { margin-top: 1rem; margin-bottom: 0.25rem; }
.artist-card p { color: var(--grey); margin-bottom: 0.5rem; }
.artist-card a { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- 10. Walk-ins / piercings ---------- */
.feature-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--black); padding: 2rem 1.5rem; }
.feature p { color: var(--grey); }

/* ---------- 11. Visit (hours + location) ---------- */
.visit-grid { display: grid; gap: 2.5rem; }

.hours { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours .closed td { color: var(--grey); }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 0.4rem 0; }

/* Long email addresses may break onto the next line instead of overflowing on small phones */
.contact-list a,
address a { overflow-wrap: anywhere; }

/* Browsers show <address> in italics by default; we don't want that */
address { font-style: normal; margin-bottom: 1em; }

/* ---------- 12. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 0.9rem; color: var(--grey); }
.footer-grid { display: grid; gap: 2rem; }
.footer-title { color: var(--white); font-size: 1rem; }  /* footer headings are h2 for a correct heading order */
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.2rem 0; }
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--white); }
.footer-logo img { width: 180px; }
.copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; }

/* ---------- 13. Page header (top of sub-pages) ---------- */
.page-header { padding: 4rem 0 3rem; }
.page-header h1 { font-size: clamp(2rem, 11vw, 5rem); }

/* ---------- 14. Price list (piercings page) ---------- */
.price-grid { display: grid; gap: 2.5rem; }
.price-grid h3 { border-bottom: 1px solid var(--white); padding-bottom: 0.5rem; }

.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
/* Dotted line between the name and the price */
.price-list li::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 1px dotted #555;
}
.price-list .price { order: 2; font-variant-numeric: tabular-nums; }

.price-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  color: var(--grey);
}
.price-note strong { color: var(--white); font-weight: 400; }

/* ---------- 15. Photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* Each photo sits in a frame; the caption is in the frame, below the photo */
.gallery figure {
  margin: 0;
  padding: 8px;
  background: var(--black);
  border: 1px solid #3a3a3a;
  transition: border-color 0.2s;
}
.gallery figure:hover { border-color: var(--white); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;          /* crop to the same shape so the grid lines up */
}
.gallery figcaption {
  padding: 0.75rem 0.25rem 0.25rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- 16. Contact options (contact page) ---------- */
.contact-options { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border: 1px solid #3a3a3a;
  background: var(--black);
}
.contact-card .step {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: #5a5a5a;
  margin-bottom: 1rem;
}
.contact-card p { color: var(--grey); }

/* The phone number / Instagram name / address, shown big */
.contact-card .big-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  margin-bottom: 1.5rem;
}
.contact-card .btn { margin-top: auto; text-align: center; }  /* buttons line up at the bottom */

/* "Follow us" heading above the social media buttons */
.follow-title { margin-top: 2rem; margin-bottom: 0; }

/* Checklist of what to tell us */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 0.6rem 0 0.6rem 1.75rem; border-bottom: 1px solid var(--line); }
/* content: "x" / "" = decorative symbol with empty alt text, so screen readers don't read it.
   The first line is a fallback for older browsers. */
.check-list li::before {
  content: "✦";
  content: "✦" / "";
  position: absolute; left: 0; color: var(--grey);
}

/* ---------- 17. Aftercare page ---------- */

/* When jumping to #tattoo or #piercing, stop below the sticky header instead of behind it */
[id] { scroll-margin-top: 90px; }

.care-section h2 { margin-bottom: 1rem; }
.care-intro { font-size: 1.125rem; color: var(--grey); max-width: 65ch; margin-bottom: 0; }

/* Heading + intro; side by side on desktop (see media query at the bottom) */
.care-head { display: grid; gap: 1rem; margin-bottom: 2rem; }

/* The topics are cards in a grid: 1 column on phones, 2 on desktop */
.care-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }

/* One topic card (e.g. "Wassen en insmeren") */
.care-block {
  padding: 1.5rem;
  border: 1px solid #3a3a3a;
  background: var(--ink);
}
.section--ink .care-block { background: var(--black); }  /* cards stay visible on the darker section */
.care-block h3 { border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 1rem; }
.care-block p { color: var(--grey); }
.care-block ul, .care-block ol { margin: 0 0 1rem; }
.care-block li { margin-bottom: 0.5rem; }

/* Numbered steps with big numbers */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; min-height: 2rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1rem;
  width: 2rem; height: 2rem;
  border: 1px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
}

/* Healing timeline: time on the left, description on the right */
.timeline { margin: 0 0 1rem; border-left: 1px solid #555; padding-left: 1.25rem; }
.timeline dt { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; position: relative; }
.timeline dt::before {
  content: ""; position: absolute; left: calc(-1.25rem - 4px); top: 0.5em;
  width: 7px; height: 7px; background: var(--white); border-radius: 50%;
}
.timeline dd { margin: 0 0 1rem; color: var(--grey); }

/* List of things to avoid, with a cross instead of a bullet */
.avoid-list { list-style: none; padding: 0; }
.avoid-list li { position: relative; padding-left: 1.75rem; }
.avoid-list li::before {
  content: "✕";
  content: "✕" / "";     /* decorative: empty alt text for screen readers */
  position: absolute; left: 0; color: var(--grey);
}

/* "When to see a doctor" card: white border so it stands out */
.care-block.alert { border-color: var(--white); }
.alert p { color: var(--grey); }
.alert p strong { color: var(--white); font-weight: 400; }

/* ---------- 18. Legal info & privacy page ---------- */

/* TEMPORARY: remove when all legal placeholders are filled in */
.todo { background: #ffe14d; color: #000; padding: 0 0.2em; }

/* Legal line in the footer (enterprise number etc.), just above the copyright */
.legal-info {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--grey);   /* #b8b8b8 on black: contrast about 10:1, passes WCAG AA */
  overflow-wrap: anywhere;
}
.legal-info + .copyright { margin-top: 0.5rem; padding-top: 0; border-top: 0; }

/* Privacy page: readable text column */
.legal-text { max-width: 70ch; }
.legal-text h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 2.5rem; }
.legal-text p,
.legal-text li { color: var(--grey); }
.legal-text a { overflow-wrap: anywhere; }  /* long web addresses may break on small screens */
.legal-text .updated { margin-top: 3rem; font-size: 0.9rem; }

/* Subtle note box (e.g. "this information is general" on the aftercare page) */
.notice {
  max-width: 65ch;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid #555;
  border-left: 3px solid var(--white);
  color: var(--grey);    /* contrast about 10:1 on black */
}

/* ---------- 19. FAQ page ----------
   Uses the built-in <details>/<summary> element: click to open/close, no JavaScript needed.
   Two levels: a section (.faq-section) contains questions (.faq-item). */

.faq-grid { display: grid; gap: 1rem; align-items: start; }  /* align-items: start = an open section doesn't stretch its neighbour */

/* Remove the default triangle; we draw our own + / − sign */
.faq-grid summary { list-style: none; cursor: pointer; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: "+";
  content: "+" / "";     /* decorative: the open/closed state is already announced by <details> */
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
}
.faq-grid details[open] > summary::after { content: "−"; content: "−" / ""; }

/* Level 1: section card */
.faq-section { border: 1px solid #3a3a3a; background: var(--black); }
.faq-section[open] { border-color: var(--white); }
.faq-section > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.faq-section > summary:hover { background: #111; }
.faq-questions { padding: 0 1.5rem 1rem; }

/* Level 2: one question */
.faq-item { border-top: 1px solid var(--line); }
.faq-item > summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
}
.faq-item > summary::after { font-size: 1.2rem; color: var(--grey); }
.faq-item > summary:hover { color: var(--grey); }
.faq-answer { padding: 0 0 1.25rem; color: var(--grey); max-width: 70ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* =========================================================
   Tablet (600px and wider)
   ========================================================= */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Desktop (960px and wider)
   ========================================================= */
@media (min-width: 960px) {
  :root { --gutter: 32px; }

  .section { padding: 6rem 0; }

  /* Menu always visible, hamburger hidden */
  .menu-toggle { display: none; }
  .main-nav,
  .js .main-nav,
  .main-nav.is-open { display: block; position: static; border: 0; background: none; }
  html:not(.js) .main-nav { order: 0; flex-basis: auto; }
  .main-nav ul { display: flex; gap: 1.5rem; padding: 0; }
  .main-nav a { border: 0; padding: 0.5rem 0; font-size: 0.8rem; }
  .main-nav a:hover { color: var(--grey); }

  .header-inner { min-height: 80px; }
  .logo img { width: 180px; }

  .intro-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .artist-grid { grid-template-columns: repeat(3, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .contact-options { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

  /* Aftercare: heading left, intro right; topic cards two by two */
  .care-head { grid-template-columns: 1fr 1.3fr; align-items: end; gap: 4rem; margin-bottom: 3rem; }
  .care-head h2 { margin-bottom: 0; }
  .care-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .care-block { padding: 2rem; }
  .care-block--wide { grid-column: 1 / -1; }            /* card spans the full width */
  .care-block--wide ul { columns: 2; column-gap: 3rem; } /* long list split over 2 columns */
  .care-block--wide li { break-inside: avoid; }          /* don't split one item over 2 columns */

  /* FAQ: sections two by two */
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .page-header { padding: 6rem 0 4rem; }
}
