/* =============================================================================
   El-Naser Studio — Landing site
   Dark, premium aesthetic matching the brand logo and the mobile app's
   dark theme (see mobile/src/shared/theme/index.ts).
   ============================================================================= */

:root {
  --bg:          #0C0C0C;
  --surface:     #151515;
  --surface-alt: #1D1D1D;
  --border:      #2A2A2A;

  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #A07A30;
  --rose:        #D9A8A0;

  --text:        #F5EDD8;
  --text-2:      #ADA79B;

  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;

  --max-w: 1100px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }

/* --- Language toggle -------------------------------------------------------
   Default language is Romanian. Adding class "en" on <html> switches to
   English. Every translated node carries class .ro or .en. */
html .en-txt { display: none; }
html.en .en-txt { display: revert; }
html.en .ro-txt { display: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: var(--text); letter-spacing: 1px;
}
.brand .mark { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text-2); font-size: 14px; letter-spacing: 0.4px;
  transition: color .2s;
}
.main-nav a:hover { color: var(--gold-light); }
.lang-switch {
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2);
  font: 600 12px/1 var(--font-body); letter-spacing: 1px;
  padding: 8px 14px; cursor: pointer; transition: color .2s, border-color .2s;
}
.lang-switch:hover { color: var(--gold-light); border-color: var(--gold-dark); }

@media (max-width: 760px) {
  .main-nav a:not(.lang-switch) { display: none; }
}

/* --- Hero ------------------------------------------------------------------ */
/* Background is transparent apart from the glow so the particle canvas
   (#fx-bg, fixed behind all content) shows through. */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(201, 168, 76, 0.14), transparent);
}
.hero img.logo {
  width: 190px; height: 190px; object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}
/* Orbiting light rings around the logo. */
.logo-orbit {
  position: relative;
  width: 190px; height: 190px;
  margin: 0 auto 32px;
  animation: logo-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both,
             logo-float 7s ease-in-out 1.2s infinite;
}
.logo-orbit::before,
.logo-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.logo-orbit::before {
  inset: -13px;
  background: conic-gradient(
    rgba(232, 201, 122, 0) 0deg, rgba(232, 201, 122, 0) 290deg,
    rgba(232, 201, 122, 0.9) 330deg, rgba(232, 201, 122, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: orbit-spin 7s linear infinite;
}
.logo-orbit::after {
  inset: -26px;
  background: conic-gradient(
    rgba(217, 168, 160, 0) 0deg, rgba(217, 168, 160, 0) 310deg,
    rgba(217, 168, 160, 0.55) 340deg, rgba(217, 168, 160, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  animation: orbit-spin 11s linear infinite reverse;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes logo-in {
  from { opacity: 0; transform: translateY(28px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.kicker {
  font: 600 12px/1 var(--font-body); letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.1;
  letter-spacing: -0.5px; margin: 18px 0 16px;
  /* Gold sheen sweeping across the headline. */
  background: linear-gradient(110deg,
    var(--text) 42%, var(--gold-light) 50%, var(--text) 58%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both,
             sheen 7s linear 1.5s infinite;
}
@keyframes sheen {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}
@keyframes hero-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero .kicker  { animation: hero-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.hero p.lede   { animation: hero-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both; }
.hero .cta-row { animation: hero-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.hero p.lede {
  color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0 auto 36px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); letter-spacing: 0.3px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #171310;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.25);
}
.btn-gold:hover { box-shadow: 0 6px 32px rgba(201, 168, 76, 0.4); }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--gold-dark); }

/* --- Sections ---------------------------------------------------------------- */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); margin: 14px 0 12px; letter-spacing: -0.3px;
}
.section-head p { color: var(--text-2); }

/* --- Services ---------------------------------------------------------------- */
.svc-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.svc-card {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
section.alt .svc-card { background: var(--bg); }
.svc-card h3 {
  font: 600 12px/1 var(--font-body); letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.svc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: none; }
.svc-row .name { font-weight: 500; }
.svc-row .meta { display: block; color: var(--text-2); font-size: 13px; }
.svc-row .price {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--gold-light); white-space: nowrap;
}

/* --- Boutique ---------------------------------------------------------------- */
.perfume-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.perfume {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .2s;
}
.perfume:hover { border-color: var(--gold-dark); }
.perfume .brand-name {
  font: 600 11px/1 var(--font-body); letter-spacing: 2px;
  text-transform: uppercase; color: var(--rose);
}
.perfume h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  margin: 8px 0 4px;
}
.perfume .desc { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.perfume .bottom {
  display: flex; justify-content: space-between; align-items: baseline;
}
.perfume .size { color: var(--text-2); font-size: 13px; }
.perfume .price { font-weight: 700; color: var(--gold-light); }

/* --- Loyalty / App ------------------------------------------------------------ */
.split {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); margin: 14px 0 16px;
}
.split p { color: var(--text-2); margin-bottom: 14px; }
.feature-list { list-style: none; margin-top: 8px; }
.feature-list li {
  position: relative; padding: 8px 0 8px 28px; color: var(--text-2);
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.store-badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 10px 18px;
  color: var(--text); transition: border-color .2s;
}
.store-badge:hover { border-color: var(--gold-dark); }
.store-badge svg { width: 26px; height: 26px; fill: var(--text); flex-shrink: 0; }
.store-badge .small { display: block; font-size: 10px; letter-spacing: 1px; color: var(--text-2); text-transform: uppercase; }
.store-badge .big { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.soon-tag {
  display: inline-block; margin-top: 14px;
  font: 600 11px/1 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dark);
  border-radius: 999px; padding: 6px 12px;
}
.stamp-card {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; text-align: center;
}
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 20px 0; }
.stamp {
  aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--border);
}
.stamp.filled {
  border: 1.5px solid var(--gold);
  background: rgba(201, 168, 76, 0.12); color: var(--gold-light);
}
.stamp-card .note { color: var(--text-2); font-size: 14px; }

/* --- Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.info-card {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
section.alt .info-card { background: var(--bg); }
.info-card h3 {
  font: 600 12px/1 var(--font-body); letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.hours-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  color: var(--text-2); font-size: 15px;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--text); font-weight: 500; }
.contact-line {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; color: var(--text-2);
}
.contact-line a { color: var(--text); font-weight: 500; }
.contact-line a:hover { color: var(--gold-light); }
.map-frame {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 100%; min-height: 280px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; filter: grayscale(0.4) contrast(1.05); }

/* --- Footer ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; background: var(--surface);
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.site-footer, .site-footer a { color: var(--text-2); font-size: 14px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 24px; }

/* --- Legal pages ---------------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 48px); margin: 12px 0 10px;
}
.legal .updated {
  display: inline-block; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-2); font-size: 13px; font-weight: 600;
  padding: 6px 12px; margin: 10px 0 40px;
}
.legal section { padding: 0; margin-bottom: 36px; }
.legal h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  margin-bottom: 12px;
}
.legal ul { list-style: none; }
.legal li {
  position: relative; padding: 6px 0 6px 24px; color: var(--text-2);
}
.legal li::before {
  content: ''; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-light); font-size: 14px; font-weight: 600;
}

/* =============================================================================
   Motion & depth FX (driven by fx.js — everything degrades gracefully)
   ============================================================================= */

/* Fixed particle canvas behind all content. */
#fx-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
section, .site-footer { position: relative; z-index: 1; }

/* Scroll progress hairline under the sticky header. */
#fx-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 3D tilt cards — fx.js sets the transform; CSS supplies the glare that
   follows the cursor via --mx/--my. */
.tilt {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.tilt.tilting { transition: transform 0.06s linear; }
.tilt::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 201, 122, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* Scroll reveals: elements rise and un-tilt into place. */
.reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(46px) rotateX(9deg) scale(0.97);
  transform-origin: 50% 100%;
  transition:
    opacity   0.7s ease                        var(--d, 0ms),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Loyalty stamps pop in one by one after their card reveals. */
.reveal .stamp {
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity   0.4s ease var(--d, 0ms),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms);
}
.reveal.in .stamp { opacity: 1; transform: none; }

/* Buttons pick up a light sweep on hover (magnetic pull comes from fx.js). */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: -80%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }

/* Reduced motion: static page, everything visible, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  #fx-bg, #fx-progress { display: none; }
  .reveal, .reveal .stamp { opacity: 1; transform: none; transition: none; }
  .hero .kicker, .hero h1, .hero p.lede, .hero .cta-row,
  .logo-orbit, .logo-orbit::before, .logo-orbit::after,
  .btn::before {
    animation: none !important;
    transition: none !important;
  }
}
