/* ==========================================================================
   Agora — civic urban design & engagement template · archesign.studio
   1. Tokens  2. Base  3. Header  4. Components  5. Pages  6. Footer  7. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --red: #e1251b;
  --red-dark: #b81d15;
  --pink: #f4b5b0;
  --white: #ffffff;
  --off: #f5f2ee;
  --black: #111111;
  --grey: #6b6661;
  --hair: #d9d3cc;

  --font-poster: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 44px);
  --max: 1400px;
  --space: clamp(80px, 10vw, 150px);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--off); color: var(--black); font: 400 18px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-poster); font-weight: 400; margin: 0; line-height: .9; letter-spacing: .005em; }
h4 { font: 700 13px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
::selection { background: var(--red); color: var(--white); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.kicker { font: 700 14px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.u { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* 3. Header ---------------------------------------------------------------- */
.alert { background: var(--black); color: var(--white); font-size: 15px; }
.alert .wrap { padding-top: 9px; padding-bottom: 9px; }
.alert b { color: var(--pink); }
.alert a { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--red); color: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo span { font: 400 48px/1 var(--font-poster); letter-spacing: .02em; }
.logo small { font: 700 12px/1.05 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { font: 400 26px var(--font-poster); letter-spacing: .03em; padding: 6px 14px 2px; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--red-dark); }
.site-nav a[aria-current="page"] { background: var(--white); color: var(--red); }
.menu-btn { display: none; }

/* 4. Components ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 12px; background: var(--black); color: var(--white); border: 0; font: 400 24px var(--font-poster); letter-spacing: .04em; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--red); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--black); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--black); color: var(--white); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; background: var(--white); border: 2px solid var(--black); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grey); }
.status--open::before { background: #18a957; box-shadow: 0 0 0 3px rgba(24, 169, 87, .2); }
.status--closed { opacity: .7; }
.card { display: flex; flex-direction: column; background: var(--white); border: 3px solid var(--black); transition: transform .15s, box-shadow .15s; }
a.card:hover, .js a.card.reveal.is-in:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--red); }
.card img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-bottom: 3px solid var(--black); }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 34px; }
.card p { margin: 0; font-size: 16px; color: var(--grey); }
.meter { height: 12px; background: var(--off); border: 2px solid var(--black); margin-top: auto; }
.meter i { display: block; height: 100%; width: var(--p); background: var(--red); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 5. Pages ----------------------------------------------------------------- */
/* hero */
.hero { background: var(--red); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: end; padding-top: clamp(30px, 5vw, 70px); }
.hero h1 { font-size: clamp(84px, 14vw, 230px); line-height: .82; }
.hero h1 span { display: block; color: var(--black); }
.hero .lead { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; max-width: 34ch; margin: 26px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(30px, 5vw, 70px); }
.hero-map { border: 4px solid var(--black); border-bottom: 0; background: var(--white); position: relative; }
.hero-map img { width: 100%; aspect-ratio: 14 / 10; object-fit: cover; }
.hero-map .pin { position: absolute; left: 44%; top: 36%; transform: translate(-50%, -100%); background: var(--black); color: var(--white); font: 400 22px var(--font-poster); padding: 6px 12px 3px; white-space: nowrap; }
.hero-map .pin::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 6px solid transparent; border-top: 6px solid var(--black); }

/* numbers band */
.band { background: var(--black); color: var(--white); }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.band div > div { padding: 26px 20px; border-left: 2px solid #333; }
.band div > div:first-child { border-left: 0; padding-left: 0; }
.band b { display: block; font: 400 clamp(52px, 5vw, 84px)/.9 var(--font-poster); color: var(--pink); }
.band span { font-size: 15px; }

/* consultations */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(56px, 7vw, 120px); }
.consults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* poll */
.poll-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 5vw, 80px); align-items: center; }
.poll-wrap h2 { font-size: clamp(56px, 6.6vw, 110px); }
.poll { background: var(--white); border: 3px solid var(--black); padding: clamp(18px, 3vw, 32px); box-shadow: 10px 10px 0 var(--red); }
.poll fieldset { border: 0; margin: 0; padding: 0; }
.poll legend { font: 400 34px/1 var(--font-poster); margin-bottom: 18px; }
.poll label { position: relative; display: block; margin-bottom: 10px; cursor: pointer; }
.poll input { position: absolute; opacity: 0; }
.poll .opt { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 2px solid var(--black); font-weight: 600; overflow: hidden; z-index: 0; }
.poll .opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pink); z-index: -1; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.poll .opt .pc { opacity: 0; transition: opacity .4s; font-family: var(--font-poster); font-size: 24px; line-height: 1; }
.poll input:checked + .opt { background: var(--off); }
.poll input:checked + .opt .bar { background: var(--red); }
.poll input:checked + .opt { color: var(--white); }
.poll input:focus-visible + .opt { outline: 3px solid var(--red); outline-offset: 2px; }
.poll:has(input:checked) .bar { width: var(--v); }
.poll:has(input:checked) .pc { opacity: 1; }
.poll .thanks { display: none; margin: 14px 0 0; font-weight: 700; color: var(--red); }
.poll:has(input:checked) .thanks { display: block; }

/* page head */
.page-head { background: var(--red); color: var(--white); padding: clamp(50px, 7vw, 110px) 0 clamp(36px, 5vw, 60px); }
.page-head h1 { font-size: clamp(80px, 13vw, 210px); line-height: .82; }
.page-head p { max-width: 50ch; font-size: 20px; font-weight: 600; margin: 22px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 30px; }
.filters button { font: 400 24px var(--font-poster); letter-spacing: .03em; background: var(--white); color: var(--black); border: 3px solid var(--black); padding: 8px 16px 4px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* project */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 3px solid var(--black); background: var(--white); margin: 0; }
.facts div { padding: 18px 20px; border-left: 3px solid var(--black); }
.facts div:first-child { border-left: 0; }
.facts dt { font: 700 12px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 6px 0 0; font: 400 34px/1 var(--font-poster); }
.compare { --pos: 50%; position: relative; overflow: hidden; border: 3px solid var(--black); user-select: none; }
.compare > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .top img { width: 100%; height: 100%; object-fit: cover; }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--red); pointer-events: none; }
.compare .bar::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; display: grid; place-items: center; background: var(--red); color: var(--white); font: 400 28px var(--font-poster); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.compare .lbl { position: absolute; top: 14px; font: 400 22px var(--font-poster); padding: 5px 10px 2px; pointer-events: none; }
.compare .lbl--l { left: 14px; background: var(--white); }
.compare .lbl--r { right: 14px; background: var(--red); color: var(--white); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline li { padding: 22px 16px 0 0; border-top: 6px solid var(--black); position: relative; }
.timeline li::before { content: ""; position: absolute; top: -15px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--black); border: 4px solid var(--off); }
.timeline li.done { border-top-color: var(--red); }
.timeline li.done::before { background: var(--red); }
.timeline li.now::before { background: var(--white); border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 37, 27, .25); }
.timeline b { display: block; font: 400 30px/1 var(--font-poster); }
.timeline span { font-size: 15px; color: var(--grey); }
.results { display: grid; gap: 14px; }
.result { display: grid; grid-template-columns: 240px 1fr 60px; gap: 14px; align-items: center; font-weight: 600; }
.result .meter { margin: 0; height: 22px; }
.result em { font: 400 26px var(--font-poster); font-style: normal; text-align: right; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: start; }
.two h2 { font-size: clamp(48px, 5.4vw, 88px); margin-bottom: 16px; }
.figure { border: 3px solid var(--black); background: var(--white); }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { padding: 10px 14px; border-top: 3px solid var(--black); font-size: 15px; font-weight: 600; }
figure { margin: 0; }

/* studio */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 3px solid var(--black); background: var(--white); }
.values div { padding: 26px; border-left: 3px solid var(--black); }
.values div:first-child { border-left: 0; }
.values b { font: 400 64px/1 var(--font-poster); color: var(--red); display: block; }
.values h3 { font-size: 36px; margin: 10px 0 8px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--black); }
.team h3 { font-size: 30px; margin-top: 12px; }
.team p { margin: 2px 0 0; font-size: 15px; color: var(--grey); }

/* services */
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.method { background: var(--white); border: 3px solid var(--black); padding: 26px; display: grid; grid-template-columns: 70px 1fr; gap: 18px; }
.method .n { font: 400 64px/1 var(--font-poster); color: var(--red); }
.method h3 { font-size: 36px; margin-bottom: 8px; }
.method p { margin: 0; color: var(--grey); }
.faq { max-width: 900px; border-top: 3px solid var(--black); }
.faq details { border-bottom: 3px solid var(--black); padding: 18px 0; }
.faq summary { display: block; position: relative; padding-right: 50px; cursor: pointer; list-style: none; font: 400 32px/1 var(--font-poster); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -4px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 30px; }
.faq details[open] summary::after { content: "−"; background: var(--black); }
.faq details p { margin: 12px 0 0; max-width: 70ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); border: 3px solid var(--black); padding: clamp(18px, 3vw, 32px); }
.form > *, .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .actions, .form-note, .check { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: 400 18px var(--font-sans); color: var(--black); background: var(--off); border: 2px solid var(--black); border-radius: 0; padding: 12px 14px; min-width: 0; max-width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--red); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: start; font-size: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 3px; }
.form-note { margin: 0; padding: 14px 16px; background: var(--pink); border: 2px solid var(--black); font-weight: 600; }
.side { background: var(--black); color: var(--white); padding: 28px; }
.side h3 { font-size: 44px; color: var(--pink); margin-bottom: 12px; }
.side ul { list-style: none; padding: 0; margin: 16px 0 0; }
.side li { padding: 10px 0; border-top: 2px solid #333; }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { margin-top: var(--space); background: var(--black); color: var(--white); padding: clamp(60px, 8vw, 110px) 0 26px; }
.f-big { font-size: clamp(64px, 10vw, 170px); color: var(--red); padding-bottom: 44px; border-bottom: 2px solid #333; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); padding: 40px 0 26px; font-size: 16px; }
.f-logo { font: 400 36px var(--font-poster); margin: 0 0 8px; }
.site-footer h4 { color: var(--pink); }
.f-grid a:hover { color: var(--pink); text-decoration: underline; }
.f-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; padding-top: 16px; border-top: 2px solid #333; font-size: 14px; color: #aaa; }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .consults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .header-row { height: 68px; }
  .logo span { font-size: 40px; }
  .menu-btn { display: inline-block; position: relative; z-index: 60; background: var(--black); color: var(--white); border: 0; font: 400 24px var(--font-poster); padding: 8px 16px 4px; cursor: pointer; }
  .menu-open .menu-btn { background: var(--white); color: var(--red); }
  .site-nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter); background: var(--red); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .site-nav a { font-size: 76px; line-height: 1; padding: 4px 0; }
  .site-nav a[aria-current="page"] { background: transparent; color: var(--black); }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .hero-grid, .poll-wrap, .two, .contact, .form { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr 1fr; }
  .band div > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 3px solid var(--black); }
  .values, .methods { grid-template-columns: 1fr; }
  .values div { border-left: 0; border-top: 3px solid var(--black); }
  .values div:first-child { border-top: 0; }
  .result { grid-template-columns: 1fr 50px; }
  .result .meter { grid-column: 1 / -1; grid-row: 2; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid > :first-child { grid-column: 1 / -1; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .consults, .team { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 86px; }
  .page-head h1 { font-size: 80px; }
  .method { grid-template-columns: 1fr; gap: 6px; }
  .alert { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
