/**
 * Awwwards-inspired layer — editorial typography, bento, marquee, grain.
 * Ref: https://www.awwwards.com/websites/wordpress/
 */

/* Scroll progress */
.fatone-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10000;
  background: linear-gradient(90deg, var(--fatone-primary), var(--fatone-primary-light));
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Film grain */
.fatone-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Gradient headline accent */
.fatone-gradient-text {
  background: linear-gradient(135deg, #1a5f63 0%, #2d8a90 45%, #0f4548 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll hint */
.fatone-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fatone-muted);
}

.fatone-scroll-hint i {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--fatone-primary), transparent);
  animation: fatone-scroll-line 2s var(--fatone-ease) infinite;
}

@keyframes fatone-scroll-line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Marquee */
.fatone-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(20, 24, 36, 0.06);
  border-bottom: 1px solid rgba(20, 24, 36, 0.06);
  background: var(--fatone-bg-soft);
  padding: 18px 0;
}

.fatone-marquee-track {
  display: flex;
  width: max-content;
  animation: fatone-marquee 32s linear infinite;
  gap: 0;
}

.fatone-marquee-track span {
  flex-shrink: 0;
  padding: 0 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fatone-text);
  white-space: nowrap;
}

.fatone-marquee-track span.fatone-marquee-dot {
  color: var(--fatone-primary);
  padding: 0 8px;
  font-weight: 400;
}

@keyframes fatone-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section editorial header */
.fatone-section-head {
  max-width: var(--fatone-max);
  margin: 0 auto 48px;
  padding: 0 28px;
  text-align: center;
}

.fatone-section-head.is-left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.fatone-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fatone-primary);
  margin-bottom: 1rem;
}

.fatone-section-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--fatone-primary);
}

.fatone-section-head.is-left .fatone-section-kicker::before {
  display: none;
}

.fatone-section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--fatone-text);
}

.fatone-section-head p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--fatone-muted);
  max-width: 58ch;
  margin: 0 auto;
}

.fatone-section-head.is-left p {
  margin-left: 0;
}

/* Bento grid */
.fatone-bento-wrap {
  max-width: var(--fatone-max);
  margin: 0 auto;
  padding: 0 28px;
}

.fatone-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.fatone-bento-card {
  grid-column: span 6;
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 24, 36, 0.06);
  border-radius: var(--fatone-radius);
  overflow: hidden;
  transition: transform 0.45s var(--fatone-ease), box-shadow 0.45s var(--fatone-ease), border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.fatone-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 95, 99, 0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fatone-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fatone-shadow-lg);
  border-color: rgba(26, 95, 99, 0.15);
}

.fatone-bento-card:hover::before {
  opacity: 1;
}

.fatone-bento-card.has-image::before {
  display: none;
}

.fatone-bento-card.has-image:hover {
  border-color: transparent;
}

.fatone-bento-card.span-7 { grid-column: span 7; }
.fatone-bento-card.span-5 { grid-column: span 5; }
.fatone-bento-card.span-4 { grid-column: span 4; }
.fatone-bento-card.span-8 { grid-column: span 8; }
.fatone-bento-card.span-12 { grid-column: span 12; }

.fatone-bento-card .fatone-bento-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fatone-primary);
  margin-bottom: 1.25rem;
}

.fatone-bento-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  position: relative;
}

.fatone-bento-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fatone-muted);
  margin: 0;
  position: relative;
}

.fatone-bento-card a.fatone-bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fatone-primary);
  text-decoration: none;
  position: relative;
}

.fatone-bento-card a.fatone-bento-link::after {
  content: '→';
  transition: transform 0.25s var(--fatone-ease);
}

.fatone-bento-card a.fatone-bento-link:hover::after {
  transform: translateX(4px);
}

/* Process timeline */
.fatone-process-wrap {
  max-width: var(--fatone-max);
  margin: 0 auto;
  padding: 0 28px;
}

.fatone-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: fatone-step;
}

.fatone-process-item {
  position: relative;
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 24, 36, 0.06);
  border-radius: var(--fatone-radius);
  counter-increment: fatone-step;
  transition: transform 0.4s var(--fatone-ease), box-shadow 0.4s var(--fatone-ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.fatone-process-item::before {
  content: counter(fatone-step, decimal-leading-zero);
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(26, 95, 99, 0.12);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.fatone-process-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--fatone-shadow);
}

.fatone-process-item h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.fatone-process-item p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fatone-muted);
  margin: 0;
}

/* Intro split block */
.fatone-intro-split {
  max-width: var(--fatone-max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.fatone-intro-split .fatone-intro-lead {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--fatone-text);
  margin: 0 auto;
  text-align: center;
  max-width: 22ch;
}

.fatone-intro-split .fatone-intro-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fatone-muted);
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 24, 36, 0.08);
  text-align: center;
  max-width: 62ch;
}

/* Enhanced reveal — handled in premium.css via html.js */
.fatone-hero-copy .fatone-eyebrow,
.fatone-hero-copy h1,
.fatone-hero-copy .fatone-hero-lead,
.fatone-hero-copy .fatone-hero-actions,
.fatone-hero-copy .fatone-hero-badge-row,
.fatone-hero-copy .fatone-scroll-hint {
  opacity: 0;
  transform: translateY(28px);
  animation: fatone-hero-in 1s var(--fatone-ease) forwards;
}

.fatone-hero-copy .fatone-eyebrow { animation-delay: 0.1s; }
.fatone-hero-copy h1 { animation-delay: 0.22s; }
.fatone-hero-copy .fatone-hero-lead { animation-delay: 0.42s; }
.fatone-hero-copy .fatone-hero-actions { animation-delay: 0.54s; }
.fatone-hero-copy .fatone-hero-badge-row { animation-delay: 0.66s; }
.fatone-hero-copy .fatone-scroll-hint { animation-delay: 0.78s; }

@keyframes fatone-hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Section spacing override */
.fatone-section-editorial {
  padding-top: 132px !important;
  padding-bottom: 132px !important;
  border-top: 1px solid rgba(20, 24, 36, 0.05);
}

.fatone-section-editorial > .e-con-inner {
  max-width: none !important;
  padding: 0 28px !important;
}

.fatone-section-editorial .fatone-bento-wrap,
.fatone-section-editorial .fatone-process-wrap,
.fatone-section-editorial .fatone-showcase,
.fatone-section-editorial .fatone-intro-visual,
.fatone-section-editorial .fatone-detail-grid,
.fatone-section-editorial .fatone-contact-grid {
  margin-top: 18px;
}

body.fatone-menu-open {
  overflow: hidden;
}

.fatone-mobile-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  color: var(--fatone-primary);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .fatone-bento-card,
  .fatone-bento-card.span-7,
  .fatone-bento-card.span-5,
  .fatone-bento-card.span-4,
  .fatone-bento-card.span-8 {
    grid-column: span 12;
  }

  .fatone-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fatone-intro-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .fatone-section-editorial {
    padding-top: 92px !important;
    padding-bottom: 92px !important;
  }

  .fatone-process-grid {
    grid-template-columns: 1fr;
  }

  .fatone-marquee-track span {
    font-size: 0.82rem;
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fatone-marquee-track { animation: none; }
  .fatone-hero-copy > * { animation: none; opacity: 1; transform: none; }
  .fatone-scroll-hint i { animation: none; }
}
