/* ==========================================================================
   DIVYA SAASHA — PAGE SPECIFIC & EDITORIAL COMPOSITIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PASSCODE ACCESS GATE (index.html)
   -------------------------------------------------------------------------- */
.passcode-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #1A1E27 0%, #0A0B0E 100%);
  padding: 1.5rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.passcode-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.passcode-card {
  width: 100%;
  max-width: 480px;
  background: rgba(21, 24, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 10;
}

.passcode-emblem {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--accent-gold);
}

.passcode-emblem svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.passcode-title {
  font-family: var(--font-serif-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.passcode-subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-light-muted);
  letter-spacing: 0.03em;
  margin-bottom: 2.25rem;
}

.passcode-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.passcode-input-group {
  position: relative;
  text-align: left;
}

.passcode-input {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all var(--duration-normal) ease;
}

.passcode-input:focus {
  border-color: var(--accent-gold);
  background: rgba(10, 11, 14, 0.9);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.passcode-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.passcode-btn:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

.passcode-error {
  display: none;
  color: #F87171;
  font-size: 0.8125rem;
  margin-top: 0.75rem;
  font-weight: 500;
}

.passcode-error.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   2. HOMEPAGE BESPOKE SECTIONS (home.html)
   -------------------------------------------------------------------------- */
.hero-bespoke {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #FAF8F5 0%, #F0ECE4 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold-dark);
}

.hero-summary {
  font-family: var(--font-serif-editorial);
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Face-Safe Hero Portrait Frame */
.hero-media-wrapper {
  position: relative;
}

.hero-media-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.hero-media-card img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center 15%; /* Keeps face fully in view */
  transition: transform var(--duration-slow) var(--transition-smooth);
}

.hero-media-card:hover img {
  transform: scale(1.02);
}

.hero-badge-floating {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
  max-width: 260px;
}

.badge-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.badge-text {
  font-family: var(--font-serif-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Editorial Story Section */
.story-layer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.editorial-img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-secondary);
}

.editorial-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 20%;
}

.story-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.story-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

/* Dual Column Editorial Highlights */
.editorial-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.editorial-card-rich {
  background: #FFFFFF;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) ease;
}

.editorial-card-rich:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.card-num {
  font-family: var(--font-serif-display);
  font-size: 2.25rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.editorial-card-rich h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.editorial-card-rich p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. ABOUT PAGE (about.html)
   -------------------------------------------------------------------------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-portrait-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-portrait-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 25%;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.principle-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  border-radius: 10px;
  border-top: 3px solid var(--accent-gold);
}

.principle-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. FAMILY & LEGACY (family-legacy.html)
   -------------------------------------------------------------------------- */
.legacy-split-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 5rem;
}

.legacy-img-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.legacy-img-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 20%;
}

.timeline-editorial {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-gold);
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

.timeline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 0.35rem;
}

.timeline-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. CULTURAL CONTEXT (cultural-context.html)
   -------------------------------------------------------------------------- */
.cultural-feature-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0;
}

.cultural-narrative-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.cultural-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--duration-normal) ease;
}

.cultural-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.cultural-card-img {
  height: 240px;
  overflow: hidden;
}

.cultural-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform var(--duration-slow) ease;
}

.cultural-card:hover .cultural-card-img img {
  transform: scale(1.04);
}

.cultural-card-body {
  padding: 2rem;
}

.cultural-card-body h3 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.cultural-card-body p {
  color: var(--text-light-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. MEDIA & PUBLIC PRESENCE (media-presence.html)
   -------------------------------------------------------------------------- */
.media-ethics-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: 16px;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border-gold);
  margin: 3.5rem 0;
}

.ethics-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.framework-card {
  background: #FFFFFF;
  padding: 2.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.framework-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.framework-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. GALLERY (gallery.html)
   -------------------------------------------------------------------------- */
.gallery-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--duration-slow) var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Asymmetrical Spans for Editorial Look */
.gallery-item.span-4 { grid-column: span 4; height: 380px; }
.gallery-item.span-8 { grid-column: span 8; height: 380px; }
.gallery-item.span-6 { grid-column: span 6; height: 440px; }
.gallery-item.span-12 { grid-column: span 12; height: 500px; }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 11, 14, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-caption-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.gallery-caption-sub {
  font-size: 0.8125rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Lightbox Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-modal.active {
  display: flex;
}

.modal-content-wrap {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-caption {
  color: #FFFFFF;
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--font-serif-editorial);
  font-size: 1.1rem;
}

.modal-close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   8. CONTACT PAGE (contact.html)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 3.5rem;
}

.contact-card-official {
  background: var(--bg-secondary);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 12px;
  border: 1px solid var(--border-gold);
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-dark);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-meta-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-meta-val {
  font-family: var(--font-serif-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 600;
}

.contact-meta-val a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

.contact-meta-val a:hover {
  color: var(--accent-gold-dark);
}

/* Form */
.contact-form-box {
  background: #FFFFFF;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  transition: all var(--duration-normal) ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid,
  .story-layer-grid,
  .about-hero-grid,
  .legacy-split-narrative,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-media-card img {
    height: 480px;
  }

  .hero-badge-floating {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1.5rem;
    max-width: 100%;
  }

  .gallery-item.span-4,
  .gallery-item.span-8,
  .gallery-item.span-6,
  .gallery-item.span-12 {
    grid-column: span 6;
    height: 320px;
  }

  .ethics-framework-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .editorial-duo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.span-4,
  .gallery-item.span-8,
  .gallery-item.span-6,
  .gallery-item.span-12 {
    grid-column: span 12;
    height: 290px;
  }

  .hero-media-card img {
    height: 380px;
  }
}
