/* ============================================================
   HOMI by Prizmox — shared styles
   Used by: index.html (via inline + @import), about, contact,
   privacy, terms.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F2F0EA;
  color: #0F1E26;
  line-height: 1.65;
  font-size: 16px;
  background-image:
    radial-gradient(ellipse at top right, rgba(15,118,110,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(202,138,4,0.05) 0%, transparent 55%);
}

/* Subtle grid / dot texture — evokes "circuit" without shouting */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.12  0 0 0 0 0.15  0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0A131A;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
em.italic, .page-content em, .hero em {
  font-style: italic;
  color: #0F766E;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.container-wide { max-width: 1160px; }

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(242,240,234,0.82);
  border-bottom: 1px solid rgba(15,30,38,0.08);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0A131A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { color: #0F766E; font-style: italic; }
.logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0F766E;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.18);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: #3B4A54;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #0F766E; }
.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  background: #0A131A;
  color: #F2F0EA;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-cta:hover { background: #0F766E; }
@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ---------- PAGE CONTENT ---------- */
.page-content { padding: 80px 0 100px; position: relative; z-index: 2; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4A6670;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}
.back-link:hover { color: #0F766E; }

.page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4A6670;
  font-weight: 600;
  margin-bottom: 22px;
}

.page-content h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04;
  margin-bottom: 26px;
}
.page-content h2 {
  font-size: 24px;
  margin-top: 46px;
  margin-bottom: 16px;
  line-height: 1.25;
}
.page-content h3 {
  font-size: 19px;
  margin-top: 26px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.page-content p {
  margin-bottom: 16px;
  font-size: 17px;
  color: #283942;
  line-height: 1.7;
}
.page-content p.lede {
  font-size: 20px;
  color: #0F1E26;
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.page-content ul {
  margin: 0 0 20px 22px;
  padding: 0;
}
.page-content li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #283942;
  line-height: 1.65;
}
.page-content strong { color: #0A131A; font-weight: 600; }
.page-content a {
  color: #0F766E;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,118,110,0.3);
  transition: border-color 0.2s;
}
.page-content a:hover { border-bottom-color: #0F766E; }

.updated {
  font-size: 13px;
  color: #4A6670;
  font-style: italic;
  margin-bottom: 40px;
}

/* ---------- LEGAL SECTIONS (privacy / terms) ---------- */
.legal-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(15,30,38,0.12);
}
.legal-section:first-of-type { border-top: none; padding-top: 0; margin-top: 40px; }
.legal-section .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: #0F766E;
  margin-bottom: 8px;
  display: block;
}
.legal-section h2 { margin-top: 0; margin-bottom: 16px; font-size: 26px; }

/* ---------- ABOUT value cards ---------- */
.value-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin: 60px 0 40px;
}
.value-card {
  padding-top: 22px;
  border-top: 1.5px solid #0F766E;
}
.value-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.value-card h3 em { color: #0F766E; font-style: italic; }
.value-card p { font-size: 15px; color: #4A5B64; line-height: 1.6; margin: 0; }

/* ---------- CONTACT email cards ---------- */
.contact-card {
  padding: 28px 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(15,30,38,0.1);
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 500;
}
.contact-card a.email {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: #0F766E;
  text-decoration: none;
  margin: 8px 0 12px;
  border-bottom: none;
}
.contact-card a.email:hover { color: #0A5650; }
.contact-card p {
  font-size: 15px;
  color: #4A5B64;
  margin: 0;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
footer {
  background: #0A131A;
  color: rgba(242,240,234,0.6);
  padding: 60px 0 40px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}
footer h4 {
  font-family: 'Inter', sans-serif;
  color: #F2F0EA;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a {
  color: rgba(242,240,234,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
footer a:hover { color: #5CCBA8; }
footer a.foot-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: #F2F0EA;
  margin-bottom: 12px;
}
.footer-brand em { color: #5CCBA8; font-style: italic; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 28px 0;
  border-top: 1px solid rgba(242,240,234,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(242,240,234,0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .value-row { grid-template-columns: 1fr; gap: 20px; }
  .page-content { padding: 50px 0 60px; }
  .page-content h1 { font-size: clamp(36px, 9vw, 56px); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 22px 24px; }
}
