/* Studio homepage — Digital Atelier (uses base.css) */

/* —— Atelier hero —— */
.atelier-hero {
  min-height: min(88dvh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(175, 144, 88, 0.12) 0%, transparent 55%),
    var(--paper);
  text-align: center;
}

.atelier-hero__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.atelier-hero__seed {
  display: block;
  margin: 0 auto 1.25rem;
  width: clamp(5rem, 18vw, 7.5rem);
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(28, 27, 24, 0.08));
}

.atelier-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(
    105deg,
    var(--gold-highlight) 0%,
    #c9a66b 22%,
    var(--gold) 48%,
    var(--gold-deep) 76%,
    var(--gold-highlight) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .atelier-hero__title {
    color: var(--gold);
    background: none;
    -webkit-text-fill-color: var(--gold);
  }
}

.atelier-hero__tagline {
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.atelier-hero__mission {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  .atelier-hero__inner > * {
    animation: atelier-rise 0.85s ease backwards;
  }

  .atelier-hero__inner > *:nth-child(1) {
    animation-delay: 0.05s;
  }
  .atelier-hero__inner > *:nth-child(2) {
    animation-delay: 0.12s;
  }
  .atelier-hero__inner > *:nth-child(3) {
    animation-delay: 0.18s;
  }
  .atelier-hero__inner > *:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes atelier-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-hero__inner > * {
    animation: none !important;
  }
}

/* —— Collection —— */
.section--collection {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-top: 1px solid rgba(175, 144, 88, 0.12);
}

.collection__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .collection__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.collection-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gold-line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  min-width: 0;
  height: 100%;
}

@supports (backdrop-filter: blur(16px)) {
  .collection-card {
    backdrop-filter: blur(18px);
  }
}

@supports not (backdrop-filter: blur(16px)) {
  .collection-card {
    background: #ffffff;
  }
}

a.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(28, 27, 24, 0.1);
  border-color: rgba(175, 144, 88, 0.5);
  border-bottom-color: rgba(175, 144, 88, 0.5);
}

a.collection-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.collection-card__visual {
  margin-bottom: 1.1rem;
}

.collection-card__icon-shell {
  width: 96px;
  height: 96px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--gold-line);
  padding: 0.18rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-card__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
}

/* Wider Qibla viewBox: zoom artwork inside the same 96×96 shell as Quran */
.collection-card__icon-shell--qibla .collection-card__icon {
  transform: scale(1.22);
  transform-origin: center center;
}

.collection-card__thumb {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.collection-card__thumb img {
  flex: 1;
  height: 3.65rem;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  border: 1px solid var(--gold-line);
  object-fit: cover;
  display: block;
}

.collection-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}

.collection-card__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  flex: 1;
}

.collection-card__actions {
  margin-top: auto;
}

.collection-card--muted {
  opacity: 0.92;
}

.collection-card--muted .collection-card__visual img {
  opacity: 0.78;
}

/* —— Zen manifesto strip —— */
.section--zen {
  background: var(--paper);
  border-top: 1px solid rgba(175, 144, 88, 0.1);
}

.zen-line {
  margin: 0 auto;
  max-width: 36rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.zen-line em {
  font-style: italic;
  color: var(--gold-deep);
}

/* —— Values —— */
.section--values {
  background: linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
  border-top: 1px solid rgba(175, 144, 88, 0.1);
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.values-grid__item {
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@supports (backdrop-filter: blur(12px)) {
  .values-grid__item {
    backdrop-filter: blur(14px);
  }
}

.values-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
}

.values-grid__item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.values-grid__item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* —— Sadaqah split —— */
.section--sadaqah-studio {
  background: linear-gradient(180deg, rgba(175, 144, 88, 0.16) 0%, var(--paper) 92%);
  border-top: 1px solid rgba(175, 144, 88, 0.2);
}

.sadaqah-intro {
  margin: 0 auto 2rem;
  max-width: 40rem;
  text-align: center;
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink);
}

.sadaqah-split {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .sadaqah-split {
    grid-template-columns: 1fr 1fr;
  }
}

.sadaqah-split__half {
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.65);
}

@supports (backdrop-filter: blur(10px)) {
  .sadaqah-split__half {
    backdrop-filter: blur(12px);
  }
}

.sadaqah-split__half h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-deep);
}

.sadaqah-split__half p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
