/* Ionaris Studios — friendly cartoon brand (LEGO City Adventures palette) */
@font-face {
  font-family: 'Nunito';
  src: url('assets/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --sky: #6EC1E4;
  --blue: #3E7CB8;
  --yellow: #F7C948;
  --coral: #E84B3C;
  --terra: #D97A4E;
  --peach: #F7A76C;
  --cream: #F5EFE3;
  --navy: #24344D;
  --navy-soft: #3d4f6b;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(36, 52, 77, 0.12);
  --shadow-lg: 0 18px 50px rgba(36, 52, 77, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(245, 239, 227, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(36, 52, 77, 0.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.15rem; letter-spacing: 0.06em; }
.nav-brand img { width: 42px; height: 42px; }
.nav-links { display: flex; gap: 28px; font-weight: 700; font-size: 0.98rem; }
.nav-links a { padding: 6px 2px; border-bottom: 3px solid transparent; transition: border-color 0.15s; }
.nav-links a:hover { border-bottom-color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url('assets/hero-bg.jpg') center bottom / cover no-repeat;
  padding: 120px 5vw 140px;
}
.hero-inner { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.12;
  color: var(--navy);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}
.hero p {
  margin: 22px auto 34px; max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600;
  color: var(--navy-soft);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #ffd95e, var(--yellow));
  color: var(--navy);
  font-weight: 900; font-size: 1.08rem;
  padding: 15px 40px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(226, 168, 25, 0.45), inset 0 -3px 0 rgba(36, 52, 77, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(226, 168, 25, 0.55), inset 0 -3px 0 rgba(36, 52, 77, 0.12); }
.btn-blue {
  background: linear-gradient(180deg, #7fcdee, var(--sky));
  box-shadow: 0 8px 22px rgba(62, 124, 184, 0.35), inset 0 -3px 0 rgba(36, 52, 77, 0.12);
}
.btn-blue:hover { box-shadow: 0 12px 28px rgba(62, 124, 184, 0.45), inset 0 -3px 0 rgba(36, 52, 77, 0.12); }

/* ---------- Sections ---------- */
section { padding: 90px 5vw; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.section-sub { text-align: center; font-weight: 600; color: var(--navy-soft); max-width: 620px; margin: 0 auto 54px; }

/* What we do cards */
.cards { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; max-width: 1060px; margin: 0 auto; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); width: min(470px, 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 26px 28px 30px; }
.card-body h3 { font-size: 1.45rem; font-weight: 900; margin-bottom: 8px; }
.card-body p { color: var(--navy-soft); font-weight: 600; font-size: 0.99rem; margin-bottom: 18px; }
.card-link { font-weight: 900; color: var(--blue); }
.card-link:hover { text-decoration: underline; }
.card.future {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #faf6ec, #faf6ec 14px, #f3edde 14px, #f3edde 28px);
  border: 3px dashed #ddd3ba; box-shadow: none; min-height: 300px;
}
.card.future:hover { transform: none; }
.card.future .card-body { text-align: center; }
.card.future h3 { color: #a99e83; }
.card.future p { color: #b6ac93; margin-bottom: 0; }

/* Flagship */
.flagship { background: linear-gradient(180deg, var(--sky) 0%, #8fd3ef 100%); }
.flagship-box {
  display: flex; align-items: center; gap: 50px;
  max-width: 1060px; margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.flagship-text { flex: 1 1 340px; max-width: 460px; }
.flagship-text img { width: min(320px, 80%); margin-bottom: 18px; }
.flagship-text p { font-weight: 700; color: #16324e; margin-bottom: 26px; font-size: 1.05rem; }
.flagship-shot { flex: 1 1 380px; max-width: 520px; }
.flagship-shot img {
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(22, 50, 78, 0.35);
  border: 5px solid rgba(255, 255, 255, 0.75);
}

/* About */
.about { text-align: center; }
.about p { max-width: 640px; margin: 0 auto; font-size: 1.12rem; font-weight: 600; color: var(--navy-soft); }
.about .emblem { width: 92px; margin: 0 auto 26px; }

/* Footer */
footer { background: var(--navy); color: var(--cream); padding: 54px 5vw 40px; text-align: center; }
footer .foot-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; letter-spacing: 0.06em; margin-bottom: 14px; }
footer .foot-brand img { width: 34px; height: 34px; }
footer a { border-bottom: 1px solid rgba(245, 239, 227, 0.35); }
footer a:hover { border-bottom-color: var(--yellow); color: #ffe9a8; }
.foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-weight: 700; font-size: 0.95rem; margin: 10px 0 18px; }
.foot-copy { font-size: 0.88rem; color: rgba(245, 239, 227, 0.65); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px 5vw 80px; }
.legal h1 { font-weight: 900; margin-bottom: 24px; }
.legal h2 { font-weight: 800; font-size: 1.15rem; margin: 26px 0 8px; }
.legal p { color: var(--navy-soft); font-weight: 600; }

@media (max-width: 700px) {
  .nav-links { gap: 16px; font-size: 0.9rem; }
  .nav-brand span { display: none; }
  section { padding: 64px 6vw; }
  .hero { min-height: 86vh; }
}
