/* South View Studios — studio pages theme (navy + gold + cream)
   Product pages (storymoji/) use assets/style.css instead.          */

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

:root {
  --navy:        #1e3060;
  --navy-dark:   #131e40;
  --navy-mid:    #263d7a;
  --navy-light:  #e8ecf7;
  --gold:        #c9a355;
  --gold-light:  #e5c27a;
  --gold-pale:   #faf4e6;
  --cream:       #faf9f6;
  --white:       #ffffff;
  --text:        #1a1e2e;
  --muted:       #5a6172;
  --border:      rgba(30,48,96,0.1);
  --surface:     #f2f3f8;
  --card-bg:     #ffffff;
  --shadow:      0 2px 16px rgba(30,48,96,0.08);
  --shadow-lg:   0 8px 40px rgba(30,48,96,0.13);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-mid); }

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(30,48,96,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img {
  height: 56px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .brand-top {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav-logo-text .brand-bottom {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav ul a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
nav ul a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--navy-mid) !important; }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(201,163,85,0.12) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 100%, rgba(38,61,122,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-logo {
  width: 130px;
  height: auto;
  margin-bottom: 2rem;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 20px rgba(201,163,85,0.3));
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero .sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}
.hero-actions { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: background .15s, transform .12s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--navy-dark); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background .15s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); color: var(--white); }

/* ── SECTION CHROME ──────────────────────────────────────────────── */
.section { padding: 4.5rem 2rem; max-width: 1040px; margin: 0 auto; }
.section-sm { padding: 3rem 2rem; max-width: 1040px; margin: 0 auto; }
.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-dark);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── CAPABILITIES GRID ───────────────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cap-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.cap-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(30,48,96,0.2); }
.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.cap-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 0.4rem; }
.cap-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tech-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--navy-light);
  color: var(--navy);
  border: 1px solid rgba(30,48,96,0.12);
}

/* ── SELECTED WORK ───────────────────────────────────────────────── */
.work-band { background: var(--navy-dark); padding: 4.5rem 2rem; }
.work-band-inner { max-width: 1040px; margin: 0 auto; }
.work-band .section-label { color: var(--gold); }
.work-band .section-title { color: var(--white); }
.work-band .section-sub { color: rgba(255,255,255,0.6); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}
.work-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: background .2s, border-color .2s;
}
.work-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(201,163,85,0.35); }
.work-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.work-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; line-height: 1.4; }
.work-card p { font-size: 0.84rem; color: rgba(255,255,255,0.58); line-height: 1.6; margin-bottom: 1rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.work-tag {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
}

/* ── TECH STACK STRIP ────────────────────────────────────────────── */
.stack-strip { background: var(--surface); padding: 3rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.stack-inner p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.stack-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.stack-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(30,48,96,0.06);
}

/* ── APPS SECTION ────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(30,48,96,0.2); }
.app-icon { width: 68px; height: 68px; border-radius: 15px; flex-shrink: 0; object-fit: cover; }
.app-icon-placeholder { width: 68px; height: 68px; border-radius: 15px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.app-info h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--navy-dark); }
.app-info p { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.app-badge {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--navy-light);
  color: var(--navy);
  border: 1px solid rgba(30,48,96,0.15);
}
.app-card-dim { opacity: 0.45; cursor: default; }

/* ── CONTACT FORM ────────────────────────────────────────────────── */
.contact-band { background: var(--gold-pale); border-top: 1px solid rgba(201,163,85,0.25); border-bottom: 1px solid rgba(201,163,85,0.25); padding: 4.5rem 2rem; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-inner .section-label { color: var(--gold); }
.contact-inner .section-label::before { background: var(--gold); }
.contact-inner .section-title { color: var(--navy-dark); }
.contact-inner .section-sub { color: var(--muted); }
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--navy-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,48,96,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: background .15s, transform .12s;
}
.form-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }
.hidden { display: none; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: -0.25rem; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.5); transition: color .15s; }
footer a:hover { color: rgba(255,255,255,0.85); }
.footer-links { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 0.6rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.footer-brand img { height: 36px; opacity: 0.85; filter: brightness(0) invert(1); }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section, .section-sm { padding: 3rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  nav ul { gap: 1.1rem; }
  .nav-cta { display: none; }
}
