/* css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Mulish:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --gold:    #C9973A;
  --gold-lt: #E8BF6E;
  --dark:    #0F0E0C;
  --dark2:   #1A1813;
  --dark3:   #252219;
  --cream:   #F5EDD8;
  --cream2:  #EDE0C4;
  --text:    #E8DFC8;
  --muted:   #9A9080;
  --accent:  #D4573C;
  --radius:  10px;
  --shadow:  0 8px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Mulish', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Background texture ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201,151,58,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(212,87,60,0.05) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ────────────────────────────────────────
   HERO / LANDING
──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a150a 0%, #0F0E0C 50%, #100d1a 100%);
  z-index: -1;
}

.hero__ornament {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,151,58,0.15);
  animation: pulse 6s ease-in-out infinite;
}
.hero__ornament:nth-child(1) { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 0s; }
.hero__ornament:nth-child(2) { width: 800px; height: 800px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 1.5s; }
.hero__ornament:nth-child(3) { width: 1100px; height: 1100px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 3s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--cream);
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero__title span { color: var(--gold); display: block; }

.hero__year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}

.hero__info {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}

.hero__info-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.hero__info-item strong {
  font-weight: 600; font-size: 1rem; color: var(--cream);
}
.hero__info-item span {
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em;
}

.hero__cta {
  margin-top: 3rem;
  opacity: 0; animation: fadeUp 0.8s 1s forwards;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,151,58,0.35);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  animation: bounce 2s infinite;
}
.hero__scroll::after {
  content: '↓';
  font-size: 1.2rem;
}

@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ────────────────────────────────────────
   SECTIONS
──────────────────────────────────────── */
section { position: relative; z-index: 1; }

.section { padding: 6rem 2rem; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

/* ── Info cards ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--dark2);
  border: 1px solid rgba(201,151,58,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s;
}
.info-card:hover { border-color: rgba(201,151,58,0.4); }

.info-card__icon {
  font-size: 2rem; margin-bottom: 1rem;
}
.info-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--cream); margin-bottom: 0.5rem;
}
.info-card__text { font-size: 0.9rem; color: var(--muted); }

/* ── Nominations list ── */
.nom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.nom-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.nom-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--gold);
  margin-bottom: 0.75rem;
}
.nom-card__list {
  list-style: none;
}
.nom-card__list li {
  font-size: 0.82rem; color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nom-card__list li:last-child { border-bottom: none; }

/* ── Pricing table ── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.price-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}
.price-table tr:hover td { background: rgba(201,151,58,0.04); }
.price-table .price { font-weight: 600; color: var(--gold); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: rgba(201,151,58,0.25);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: -2.4rem; top: 0.4rem;
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold);
  border: 2px solid var(--dark);
}
.timeline-item__date { font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; }
.timeline-item__text { font-size: 0.95rem; color: var(--text); margin-top: 0.25rem; }

/* ── Payment block ── */
.payment-block {
  background: var(--dark2);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}
.payment-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.payment-row .pl { color: var(--muted); min-width: 130px; }
.payment-row .pv { color: var(--cream); word-break: break-all; }
.payment-copy {
  background: none; border: none;
  color: var(--gold); cursor: pointer;
  font-size: 0.8rem; margin-left: 0.5rem;
  opacity: 0.7; transition: opacity 0.2s;
}
.payment-copy:hover { opacity: 1; }

/* ────────────────────────────────────────
   MODAL
──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--dark2);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: 14px;
  width: 100%; max-width: 680px;
  margin: auto;
  padding: 0;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.modal-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--cream);
}
.modal-header__sub {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem;
}
.modal-close {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  padding: 0.25rem; flex-shrink: 0;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--cream); }

.modal-body { padding: 2rem; }

/* Steps progress */
.steps-bar {
  display: flex; gap: 0.5rem;
  margin-bottom: 2rem;
}
.step-dot {
  height: 4px; flex: 1; border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: background 0.4s;
}
.step-dot.active { background: var(--gold); }
.step-dot.done   { background: rgba(201,151,58,0.4); }

.step-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.step-label span { color: var(--gold); }

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ────────────────────────────────────────
   FORM
──────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

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

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--gold); }
.form-label .opt { font-weight: 300; font-style: italic; letter-spacing: 0; text-transform: none; font-size: 0.75rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(201,151,58,0.5);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.1);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23C9973A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: var(--dark3); }
.form-textarea { min-height: 90px; resize: vertical; }

/* ── Performance cards ── */
.perf-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.perf-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
}
.perf-card__num {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.perf-card__remove {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none;
  color: var(--muted); cursor: pointer; font-size: 1.1rem;
  transition: color 0.2s;
}
.perf-card__remove:hover { color: var(--accent); }

.add-perf-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1px dashed rgba(201,151,58,0.3);
  border-radius: 8px;
  color: var(--gold);
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  justify-content: center;
}
.add-perf-btn:hover {
  border-color: var(--gold);
  background: rgba(201,151,58,0.05);
}

/* Price hint */
.price-hint {
  background: rgba(201,151,58,0.08);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.75rem;
  display: none;
}
.price-hint.show { display: block; }

/* Modal footer */
.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.modal-footer .btn-back {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.modal-footer .btn-back:hover { color: var(--text); }

/* ── Error / Success ── */
.form-error {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.3rem;
}
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-error { background: rgba(212,87,60,0.12); border: 1px solid rgba(212,87,60,0.3); color: #f08060; }
.alert-success { background: rgba(100,200,100,0.08); border: 1px solid rgba(100,200,100,0.2); color: #7ecc7e; }

/* ── Success screen ── */
.success-screen { text-align: center; padding: 1rem 0; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--cream);
  margin-bottom: 0.75rem;
}
.success-text { color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
  text-align: center;
}
.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer__contacts {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; margin: 1.5rem 0;
}
.footer__contacts a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.footer__contacts a:hover { color: var(--gold); }
.footer__copy { font-size: 0.75rem; color: var(--muted); opacity: 0.5; }

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.loading-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .modal-body, .modal-header, .modal-footer { padding: 1.25rem; }
  .section { padding: 4rem 1.25rem; }
  .payment-row { flex-direction: column; gap: 0.1rem; }
}
