/* ============================================================
   G·FLOORS — redesign
   Signature: "court line" — painted boundary brackets + lane rules
   ============================================================ */

:root {
  --ink: #15201a;
  --ink-soft: #46554b;
  --paper: #f2f5f1;
  --panel: #e6ebe4;
  --line: #ee5a2b;      /* signal / court-line orange */
  --turf: #2f7a4e;      /* field green */
  --mute: #c6d0c6;
  --mute-2: #d8ded4;
  --white: #ffffff;

  --ff-display: "Saira", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: 24px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

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

/* ---- eyebrow / mono label ---- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--line);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--line);
  display: inline-block;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--line); border-color: var(--line); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---- skip link / focus ---- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6em 1em; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--line);
  outline-offset: 3px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,245,241,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--mute);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7em; }
.brand-mark {
  width: 22px; height: 22px; position: relative; flex: none;
  background: var(--ink);
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 2px solid var(--line);
}
.brand-mark::before { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.brand-mark::after { bottom: 3px; right: 3px; border-left: none; border-top: none; }
.brand-name {
  font-family: var(--ff-display); font-weight: 800;
  font-size: 1.18rem; letter-spacing: 0.04em;
}
.primary-nav ul {
  list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0;
}
.primary-nav a {
  font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 0.3em 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--line);
  border-bottom: 2px dashed var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--line); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .2s; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  border-bottom: 1px solid var(--mute);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(46,122,78,0.10), transparent 55%),
    var(--paper);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 0.96;
  margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--line); }
.hero p.lead {
  font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* court-framed media (signature) */
.court { position: relative; }
.court::before, .court::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--line); z-index: 2; pointer-events: none;
}
.court::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.court::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.court img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.hero-media { aspect-ratio: 4/3; }

/* ============================================================
   Section primitives
   ============================================================ */
.section { padding: 76px 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--mute); border-bottom: 1px solid var(--mute); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* lane rule divider */
.lane {
  height: 0; border: none;
  border-top: 2px solid var(--mute);
  position: relative; margin: 0;
}
.lane::after {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 120px; height: 2px; background: var(--line);
  border-bottom: 2px dashed var(--line);
}

/* ============================================================
   Solution tiles (home)
   ============================================================ */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tile {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--mute); border-radius: var(--radius);
  background: var(--white); min-height: 230px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(21,32,26,.5); }
.tile-img { height: 150px; overflow: hidden; background: var(--panel); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-body { padding: 16px 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-body h3 { font-size: 1.12rem; margin: 0; }
.tile-body .arr { color: var(--line); font-family: var(--ff-mono); font-weight: 700; }
.tile-no {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--paper); background: var(--ink); padding: 2px 8px; border-radius: 2px;
}

/* ============================================================
   Generic card grid (category items)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--mute); border-radius: var(--radius);
  background: var(--white); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card-media { aspect-ratio: 16/10; background: var(--panel); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .court-tag {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper); padding: 3px 9px; border-radius: 2px;
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.25rem; }
.card-body p { color: var(--ink-soft); margin: 0 0 1rem; }
.card-body a.more { font-family: var(--ff-display); font-weight: 600; color: var(--line); }
.card-body a.more:hover { text-decoration: underline; text-decoration-style: dashed; }

/* spec list */
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--mute); }
.specs li {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--mute);
}
.specs li b { font-family: var(--ff-display); font-weight: 600; }
.specs li span { color: var(--ink-soft); font-size: 0.95rem; }

/* placeholder when image is missing */
.noimg {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--panel) 0 14px, var(--mute-2) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); color: var(--ink-soft); font-size: 0.8rem;
}

/* ============================================================
   Category hero band
   ============================================================ */
.cat-hero {
  background: var(--ink); color: var(--paper);
  padding: 56px 0 60px; position: relative; overflow: hidden;
}
.cat-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(238,90,43,.28) 78px 80px);
  pointer-events: none; opacity: .5;
}
.cat-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: end; }
.cat-hero .eyebrow { color: var(--line); }
.cat-hero h1 { color: var(--paper); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
.cat-hero p { color: rgba(242,245,241,0.82); font-size: 1.05rem; max-width: 52ch; margin: 0; }
.cat-hero .hero-thumb { aspect-ratio: 4/3; border: 1px solid rgba(242,245,241,0.25); }
.cat-hero .hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   About / two-col
   ============================================================ */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.prose p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.prose .closing {
  font-family: var(--ff-display); font-weight: 600; color: var(--ink);
  font-size: 1.2rem; border-left: 3px solid var(--line); padding-left: 16px;
}
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.figs figure { margin: 0; }
.figs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.figs figure:first-child { grid-column: 1 / -1; }
.figs figcaption { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 6px; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--mute); border: 1px solid var(--mute); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.fact { background: var(--paper); padding: 22px 20px; }
.fact b { font-family: var(--ff-display); font-weight: 800; font-size: 1.9rem; color: var(--turf); display: block; }
.fact span { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   Installation + contact
   ============================================================ */
.worklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.worklist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.worklist li::before {
  content: "▸"; position: absolute; left: 0; top: 0; color: var(--line);
  font-family: var(--ff-mono);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { border: 1px solid var(--mute); border-radius: var(--radius); padding: 26px; background: var(--white); }
.contact-card h3 { font-size: 1.15rem; }
.contact-card .role { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--turf); }
.contact-card a { font-family: var(--ff-display); font-weight: 600; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { columns: 3; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; border: 1px solid var(--mute); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* ============================================================
   Special offers table
   ============================================================ */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.offer {
  border: 1px solid var(--mute); border-radius: var(--radius);
  padding: 14px 16px; background: var(--white);
  display: flex; flex-direction: column; gap: 4px;
}
.offer b { font-family: var(--ff-mono); color: var(--ink); }
.offer span { color: var(--ink-soft); font-size: 0.9rem; }
.offer.sold { opacity: .55; }
.offer.sold b { color: var(--line); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
.footer-name { font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.04em; margin: 0.4rem 0 0.2rem; }
.footer-tag { color: rgba(242,245,241,0.7); font-family: var(--ff-mono); font-size: 0.78rem; }
.footer-contact h3, .footer-partners h3 {
  font-family: var(--ff-mono); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--line); margin-bottom: 1rem;
}
.footer-contact p { color: rgba(242,245,241,0.82); margin: 0 0 0.8rem; }
.footer-contact a { color: var(--paper); border-bottom: 1px dashed rgba(242,245,241,0.4); }
.footer-contact a:hover { color: var(--line); border-color: var(--line); }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.partner-list img { height: 34px; width: auto; background: var(--paper); padding: 6px 10px; border-radius: 3px; filter: grayscale(1) contrast(1.05); transition: filter .2s ease; }
.partner-list a:hover img { filter: none; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(242,245,241,0.18); margin-top: 36px; padding-top: 20px;
  font-family: var(--ff-mono); font-size: 0.74rem; color: rgba(242,245,241,0.6);
}
.footer-base .to-top { color: var(--line); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid, .cat-hero .wrap, .twocol, .contact-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--mute);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .primary-nav.open { max-height: 360px; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px var(--pad) 16px; }
  .primary-nav li { border-bottom: 1px solid var(--mute); }
  .primary-nav a { display: block; padding: 0.9em 0; }
  .tiles { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .worklist { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
