/* ==========================================================================
   Grid City — colourful map-inspired planning template · archesign.studio
   1. Tokens  2. Base  3. Header  4. Components  5. Pages  6. Footer  7. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --cream: #fbf6ea;
  --street: #ffffff;
  --ink: #1d1a27;
  --grey: #6a6577;
  --orange: #f28e2b;
  --blue: #4e79a7;
  --green: #59a14f;
  --yellow: #edc948;
  --purple: #b07aa1;
  --teal: #76b7b2;
  --red: #e15759;
  --sign: #1f6b43;

  --font-sans: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Rubik Mono One", "Rubik", sans-serif;

  --gutter: clamp(16px, 3vw, 44px);
  --max: 1360px;
  --space: clamp(80px, 10vw, 140px);
  --r: 22px;
  --street-w: 14px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 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 { margin: 0; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
h4 { font: 400 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--yellow); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; 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; }
.sign { display: inline-flex; align-items: center; gap: 8px; background: var(--sign); color: #fff; font: 400 12px var(--font-mono); letter-spacing: .02em; text-transform: uppercase; padding: 8px 14px 7px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff; margin-bottom: 18px; }
.sign--blue { background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 4px #fff; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }

/* 3. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: var(--street-w) solid var(--street); box-shadow: 0 1px 0 #ece6d8; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 26px var(--font-sans); letter-spacing: -.04em; }
.logo small { font: 400 11px var(--font-mono); letter-spacing: 0; color: var(--grey); margin-top: 6px; }
.q { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 24px; height: 24px; }
.q i { border-radius: 3px; background: var(--orange); }
.q i:nth-child(2) { background: var(--blue); }
.q i:nth-child(3) { background: var(--green); }
.q i:nth-child(4) { background: var(--yellow); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; padding: 9px 14px; border-radius: 12px; transition: background .15s; }
.site-nav a:hover { background: #fff; }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; }

/* 4. Components ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font: 700 16px var(--font-sans); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: var(--blue); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--yellow); }
.blk { border-radius: var(--r); overflow: hidden; position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend span, .filters button { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--font-sans); padding: 8px 12px; border-radius: 10px; background: #fff; border: 2px solid transparent; }
.js .reveal { opacity: 0; transform: scale(.96); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1.2); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 5. Pages ----------------------------------------------------------------- */
/* hero */
.hero { padding: clamp(30px, 4vw, 54px) 0 0; }
.city { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(110px, auto); gap: var(--street-w); background: var(--street); padding: var(--street-w); border-radius: calc(var(--r) + var(--street-w)); }
.city > * { min-width: 0; }
.c-title { grid-column: span 7; grid-row: span 3; background: var(--yellow); padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.c-title h1 { font-size: clamp(40px, 5vw, 80px); }
.c-title p { font-size: 19px; max-width: 40ch; margin: 0 0 22px; }
.c-map { grid-column: span 5; grid-row: span 3; }
.c-map img { width: 100%; height: 100%; object-fit: cover; }
.c-stat { grid-column: span 3; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.c-stat b { font-size: clamp(36px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.c-stat span { font-size: 14px; font-weight: 500; }

/* project blocks */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(40px, 5vw, 76px); }
.lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--street-w); background: var(--street); padding: var(--street-w); border-radius: calc(var(--r) + var(--street-w)); }
.lot { display: flex; flex-direction: column; background: var(--c); color: var(--ink); transition: filter .2s; }
.lot:hover { filter: saturate(1.2) brightness(1.03); }
.lot img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; }
.lot .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.lot h3 { font-size: 26px; }
.lot p { margin: 0; font-size: 15px; }
.lot .tagline { font: 400 10px var(--font-mono); text-transform: uppercase; opacity: .85; }
.lot.dark { color: #fff; }

/* zone strip */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--street-w); }
.zone { padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; background: var(--c); }
.zone h3 { font-size: 28px; }
.zone p { margin: 0; font-size: 15px; }
.zone .code { font: 400 34px var(--font-mono); opacity: .9; }
.zone.dark { color: #fff; }

/* page head */
.page-head { padding: clamp(40px, 6vw, 80px) 0 30px; }
.page-head .blk { background: var(--c, var(--orange)); padding: clamp(26px, 4vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: end; }
.page-head h1 { font-size: clamp(54px, 8vw, 128px); }
.page-head p { margin: 0; font-size: 19px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* masterplan */
.mp { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
.mp .blk img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mp h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 14px; }
.landuse { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; background: #fff; border-radius: var(--r); padding: 24px; margin-top: 24px; }
.pie { width: 200px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--orange) 0 38%, var(--green) 38% 62%, var(--blue) 62% 80%, var(--yellow) 80% 92%, var(--purple) 92% 100%); position: relative; }
.pie::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #fff; }
.landuse ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.landuse li { display: flex; align-items: center; gap: 10px; }
.landuse li b { margin-left: auto; }
.phases { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; background: var(--street); padding: 6px; border-radius: 16px; max-width: 720px; }
.phases i { aspect-ratio: 1; border-radius: 6px; background: var(--c); }
.phase-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 15px; }
.phase-legend span { display: inline-flex; align-items: center; gap: 8px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--street-w); }
.numbers div { background: #fff; border-radius: var(--r); padding: 22px; }
.numbers b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--c); }
.numbers span { font-size: 14px; color: var(--grey); }

/* studio */
.neighbours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--street-w); }
.neighbour { background: #fff; border-radius: var(--r); padding: 16px; }
.neighbour img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.neighbour h3 { font-size: 22px; margin-top: 14px; }
.neighbour p { margin: 2px 0 0; font-size: 14px; color: var(--grey); }

/* faq */
.faq { max-width: 900px; }
.faq details { background: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 10px; border-left: 8px solid var(--c, var(--orange)); }
.faq summary { display: block; position: relative; padding-right: 40px; cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -4px; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--street-w); background: var(--street); padding: var(--street-w); border-radius: calc(var(--r) + var(--street-w)); }
.contact > * { border-radius: var(--r); min-width: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--cream); padding: clamp(18px, 3vw, 32px); }
.form > *, .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .actions, .form-note, .pins { grid-column: 1 / -1; }
.field label, .pins legend { font: 400 11px var(--font-mono); text-transform: uppercase; }
.field input, .field select, .field textarea { font: 400 17px var(--font-sans); color: var(--ink); background: #fff; border: 2px solid #ece6d8; border-radius: 12px; padding: 12px 14px; min-width: 0; max-width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.pins { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pins legend { margin-bottom: 8px; width: 100%; }
.pins label { position: relative; }
.pins input { position: absolute; opacity: 0; }
.pins span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #fff; border: 2px solid transparent; cursor: pointer; font-weight: 500; font-size: 15px; }
.pins input:checked + span { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pins input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--yellow); font-weight: 500; }
.map-card { background: var(--teal); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map-card .body { padding: 22px; }
.map-card h3 { font-size: 28px; margin-bottom: 8px; }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { margin-top: var(--space); padding-bottom: 26px; }
.f-blocks { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--street-w); background: var(--street); padding: var(--street-w); border-radius: calc(var(--r) + var(--street-w)); }
.fb { border-radius: var(--r); padding: 24px; background: var(--c, var(--ink)); min-width: 0; }
.fb--big { background: var(--ink); color: #fff; padding: clamp(26px, 3vw, 44px); }
.fb--big h2 { font-size: clamp(34px, 3.6vw, 56px); margin-bottom: 26px; }
.fb a:hover { text-decoration: underline; }
.f-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; font-size: 14px; color: var(--grey); }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .c-title { grid-column: span 12; grid-row: auto; }
  .c-map { grid-column: span 12; grid-row: auto; }
  .c-map img { aspect-ratio: 16 / 10; }
  .c-stat { grid-column: span 6; }
  .zones, .numbers { grid-template-columns: repeat(2, 1fr); }
  .neighbours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-blocks { grid-template-columns: 1fr 1fr; }
  .fb--big { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --street-w: 10px; }
  .menu-btn { display: inline-block; position: relative; z-index: 60; background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 10px 16px; font: 700 15px var(--font-sans); cursor: pointer; }
  .site-nav { position: fixed; inset: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; padding: 90px 10px 10px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .site-nav a { border-radius: 18px; font-size: 26px; font-weight: 800; padding: 20px; align-items: flex-end; background: var(--cream); }
  .site-nav a:nth-child(1) { background: var(--orange); }
  .site-nav a:nth-child(2) { background: var(--blue); color: #fff; }
  .site-nav a:nth-child(3) { background: var(--green); color: #fff; }
  .site-nav a:nth-child(4) { background: var(--purple); color: #fff; }
  .site-nav a .dot { display: none; }
  .site-nav a[aria-current="page"] { outline: 4px solid var(--ink); outline-offset: -4px; background-clip: padding-box; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .blk, .mp, .contact, .form { grid-template-columns: 1fr; }
  .landuse { grid-template-columns: 1fr; justify-items: center; }
  .landuse ul { width: 100%; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .lots, .zones, .numbers, .neighbours { grid-template-columns: 1fr; }
  .c-stat { grid-column: span 12; }
  .c-title h1 { font-size: 40px; }
  .page-head h1 { font-size: 52px; }
  .phases { grid-template-columns: repeat(5, 1fr); }
  .f-blocks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
