/* ═══════════════════════════════════════════════
   home.css — Studio homepage (Candivore-inspired)
═══════════════════════════════════════════════ */

/* ── STUDIO HERO ─────────────────────────────── */

.studio-hero {
  position: relative;
  min-height: 100vh;
  background: var(--grad-hero); /* #FFD6EC → #EDD9FF → #C9EEFF */
  display: grid;
  grid-template-columns: 52% 48%;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* ── Decorative candy shapes (like Candivore pills/stars) ── */
.hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-pill);
}

/* Pink pill — top left */
.hero-shape--a {
  width: 130px; height: 50px;
  background: var(--rose);
  top: 13%; left: 2%;
  transform: rotate(-22deg);
  opacity: 0.75;
}
/* Lavender circle — mid left */
.hero-shape--b {
  width: 68px; height: 68px;
  background: var(--lavender);
  top: 32%; left: 0.5%;
  opacity: 0.65;
}
/* Honey square — bottom left */
.hero-shape--c {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--honey);
  top: 71%; left: 6%;
  transform: rotate(32deg);
  opacity: 0.8;
}
/* Mint pill — center bottom */
.hero-shape--d {
  width: 88px; height: 34px;
  background: var(--mint);
  bottom: 18%; left: 42%;
  transform: rotate(15deg);
  opacity: 0.7;
}
/* Small rose dot — right mid */
.hero-shape--e {
  width: 50px; height: 50px;
  background: var(--rose-dark);
  top: 9%; left: 58%;
  opacity: 0.55;
}
/* Coral pill — bottom right art area */
.hero-shape--f {
  width: 70px; height: 26px;
  background: var(--coral);
  bottom: 30%; right: 2%;
  transform: rotate(-14deg);
  opacity: 0.6;
  z-index: 4;
}

/* ── Hero left: text content ── */
.studio-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 80px 10%;
}

.studio-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.studio-hero-brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(232, 83, 122, 0.25));
}

.studio-hero-brand-name {
  height: 30px;
  object-fit: contain;
}

.studio-hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  font-weight: 800;
  color: var(--plum);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.studio-hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 0 40px;
}

.studio-hero-cta {
  align-self: flex-start;
  font-size: 1.05rem !important;
  padding: 14px 40px !important;
  border-radius: var(--radius-pill) !important;
}

/* ── Hero right: game art ── */
.studio-hero-art {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  /* Fade left edge to blend into gradient bg */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%);
}

.studio-hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
  display: block;
}

/* ── STUDIO CARDS ─────────────────────────────── */

.studio-cards-section {
  background: var(--gray-soft);
  padding: 72px 24px 88px;
}

.studio-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Card base */
.studio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.32s cubic-bezier(0.22, 0.8, 0.4, 1),
    box-shadow 0.32s cubic-bezier(0.22, 0.8, 0.4, 1);
}

.studio-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}

/* Image block at top */
.studio-card-img {
  height: 260px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.studio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
  display: block;
}

.studio-card:hover .studio-card-img img {
  transform: scale(1.06);
}

/* Colored body at bottom */
.studio-card-body {
  padding: 22px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--white);
}

.studio-card--game .studio-card-body {
  background: var(--grad-rose); /* rose → coral */
}

.studio-card--careers .studio-card-body {
  background: linear-gradient(135deg, var(--lavender), var(--lavender-dark));
}

.studio-card--about .studio-card-body {
  background: linear-gradient(135deg, var(--mint), #1A90A0);
}

/* Card tag label */
.studio-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.72;
  margin-bottom: 2px;
}

/* Game logo inside game card */
.studio-card-game-logo {
  width: 160px;
  max-width: 72%;
  object-fit: contain;
  margin: 6px 0 2px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.studio-card-genre {
  font-size: 0.84rem;
  opacity: 0.78;
}

/* Card title (careers / about) */
.studio-card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin: 4px 0 0;
}

.studio-card-sub {
  font-size: 0.9rem;
  opacity: 0.84;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* CTA arrow link */
.studio-card-cta {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s, letter-spacing 0.2s;
}

.studio-card:hover .studio-card-cta {
  border-color: rgba(255,255,255,0.9);
  letter-spacing: 0.4px;
}

/* ── RESPONSIVE ──────────────────────────────── */

/* Tablet: stack hero, 2-col cards */
@media (max-width: 1100px) {
  .studio-hero {
    grid-template-columns: 1fr;
  }
  .studio-hero-content {
    padding: 48px 7% 56px;
    align-items: flex-start;
  }
  .studio-hero-art {
    height: 50vw;
    min-height: 260px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%);
  }
  .studio-hero-art-img {
    object-position: center 20%;
  }
  .studio-cards-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 760px;
  }
  .studio-card--about {
    grid-column: 1 / -1;
  }
  .studio-card--about .studio-card-img { height: 220px; }
}

/* Mobile: single column */
@media (max-width: 700px) {
  .studio-hero-tagline { font-size: 2.2rem; }
  .studio-hero-content { padding: 32px 5% 48px; }
  .studio-hero-art { height: 55vw; min-height: 220px; }

  .studio-cards-section { padding: 48px 16px 64px; }
  .studio-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .studio-card--about { grid-column: auto; }
  .studio-card-img { height: 220px; }
  .studio-card-game-logo { width: 130px; }
}

@media (max-width: 480px) {
  .studio-hero-tagline { font-size: 2rem; }
  .studio-hero-content { padding: 24px 16px 40px; }
  .studio-hero-art { height: 52vw; min-height: 200px; }
  .studio-card-img { height: 180px; }
  .studio-cards-grid { gap: 14px; }
}

@media (max-width: 380px) {
  .studio-hero-tagline { font-size: 1.9rem; }
  .studio-hero-brand-logo { width: 48px; height: 48px; }
}
