/* Mooray Ventures — base stylesheet */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ede4;
  --surface: #ffffff;
  --ink: #141b19;
  --ink-soft: #2a3632;
  --muted: #5a6b66;
  --line: #e3dccf;
  --primary: #0d3b2e;
  --primary-hover: #125444;
  --primary-ink: #0a2c22;
  --accent: #c9962c;
  --accent-hover: #b5831c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,27,25,.05), 0 1px 3px rgba(20,27,25,.04);
  --shadow-md: 0 4px 12px rgba(20,27,25,.06), 0 2px 4px rgba(20,27,25,.04);
  --shadow-lg: 0 12px 32px rgba(13,59,46,.08), 0 4px 8px rgba(20,27,25,.05);
  --max: 1160px;
  --container-pad: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--container-pad); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; background: var(--primary); color: #fff;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.nav-cta) {
  color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:not(.nav-cta):hover { color: var(--primary); }
.nav-links a:not(.nav-cta).active { color: var(--primary); border-bottom-color: var(--accent); }
a.nav-cta {
  margin-left: 8px; color: #fff; background: var(--primary);
  border-bottom: 0; padding: 11px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
}
a.nav-cta:hover { color: #fff; background: var(--primary-ink); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-accent { background: var(--accent); color: #211805; }
.btn-accent:hover { background: var(--accent-hover); color: #211805; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 10vw, 120px) 0 clamp(56px, 9vw, 100px);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(201,150,44,.10), transparent 60%),
    radial-gradient(720px 500px at -10% 110%, rgba(13,59,46,.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}
.hero h1 span.underline {
  background: linear-gradient(transparent 70%, rgba(201,150,44,.38) 70%);
  padding: 0 .1em;
}
.hero p.lead { margin-top: 8px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(13,59,46,.18), rgba(201,150,44,.18));
  z-index: -1; filter: blur(12px); opacity: .55;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.stat .num { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--primary); font-weight: 700; }
.stat .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.hero-card ul { list-style: none; padding: 0; margin: 8px 0 0; }
.hero-card ul li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-top: 1px dashed var(--line); color: var(--ink-soft);
}
.hero-card ul li:first-child { border-top: 0; }
.hero-card ul li::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 8px;
  background: var(--accent); border-radius: 50%;
}

/* ---------- Section ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.center { margin: 0 auto 44px; text-align: center; }

/* ---------- Feature grid / cards ---------- */
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4cab6; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  display: grid; place-items: center; color: var(--primary);
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Service details ---------- */
.svc-row {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px);
  align-items: start; padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; padding-top: 0; }
.svc-row .meta .tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: #7a5a10; font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 14px;
}
.svc-row h2 { margin-bottom: 14px; }
.svc-row ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.svc-row ul li {
  position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.svc-row ul li:first-child { border-top: 0; }
.svc-row ul li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; color: var(--accent); font-weight: 700;
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .92rem; margin: 0; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value {
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.value h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .95rem; color: var(--primary); margin-bottom: 4px; }
.value p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,52px); align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item .ic {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary); display: grid; place-items: center;
}
.contact-item .ic svg { width: 18px; height: 18px; }
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-item .val { font-size: 1rem; color: var(--ink); font-weight: 500; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* ---------- Project cards ---------- */
.projects-list {
  display: flex; flex-direction: column; gap: 28px;
}

/* -- Patched -- */
.pcard-patched {
  background: #0a0a0f;
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pcard-patched::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 350px at 15% 0%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(400px 300px at 85% 100%, rgba(139,92,246,.06), transparent 55%);
}
.pcard-patched:hover {
  border-color: rgba(99,102,241,.35);
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
}
.pcard-patched > * { position: relative; z-index: 1; }

.pcard-patched .pc-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.pcard-patched .pc-logo {
  width: 42px; height: 42px; flex-shrink: 0;
}
.pcard-patched .pc-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.2;
}
.pcard-patched .pc-sub {
  font-size: .82rem; color: #6366f1; font-weight: 500; margin: 1px 0 0;
}
.pcard-patched .pc-desc {
  font-size: .9rem; color: #a8aabe; line-height: 1.6; margin: 0 0 22px; max-width: 72ch;
}

.pcard-patched .pc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px;
}
.pcard-patched .pc-stat {
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; padding: 12px 14px;
}
.pcard-patched .pc-stat dt {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .1em;
  color: #555; font-weight: 600; margin: 0 0 3px;
}
.pcard-patched .pc-stat dd {
  font-size: .84rem; color: #d4d4d8; font-weight: 600; margin: 0;
}

.pcard-patched .pc-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
  list-style: none; padding: 0; margin: 0 0 24px;
}
.pcard-patched .pc-features li {
  font-size: .82rem; color: #888; padding: 5px 0 5px 16px; position: relative;
}
.pcard-patched .pc-features li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.pcard-patched .pc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 28px;
  background: #fff; color: #0a0a0f; font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: background .15s ease, transform .1s ease;
}
.pcard-patched .pc-cta:hover { background: #e8e8e8; transform: scale(1.02); color: #0a0a0f; }
.pcard-patched .pc-cta svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
  .pcard-patched .pc-stats { grid-template-columns: 1fr 1fr; }
  .pcard-patched .pc-features { grid-template-columns: 1fr; }
  .pcard-patched { padding: 22px; }
}
@media (max-width: 480px) {
  .pcard-patched .pc-stats { grid-template-columns: 1fr; }
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2c22 100%);
  color: #f1efe8; border-radius: var(--radius);
  padding: clamp(32px, 5vw, 52px); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: var(--shadow-lg);
}
.cta-strip h2 { color: #fff; margin: 0; }
.cta-strip p { color: #cfdcd6; margin: 6px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a2c22; color: #cfdcd6;
  padding: 48px 0 28px; margin-top: 0;
}
.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; align-items: start;
}
.site-footer a { color: #cfdcd6; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--accent); color: #1a1204; }
.site-footer h4 { color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 5px 0; }
.site-footer .legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: #8ea39b;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .grid-3, .grid-2, .values { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
