/* ==========================================================================
   DANSAJA — MEN'S & WOMEN'S LUXURY FABRICS & AFRICAN WAX PRINTS
   Luxury Light & Golden Aesthetic with Fabric Showcase
   ========================================================================== */

:root {
  /* Geometric Brand Typography matching DANSAJA Logo */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Golden & Warm Luminous Palette (Bright & Regal) */
  --gold-primary: #c99e38;
  --gold-accent: #dfb34a;
  --gold-bright: #fae498;
  --gold-deep: #8f6a1d;
  --gold-gradient: linear-gradient(135deg, #e9c464 0%, #c99e38 50%, #9e7520 100%);
  --gold-soft-gradient: linear-gradient(135deg, #fffbf2 0%, #faecd0 100%);

  /* Surface & Border Controls */
  --gold-border: rgba(201, 158, 56, 0.35);
  --gold-glow: rgba(201, 158, 56, 0.22);
  --card-bg: rgba(255, 255, 255, 0.90);
  --card-border: rgba(201, 158, 56, 0.32);

  /* Deep Contrast Typography (Ultra Crisp & Legible) */
  --text-black: #141311;
  --text-dark: #24221f;
  --text-body: #47433c;
  --text-muted: #736d64;

  /* Geometry & Shadows */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 9999px;
  --shadow-portal: 0 25px 70px rgba(45, 35, 20, 0.15), 0 5px 20px rgba(201, 158, 56, 0.12);
}

/* Reset & Global Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: var(--font-text);
  color: var(--text-body);
  background-color: #f6f3eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* FABRIC BACKGROUND STAGE */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-fabric-layer {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.96) contrast(1.05) saturate(1.05);
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-out;
  transform: scale(1.02);
}

/* Radiant Golden Lighting & Soft Ambient Vignette */
.bg-light-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(250, 230, 160, 0.35) 0%, rgba(246, 243, 235, 0.1) 60%, transparent 80%);
  filter: blur(70px);
  pointer-events: none;
}

.bg-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg, 
    rgba(255, 255, 255, 0) 20%, 
    rgba(255, 248, 230, 0.25) 50%, 
    rgba(255, 255, 255, 0) 80%
  );
  pointer-events: none;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.65) 0%, rgba(248, 244, 235, 0.82) 65%, rgba(240, 233, 220, 0.94) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 244, 235, 0.4) 40%, rgba(244, 238, 226, 0.85) 100%);
}

/* SITE HEADER */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.6rem 2rem;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(201, 158, 56, 0.4));
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.02);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gold-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(201, 158, 56, 0.15);
  backdrop-filter: blur(12px);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-accent);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.status-text {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-black);
}

/* WhatsApp Direct Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--gold-primary);
  color: var(--text-black);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(201, 158, 56, 0.18);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-text-short {
  display: none;
}

.whatsapp-btn svg {
  color: #25d366;
  transition: color 0.3s;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  background: var(--gold-gradient);
  color: #110f0c;
  box-shadow: 0 6px 22px rgba(201, 158, 56, 0.35);
  transform: translateY(-2px);
}

.whatsapp-btn:hover svg {
  color: #110f0c;
}

/* MAIN BODY & PORTAL CARD */
.page-body {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
}

.luxury-portal-card {
  max-width: 980px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3.8rem 3.4rem;
  box-shadow: var(--shadow-portal);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: portalReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portalReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand Crest Line */
.brand-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.2rem;
  max-width: 100%;
}

.crest-line {
  width: 44px;
  height: 1px;
  background: var(--gold-gradient);
  flex-shrink: 1;
}

.crest-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-primary);
  text-transform: uppercase;
  text-align: center;
}

/* Portal Headings */
.portal-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--text-black);
  margin-bottom: 1.2rem;
}

.gold-gradient-title {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(201, 158, 56, 0.3));
}

.portal-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 740px;
  margin: 0 auto 2.5rem;
}

/* TWO SPECIALTIES GRID */
.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  width: 100%;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }
}

.specialty-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(201, 158, 56, 0.25);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.specialty-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 16px 36px rgba(201, 158, 56, 0.2);
}

.specialty-card.active {
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  box-shadow: 0 12px 32px rgba(201, 158, 56, 0.22);
}

.card-chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  background: rgba(201, 158, 56, 0.12);
  border: 1px solid rgba(201, 158, 56, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.card-icon {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  padding-right: 2.2rem;
}

.card-summary {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #f4f0e6;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

/* FABRIC TOGGLE BAR */
.fabric-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.toggle-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

.toggle-btn {
  background: #ffffff;
  border: 1px solid rgba(201, 158, 56, 0.3);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.toggle-btn.active {
  background: var(--gold-gradient);
  border-color: var(--gold-accent);
  color: #12100d;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 158, 56, 0.3);
}

.toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-cream { background: #fbf7ec; border: 1px solid #d4af37; }
.dot-wax { background: linear-gradient(135deg, #1b4992, #d4af37); }
.dot-all { background: linear-gradient(135deg, #333333, #d4af37, #5c6370); }

/* NOTIFICATION & EARLY ACCESS BOX */
.access-box {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 2rem 2.4rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(201, 158, 56, 0.08);
}

.access-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.access-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.form-control-row {
  display: flex;
  gap: 8px;
  background: #faf8f2;
  border: 1.5px solid rgba(201, 158, 56, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  transition: all 0.3s ease;
}

.form-control-row:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(201, 158, 56, 0.25);
  background: #ffffff;
}

.access-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-text);
  font-size: 0.92rem;
  color: var(--text-black);
  outline: none;
}

.access-input::placeholder {
  color: #9c958c;
}

.access-btn {
  background: var(--gold-gradient);
  border: none;
  color: #12100d;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(201, 158, 56, 0.28);
  transition: all 0.3s ease;
}

.access-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(201, 158, 56, 0.45);
  transform: translateY(-1px);
}

.input-error {
  display: block;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 6px;
  text-align: left;
  padding-left: 14px;
  min-height: 1.2rem;
}

@media (max-width: 580px) {
  .form-control-row {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 10px;
  }
  .access-input {
    padding: 8px 6px;
  }
  .access-btn {
    justify-content: center;
    border-radius: var(--radius-sm);
  }
}

/* Success Confirmation */
.access-success {
  padding: 1rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.success-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #12100d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.access-success h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-black);
  margin-bottom: 0.3rem;
}

.access-success p {
  font-size: 0.88rem;
  color: var(--text-body);
}

/* Direct Contact Note */
.direct-contact-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.whatsapp-inline {
  color: var(--gold-deep);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.whatsapp-inline:hover {
  color: var(--text-black);
  text-decoration: underline;
}

/* SITE FOOTER */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(201, 158, 56, 0.2);
  background: rgba(250, 248, 243, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.domain-text {
  font-weight: 700;
  color: var(--gold-deep);
}

.dot-sep {
  color: var(--gold-primary);
  margin: 0 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE ADAPTATION
   ========================================================================== */

/* Medium Screens & Tablets (<= 960px) */
@media (max-width: 960px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .luxury-portal-card {
    padding: 3rem 2.2rem;
    max-width: 100%;
  }

  .portal-desc {
    margin-bottom: 2rem;
  }
}

/* Standard Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .status-pill {
    display: none;
  }

  .site-header {
    padding: 1rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
  }

  .brand-logo {
    height: 40px;
  }

  .page-body {
    padding: 1.2rem max(0.9rem, env(safe-area-inset-right)) 2.5rem max(0.9rem, env(safe-area-inset-left));
    min-height: auto;
  }

  .luxury-portal-card {
    padding: 2.4rem 1.6rem;
    border-radius: 20px;
  }

  .brand-crest {
    gap: 10px;
  }

  .crest-line {
    width: 28px;
  }

  .crest-text {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .portal-heading {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.24;
    margin-bottom: 1rem;
  }

  .headline-br {
    display: none;
  }

  .portal-desc {
    font-size: 0.95rem;
    line-height: 1.62;
    margin-bottom: 1.8rem;
    padding: 0;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .specialty-card {
    padding: 1.6rem 1.4rem;
  }
}

/* Smartphone Viewport (<= 540px) */
@media (max-width: 540px) {
  .site-header {
    padding: 0.85rem max(0.85rem, env(safe-area-inset-right)) 0.85rem max(0.85rem, env(safe-area-inset-left));
  }

  .brand-logo {
    height: 36px;
  }

  .whatsapp-btn {
    padding: 7px 14px;
    font-size: 0.75rem;
    gap: 6px;
  }

  .whatsapp-btn svg {
    width: 15px;
    height: 15px;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .page-body {
    padding: 0.8rem max(0.7rem, env(safe-area-inset-right)) 2rem max(0.7rem, env(safe-area-inset-left));
  }

  .luxury-portal-card {
    padding: 1.8rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(45, 35, 20, 0.12), 0 3px 12px rgba(201, 158, 56, 0.1);
  }

  .brand-crest {
    gap: 8px;
    margin-bottom: 1rem;
  }

  .crest-line {
    width: 18px;
  }

  .crest-text {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .portal-heading {
    font-size: 1.55rem;
  }

  .portal-desc {
    font-size: 0.88rem;
    line-height: 1.58;
    margin-bottom: 1.5rem;
  }

  .specialties-grid {
    gap: 1rem;
  }

  .specialty-card {
    padding: 1.35rem 1.15rem;
    border-radius: 12px;
  }

  .card-chip {
    font-size: 0.6rem;
    padding: 3px 8px;
    margin-bottom: 0.75rem;
  }

  .card-icon {
    top: 1.35rem;
    right: 1.15rem;
    font-size: 1.05rem;
  }

  .card-title {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
    padding-right: 1.8rem;
  }

  .card-summary {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .card-tags {
    gap: 5px;
  }

  .card-tags span {
    font-size: 0.68rem;
    padding: 3px 7px;
  }

  .site-footer {
    padding: 1.2rem max(1rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .dot-sep {
    display: none;
  }

  .domain-text {
    font-size: 0.78rem;
  }

  .footer-copy {
    font-size: 0.68rem;
    opacity: 0.85;
  }
}

/* Compact Mobile Screens (<= 360px, e.g. iPhone SE 1st gen, Galaxy Fold) */
@media (max-width: 360px) {
  .brand-logo {
    height: 32px;
  }

  .whatsapp-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .luxury-portal-card {
    padding: 1.5rem 0.9rem;
    border-radius: 14px;
  }

  .portal-heading {
    font-size: 1.4rem;
  }

  .crest-line {
    width: 12px;
  }

  .crest-text {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .specialty-card {
    padding: 1.2rem 0.95rem;
  }

  .card-title {
    font-size: 1.05rem;
  }
}

/* Touch Screen Ergonomics (Prevent sticky hover on mobile tap) */
@media (hover: none) {
  .specialty-card:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  }

  .specialty-card.active {
    box-shadow: 0 10px 28px rgba(201, 158, 56, 0.2);
  }

  .whatsapp-btn:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(201, 158, 56, 0.18);
    background: #ffffff;
    color: var(--text-black);
  }

  .whatsapp-btn:active {
    background: var(--gold-gradient);
    color: #110f0c;
    transform: scale(0.97);
  }
}

