/* ---- Theme from brand (purple + gold) ---- */
:root {
  --purple-deep: #1e1229;
  --purple-mid: #2d1b4e;
  --purple-light: #3d2463;
  --purple-accent: #5c3d7a;
  --gold: #d4af37;
  --gold-light: #e8c547;
  --gold-dark: #b8860b;
  --white: #f8f6f3;
  --white-soft: rgba(248, 246, 243, 0.9);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--purple-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(30, 18, 41, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo .logo-img {
  height: 250px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--transition);
}

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: var(--purple-mid);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(30, 18, 41, 0.88) 0%, rgba(45, 27, 78, 0.85) 50%, rgba(30, 18, 41, 0.92) 100%);
  animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.95; transform: scale(1.05); }
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 15s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--purple-accent);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--gold-dark);
  bottom: 10%;
  left: -5%;
  animation-delay: -5s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--gold);
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.98); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--white-soft);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--purple-deep);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  color: var(--gold-light);
  border: 2px solid rgba(232, 197, 71, 0.5);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(232, 197, 71, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s 1.2s forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---- Sections ---- */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--white-soft);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* Reveal animation (triggered by JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }
.reveal:nth-child(9) { transition-delay: 0.8s; }

/* ---- Section with background image (after hero) ---- */
.section-bg {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.section-bg-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 18, 41, 0.92) 0%, rgba(45, 27, 78, 0.88) 50%, rgba(30, 18, 41, 0.94) 100%);
}

.section-bg-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 2rem 1.5rem;
  background: rgba(30, 18, 41, 0.5);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.section-bg-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent 70%);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2) inset;
}

.section-bg-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--gold-light);
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section-bg-line {
  width: 80px;
  height: 3px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.section-bg-desc {
  color: var(--white-soft);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.section-bg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.section-bg-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  transition: border-color var(--transition), background var(--transition);
}

.section-bg-badge:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
}

/* ---- About ---- */
.about {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-mid) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.about-card h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--white-soft);
  font-size: 0.95rem;
}

/* ---- Products ---- */
.products {
  background: var(--purple-mid);
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.product-pill {
  padding: 0.85rem 1.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 500;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.product-pill:hover {
  transform: scale(1.05);
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
}

/* ---- Gallery ---- */
.gallery {
  background: linear-gradient(180deg, var(--purple-mid) 0%, var(--purple-light) 50%, var(--purple-mid) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(212, 175, 55, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}

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

/* ---- Brochure (dedicated section) ---- */
.brochure-section {
  padding: 0;
  background: var(--purple-deep);
  overflow-x: hidden;
}

.brochure-section-inner {
  padding: 4rem 0 0;
}

.brochure-viewer-wrap {
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.6) 0%, rgba(30, 18, 41, 0.95) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2rem 0 3rem;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.brochure-section .brochure-embed-wrap {
  margin-bottom: 0;
  max-width: none;
  width: 100%;
  min-height: 80vh;
  border-radius: 0;
  border-left: none;
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.brochure-section .brochure-embed-wrap .brochure-embed-title {
  display: none;
}

/* ---- Resources (downloads) ---- */
.resources-section {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-mid) 100%);
}

.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.brochure-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.brochure-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.brochure-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.brochure-card h3 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.brochure-card p {
  color: var(--white-soft);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  flex: 1;
}

.brochure-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brochure-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.brochure-embed-title {
  padding: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Brochure: flipbook vs fallback */
.brochure-flipbook-wrap[hidden],
.brochure-flipbook-wrap.hidden {
  display: none !important;
}

.brochure-fallback {
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 var(--radius) var(--radius);
}

.brochure-fallback[hidden] {
  display: none !important;
}

.brochure-fallback-msg {
  color: var(--white-soft);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.brochure-fallback-btn {
  margin-bottom: 1.25rem;
  display: inline-block;
}

.brochure-fallback-iframe {
  width: 100%;
  min-height: 80vh;
  height: 80vh;
  border: none;
  border-radius: var(--radius-sm);
  display: block;
}

/* Dear Flip / dFlip container - stable width, no horizontal shift on page change */
.brochure-flipbook-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  min-height: 80vh;
}

.brochure-flipbook {
  min-height: 80vh !important;
  height: 80vh !important;
  width: 100% !important;
  max-width: 100%;
}

.brochure-embed-wrap ._df_container {
  border-radius: 0;
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 0 auto;
}

.brochure-embed-wrap ._df_container,
.brochure-embed-wrap ._df_book {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brochure-embed-wrap ._df_ui {
  background: rgba(30, 18, 41, 0.95) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

.brochure-embed-wrap ._df_ui button,
.brochure-embed-wrap ._df_ui ._df_icon {
  color: var(--gold-light) !important;
}

@media (max-width: 640px) {
  .brochure-flipbook,
  .brochure-flipbook-wrap {
    min-height: 80vh;
  }
  .brochure-flipbook {
    height: 80vh !important;
  }
}

/* ---- Contact ---- */
.contact {
  background: linear-gradient(180deg, var(--purple-mid) 0%, var(--purple-deep) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

a.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.contact-address {
  cursor: default;
}

.contact-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.contact-card strong {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-card span:last-child {
  font-size: 0.9rem;
  color: var(--white-soft);
  line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
  padding: 4rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, var(--purple-mid) 0%, var(--purple-deep) 100%);
  border-top: 2px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}

.footer-logo {
  display: block;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-logo .logo-img {
  height: 250px;
  width: auto;
  border-radius: var(--radius-sm);
  opacity: 0.98;
}

.footer-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--white-soft);
  opacity: 0.85;
  margin: 0;
}
