/* Idol Media — public site styles */

:root {
  --purple-deep: #2a0f4a;
  --purple-mid: #4a1f6e;
  --magenta: #c31c7e;
  --pink: #e0428c;
  --gold: #f5a623;
  --ink: #2a0f4a;
  --muted: #5c4b74;
  --bg: #f7f3fb;
  --card: #ffffff;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow: 0 20px 60px rgba(42, 15, 74, 0.12);
  --gradient-brand: linear-gradient(120deg, var(--purple-deep), var(--magenta));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--purple-deep);
  color: #fff;
  box-shadow: 0 10px 30px rgba(42, 15, 74, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(42, 15, 74, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple-deep);
}

.btn-outline:hover {
  background: var(--purple-deep);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 15, 74, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
}

/* the pill CTA inside the nav is a button, not a text link -
   it needs to win over the plain ".nav-links a" color/underline rules above */
.nav-links a.btn-primary {
  color: #fff;
}

.nav-links a.btn-primary::after {
  display: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--purple-deep);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 28, 126, 0.15), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  color: var(--magenta);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
}

.hero-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.hero-checklist li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  display: block;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* Cards grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(42, 15, 74, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(42, 15, 74, 0.16);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Values */
.value-card {
  border-radius: var(--radius-md);
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(42, 15, 74, 0.08);
}

.value-card h3 {
  color: var(--magenta);
  font-size: 17px;
}

/* Clients strip */
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
}

.client-dot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.85;
}

/* Portfolio */
.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(42, 15, 74, 0.08);
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-card .body {
  padding: 20px 22px;
}

.portfolio-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-placeholder {
  height: 220px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
}

/* CTA banner */
.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 32px);
}

/* Form */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
}

.form-group label .req {
  color: var(--magenta);
}

.form-control {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(42, 15, 74, 0.15);
  font-size: 15px;
  font-family: inherit;
  background: #faf8fc;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--magenta);
  background: #fff;
}

.error-text {
  color: #c0264a;
  font-size: 13px;
}

.alert-success {
  background: #eafaf0;
  color: #1c7a44;
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: #e6ddf3;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-grid .brand-logo {
  filter: brightness(0) invert(1);
  height: 36px;
  margin-bottom: 14px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.site-footer a {
  color: #c9b8dd;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 13px;
  color: #a996c2;
  text-align: center;
}

.site-footer .footer-grid > div:first-child a[aria-label] {
  margin-bottom: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-grid > div:first-child a[aria-label]:hover {
  background: var(--gradient-brand) !important;
  transform: translateY(-2px);
}

/* Logo entrance animation */
.logo-pop {
  transform-origin: 50% 60%;
  animation: logo-pop 1100ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes logo-pop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.4) rotate(-12deg);
  }
  45% {
    opacity: 1;
    transform: translateY(2px) scale(1.12) rotate(4deg);
  }
  65% {
    transform: translateY(-3px) scale(0.97) rotate(-2deg);
  }
  82% {
    transform: translateY(1px) scale(1.02) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* Shine sweep that follows the logo's own shape */
.logo-shine {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.logo-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    75deg,
    transparent 40%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask-image: url('/images/logo.png');
  mask-image: url('/images/logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: logo-shine-sweep 1300ms ease-out 750ms both;
  pointer-events: none;
}

@keyframes logo-shine-sweep {
  0% {
    background-position: 150% 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    background-position: -50% 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-pop,
  .logo-shine::after {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 16px 32px rgba(42, 15, 74, 0.12);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: flex;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card,
  .hero-card {
    padding: 26px;
  }
  .cta-banner {
    padding: 36px 24px;
  }
}

/* Article body typography */
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: #3b2f52;
}

.article-body h2 {
  font-size: 26px;
  margin-top: 40px;
}

.article-body h3 {
  font-size: 20px;
  margin-top: 28px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--magenta);
  text-decoration: underline;
}

.article-body strong {
  color: var(--purple-deep);
}

.article-body blockquote {
  border-left: 4px solid var(--magenta);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}

/* Pagination */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-deep);
  background: #fff;
  border: 1.5px solid rgba(42, 15, 74, 0.12);
  transition: all 0.2s ease;
}

a.page-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.page-btn-active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.page-btn-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page-btn-dots {
  border: none;
  background: transparent;
  color: var(--muted);
}
