/* Good Times Dept. — site v3. Final palette: Bone / Deep Bottle / Charcoal / Fog / Cobalt. Mobile first. */

/* Schibsted Grotesk (SIL OFL 1.1). Local files first (self-host before launch), jsDelivr as review fallback. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/npm/@fontsource-variable/schibsted-grotesk@5.3.0/files/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/npm/@fontsource-variable/schibsted-grotesk@5.3.0/files/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Final palette */
  --bone: #F4F1E9;      /* base, ~50-55% */
  --bottle: #20352E;    /* brand colour, dark sections, ~25-30% */
  --charcoal: #1A1D1C;  /* text, footer, ~12-15% */
  --fog: #C2C4BD;       /* quiet sections, rules, ~5-8% */
  --cobalt: #2A4CD6;    /* functional accent only, ~2-4% */

  --text: #1A1D1C;
  --text-soft: #4A524D;
  --on-dark: #F4F1E9;
  --on-dark-soft: rgba(244, 241, 233, 0.74);
  --rule: rgba(26, 29, 28, 0.14);
  --rule-dark: rgba(244, 241, 233, 0.20);

  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1240px;
  --section: clamp(64px, 9vw, 116px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16.5px, 0.5vw + 15px, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.018em; line-height: 1.12; overflow-wrap: break-word; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--cobalt); color: var(--bone); padding: 10px 14px; z-index: 50; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); }
.label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 18px; }
.section-dark .label, .section-dark .eyebrow { color: var(--on-dark-soft); }

/* Wordmark — the cobalt full stop is the only fixed graphic element */
.wordmark { font-weight: 600; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.dot { color: var(--cobalt); }
.section-dark .dot { color: var(--fog); }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--bone); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 62px; }
.site-header .wordmark { font-size: 1.19rem; }
.header-nav { display: flex; align-items: center; gap: 16px; font-size: 0.92rem; }
.header-nav .nav-link { display: none; text-decoration: none; color: var(--text-soft); }
.header-nav .nav-link:hover { color: var(--text); }
.lang { text-decoration: none; font-weight: 600; color: var(--text-soft); letter-spacing: 0.04em; }
.lang:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 50px; padding: 0 1.4em;
  background: var(--bottle); color: var(--bone);
  font: inherit; font-weight: 600; text-decoration: none;
  border: 0; cursor: pointer; transition: filter .2s ease;
}
.btn:hover { filter: brightness(1.18); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-small { min-height: 40px; padding: 0 1.05em; font-size: 0.9rem; }
.text-link { font-weight: 600; text-decoration: none; color: var(--text-soft); }
.text-link .arrow { display: inline-block; margin-left: 0.35em; transition: transform .2s ease; }
.text-link:hover { color: var(--cobalt); }
.text-link:hover .arrow { transform: translateX(3px); }

/* HERO — calm two-column layout, not a typographic poster */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(40px, 5.2vw, 66px); }
.hero + .section { padding-top: clamp(48px, 6.8vw, 88px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); }
.hero h1 { font-size: clamp(1.9rem, 3.3vw + 0.9rem, 3.3rem); max-width: 16ch; margin-top: 18px; line-height: 1.08; }
.hero-descriptor { margin-top: 20px; max-width: 46ch; font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem); color: var(--text-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; align-items: center; }

/* Hero visual: deliberate colour/type panel, sized to be replaced by a real photograph */
/* Hero panel — a finished brand plaque, built from type and colour only */
.hero-visual {
  background: var(--bottle); color: var(--on-dark);
  aspect-ratio: 4 / 5; padding: clamp(26px, 3.4vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.hero-visual .eyebrow { color: rgba(244, 241, 233, 0.6); }
.plaque-lines { margin: 0; font-size: clamp(1.15rem, 1.3vw + 0.7rem, 1.7rem); font-weight: 600; letter-spacing: 0.04em; line-height: 1.35; text-transform: uppercase; }
.plaque-lines span { display: block; }
.plaque-foot { margin: 0; font-size: 0.86rem; letter-spacing: 0.02em; color: rgba(244, 241, 233, 0.66); }

/* Sections */
.section { padding: var(--section) 0; }
.section-fog { background: var(--fog); }
.section-dark { background: var(--bottle); color: var(--on-dark); }
.section-dark .muted { color: var(--on-dark-soft); }
.muted { color: var(--text-soft); }
.section-head { display: grid; gap: 16px; max-width: 760px; }
.section-title { font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.5rem); max-width: 20ch; }
.lede { font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem); max-width: 60ch; }

/* Three offer groups */
.groups { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
.group { background: var(--bone); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 32px); }
.section-fog .group { border-color: rgba(26, 29, 28, 0.18); }
.section-dark .group { background: transparent; border-color: var(--rule-dark); }
.group h3 { font-size: 1.26rem; }
.group .group-sub { margin: 8px 0 18px; color: var(--text-soft); font-size: 0.97rem; }
.section-dark .group .group-sub { color: var(--on-dark-soft); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 1rem; }
.section-dark .group li { border-top-color: var(--rule-dark); }

/* Scope of work — quiet definition list, not a service catalogue */
.scope { margin-top: clamp(28px, 4vw, 44px); }
.scope div { display: grid; grid-template-columns: minmax(104px, 24%) 1fr; gap: 4px 20px; padding: 15px 0; border-top: 1px solid var(--rule); }
.scope dt { font-weight: 600; }
.scope dd { margin: 0; color: var(--text-soft); }

.warsaw-grid { display: grid; gap: 28px; }
.districts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 600; font-size: 0.98rem; }
.districts li:not(:last-child)::after { content: "·"; margin-left: 12px; color: var(--text-soft); }

.steps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 24px; }
.steps li { border-top: 1px solid var(--rule); padding-top: 16px; }
.steps .num { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; color: var(--cobalt); margin-bottom: 8px; }
.steps h3 { font-size: 1.16rem; }
.steps p { margin: 6px 0 0; color: var(--text-soft); }

.faq { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
              linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 62ch; color: var(--text-soft); }

/* Enquiry (on Deep Bottle) */
.enquiry-grid { display: grid; gap: 40px; }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 9px; }
.field > label, .field legend { font-weight: 600; font-size: 0.94rem; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hint { font-size: 0.84rem; color: var(--on-dark-soft); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--on-dark);
  background: transparent; border: 0; border-bottom: 1px solid rgba(244, 241, 233, 0.4);
  padding: 10px 0; min-height: 48px; border-radius: 0;
}
.form textarea { min-height: 116px; resize: vertical; border: 1px solid rgba(244, 241, 233, 0.4); padding: 12px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark) 50%), linear-gradient(135deg, var(--on-dark) 50%, transparent 50%); background-position: calc(100% - 13px) 22px, calc(100% - 8px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--charcoal); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--bone); }
.form ::placeholder { color: rgba(244, 241, 233, 0.45); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px;
  border: 1px solid rgba(244, 241, 233, 0.4); cursor: pointer; user-select: none;
  transition: background-color .15s ease, color .15s ease;
}
.choice input:checked + span { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--fog); outline-offset: 2px; }
.row-2 { display: grid; gap: 24px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.94rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cobalt); }
.form-status { min-height: 1.4em; font-size: 0.94rem; }
.form-status.error { color: var(--fog); font-weight: 600; }
.form .btn { justify-self: start; background: var(--bone); color: var(--charcoal); }
.form .btn:hover { filter: brightness(1.04); }
.is-hidden { display: none !important; }

.mt-0 { margin-top: 0; }
.mt-18 { margin-top: 18px; }

/* Legal pages */
.narrow-text { max-width: 720px; }
.narrow-text h2 { font-size: 1.16rem; margin: 40px 0 10px; }
.narrow-text p, .narrow-text li { color: var(--text-soft); }
.narrow-text .section-title { max-width: 24ch; }
.plain-list { list-style: none; margin: 0 0 1em; padding: 0; }
.plain-list li { padding: 8px 0; border-top: 1px solid var(--rule); }

.site-footer { background: var(--charcoal); color: var(--on-dark-soft); }
.footer-inner { padding-block: 44px; display: grid; gap: 20px; font-size: 0.94rem; }
.footer-mark { font-size: 1.4rem; color: var(--bone); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--bone); }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 400px) { .header-nav .btn-small { display: none; } }

@media (min-width: 680px) {
  .groups { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 900px) {
  .header-nav .nav-link { display: inline; }
  .hero-grid { grid-template-columns: 57fr 43fr; align-items: center; gap: clamp(40px, 5vw, 72px); }
  .hero-visual { aspect-ratio: 5 / 6; }
  .warsaw-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .enquiry-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .enquiry-grid .section-head { position: sticky; top: 96px; align-self: start; }
}
