/* Ashraya Holdings — site styles
   Tokens first; light is the base, dark redefines tokens only. */

:root {
  --paper: #faf9f7;
  --paper-2: #f2f0ec;
  --ink: #14110f;
  --ink-2: #5a544e;
  --ink-3: #8b847c;
  --line: #e2ded8;
  --accent: #e23c04;
  --accent-text: #c23400;
  --btn-bg: #cf3a00;
  --btn-ink: #ffffff;
  --deep: #14110f;
  --deep-ink: #f4f0ea;
  --deep-muted: #b3aba2;
  --deep-line: #38322d;
  --deep-accent: #ff6a33;
  --logo-umbrella: #14110f;
  --shadow: 0 1px 0 rgba(20, 17, 15, 0.04), 0 12px 32px -18px rgba(20, 17, 15, 0.25);

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12100e;
    --paper-2: #1a1714;
    --ink: #f3efea;
    --ink-2: #b0a99f;
    --ink-3: #857e75;
    --line: #2c2723;
    --accent: #ff5a24;
    --accent-text: #ff7042;
    --btn-bg: #ff5a24;
    --btn-ink: #14110f;
    --deep: #0b0a09;
    --deep-line: #2f2a26;
    --logo-umbrella: #f3efea;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --paper: #12100e;
  --paper-2: #1a1714;
  --ink: #f3efea;
  --ink-2: #b0a99f;
  --ink-3: #857e75;
  --line: #2c2723;
  --accent: #ff5a24;
  --accent-text: #ff7042;
  --btn-bg: #ff5a24;
  --btn-ink: #14110f;
  --deep: #0b0a09;
  --deep-line: #2f2a26;
  --logo-umbrella: #f3efea;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.site {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.site img, .site svg { max-width: 100%; }
.site a { color: inherit; }
.site p { margin: 0; }
.site h1, .site h2, .site h3, .site h4 { margin: 0; font-family: var(--font-display); font-weight: 400; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 56ch; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { height: 44px; width: auto; aspect-ratio: 410 / 544; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; }
.brand-name span { margin-top: 5px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-text); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--ink); border-color: var(--accent); }
.site .nav a.btn { padding: 10px 18px; color: var(--btn-ink); border: 0; }
.site .nav a.btn:hover { color: var(--btn-ink); }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: transparent; color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px clamp(16px, 4vw, 40px) 20px;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; text-align: center; padding: 14px 18px; border-bottom: 0; }
}

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

.site a.btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; letter-spacing: 0.01em;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ink); padding-block: 4px; border-bottom: 1px solid var(--ink-3);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent-text); }

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

.hero { padding-block: clamp(44px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 1.02; letter-spacing: -0.022em; margin-top: 22px; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.hero-mark {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 12% 12% 22%;
}
.hero-mark .mark { height: 100%; width: auto; max-width: 100%; aspect-ratio: 410 / 544; }
.hero-mark figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.86rem; color: var(--ink-2); line-height: 1.4;
}
.hero-mark figcaption b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { aspect-ratio: auto; min-height: 340px; max-width: 420px; }
}

/* ---------- facts ---------- */

.facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 30px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.fact span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 0.94rem; line-height: 1.4; }

@media (max-width: 720px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

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

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.018em; margin-top: 16px; }
.section-head p { margin-top: 20px; }

/* group */

.group-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: start; }

.modes { margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.modes div { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.modes div:last-child { border-bottom: 1px solid var(--line); }
.modes dt { font-family: var(--font-display); font-size: 1.35rem; }
.modes dd { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.tree { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); }
.tree-root { display: flex; flex-direction: column; gap: 4px; padding-bottom: 24px; }
.tree-root b { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.tree-root span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.tree-list { list-style: none; margin: 0 0 0 10px; padding: 0 0 0 32px; }
.tree-list li { position: relative; padding-block: 13px; }
.tree-list li::before { content: ""; position: absolute; left: -32px; top: 0; bottom: 0; width: 1px; background: var(--ink-3); }
.tree-list li:first-child::before { top: -16px; }
.tree-list li:last-child::before { bottom: auto; height: 26px; }
.tree-list li::after { content: ""; position: absolute; left: -32px; top: 26px; width: 22px; height: 1px; background: var(--ink-3); }
.tree-list a { display: block; text-decoration: none; }
.tree-list a b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.2; }
.tree-list a:hover b { color: var(--accent-text); }
.tree-list a span { display: block; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }

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

/* enterprises (deep band) */

.deep { background: var(--deep); color: var(--deep-ink); }
.deep .eyebrow { color: var(--deep-accent); }
.deep .lead { color: var(--deep-muted); }

.ent-top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.ent-top h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; margin-top: 16px; }
.ent-top h2 em { font-style: italic; color: var(--deep-accent); }
.big-num { display: flex; align-items: baseline; gap: 18px; margin-top: 28px; }
.big-num b { font-family: var(--font-display); font-weight: 300; font-size: clamp(4.5rem, 11vw, 8rem); line-height: 0.85; color: var(--deep-accent); letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.big-num span { color: var(--deep-muted); font-size: 1rem; max-width: 16ch; line-height: 1.35; }

.ent-lists { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); }
.ent-lists h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep-muted); padding-bottom: 14px; border-bottom: 1px solid var(--deep-line); }

.tiles { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  min-height: 148px; padding: 20px; text-decoration: none;
  border: 1px solid var(--deep-line); background: rgba(255, 255, 255, 0.025);
  transition: border-color .18s, background .18s;
}
.tile:hover { border-color: var(--deep-accent); background: rgba(255, 255, 255, 0.05); }
.tile .name { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; }
.tile .sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: var(--deep-muted); line-height: 1.3; }
.tile .sub i { font-style: normal; color: var(--deep-accent); transition: transform .18s; flex: none; }
.tile:hover .sub i { transform: translate(2px, -2px); }

@media (max-width: 860px) {
  .ent-top, .ent-lists { grid-template-columns: 1fr; }
}

/* ventures */

.ventures-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.venture-list { margin-top: clamp(32px, 5vw, 56px); }
.venture {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 56px); padding-block: 38px; border-top: 1px solid var(--line);
}
.venture:last-child { border-bottom: 1px solid var(--line); }
.venture h3 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -0.012em; }
.venture .cat { display: block; margin-top: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.venture p { color: var(--ink-2); max-width: 54ch; }
.venture p + p { margin-top: 12px; }
.meta { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; align-content: start; font-size: 0.92rem; }
.meta li { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.meta li span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.chip {
  display: inline-block; align-self: start; padding: 5px 10px; border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
  color: var(--ink-2);
}
.chip.is-new { border-color: var(--accent); color: var(--accent-text); }
.chip.is-exited { border-style: dashed; color: var(--ink-3); }

@media (max-width: 900px) {
  .venture { grid-template-columns: 1fr; gap: 16px; }
  .meta { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 8px; }
}

/* contact */

.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 104px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.018em; margin-top: 16px; }
.contact .lead { margin-top: 20px; }
.details { margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.details div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.details div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details a { text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.details a:hover { border-color: var(--accent); color: var(--accent-text); }

form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-foot small { color: var(--ink-3); font-size: 0.84rem; line-height: 1.4; }
.hp { position: absolute; left: -9999px; }

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

.ph { border-bottom: 1px dashed var(--ink-3); }

/* footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-grid h4 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.foot-grid ul a { text-decoration: none; color: var(--ink-2); }
.foot-grid ul a:hover { color: var(--accent-text); }
.foot-note { margin-top: 16px; color: var(--ink-2); font-size: 0.92rem; max-width: 38ch; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-3); }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

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

@media (max-width: 860px) {
  .tile { min-height: 112px; }
}
