/* ============================================================
   Merak Lee Design — shared site styles
   Loaded by every page (index.html, case-study.html, …).
   The header, footer, buttons, and design tokens live here so
   a change in one place applies across the whole site.
   Page-specific styles stay in each page's own <style> block.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --blue: #1e90ff;
  --deep: #0a2540;
  --green: #00875a;
  --green-hover: #007150;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --text: #1a1a1a;
  --muted: #4a5568;
  --line: #e2e8f0;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav / header ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.current { color: var(--blue); }
.nav-links .btn { padding: 10px 18px; font-size: 14px; color: #fff; }
.nav-links .btn:hover { color: #fff; }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 16px 26px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--deep); color: var(--deep); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
footer {
  background: var(--deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 36px;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
footer h4 {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 10px;
}
footer p { color: rgba(255,255,255,0.6); font-size: 15px; }
footer .contact-info { font-size: 15px; line-height: 1.9; }
footer .contact-info a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer .contact-info a:hover { color: #fff; }
footer .strip {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 760px) {
  footer .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Scroll reveal ---------- */
/* Fade-in-only — never hides content on initial render. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fadeUp 0.6s ease both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Decorative texture ---------- */
/* Give a section .has-deco, then drop in absolutely-positioned
   .deco-dots / .deco-glow elements as a subtle background pattern. */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .wrap { position: relative; z-index: 1; }
.deco-dots {
  position: absolute;
  background-image: radial-gradient(circle, rgba(10,37,64,0.22) 1.3px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 35%, transparent 82%);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 35%, transparent 82%);
  pointer-events: none;
}
.deco-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.20) 0%, transparent 70%);
  pointer-events: none;
}
