/* Northbound Studio — shared styles
   Faithful recreation of the reference layout, original content.
   Fonts: Poppins / Montserrat / Playfair Display (loaded via Google Fonts). */

:root {
  --ink: #0f172a;        /* slate-900 */
  --ink-2: #1e293b;      /* slate-800 */
  --muted: #475569;      /* slate-600 */
  --muted-2: #64748b;    /* slate-500 */
  --line: #e2e8f0;       /* slate-200 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;    /* slate-50 */
  --brand: #4f46e5;      /* indigo-600 */
  --brand-2: #7c3aed;    /* violet-600 */
  --brand-ink: #3730a3;
  --accent: #06b6d4;     /* cyan-500 */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--muted); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .98rem; padding: .85rem 1.6rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, .32); }
.btn--primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 30px rgba(79, 70, 229, .4); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.01em; }
.brand span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 15% -10%, rgba(124,58,237,.10), transparent 60%), radial-gradient(1000px 500px at 100% 0%, rgba(6,182,212,.10), transparent 55%), var(--bg); padding: 96px 0 72px; }
.hero .eyebrow { justify-content: center; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: .5rem; }
.hero h1 em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; color: var(--brand); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.stat { text-align: center; padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 2.3rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }
.service { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service .ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12)); margin-bottom: 18px; }
.service ul { list-style: none; padding: 0; margin: 16px 0 0; }
.service ul li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); font-size: .95rem; }
.service ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Projects */
.grid-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-projects { grid-template-columns: 1fr; } }
.project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project .cap { height: 120px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.5rem; letter-spacing: .02em; }
.project .cap.alt { background: linear-gradient(135deg, #0891b2, #0e7490); }
.project .cap.alt2 { background: linear-gradient(135deg, #db2777, #9d174d); }
.project .body { padding: 24px; flex: 1; }
.project h3 { margin-bottom: .5rem; }
.project p { font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }
.tag { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about-card h4 { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted-2); margin-bottom: 14px; }
.about-card ul { list-style: none; padding: 0; margin: 0; }
.about-card ul li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); font-weight: 500; }
.about-card ul li:last-child { border-bottom: 0; }

/* Podcasts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.pod { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pod .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: rgba(79,70,229,.08); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.form-row textarea { resize: vertical; min-height: 130px; }
.info-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; }
.info-block h4 { font-size: 1rem; margin-bottom: 4px; }
.info-block p { margin: 0; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.site-footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #94a3b8; }
.footer-bottom .legal a { color: #94a3b8; text-decoration: underline; margin-left: 16px; }
.footer-bottom .legal a:hover { color: #fff; }

/* Legal pages */
.legal-page { max-width: 820px; margin: 0 auto; padding: 72px 24px; }
.legal-page h1 { font-size: 2.4rem; margin-bottom: .3rem; }
.legal-page .updated { color: var(--muted-2); font-size: .9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { padding-left: 20px; }
.legal-page a.back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
