/* ── iprabu.com design system ────────────────────────────────────────────
   Apple-inspired: clean whites, generous space, refined typography,
   purposeful motion. Light-only intentional — like apple.com.
   Font: DM Sans (body) + DM Serif Display (display).
─────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --white:   #ffffff;
  --off:     #f5f5f7;     /* apple's off-white surface */
  --ink:     #1d1d1f;     /* apple's near-black */
  --mid:     #6e6e73;     /* apple's secondary text */
  --lite:    #d2d2d7;     /* borders */
  --accent:  #0066cc;     /* apple link blue */
  --accent2: #bf4800;     /* warm accent for highlights */
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --max:     1080px;
  --r:       18px;        /* border radius */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; }

.nav-links a.active { font-weight: 500; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all 0.25s;
}

/* ── LAYOUT UTILITIES ─────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-xs { padding: 48px 0; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subhead {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 300;
  color: var(--mid);
  line-height: 1.55;
}

.body-lg {
  font-size: 19px;
  line-height: 1.65;
  color: var(--mid);
  font-weight: 300;
}

/* ── LINKS & BUTTONS ──────────────────────────────────────────────────── */
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.link:hover { gap: 8px; }
.link::after { content: '→'; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0055b3;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #3a3a3c;
  transform: translateY(-1px);
}

/* ── CARDS ────────────────────────────────────────────────────────────── */
.card {
  background: var(--off);
  border-radius: var(--r);
  padding: 40px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.card-white {
  background: var(--white);
  border: 1px solid var(--lite);
  border-radius: var(--r);
  padding: 40px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}

/* ── DIVIDERS ─────────────────────────────────────────────────────────── */
.rule {
  border: none;
  border-top: 1px solid var(--lite);
  margin: 0;
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer {
  background: var(--off);
  border-top: 1px solid var(--lite);
  padding: 48px 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--mid);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 14px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--lite);
  padding-top: 24px;
  font-size: 13px;
  color: var(--mid);
}

/* ── PAGE HERO VARIANT ────────────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
}

/* ── FADE-IN ANIMATION ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.7s ease both; }
.fade-in-1 { animation: fadeUp 0.7s 0.1s ease both; }
.fade-in-2 { animation: fadeUp 0.7s 0.2s ease both; }
.fade-in-3 { animation: fadeUp 0.7s 0.35s ease both; }
.fade-in-4 { animation: fadeUp 0.7s 0.5s ease both; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--lite);
    z-index: 199;
  }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .card, .card-white { padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}
