/* Muday SACCO — coming soon
   Palette taken from the logo: gold, deep brown, cream */

:root {
  --gold: #c8901e;
  --gold-light: #e3ab3c;
  --brown: #4a2b12;
  --brown-soft: #6b4523;
  --cream: #fbf6ed;
  --cream-deep: #f2e8d8;
  --ink: #2c1a0b;
  --line: rgba(74, 43, 18, 0.14);
  --serif: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(200, 144, 30, 0.16), transparent 70%),
    radial-gradient(50rem 40rem at -10% 110%, rgba(74, 43, 18, 0.10), transparent 70%);
}

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

.site-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-weight: 700; letter-spacing: 0.14em; font-size: 15px;
  color: var(--brown);
}

.brand-sub {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brown-soft); opacity: 0.75;
}

.head-link {
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.head-link:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }

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

.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center; gap: clamp(24px, 6vw, 80px);
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 20px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
}

.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--gold);
}

.title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--brown);
  text-wrap: pretty;
}

.title em { font-style: italic; color: var(--gold); }

.lede {
  margin: 0 0 40px; max-width: 46ch;
  color: var(--brown-soft);
  text-wrap: pretty;
}

/* ---------- countdown ---------- */

.countdown {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 36px;
}

.unit {
  flex: 1 1 96px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.num {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}

.lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brown-soft); opacity: 0.72;
}

/* ---------- form ---------- */

.notify {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 520px;
}

.notify input {
  flex: 1 1 240px;
  padding: 15px 18px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 144, 30, 0.16);
}

.notify input.invalid { border-color: #b3402b; }

.notify button {
  padding: 15px 30px;
  font: inherit; font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--brown);
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify button:hover { background: var(--gold); }
.notify button:active { transform: translateY(1px); }

.form-msg {
  min-height: 22px; margin: 12px 0 0;
  font-size: 14px; color: var(--gold);
}

.form-msg.error { color: #b3402b; }

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

.hero-mark { display: flex; justify-content: center; }

.hero-mark img {
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(74, 43, 18, 0.6);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- office ---------- */

.office {
  position: relative; z-index: 1;
  padding: 0 clamp(20px, 5vw, 72px) clamp(40px, 6vw, 72px);
}

.office img {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.office-cap {
  margin: 14px 0 0;
  font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brown-soft); opacity: 0.8;
}

/* ---------- pillars ---------- */

.pillars {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar {
  background: var(--cream);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
  transition: background 0.25s ease;
}

.pillar:hover { background: var(--cream-deep); }

.pillar-no {
  font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold);
}

.pillar h2 {
  margin: 14px 0 10px;
  font-family: var(--serif); font-weight: 600; font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--brown);
}

.pillar p { margin: 0; font-size: 15.5px; color: var(--brown-soft); }

.values {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.values li {
  padding: 7px 15px;
  font-size: 14px; color: var(--brown-soft);
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
}

/* ---------- company profile ---------- */

.profile {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  padding: clamp(40px, 6vw, 84px) clamp(20px, 5vw, 72px);
}

.profile-title {
  margin: 0;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brown);
}

.profile-body { display: flex; flex-direction: column; gap: 18px; max-width: 68ch; }

.profile-body p { margin: 0; color: var(--brown-soft); text-wrap: pretty; }

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

.site-foot {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px);
}

.foot-col h3 {
  margin: 0 0 10px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}

.foot-col p { margin: 0; color: var(--brown-soft); font-size: 15px; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

.copy {
  grid-column: 1 / -1;
  margin: 12px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--brown-soft); opacity: 0.8;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(72%, 300px); }
  .head-link { display: none; }
  .profile { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark img { animation: none; }
  html { scroll-behavior: auto; }
}
