/* ==========================================================================
   VILLABID — Design System
   Gold #C9A227 on Matte Black #0B0B0B — Luxury Minimal
   ========================================================================== */

:root {
  --color-gold: #C9A227;
  --color-gold-bright: #E0BC4A;
  --color-bg: #0B0B0B;
  --color-card: #161616;
  --color-text: #FFFFFF;
  --color-text-secondary: #B7B7B7;
  --color-divider: #2A2A2A;

  --font-fa: 'Vazirmatn', sans-serif;
  --font-en: 'Poppins', sans-serif;

  --radius-btn: 18px;
  --radius-card: 20px;

  --section-padding: 100px 0;
  --container-width: 1200px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-fa);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; border: none; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Section Title ---------- */
.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 36px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  transition: transform 200ms var(--ease), filter 200ms var(--ease), background 200ms var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gold);
  color: #0B0B0B;
}

.btn--primary:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
}

.btn--secondary:hover {
  transform: scale(1.02);
  background: rgba(201, 162, 39, 0.08);
}

.btn--full { width: 100%; }

.btn:active { transform: scale(0.99); }

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11,11,11,0.3);
  border-top-color: #0B0B0B;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  margin-inline-start: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video--desktop { display: none; }
.hero__video--mobile { display: block; }

@media (min-width: 900px) {
  .hero__video--desktop { display: block; }
  .hero__video--mobile { display: none; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.5);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeIn 1.1s var(--ease) both;
  animation-delay: 0.3s;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.9s var(--ease) forwards;
  animation-delay: 0.4s;
}

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

.hero__wordmark {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.9s var(--ease) forwards;
  animation-delay: 0.7s;
}

.hero__tagline {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.9s var(--ease) forwards;
  animation-delay: 0.9s;
}

.hero__subtagline {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.9s var(--ease) forwards;
  animation-delay: 1.1s;
}

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

.hero__cta {
  opacity: 0;
  animation: fadeIn 0.9s var(--ease) forwards;
  animation-delay: 1.3s;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  60% { opacity: 0.3; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ==========================================================================
   WELCOME
   ========================================================================== */

.welcome {
  padding: var(--section-padding);
  text-align: center;
}

.welcome__text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 17px;
}

/* ==========================================================================
   PATH SELECTION
   ========================================================================== */

.paths {
  padding: var(--section-padding);
  border-top: 1px solid var(--color-divider);
}

.paths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .paths__grid { grid-template-columns: 1fr 1fr; }
}

.path-card {
  background: var(--color-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.path-card:hover {
  transform: scale(1.01);
  border-color: var(--color-gold);
}

.path-card__icon { font-size: 28px; margin-bottom: 6px; }

.path-card__title { font-size: 18px; font-weight: 600; }

.path-card__desc { font-size: 14px; color: var(--color-text-secondary); }

/* ==========================================================================
   TRUST
   ========================================================================== */

.trust {
  padding: var(--section-padding);
  border-top: 1px solid var(--color-divider);
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-card {
  text-align: center;
  padding: 24px 16px;
}

.trust-card h3 {
  color: var(--color-gold);
  font-size: 18px;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   LEAD FORM
   ========================================================================== */

.lead {
  padding: var(--section-padding);
  border-top: 1px solid var(--color-divider);
}

.lead__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: -24px auto 40px;
}

.lead-form {
  max-width: 440px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  padding: 32px;
}

.lead-form__field {
  margin-bottom: 20px;
}

.lead-form__field label {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.lead-form__field input {
  width: 100%;
  height: 52px;
  background: #0B0B0B;
  border: 1px solid var(--color-divider);
  border-radius: 14px;
  padding: 0 18px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 200ms var(--ease);
}

.lead-form__field input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.lead-form__field input::placeholder { color: #555; }

.lead-form__privacy {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.lead-form__message {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.lead-form__message.success { color: #8FCB8F; }
.lead-form__message.error { color: #E07A6E; }

/* ==========================================================================
   CONNECT
   ========================================================================== */

.connect {
  padding: var(--section-padding);
  border-top: 1px solid var(--color-divider);
}

.connect__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin: -24px 0 40px;
}

.connect__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .connect__grid { grid-template-columns: repeat(3, 1fr); }
}

.connect-card {
  background: var(--color-card);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.connect-card:hover {
  transform: scale(1.01);
  border-color: var(--color-gold);
}

.connect-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--color-gold);
  display: block;
}

.connect-card__icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.connect-card__title { font-size: 16px; font-weight: 600; }

.connect-card__desc { font-size: 13.5px; color: var(--color-text-secondary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 64px 0 100px;
  text-align: center;
  border-top: 1px solid var(--color-divider);
}

.footer__logo {
  width: 48px;
  height: auto;
  margin: 0 auto 16px;
}

.footer__tagline {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__subtagline {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.footer__social a:hover {
  border-color: var(--color-gold);
  transform: scale(1.05);
}

.footer__social span {
  width: 18px;
  height: 18px;
  color: var(--color-text-secondary);
  display: block;
}

.footer__social span::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer__copy {
  font-size: 12.5px;
  color: #6b6b6b;
}

/* ==========================================================================
   ICONS — outline style, single family
   ========================================================================== */

[data-icon="instagram"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1'/%3E%3C/svg%3E");
}

[data-icon="telegram"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4Z'/%3E%3C/svg%3E");
}

[data-icon="whatsapp"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5Z'/%3E%3C/svg%3E");
}

[data-icon="rubika"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 2 8.5 12 15l10-6.5Z'/%3E%3Cpath d='m2 8.5 10 15 10-15'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 2 8.5 12 15l10-6.5Z'/%3E%3Cpath d='m2 8.5 10 15 10-15'/%3E%3C/svg%3E");
}

[data-icon="bale"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E");
}

[data-icon="soroush"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 13s1.5 2 4 2 4-2 4-2'/%3E%3Cpath d='M9 9h.01M15 9h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 13s1.5 2 4 2 4-2 4-2'/%3E%3Cpath d='M9 9h.01M15 9h.01'/%3E%3C/svg%3E");
}

/* ==========================================================================
   FLOATING CTA (mobile)
   ========================================================================== */

.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--color-gold);
  color: #0B0B0B;
  font-size: 14px;
  font-weight: 600;
  height: 48px;
  padding: 0 26px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 200ms var(--ease);
}

.floating-cta:active { transform: translateX(-50%) scale(0.97); }

@media (min-width: 900px) {
  .floating-cta { display: none; }
}
