/* ============================================================
   SparQ Spaces — components.css
   Page-specific components: Studios · Packages · Blog · About · Contact
   ============================================================ */

/* ── Page Hero (inner pages) ──────────────────────────────── */

.page-hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 50vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 72px; /* nav height */
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg .img-placeholder,
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.55) 50%,
    rgba(10, 10, 10, 0.25) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--container-padding);
  padding-bottom: clamp(40px, 5vh, 64px);
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-hero-content .label {
  display: block;
  margin-bottom: 12px;
}

.page-hero-content h1 {
  font-size: clamp(40px, 6vw, 72px);
}

/* ── Studio Room Sections ─────────────────────────────────── */

.studio-section {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-section:last-child {
  border-bottom: none;
}

.studio-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.studio-section-inner.reverse {
  direction: rtl;
}

.studio-section-inner.reverse > * {
  direction: ltr;
}

.studio-section-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.studio-section-media .img-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.studio-section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-section-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sparq-gold);
}

.studio-section-info .label {
  display: block;
  margin-bottom: 12px;
}

.studio-section-info h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 8px;
}

.studio-section-info .studio-size {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--sparq-grey-mid);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.studio-section-info p {
  margin-bottom: 28px;
}

/* Pricing table inside studio section */
.pricing-table {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}

.pricing-table-header {
  background: rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 12px 20px;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sparq-gold);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row-label {
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.70);
}

.pricing-row-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--sparq-white);
}

.pricing-row-price span {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 500;
  color: var(--sparq-grey-mid);
  margin-left: 4px;
  letter-spacing: 0.06em;
}

/* Includes list */
.includes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.includes-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
}

.includes-item::before {
  content: '✓';
  color: var(--sparq-gold);
  font-size: 10px;
  font-weight: 700;
}

/* Themes available pills */
.themes-available {
  margin-top: 16px;
}

.themes-available-label {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sparq-grey-mid);
  margin-bottom: 10px;
  display: block;
}

.themes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.themes-pills .pill {
  font-size: 11px;
  padding: 5px 12px;
}

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

  .studio-section-inner.reverse {
    direction: ltr;
  }
}

/* ── Packages / Pricing Tabs ──────────────────────────────── */

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 14px 28px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.80);
}

.tab-btn.active {
  color: var(--sparq-gold);
  border-bottom-color: var(--sparq-gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Pricing cards grid */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--sparq-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.pricing-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--sparq-gold);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, var(--sparq-charcoal) 100%);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sparq-gold);
  color: var(--sparq-black);
  font-family: var(--font-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card-room {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sparq-gold);
  margin-bottom: 8px;
}

.pricing-card-name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  color: var(--sparq-white);
  margin-bottom: 4px;
}

.pricing-card-size {
  font-family: var(--font-accent);
  font-size: 11px;
  color: var(--sparq-grey-mid);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.pricing-card-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pricing-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pricing-option-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.60);
}

.pricing-option-price {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--sparq-white);
  font-weight: 400;
}

.pricing-option-price small {
  font-family: var(--font-accent);
  font-size: 10px;
  color: var(--sparq-grey-mid);
  font-weight: 400;
  margin-left: 3px;
}

.pricing-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pricing-feature {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-feature::before {
  content: '✓';
  color: var(--sparq-gold);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Add-ons section */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.addon-item {
  background: var(--sparq-grey-dark);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.addon-item-name {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sparq-white);
  margin-bottom: 6px;
}

.addon-item-price {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--sparq-gold);
}

.addon-item-price small {
  font-family: var(--font-accent);
  font-size: 10px;
  color: var(--sparq-grey-mid);
  margin-left: 4px;
}

/* T&Cs box */
.terms-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--sparq-gold);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  margin-top: 48px;
}

.terms-box h3 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--sparq-white);
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.terms-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--sparq-gold);
}

/* ── Blog Components ──────────────────────────────────────── */

.blog-hero {
  padding-top: 72px;
  position: relative;
  height: clamp(440px, 60vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-hero-bg img,
.blog-hero-bg .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.96) 0%,
    rgba(10,10,10,0.50) 45%,
    rgba(10,10,10,0.15) 100%
  );
  z-index: 1;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: var(--container-padding);
  padding-bottom: clamp(40px, 5vh, 64px);
  margin: 0 auto;
  width: 100%;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-hero-category {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sparq-gold);
}

.blog-hero-date {
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.blog-hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--sparq-white);
}

/* Blog post body */
.blog-body {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--container-padding);
}

.blog-body p {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
}

.blog-body h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--sparq-white);
}

.blog-body h3 {
  font-size: 16px;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--sparq-white);
}

.blog-body blockquote {
  border-left: 3px solid var(--sparq-gold);
  padding: 16px 28px;
  margin: 36px 0;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-body blockquote p {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--sparq-white);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Full-bleed image in post */
.blog-full-bleed {
  width: calc(100% + 2 * var(--container-padding));
  margin-left: calc(-1 * var(--container-padding));
  margin-right: calc(-1 * var(--container-padding));
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
  max-height: 540px;
}

.blog-full-bleed img,
.blog-full-bleed .img-placeholder {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* YouTube embed */
.blog-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 40px 0;
  background: #000;
}

.blog-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Post end CTA card */
.post-cta-card {
  background: var(--sparq-charcoal);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  margin: 60px 0 40px;
}

.post-cta-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--sparq-white);
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.post-cta-card p {
  font-size: 14px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.55);
}

/* Related posts */
.related-posts {
  padding: clamp(40px, 5vw, 72px) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.related-posts h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  color: var(--sparq-white);
  margin-bottom: 28px;
  text-transform: none;
  letter-spacing: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

/* Blog listing filter tabs */
.blog-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ── About Page ───────────────────────────────────────────── */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--sparq-grey-dark);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: var(--sparq-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.team-card-photo .img-placeholder,
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--sparq-white);
  margin-bottom: 4px;
}

.team-card-role {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sparq-gold);
}

/* Community logos */
.community-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.community-logo {
  height: 48px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(2);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.community-logo:hover {
  opacity: 1;
  filter: none;
}

/* ── Contact Page ─────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

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

.contact-map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sparq-grey-dark);
  margin-bottom: 32px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sparq-gold-10);
  border: 1px solid var(--sparq-gold-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.contact-info-text {
  padding-top: 6px;
}

.contact-info-label {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sparq-grey-mid);
  margin-bottom: 3px;
}

.contact-info-value {
  font-size: 15px;
  color: var(--sparq-white);
}

.contact-info-value a {
  color: inherit;
  transition: color var(--transition-fast);
}

.contact-info-value a:hover {
  color: var(--sparq-gold);
}

/* Booking form */
.booking-form {
  background: var(--sparq-charcoal);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,0.06);
}

.booking-form-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--sparq-white);
  margin-bottom: 8px;
}

.booking-form-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  color: var(--sparq-white);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sparq-gold);
  background: rgba(201, 168, 76, 0.04);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.form-select option {
  background: var(--sparq-charcoal);
  color: var(--sparq-white);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  margin-top: 14px;
  text-align: center;
  line-height: 1.6;
}
