/* riekstu15.lv — light + gold investor pitch */

:root {
  --bg: #faf7f0;
  --bg-card: #ffffff;
  --bg-section: #f1ebdd;
  --bg-dark: #1d1b17;
  --gold: #a87f2f;
  --gold-bright: #c9a14d;
  --text: #26231d;
  --muted: #6f6857;
  --line: #ddd5c4;
  --green: #4f7a3a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
}

.main-nav { display: flex; gap: 22px; }

.main-nav a {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.main-nav a:hover { color: var(--gold); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--muted);
  padding: 4px 7px;
  border-radius: 4px;
}
.lang-switch a:hover { color: var(--gold); }
.lang-switch a.active {
  color: var(--gold);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .main-nav { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: 64px 0 0; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-price {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 14px 26px;
  background: var(--bg-card);
}

.hero-price .label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-price .value {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.hero-price .note { font-size: 0.8rem; color: var(--muted); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* facade shown intact — never cropped or stretched */
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: 8px 8px 0 0; }
.hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 10px 2px 26px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 5px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); color: #fff; }

.btn-ghost { border: 1px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: rgba(168, 127, 47, 0.08); color: var(--gold); }

/* ---------- sections ---------- */

.section { padding: 88px 0; scroll-margin-top: 64px; }
.section.alt { background: var(--bg-section); }

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 18px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.06rem;
  max-width: 760px;
  color: var(--text);
}

.muted { color: var(--muted); }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 8px;
}

.fact-rows { margin-top: 30px; border-top: 1px solid var(--line); }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.fact-row .k { color: var(--muted); }
.fact-row .v { text-align: right; font-weight: 500; }

figure.photo { margin: 0; }

figure.photo img { border-radius: 6px; }

figure.photo figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 9px;
}

.photo-stack { display: grid; gap: 22px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 20px;
}

.stat-card .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-card .unit { font-size: 0.95rem; color: var(--gold-bright); }

.stat-card .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }

th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

tr.total td {
  color: var(--gold);
  font-weight: 600;
  border-top: 2px solid var(--gold);
  border-bottom: none;
}

tr.own td { color: var(--gold); font-weight: 600; }

/* ---------- invest layout ---------- */

.invest-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  margin-top: 34px;
  align-items: stretch;
}

.invest-row2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  margin-top: 30px;
  align-items: stretch;
}

.invest-row2 .note-box { margin-top: 0; display: flex; flex-direction: column; justify-content: center; }

.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

.fin-grid .fact-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-bottom: none;
  padding: 4px 0;
}

.fin-grid .v { text-align: left; }

@media (max-width: 860px) {
  .invest-grid { grid-template-columns: 1fr; }
  .invest-row2 { grid-template-columns: 1fr; gap: 22px; }
  .fin-grid { grid-template-columns: 1fr; }
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.variant-card h3 { font-size: 1.02rem; }

.variant-card p { font-size: 0.9rem; }

.variants-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-top: 56px;
}

.big-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 38px 0 8px;
}

.big-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 22px;
  text-align: center;
}

.big-card .num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--gold);
}

.big-card.green .num { color: var(--green); }
.big-card.green { border-color: rgba(79, 122, 58, 0.4); }

.big-card .lbl {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.note-box {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 26px;
  box-shadow: 0 1px 3px rgba(38, 35, 29, 0.06);
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}

.aside-card h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--gold);
}

.aside-card + .aside-card { margin-top: 22px; }

.fine-print { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ---------- timeline ---------- */

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 8px;
}

.timeline-grid .photo { max-width: 400px; margin: 0 auto; }

@media (max-width: 860px) {
  .timeline-grid { grid-template-columns: 1fr; }
}


.timeline { list-style: none; margin-top: 38px; position: relative; padding-left: 26px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline li { position: relative; padding: 0 0 30px 18px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold);
}

.section.alt .timeline li::before { border-color: var(--bg-section); }

.timeline .when {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--gold);
}

.timeline .what { color: var(--text); font-size: 0.96rem; }

/* ---------- apartments ---------- */

.plan-figure { margin: 36px 0; }

.plan-figure img {
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
}

.apt-cta { margin-top: 32px; }

.apt-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: stretch;
}

.apt-grid > div:last-child { display: flex; flex-direction: column; }

.apt-grid .aside-card { flex: 1; display: flex; flex-direction: column; }

.apt-grid .fine-print { margin-top: auto; padding-top: 14px; }

@media (max-width: 860px) {
  .apt-grid { grid-template-columns: 1fr; }
}

/* ---------- location ---------- */

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  margin-top: 34px;
  align-items: stretch;
}

.loc-map { display: flex; flex-direction: column; }

.map-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.map-link { margin: 8px 0 0; font-size: 0.8rem; }

@media (max-width: 860px) {
  .loc-grid { grid-template-columns: 1fr; }
  .map-frame { flex: none; height: 340px; }
}

/* ---------- contacts ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}

.contact-card .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-card .role { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }

.contact-card .line { font-size: 0.95rem; padding: 3px 0; }

.contact-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-dark);
  padding: 44px 0 54px;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.site-footer p { font-size: 0.82rem; color: #9a937f; max-width: 720px; }

.site-footer .domain { margin-top: 16px; color: var(--gold-bright); font-size: 0.85rem; letter-spacing: 0.06em; }

/* ---------- documents teaser + data room ---------- */

.docs-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 30px;
}
@media (max-width: 860px) { .docs-teaser { grid-template-columns: 1fr; gap: 26px; } }

.docs-list { margin: 0; padding: 0; list-style: none; }
.docs-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.docs-list li::before { content: "▪"; color: var(--gold); font-size: 0.7rem; }

.docs-cta {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.docs-cta h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.docs-cta p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }

/* data room page */
.dataroom-note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 24px 0 36px;
}
.doc-cat { margin-top: 38px; }
.doc-cat > h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 6px;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.doc-row .doc-name { font-weight: 600; }
.doc-row .doc-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.doc-row .doc-dl {
  flex: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.doc-row .doc-dl:hover { background: var(--gold); color: #fff; }
.doc-row.pending .doc-dl {
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

/* ---------- floor plan variants ---------- */

.plan-variant { margin-top: 52px; }
.plan-variant:first-of-type { margin-top: 30px; }
.plan-variant > h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.plan-variant > h3 .count {
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- development perspectives ---------- */

.persp-intro { max-width: 760px; }

.perspektiva {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.perspektiva:first-of-type { border-top: none; padding-top: 0; }

.persp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.persp-grid.flip .persp-media { order: 2; }

.persp-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.perspektiva h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 14px;
}
.perspektiva p { color: var(--text); margin-bottom: 14px; }
.perspektiva .persp-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.perspektiva .persp-media figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.persp-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.persp-facts .fact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.persp-facts .k { color: var(--muted); font-size: 0.82rem; }
.persp-facts .v { font-weight: 600; }

/* official Riga Dome letter proof block */
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}
.proof-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
}
.proof-card blockquote {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 10px;
}
.proof-card .cite { font-size: 0.82rem; color: var(--muted); }
.proof-card .cite strong { color: var(--text); }
.proof-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; }

.persp-econ {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.persp-econ .e {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.persp-econ .e .n { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.persp-econ .e.green .n { color: var(--green); }
.persp-econ .e .l { font-size: 0.74rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 860px) {
  .persp-grid { grid-template-columns: 1fr; gap: 28px; }
  .persp-grid.flip .persp-media { order: 0; }
  .proof-card { grid-template-columns: 1fr; }
  .proof-card img { max-width: 200px; }
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  th, td { padding: 10px 10px; }
  .persp-facts { grid-template-columns: 1fr; }
  .persp-econ { grid-template-columns: 1fr; }
}
