/* GK Group — shared stylesheet. Static HTML/CSS, no framework. */

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #bdbdbd;
  --accent-ink: #0a0a0a;
  --on-image: #ffffff;
  --on-image-muted: rgba(255, 255, 255, 0.82);
  --scrim-strong: rgba(0, 0, 0, 0.78);
  --scrim-soft: rgba(0, 0, 0, 0.32);

  --radius: 10px;
  --radius-sm: 6px;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .eyebrow, .bleed .eyebrow { color: var(--on-image-muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0; }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 56ch; }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 4px; }

section { padding-block: clamp(64px, 9vw, 112px); }
.section-surface { background: var(--surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--on-image); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--on-image); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* Nav */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 28px; color: var(--on-image);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding-inline: var(--gutter); }
.brand { display: flex; flex-direction: column; font-family: var(--display); text-decoration: none; color: var(--on-image); }
.brand-main { font-style: italic; font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: 0.01em; }
.brand small { display: block; font-family: var(--body); font-style: normal; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--on-image-muted); margin-top: 1px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--body); font-size: 16px; font-weight: 700; letter-spacing: 0; text-decoration: none; color: var(--on-image); opacity: 0.95; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: clamp(580px, 92vh, 920px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--on-image); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
}
.hero-media img {
  transform-origin: 50% 40%;
  animation: hero-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.06) translate(-1%, -1%); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--scrim-soft) 0%, rgba(0,0,0,0.18) 38%, var(--scrim-strong) 100%);
}
.hero-body { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: center; padding-block: 140px 64px; max-width: 880px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -0.005em; }
.hero-body .eyebrow { font-size: 13px; }

/* Compact page banner (interior pages) */
.hero-compact { min-height: clamp(360px, 46vw, 520px); }
.hero-compact .hero-body { padding-block: 120px 48px; gap: 18px; }
.hero-compact h1 { font-size: clamp(34px, 5vw, 56px); }
.banner-lede { color: var(--on-image-muted); max-width: 60ch; }

/* Figures band */
.figures { border-bottom: 1px solid var(--line); background: var(--bg); }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures-grid div { padding-block: 32px; padding-inline: 0 20px; border-right: 1px solid var(--line); text-align: left; }
.figures-grid div + div { padding-left: 24px; }
.figures-grid div:last-child { border-right: 0; }
.figures-grid dt { order: 2; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.figures-grid dd { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.figures-note { text-align: center; font-size: 13px; color: var(--muted); padding-block: 16px; border-top: 1px solid var(--line); }

/* Featured project */
.featured { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.featured-media { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.featured-text { display: grid; gap: 20px; }
.featured-stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 18px; }
.featured-stats li { display: grid; gap: 4px; }
.featured-stats b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.featured-stats span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Project detail: intro + mosaic gallery */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro-text { display: grid; gap: 22px; position: sticky; top: 32px; }
.fact-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact-list li span:last-child { color: var(--muted); text-align: right; }
.brochure-box {
  margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brochure-box h3 { margin-top: 4px; font-size: 19px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic figure { margin: 0; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.mosaic figure:first-child { grid-column: 1 / -1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .8s ease; }
.mosaic figure:first-child img { aspect-ratio: 16 / 9.5; }
.mosaic figure:hover img { transform: scale(1.03); }

/* Project detail: residence schedule table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
th:first-child, td:first-child { padding-left: 0; }
thead th { font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-size: 15px; }
td.level { font-family: var(--display); font-size: 19px; }
td.level small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-top: 2px; }
tbody tr:hover td { background: rgba(0, 0, 0, 0.04); }
tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 600; }
.dash { color: var(--muted); }
.schedule-note { margin-top: 20px; font-size: 14px; }

/* Project detail: ground floor plan */
.plan { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.plan figure { margin: 0; background: #ffffff; padding: clamp(8px, 1.5vw, 20px); border-radius: var(--radius); }
.plan-notes { display: grid; gap: 16px; }

/* Project detail: full-bleed image break */
.bleed { padding: 0; }
.bleed img { width: 100%; height: clamp(320px, 52vw, 680px); object-fit: cover; }

/* Mission / about-in-brief */
.mission-section { position: relative; overflow: hidden; }
.mission-bg { position: absolute; inset: 0; z-index: 0; }
.mission-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.mission-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 32%, rgba(22, 22, 22, 0.45) 65%, rgba(22, 22, 22, 0.05) 100%);
}
.mission { position: relative; z-index: 1; }
.mission-body { display: grid; gap: 20px; max-width: 56ch; }

/* Developments preview */
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.dev-card { display: block; text-decoration: none; color: inherit; }
.dev-card-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.dev-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dev-card:hover .dev-card-media img { transform: scale(1.04); }
.dev-card-placeholder { display: grid; place-items: center; height: 100%; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.dev-card-placeholder span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dev-card-body { padding-top: 18px; display: grid; gap: 6px; }
.dev-card-count { font-family: var(--display); font-size: 28px; }
.dev-card-label { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.dev-card-link { margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; display: inline-block; }

/* Developments page: filter + full grid */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 48px); }
.filter-btn {
  font-family: var(--body); font-size: 13px; letter-spacing: 0.04em; cursor: pointer;
  padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--muted);
}
.filter-btn span { color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-btn.active span { color: var(--bg); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 36px); }
.proj-card { display: block; text-decoration: none; color: inherit; }
.proj-card-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.proj-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.proj-card:hover .proj-card-media img { transform: scale(1.04); }
.proj-card-body { padding-top: 16px; display: grid; gap: 6px; }
.proj-card-body h3 { font-family: var(--body); font-weight: 600; font-size: 20px; }
.proj-card-meta { font-size: 13px; color: var(--muted); }
.proj-card-placeholder { display: grid; place-items: center; height: 100%; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.proj-card-placeholder span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proj-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(0, 0, 0, 0.78); color: #ffffff;
  font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.proj-badge-sold { left: auto; right: 16px; background: #ffffff; color: #0a0a0a; }

/* Process (Land, Design, Build, Deliver) */
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.process-grid li { padding: 28px 24px 8px 0; display: grid; gap: 12px; align-content: start; counter-increment: step; }
.process-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process-grid li::before { content: "0" counter(step); font-family: var(--display); font-size: 15px; color: var(--accent); }
.process-grid p { color: var(--muted); font-size: 15px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 28px); }
.news-card { display: block; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s; border-radius: var(--radius); }
.news-card:hover { border-color: var(--accent); }
.news-card h3 { margin-top: 10px; font-size: 21px; }
.news-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.news-card-link { display: inline-block; margin-top: 16px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* Buying from abroad: detail grid + FAQ */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.detail-grid h3 { margin-bottom: 14px; }
.detail-grid p { color: var(--muted); font-size: 15px; }
.faq-list { margin: 0; border-top: 1px solid var(--line); }
.faq-item { padding-block: 24px; border-bottom: 1px solid var(--line); }
.faq-item dt { font-family: var(--display); font-size: 19px; margin: 0 0 10px; }
.faq-item dd { margin: 0; color: var(--muted); font-size: 15px; max-width: 65ch; }

/* Contact methods (standalone contact page) */
.contact-methods { list-style: none; margin: 8px 0 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.contact-methods li { display: grid; gap: 8px; }
.contact-methods a, .contact-methods .value { font-family: var(--display); font-size: clamp(19px, 2vw, 23px); text-decoration: none; color: var(--ink); }
.contact-methods a:hover { color: var(--accent); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.contact-intro { display: grid; gap: 18px; align-content: start; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); border: 1px solid var(--line-strong); padding: 10px 14px; cursor: pointer; border-radius: var(--radius-sm); }
.choice input { width: auto; accent-color: var(--accent); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); }

/* Footer */
footer { padding-block: 44px 56px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand small { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: 13px; text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { font-size: 12px; color: var(--muted); margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .featured, .contact .wrap, .intro, .plan { grid-template-columns: minmax(0, 1fr); }
  .intro-text { position: static; }
  .dev-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures-grid { grid-template-columns: 1fr 1fr; }
  .figures-grid div:nth-child(2) { border-right: 0; }
  .figures-grid div:nth-child(3) { padding-left: 0; }
  .figures-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--scrim-strong); backdrop-filter: blur(6px);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links a { display: block; padding-block: 12px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .nav.nav-open .nav-links { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.5); background: transparent;
    color: var(--on-image); cursor: pointer; border-radius: var(--radius-sm);
  }
  .mission-bg img { opacity: 0.22; }
  .mission-bg::after { background: linear-gradient(180deg, var(--surface) 0%, rgba(22, 22, 22, 0.7) 100%); }
  .dev-grid, .proj-grid, .mosaic, .news-grid, .detail-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  form { grid-template-columns: minmax(0, 1fr); }
  .featured-stats, .contact-methods { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
