/**
 * Sudipta Collections — Design System
 * Premium jewellery + lifestyle brand tokens
 */

:root {
  /* Brand palette — logo: charcoal, champagne gold, warm ivory */
  --sc-logo-bg: #1a1714;
  --sc-champagne: #c8b896;
  --sc-champagne-dark: #a89578;
  --sc-champagne-light: #e4ded2;
  --sc-white: #faf8f4;
  --sc-cream: #f5f1ea;
  --sc-beige: #ebe4d8;
  --sc-sand: #d9d0c2;
  --sc-gold: #c8b896;
  --sc-gold-dark: #a89578;
  --sc-rose-gold: #b89a8a;
  --sc-rose-light: #e8ddd6;
  --sc-charcoal: #1a1714;
  --sc-text: #2a2622;
  --sc-text-muted: #6b6358;
  --sc-border: rgba(26, 23, 20, 0.1);
  --sc-overlay: rgba(26, 23, 20, 0.55);

  /* Typography */
  --sc-font-logo: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sc-font-display: "Cormorant Garamond", Georgia, serif;
  --sc-font-body: "Jost", system-ui, sans-serif;

  --sc-text-xs: 0.75rem;
  --sc-text-sm: 0.875rem;
  --sc-text-base: 1rem;
  --sc-text-lg: 1.125rem;
  --sc-text-xl: 1.25rem;
  --sc-text-2xl: 1.5rem;
  --sc-text-3xl: 2rem;
  --sc-text-4xl: 2.75rem;
  --sc-text-5xl: 3.5rem;

  /* Spacing scale */
  --sc-space-1: 0.25rem;
  --sc-space-2: 0.5rem;
  --sc-space-3: 0.75rem;
  --sc-space-4: 1rem;
  --sc-space-5: 1.25rem;
  --sc-space-6: 1.5rem;
  --sc-space-8: 2rem;
  --sc-space-10: 2.5rem;
  --sc-space-12: 3rem;
  --sc-space-16: 4rem;
  --sc-space-20: 5rem;
  --sc-space-24: 6rem;

  /* Layout */
  --sc-container: 1200px;
  --sc-container-wide: 1400px;
  --sc-radius: 4px;
  --sc-radius-lg: 8px;
  --sc-header-height: 80px;

  /* Effects */
  --sc-shadow-sm: 0 2px 12px rgba(26, 23, 20, 0.06);
  --sc-shadow-md: 0 8px 32px rgba(26, 23, 20, 0.1);
  --sc-shadow-lg: 0 16px 48px rgba(26, 23, 20, 0.14);
  --sc-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --sc-transition-fast: 0.2s ease;
}

/* Reset helpers */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.sc-container {
  width: 100%;
  max-width: var(--sc-container);
  margin-inline: auto;
  padding-inline: var(--sc-space-6);
}

.sc-container--wide {
  max-width: var(--sc-container-wide);
}

/* Typography utilities */
.sc-heading {
  font-family: var(--sc-font-display);
  font-weight: 500;
  color: var(--sc-charcoal);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sc-heading--xl {
  font-size: clamp(var(--sc-text-3xl), 5vw, var(--sc-text-5xl));
}

.sc-heading--lg {
  font-size: clamp(var(--sc-text-2xl), 4vw, var(--sc-text-4xl));
}

.sc-heading--md {
  font-size: clamp(var(--sc-text-xl), 3vw, var(--sc-text-3xl));
}

.sc-subheading {
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-lg);
  font-weight: 300;
  color: var(--sc-text-muted);
  line-height: 1.7;
  max-width: 42rem;
}

.sc-eyebrow {
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sc-champagne-dark);
}

/* Brand logo */
.sc-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  background: transparent !important;
  box-shadow: none;
  padding: 0;
  border: 0;
}

.sc-brand-logo__image {
  display: block;
  width: auto;
  height: 64px;
  max-width: min(150px, 40vw);
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  mix-blend-mode: normal;
}

.sc-brand-logo--header .sc-brand-logo__image,
.sc-header__logo .sc-brand-logo__image {
  height: 68px;
  max-width: min(160px, 44vw);
}

.sc-brand-logo--footer .sc-brand-logo__image {
  height: 88px;
  max-width: 190px;
}

.sc-section {
  padding-block: var(--sc-space-20);
}

.sc-section--cream {
  background: var(--sc-cream);
}

.sc-section--beige {
  background: var(--sc-beige);
}

.sc-section__header {
  text-align: center;
  margin-bottom: var(--sc-space-12);
}

.sc-section__header .sc-subheading {
  margin-inline: auto;
  margin-top: var(--sc-space-4);
}

/* Buttons */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sc-space-2);
  padding: var(--sc-space-4) var(--sc-space-8);
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--sc-radius);
  cursor: pointer;
  transition: var(--sc-transition);
}

.sc-btn--primary {
  background: var(--sc-logo-bg);
  color: var(--sc-champagne-light);
  border-color: var(--sc-logo-bg);
}

.sc-btn--primary:hover {
  background: var(--sc-champagne-dark);
  border-color: var(--sc-champagne-dark);
  color: var(--sc-white);
  transform: translateY(-2px);
}

.sc-btn--outline {
  background: transparent;
  color: var(--sc-charcoal);
  border-color: var(--sc-champagne-dark);
}

.sc-btn--outline:hover {
  background: var(--sc-logo-bg);
  border-color: var(--sc-logo-bg);
  color: var(--sc-champagne-light);
}

.sc-btn--gold {
  background: var(--sc-champagne);
  color: var(--sc-logo-bg);
  border-color: var(--sc-champagne);
}

.sc-btn--gold:hover {
  background: var(--sc-champagne-dark);
  border-color: var(--sc-champagne-dark);
  color: var(--sc-white);
}

.sc-btn--whatsapp {
  background: #25d366;
  color: var(--sc-white);
  border-color: #25d366;
}

.sc-btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

/* Cards */
.sc-card {
  background: var(--sc-white);
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
  box-shadow: var(--sc-shadow-sm);
  transition: var(--sc-transition);
}

.sc-card:hover {
  box-shadow: var(--sc-shadow-md);
  transform: translateY(-4px);
}

.sc-card__image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform var(--sc-transition);
}

.sc-card:hover .sc-card__image {
  transform: scale(1.03);
}

.sc-card__body {
  padding: var(--sc-space-6);
}

.sc-card__title {
  font-family: var(--sc-font-display);
  font-size: var(--sc-text-xl);
  font-weight: 500;
  margin: 0 0 var(--sc-space-2);
  color: var(--sc-charcoal);
}

.sc-card__text {
  font-size: var(--sc-text-sm);
  color: var(--sc-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--sc-space-4);
}

/* Grid systems */
.sc-grid {
  display: grid;
  gap: var(--sc-space-8);
}

.sc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sc-grid--categories { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

@media (max-width: 1024px) {
  .sc-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sc-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sc-grid--2,
  .sc-grid--3,
  .sc-grid--4 {
    grid-template-columns: 1fr;
  }
  .sc-section {
    padding-block: var(--sc-space-12);
  }
}

/* Category pill */
.sc-category {
  text-align: center;
  text-decoration: none;
  color: var(--sc-charcoal);
  transition: var(--sc-transition-fast);
}

.sc-category__icon {
  width: 100%;
  aspect-ratio: 1;
  background: var(--sc-beige);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sc-space-3);
  font-size: var(--sc-text-2xl);
  transition: var(--sc-transition);
}

.sc-category__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--sc-transition);
}

.sc-category:hover .sc-category__icon {
  background: var(--sc-logo-bg);
  color: var(--sc-champagne);
}

.sc-category:hover .sc-category__icon img {
  transform: scale(1.06);
}

.sc-category__label {
  font-size: var(--sc-text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Feature / USP block */
.sc-feature {
  text-align: center;
  padding: var(--sc-space-8);
}

.sc-feature__icon {
  font-size: var(--sc-text-3xl);
  color: var(--sc-champagne-dark);
  margin-bottom: var(--sc-space-4);
}

.sc-feature__title {
  font-family: var(--sc-font-display);
  font-size: var(--sc-text-xl);
  margin-bottom: var(--sc-space-2);
}

/* Testimonial */
.sc-testimonial {
  background: var(--sc-white);
  padding: var(--sc-space-10);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow-sm);
  text-align: center;
}

.sc-testimonial__stars {
  color: var(--sc-champagne-dark);
  margin-bottom: var(--sc-space-4);
  letter-spacing: 0.2em;
}

.sc-testimonial__quote {
  font-family: var(--sc-font-display);
  font-size: var(--sc-text-xl);
  font-style: italic;
  line-height: 1.6;
  color: var(--sc-charcoal);
  margin-bottom: var(--sc-space-6);
}

.sc-testimonial__author {
  font-size: var(--sc-text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Animations */
@keyframes sc-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sc-animate {
  animation: sc-fade-up 0.8s ease forwards;
}

.sc-animate--delay-1 { animation-delay: 0.1s; opacity: 0; }
.sc-animate--delay-2 { animation-delay: 0.2s; opacity: 0; }
.sc-animate--delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Collection page sections */
.sc-collection__section {
  margin-bottom: var(--sc-space-20);
}

.sc-collection__section:last-child {
  margin-bottom: 0;
}

.sc-collection__header {
  margin-bottom: var(--sc-space-10);
}

.sc-collection__header .sc-subheading {
  margin-top: var(--sc-space-3);
  max-width: none;
}

.sc-collection__cta {
  margin-top: var(--sc-space-16);
  padding: var(--sc-space-12);
  background: var(--sc-cream);
  border-radius: var(--sc-radius-lg);
  text-align: center;
}

.sc-collection__cta p {
  margin: 0 0 var(--sc-space-6);
  color: var(--sc-text-muted);
}

.sc-page-content {
  margin-bottom: var(--sc-space-12);
  line-height: 1.7;
}

/* Elementor bridge classes — use in widgets */
.sc-el-section { /* marker for Elementor sections */ }
.sc-el-gap-sm { margin-bottom: var(--sc-space-8); }
.sc-el-gap-md { margin-bottom: var(--sc-space-12); }
.sc-el-gap-lg { margin-bottom: var(--sc-space-20); }
