/*
Theme Name: Stander Investment Holdings
Theme URI: https://www.standerholdings.org/
Author: Stander Investment Holdings
Description: Official SIH website. Activate, then set Home as the front page.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: sih
*/

:root {
  --bg: #0b0e12;
  --bg-elevated: #12171f;
  --surface: #181e28;
  --fg: #ece8de;
  --muted: #9b9688;
  --subtle: #6f6b61;
  --accent: #c9b896;
  --accent-fg: #0b0e12;
  --paper: #f3efe4;
  --ink: #16130f;
  --ink-muted: #5c574c;
  --ink-subtle: #8a8478;
  --line: #2a2f38;
  --line-strong: #3d4450;
  --paper-line: #ddd6c6;
  --sheet: #ffffff;
  --danger: #c07a6a;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(100% - 4rem, var(--max)); } }

.type-display { font-size: clamp(2.35rem, 1.15rem + 4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.type-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.75rem); }
.type-subtitle { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem); }
.type-quote { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); font-style: italic; line-height: 1.3; }
.type-deck { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.6; }
.type-kicker { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.bg-paper .type-kicker { color: var(--ink-muted); }
.type-caption { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500; border: 0;
}
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
}
.site-header.is-on { background: rgb(11 14 18 / 0.9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.brand img { height: 2.5rem; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.brand-name span { margin-top: 0.15rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-desktop a { font-size: 0.875rem; color: var(--muted); padding: 0.5rem 0; }
.nav-desktop a:hover, .nav-desktop a.is-current { color: var(--fg); }
.header-actions { display: none; align-items: center; gap: 0.5rem; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.375rem;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg);
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); padding: 1.5rem 1.25rem 2rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 3rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
@media (min-width: 1024px) {
  .nav-desktop, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

.hero { position: relative; isolation: isolate; min-height: 100dvh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(11 14 18 / 0.5), rgb(11 14 18 / 0.72) 45%, var(--bg));
}
.hero-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100dvh; padding: 7rem 0 4rem;
}
.hero-logo { margin-top: 1.5rem; height: 9rem; width: auto; }
@media (min-width: 640px) { .hero-logo { height: 11rem; } }
.hero h1 { margin-top: 2rem; }
.hero h1 span { display: block; color: var(--accent); }
.hero .type-deck { margin-top: 1.5rem; max-width: 42rem; color: rgb(236 232 222 / 0.85); }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }

.section { padding: 5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-elevated { background: var(--bg-elevated); }
.section-paper { background: var(--paper); color: var(--ink); border-top: 0; }
.two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 0.9fr 1.1fr; } }
.prose { display: flex; flex-direction: column; gap: 1.25rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.prose strong { color: var(--fg); font-weight: 500; }
.section-paper .prose { color: var(--ink-muted); }

.quote { margin: 2.5rem 0 0; max-width: 48rem; border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.cap-list { margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-item { display: grid; gap: 0.75rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.cap-item:last-child { border-bottom: 0; }
.cap-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.cap-item p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
@media (min-width: 640px) { .cap-item { grid-template-columns: 4rem 1fr; gap: 2rem; } }

.sector-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 768px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
.sector { overflow: hidden; border-radius: 0.75rem; background: var(--surface); }
.sector.span-2 { grid-column: 1 / -1; }
.sector img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.sector-body { padding: 1.5rem 2rem; }
.sector-body ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.sector-body li { display: flex; gap: 0.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin-top: 0.5rem; }
.sector-body li::before { content: ""; width: 0.25rem; height: 0.25rem; margin-top: 0.55rem; border-radius: 99px; background: var(--accent); flex: none; }
@media (min-width: 768px) {
  .sector.span-2 { display: grid; grid-template-columns: 1fr 1fr; }
  .sector.span-2 img { aspect-ratio: auto; min-height: 20rem; }
}

.aff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .aff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .aff-grid { grid-template-columns: repeat(6, 1fr); } }
.aff-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 8rem; padding: 1.25rem 1rem; border-radius: 0.5rem; background: var(--sheet);
  box-shadow: 0 0 0 1px rgb(22 19 15 / 0.06), 0 8px 24px -12px rgb(22 19 15 / 0.12);
  color: var(--ink-muted); font-size: 0.75rem; text-align: center;
}
.aff-card img { max-height: 4rem; width: auto; object-fit: contain; }
.aff-card span { margin-top: 0.75rem; }

.cred { margin-top: 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred-row { display: grid; gap: 0.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.cred-row:last-child { border-bottom: 0; }
.cred-row dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.cred-row dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 640px) { .cred-row { grid-template-columns: 12rem 1fr; align-items: baseline; } }

.page-hero { padding: 7rem 0 3rem; }
.legal { max-width: 48rem; margin: 0 auto; padding: 7rem 1.25rem 6rem; }
.legal h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.4rem 0; }
.retain { margin: 1.5rem 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.retain li { display: grid; gap: 0.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); list-style: none; }
.retain { padding-left: 0; }
.retain li:last-child { border-bottom: 0; }
.retain .period { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 640px) { .retain li { grid-template-columns: 12rem 1fr; } }

.partners-page { background: var(--paper); color: var(--ink); padding: 7rem 0 6rem; }
.partner-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-card { display: flex; flex-direction: column; border-radius: 0.75rem; background: var(--sheet); padding: 1.25rem; box-shadow: 0 0 0 1px rgb(22 19 15 / 0.06), 0 8px 24px -12px rgb(22 19 15 / 0.12); }
.partner-logo { display: flex; align-items: center; justify-content: center; min-height: 8rem; border-radius: 0.375rem; background: var(--paper); padding: 1.5rem 1rem; }
.partner-logo img { max-height: 5rem; width: 100%; object-fit: contain; }
.partner-card h2 { margin-top: 1.25rem; }
.partner-card p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }
.search { margin-top: 2.5rem; max-width: 28rem; }
.search input {
  width: 100%; height: 3rem; border-radius: 0.375rem; border: 1px solid var(--paper-line);
  background: var(--sheet); padding: 0 1rem; color: var(--ink); font: inherit;
}

.contact-grid { display: grid; gap: 3rem; padding: 7rem 0 6rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.form-card { border-radius: 0.75rem; border: 1px solid var(--line); background: var(--bg-elevated); padding: 2rem; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%; border-radius: 0.375rem; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: inherit; padding: 0 1rem; margin-bottom: 1rem;
}
input, select { height: 3rem; }
textarea { padding: 0.85rem 1rem; min-height: 8rem; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0.75rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; }
.form-error { color: var(--danger); font-size: 0.875rem; margin: 0.5rem 0 1rem; }
.hp { position: absolute; left: -9999px; }

.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.captcha-code {
  display: flex; align-items: center; justify-content: center; gap: 0.15rem;
  height: 4rem; width: 14rem; border-radius: 0.375rem; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-display); font-size: 1.75rem; color: var(--accent);
}
.captcha-code span { display: inline-block; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-elevated); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { height: 8rem; width: auto; }
.footer-copy { margin-top: 1.25rem; max-width: 24rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-links a { color: var(--muted); font-size: 0.875rem; display: inline-flex; min-height: 2.5rem; align-items: center; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--line); padding: 2rem 0; }
.cookie {
  position: fixed; inset: auto 0 0; z-index: 40; padding: 1rem;
}
.cookie-card {
  max-width: 48rem; margin: 0 auto; border-radius: 0.75rem; border: 1px solid var(--line);
  background: var(--bg-elevated); padding: 1.25rem 1.5rem;
  box-shadow: 0 0 0 1px rgb(236 232 222 / 0.1);
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
