/* ==========================================================
   PERSIA HOVE — Shared Design System
   Luxury Persian aesthetic: teal, gold, cream
   ========================================================== */

/* ==================== VARIABLES ==================== */
:root {
  --gold: #c9a96e;
  --gold-light: #e4cf9e;
  --gold-dark: #a17d3a;
  --gold-glow: rgba(201, 169, 110, 0.15);
  --teal: #2a6e6e;
  --teal-dark: #1a4a4a;
  --teal-deep: #0f2f2f;
  --cream: #faf6ef;
  --cream-dark: #f0e8d8;
  --burgundy: #7a2e3a;
  --charcoal: #2a2a2a;
  --charcoal-light: #3a3a3a;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 700;
}

.heading-xl {
  font-size: clamp(42px, 6vw, 80px);
  letter-spacing: -1px;
}

.heading-lg {
  font-size: clamp(32px, 4vw, 52px);
}

.heading-md {
  font-size: clamp(24px, 3vw, 36px);
}

.heading-sm {
  font-size: clamp(18px, 2vw, 24px);
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
}

.body-lg {
  font-size: 18px;
  line-height: 1.8;
}

.body-sm {
  font-size: 14px;
  line-height: 1.7;
}

/* ==================== PERSIAN ORNAMENTS ==================== */
.persian-border-top {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 12px,
    var(--teal-deep) 12px, var(--teal-deep) 16px,
    var(--teal) 16px, var(--teal) 28px,
    var(--teal-deep) 28px, var(--teal-deep) 32px
  );
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-left::before { display: none; }
.ornament-left::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: var(--cream);
}

.section-cream {
  background: var(--cream-dark);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold);
  color: var(--teal-deep);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.4);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,110,110,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--teal-deep);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--teal-deep);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(15, 47, 47, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.site-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(20px, 4vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.site-header.scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-text h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
}

.header-logo-text span {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 1;
  margin-top: 1px;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 12px;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 47, 47, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

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

.mobile-nav a {
  display: block;
  padding: 16px 0;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  text-align: center;
  transition: color 0.3s;
}

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

.mobile-nav .btn {
  margin-top: 24px;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: linear-gradient(180deg, var(--teal-deep) 0%, #0a1f1f 100%);
  color: var(--gold-light);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-main {
  padding: 80px clamp(20px, 4vw, 48px) 48px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(228,207,158,0.85);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer-brand .header-logo {
  margin-bottom: 8px;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 14px;
  color: rgba(228,207,158,0.85);
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--teal-deep);
  border-color: var(--gold);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(201,169,110,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(228,207,158,0.6);
}

.footer-bottom a {
  color: rgba(228,207,158,0.6);
  transition: color 0.3s;
}

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

/* ==================== SCROLL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ==================== PARALLAX ==================== */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-img {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ==================== IMAGE EFFECTS ==================== */
.img-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.img-reveal img {
  transition: transform var(--transition-slow);
}

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

.img-overlay {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,47,47,0.7) 100%);
  pointer-events: none;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(201,169,110,0.25);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  background: var(--white);
  transition: all 0.3s;
  outline: none;
  color: var(--charcoal);
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42,110,110,0.1);
}

.form-input::placeholder {
  color: #aaa;
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a17d3a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

/* ==================== CARDS ==================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(201,169,110,0.1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,169,110,0.25);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 20px 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .section {
    padding: clamp(40px, 6vw, 80px) 0;
  }
}

/* ==================== COLLECTION PROMO BANNER (SITE-WIDE) ==================== */
.site-promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 50%, var(--teal) 100%);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-promo-banner.hidden { transform: translateY(100%); }
.site-promo-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 32px;
}
.site-promo-text {
  font-family: 'Outfit', sans-serif;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 500;
}
.site-promo-text strong {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}
.site-promo-btn {
  padding: 10px 28px;
  background: var(--gold);
  color: var(--teal-deep);
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.site-promo-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,169,110,0.4);
}
.site-promo-dismiss {
  background: none;
  border: none;
  color: rgba(228,207,158,0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.site-promo-dismiss:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .site-promo-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .site-promo-text { font-size: 13px; text-align: center; }
  .site-promo-text strong { font-size: 15px; }
  .site-promo-btn { padding: 8px 20px; font-size: 12px; }
}

/* ==================== SHARED JS INIT ==================== */
/* Header scroll, mobile nav, reveal animations handled by shared.js */
