/* House of Spells Malaysia — Coming Soon */

:root {
  --bg-deep: #050505;
  --bg-surface: #0d0d0d;
  --bg-elevated: #141414;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8a6d12;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --text-primary: #faf7f2;
  --text-secondary: #ddd6c8;
  --text-muted: #b8ae9c;
  --border-gold: rgba(201, 162, 39, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-accent: "Cinzel Decorative", "Cinzel", serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201, 162, 39, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(74, 28, 40, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: contents;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg-deep);
}

.btn-align-start {
  margin-top: 1rem;
  align-self: flex-start;
}

.section-spacing-top {
  margin-top: 2rem;
}

.map-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg-elevated);
}

.map-placeholder p {
  color: var(--text-secondary);
  max-width: 320px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.form-status--error {
  color: #e08a8a;
}

.form-status[hidden] {
  display: none;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-primary);
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.95);
  border-bottom-color: var(--border-gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo picture img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-deep) !important;
  box-shadow: 0 0 24px var(--gold-glow);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 1.25rem 4rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.4;
}

.hero-logo {
  width: min(320px, 70vw);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge::before,
.hero-badge::after {
  content: "✦";
  font-size: 0.6rem;
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-location {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-location strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--bg-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
  color: var(--text-primary);
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.hero,
.page-hero {
  content-visibility: visible;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-desc {
  text-align: center;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 3.5rem;
  font-size: 1.15rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 3rem;
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.6rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Universes / Fandoms */
.universes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.universe-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem 0.75rem;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 13, 13, 0.6);
  color: var(--text-primary);
  transition: all var(--transition);
}

.universe-tag:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.05);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-primary);
  font-size: 1rem;
}

/* Quote block */
.quote-block {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(201, 162, 39, 0.03);
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.quote-block cite {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* Location preview */
.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  background: var(--bg-surface);
}

.location-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.location-info address {
  font-style: normal;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.location-info .detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.location-info .detail span:first-child {
  color: var(--gold);
  flex-shrink: 0;
}

.location-map {
  min-height: 360px;
  background: var(--bg-elevated);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(30%) contrast(1.1);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.08) 0%, transparent 70%),
    var(--bg-surface);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-primary);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* Page hero (subpages) */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .section-title {
  margin-bottom: 0.75rem;
}

.page-hero .section-desc {
  margin-bottom: 0;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.contact-item-text p,
.contact-item-text a {
  color: var(--text-primary);
  font-size: 1rem;
}

.contact-form {
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

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

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

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

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Expect page */
.expect-section {
  margin-bottom: 4rem;
}

.expect-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.expect-section p {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.expect-list {
  list-style: none;
  margin: 1.5rem 0;
}

.expect-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.expect-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.35rem;
}

.timeline {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-primary);
  font-size: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img,
.footer-brand picture img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mobile-nav a:hover {
  color: var(--gold-light);
}

/* Responsive */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    width: 100%;
  }
}

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

  .universes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
