/* ========================================
   HOME PAGE — Premium Animations & Layout
   ======================================== */

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 800px 500px at 60% 20%, rgba(232,133,74,.08), transparent),
    radial-gradient(ellipse 600px 400px at 30% 80%, rgba(212,160,86,.05), transparent),
    linear-gradient(180deg, #0e0a07 0%, var(--bg) 100%);
  padding: 72px 0 28px;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,133,74,.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: hero-orb 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

/* Canvas for particles */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ---- Hero text ---- */
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero-text h1.glow {
  background: linear-gradient(135deg, #ffe4cc 0%, var(--accent) 40%, var(--accent-2) 70%, #ffe4cc 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
  text-shadow: none;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 500px;
}
.hero-text .row {
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Hero cards (stats) ---- */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}
.floating-card {
  background: rgba(22,17,13,.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(62,46,36,.35);
  border-radius: var(--radius);
  padding: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform .4s var(--ease-smooth), box-shadow .4s var(--ease-smooth), border-color .3s;
}
.floating-card.revealed {
  opacity: 1;
  transform: translateY(0);
  animation: card-float-in .6s var(--ease-bounce) forwards;
}
.floating-card.delay-1.revealed { animation-delay: .1s; }
.floating-card.delay-2.revealed { animation-delay: .25s; }
.floating-card.delay-3.revealed { animation-delay: .4s; }

@keyframes card-float-in {
  0% { opacity: 0; transform: translateY(24px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.floating-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,133,74,.2);
  box-shadow: 0 12px 40px rgba(232,133,74,.08);
}
.floating-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  height: 40px;
  margin-top: 24px;
  color: rgba(255,202,168,.6);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(16,12,9,.6);
  display: flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
}
.marquee-track span {
  padding-right: 3rem;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ COMPANY IDENTITY ============ */
.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.team-card {
  text-align: center;
  padding-top: 24px;
  transition: transform var(--tr-med), box-shadow var(--tr-med);
}
.team-card:hover {
  transform: translateY(-4px);
}
.avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(62,46,36,.6), rgba(42,28,18,.8));
  border: 2px solid rgba(232,133,74,.2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--accent-2);
  transition: border-color var(--tr-med), box-shadow var(--tr-med);
}
.team-card:hover .avatar {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(232,133,74,.15);
}

/* ============ TIMELINE ============ */
.timeline { position: relative; margin-left: 10px; }
.timeline.tips {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .88rem;
  font-style: italic;
}
.timeline.scroll {
  max-height: 540px;
  overflow: auto;
  padding-left: .5rem;
  scroll-snap-type: y proximity;
  border-left: 2px solid rgba(62,46,36,.3);
  scrollbar-width: thin;
  scrollbar-color: rgba(62,46,36,.4) transparent;
}
.timeline.scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.timeline.scroll::-webkit-scrollbar-thumb { background: rgba(62,46,36,.4); border-radius: 10px; }

.tl-item {
  position: relative;
  padding-left: 40px;
  margin: 20px 0;
  scroll-snap-align: start;
}
.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -8px; top: 16px;
  box-shadow: 0 0 0 5px rgba(232,133,74,.12);
  transition: box-shadow var(--tr-med);
}
.tl-item:hover .dot {
  box-shadow: 0 0 0 8px rgba(232,133,74,.2);
}
.dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.tl-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}
.tl-year {
  margin: 26px 0 10px 10px;
  font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .95rem;
}

/* ============ CTA SECTION ============ */
.cta-card {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(232,133,74,.15), transparent 50%, rgba(212,160,86,.1));
  border-radius: var(--radius);
  z-index: -1;
}
.cta-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { padding: 56px 0 20px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-text .row { justify-content: center; }
  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .marquee { height: 34px; font-size: .85rem; }
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 16px; }
  .hero-text h1 { font-size: 30px; }
  .hero-cards { grid-template-columns: 1fr; gap: 10px; }
  .floating-card { padding: 14px; }
  .marquee { height: 30px; font-size: .8rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { padding-left: 28px; }
  .dot { left: -6px; width: 12px; height: 12px; }
}

/* ============ CHECKOUT LAYOUT ============ */
.container.section .grid.checkout-layout {
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}
#checkoutForm.checkout-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#checkoutForm.checkout-form-grid > div { display: block; }
#checkoutForm.checkout-form-grid .row.actions { justify-content: flex-end; gap: 8px; }

#mapModal .card {
  width: min(900px, 100%);
  max-height: 90vh;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .container.section .grid.checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  #checkoutForm.checkout-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .container.section .grid.checkout-layout > section { order: 1; }
  .container.section .grid.checkout-layout > aside { order: 2; }
  aside.card { padding-top: 14px; padding-bottom: 14px; }

  #checkoutForm .row.actions { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  #checkoutForm .btn { min-width: 0; }

  .card { padding: 14px; }
  input, textarea, select { font-size: .95rem; padding: 11px; }

  #mapModal { padding: 12px; }
  #mapModal .card { width: calc(100% - 24px); max-height: 92vh; }
  #order-list input[data-qty] { width: 48px; }
  .navlinks { right: 0; left: 0; }
}

@media (max-width: 420px) {
  .container.section .grid.checkout-layout { gap: 10px; }
  #checkoutForm.checkout-form-grid { gap: 8px; }
  .badge, .btn { padding: 8px 10px; }
}
