/* ============================================================
   FOTO PLATFORM — Victorian / Louis XIV Luxurious
   ============================================================ */

:root {
  /* Color Palette - Royal & Luxurious */
  --noir: #0f0d0c;
  --charcoal: #1a1614;
  --espresso: #2a1f1a;
  --champagne: #c9a961;
  --gold: #b8945a;
  --gold-light: #d4b87a;
  --burgundy: #6b1f2a;
  --burgundy-deep: #4a1419;
  --ivory: #faf6ef;
  --ivory-warm: #f5ede0;
  --cream: #ede2d0;
  --sand: #e8dcc4;
  --bronze: #8b7355;
  --stone: #6b5d4a;
  --pearl: #f9f5ed;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', 'Cinzel', serif;
  --font-script: 'Italiana', serif;
  --font-body: 'Cormorant Garamond', 'Lora', serif;
  --font-sans: 'Inter', 'Sarabun', sans-serif;
  --font-thai: 'Sarabun', 'Prompt', system-ui, sans-serif;

  /* Shadows */
  --shadow-soft: 0 2px 16px rgba(15, 13, 12, 0.06);
  --shadow-elegant: 0 12px 40px rgba(15, 13, 12, 0.12);
  --shadow-deep: 0 30px 80px rgba(15, 13, 12, 0.2);
  --shadow-gold: 0 8px 24px rgba(201, 169, 97, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-thai);
  color: var(--espresso);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--noir);
  line-height: 1.15;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 300; }
h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
h4 { font-size: 1.5rem; }

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

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

p { margin-bottom: 1em; line-height: 1.7; }

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  position: relative;
}
.divider-gold::before, .divider-gold::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.5rem;
}
.divider-gold::before { left: -16px; }
.divider-gold::after { right: -16px; }

/* ===== CONTAINER ===== */
.container, .container-narrow, .container-wide {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.container { max-width: 1280px; }
.container-narrow { max-width: 960px; }
.container-wide { max-width: 1440px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--noir);
  color: var(--ivory);
  border-color: var(--noir);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--noir);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--noir);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--noir);
  border-color: var(--noir);
}
.btn-outline:hover {
  background: var(--noir);
  color: var(--ivory);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--noir);
}

.btn-ghost {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 8px 0;
  letter-spacing: 0.2em;
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }

.btn-large { padding: 20px 48px; font-size: 0.85rem; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184, 148, 90, 0.12);
  transition: all 0.4s ease;
}
.site-header.scrolled {
  background: rgba(250, 246, 239, 0.97);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-mark .name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--noir);
  text-transform: uppercase;
  line-height: 1;
}
.brand-mark .by {
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--noir);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--gold); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--noir); margin: 6px 0; }

@media (max-width: 968px) {
  .nav-container { padding: 0 20px; height: 72px; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  background: var(--ivory);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(245, 237, 224, 0.6) 0%, transparent 50%),
    var(--ivory);
  z-index: 0;
}

.hero-ornament-frame {
  position: absolute;
  inset: 80px 40px 60px;
  border: 1px solid rgba(184, 148, 90, 0.3);
  pointer-events: none;
  z-index: 1;
}
.hero-ornament-frame::before, .hero-ornament-frame::after {
  content: '⊹';
  position: absolute;
  color: var(--gold);
  font-size: 1.5rem;
  background: var(--ivory);
  padding: 0 16px;
}
.hero-ornament-frame::before { top: -12px; left: 50%; transform: translateX(-50%); }
.hero-ornament-frame::after { bottom: -12px; left: 50%; transform: translateX(-50%); }

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

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--noir);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.4s ease 0.5s forwards;
}
.hero-title em {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-description {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--stone);
  max-width: 700px;
  margin: 2rem auto 3.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1.4s ease 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.4s ease 1s forwards;
}

.hero-meta {
  margin-top: 5rem;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.4s ease 1.2s forwards;
}
.hero-meta-item {
  text-align: center;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 300;
  display: block;
  line-height: 1;
}
.hero-meta-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 6px;
  font-family: var(--font-sans);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ===== SECTIONS ===== */
.section {
  padding: 140px 0;
  position: relative;
}
.section-narrow { padding: 80px 0; }
.section-light { background: var(--ivory); }
.section-cream { background: var(--ivory-warm); }
.section-dark { background: var(--noir); color: var(--ivory); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ivory); }

.section-header {
  text-align: center;
  margin-bottom: 90px;
}
.section-header h2 { font-weight: 300; margin: 0.5rem 0 1rem; }
.section-header p {
  color: var(--stone);
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== FEATURE GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
  transition: transform 0.4s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .roman {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1.5rem;
  display: block;
  letter-spacing: 0.1em;
}
.feature-card h3 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.feature-card p {
  color: var(--stone);
  font-size: 0.95rem;
}

/* ===== PRICING TABLE ===== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}
.pricing-toggle-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}
.pricing-toggle-label.active { color: var(--noir); }
.pricing-toggle-label .save {
  color: var(--gold);
  font-size: 0.7rem;
  margin-left: 6px;
}
.toggle-track {
  width: 56px;
  height: 28px;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 28px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}
.toggle-track.yearly::after { transform: translateX(28px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--cream);
  padding: 56px 40px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elegant);
  border-color: var(--gold);
}
.plan-card.featured {
  background: var(--noir);
  color: var(--ivory);
  border: none;
  transform: scale(1.05);
}
.plan-card.featured h3 { color: var(--ivory); }
.plan-card.featured .plan-tagline { color: var(--cream); }
.plan-card.featured .plan-price-currency { color: var(--gold); }
.plan-card.featured .plan-price-amount { color: var(--ivory); }
.plan-card.featured .plan-price-period { color: var(--cream); }
.plan-card.featured .plan-feature { color: var(--cream); border-color: rgba(245, 237, 224, 0.15); }
.plan-card.featured:hover { transform: scale(1.05) translateY(-8px); }

.plan-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--gold);
  color: var(--noir);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  padding: 8px 18px;
  text-transform: uppercase;
  font-weight: 500;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.plan-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--stone);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.plan-price {
  text-align: center;
  margin: 2rem 0;
  padding: 28px 0;
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}
.plan-card.featured .plan-price { border-color: rgba(245, 237, 224, 0.15); }

.plan-price-currency {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  vertical-align: top;
  margin-right: 6px;
}
.plan-price-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--noir);
  font-weight: 300;
  line-height: 1;
}
.plan-price-period {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 8px;
  font-family: var(--font-sans);
}

.plan-features {
  list-style: none;
  margin: 2rem 0;
  flex: 1;
}
.plan-feature {
  padding: 12px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 0.92rem;
  color: var(--espresso);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.plan-feature::before {
  content: '✓';
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.plan-feature:last-child { border-bottom: 0; }

.plan-card .btn { margin-top: auto; }

/* ===== TESTIMONIALS ===== */
.quote-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}
.quote-block::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 20px;
  font-style: italic;
}
.quote-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--espresso);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.quote-author {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--noir);
  color: var(--cream);
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 60px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .mark {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.5em;
  font-weight: 500;
  color: var(--ivory);
}
.footer-brand .by {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-top: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-brand p {
  color: var(--stone);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.85rem; }
.footer-col a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 300;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(184, 148, 90, 0.15);
  padding-top: 30px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.15em;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--ivory-warm) 100%);
}
.auth-box {
  background: var(--white);
  padding: 64px 48px;
  border: 1px solid var(--cream);
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-elegant);
}
.auth-box::before, .auth-box::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  opacity: 0.5;
}
.auth-box::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.auth-box::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}
.auth-header h1 {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 8px;
}
.auth-header p {
  color: var(--stone);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
  font-weight: 500;
  font-family: var(--font-sans);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--cream);
  background: var(--white);
  font-family: var(--font-thai);
  font-size: 0.95rem;
  color: var(--espresso);
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { font-size: 0.78rem; color: var(--stone); margin-top: 6px; font-style: italic; }

.btn-block { display: flex; width: 100%; justify-content: center; }

.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cream);
  font-size: 0.9rem;
  color: var(--stone);
}
.auth-footer a { color: var(--gold); font-weight: 500; }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 97, 0.06);
}
.alert-error {
  border-color: var(--burgundy);
  background: rgba(107, 31, 42, 0.06);
  color: var(--burgundy);
}
.alert-success {
  border-color: #5a8a5a;
  background: rgba(90, 138, 90, 0.06);
  color: #2d5a2d;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 180px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
}
.page-header h1 { font-weight: 300; margin-bottom: 0.5rem; }
.page-header .lead {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--stone);
  font-size: 1.3rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Util ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
