/* ============================================================
   FLOSSWORK™ — APPLE.CSS
   Premium design layer — loaded after base.css & home.css
   Inspired by Apple.com design language
   ============================================================ */

/* ── REFINED TOKENS ────────────────────────────────────────── */
:root {
  --paper:      #f5f5f7;
  --ink:        #1d1d1f;
  --ink-soft:   #424245;
  --ink-mute:   #86868b;
  --line:       #d2d2d7;
  --line-soft:  #e8e8ed;
  --accent:     #1a6b5a;
  --accent-lt:  #f0f7f4;
  --accent-mid: #1f7d68;
  --nav-h:      52px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 56px rgba(0,0,0,0.09), 0 6px 16px rgba(0,0,0,0.05);

  --r-sm:  4px;
  --r-md:  10px;
  --r-lg:  18px;
  --r-xl:  24px;

  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-base: 300ms;
  --dur-fast: 180ms;
}

/* ── BASE ──────────────────────────────────────────────────── */
body {
  font-size: 17px;
  color: var(--ink-soft);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
.display {
  font-size: clamp(48px, 7.8vw, 120px);
  line-height: .91;
  letter-spacing: -.04em;
  font-weight: 400;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.h2 {
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.h2 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.68;
  color: var(--ink-mute);
  font-weight: 400;
}

/* ── SECTION LAYOUT ────────────────────────────────────────── */
.section {
  padding: clamp(96px, 12vh, 160px) 0;
  border-top: 1px solid var(--line-soft);
}

.section--top { border-top: 0; }

.section--paper { background: var(--paper); }

.section--ink { background: var(--ink); }

.section-header {
  margin-bottom: 64px;
  gap: 96px;
}

/* ── NAV — Apple slim glass ────────────────────────────────── */
#fw-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

#fw-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  /* Two-layer shadow: hairline edge + soft ambient */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05),
              0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  height: var(--nav-h);
  transition: height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Compact nav on scroll — desktop only ── */
/* 52px resting → 44px scrolled. Mobile keeps full touch target. */
@media (min-width: 769px) {
  #fw-header.scrolled .nav-inner { height: 44px; }
}

.wordmark {
  font-size: 19px;
  letter-spacing: -.03em;
  font-weight: 500;
}

.nav-link {
  font-size: 13px;
  letter-spacing: -.01em;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease);
}

.nav-link:hover,
.nav-link--active { color: var(--ink); }

.nav-link--active::after {
  height: 1.5px;
  background: var(--ink);
  bottom: -3px;
}

.nav-links { gap: 28px; }

/* Nav CTA — minimal pill */
.nav-actions .btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 16px;
  min-height: 32px;
  border-radius: var(--r-full);
  letter-spacing: -.01em;
}

.nav-actions .btn--ghost:hover {
  border-color: var(--ink);
  background: transparent;
  transform: none;
}

/* ── HERO ──────────────────────────────────────────────────── */

/* Stats strip section wrapper */
main > div.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-hero {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

/* Hero sub-column (lead + CTA) */
.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}

.hero-sub .lead {
  margin-bottom: 28px;
}

/* Heading + sub-copy grid */
.hero-copy {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* Hero image */
.hero-img-wrap,
.hero-visual-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Hero floating stat pill — glassmorphism */
.hero-float {
  position: absolute;
  left: 28px;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-full);
  padding: 12px 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: -.01em;
}

/* ── BUTTONS — clean Apple pill style ─────────────────────── */
.btn {
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  padding: 13px 22px;
  min-height: 44px;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(26, 107, 90, 0.24);
}

.btn--primary:hover {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 107, 90, 0.32);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.02);
  transform: none;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.btn--wa {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28);
}

.btn--wa:hover {
  background: #1fbd5a;
  border-color: #1fbd5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.36);
}

/* ── STATS STRIP ───────────────────────────────────────────── */
.stats-strip {
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  margin-top: 48px;
  box-shadow: none;
}

.stat-item {
  padding: 32px 24px;
  border-left: 1px solid var(--line-soft);
}

.stat-value {
  font-size: clamp(26px, 3vw, 42px);
  color: var(--ink);
  letter-spacing: -.03em;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: .01em;
}

/* ── ALIGNER SPOTLIGHT ─────────────────────────────────────── */
.spotlight-grid {
  gap: clamp(56px, 8vw, 112px);
}

.spotlight-visual-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Floating card on spotlight image */
.spotlight-float {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  right: -20px;
  bottom: 40px;
  min-width: 216px;
}

/* Feature rows — single column, no number gutter */
.feature-list {
  margin-top: 40px;
}

.feature-row {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left var(--dur-base) var(--ease);
}

.feature-row:hover { padding-left: 8px; }

.feature-name {
  font-size: 22px;
  letter-spacing: -.02em;
  margin-bottom: 0;
  line-height: 1.2;
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-top: 4px;
}

.spotlight-ctas {
  margin-top: 40px;
  gap: 24px;
}

/* ── SERVICE CARDS ─────────────────────────────────────────── */
.svc-card-grid { gap: 16px; }

.svc-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  box-shadow: none;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.svc-card-body {
  padding: 24px 28px 28px;
  gap: 10px;
}

.svc-card-name {
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.svc-card-desc {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ── ADVANTAGE CARDS ───────────────────────────────────────── */
.advantage-grid { gap: 16px; }

.advantage-card {
  padding: 40px 36px 44px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  box-shadow: none;
  background: #fff;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.advantage-stat {
  font-size: 32px;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1;
}

.advantage-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.3;
}

.advantage-desc {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ── PLACEHOLDER ───────────────────────────────────────────── */
.placeholder {
  background: var(--paper);
  background-image: none;
  border: none;
}

.placeholder::before { border-color: var(--line); }

/* ── FINAL CTA ─────────────────────────────────────────────── */
.section--ink { background: #1d1d1f; }

.section--ink .h2 { color: #fff; }
.section--ink .h2 em { color: rgba(255, 255, 255, 0.55); }

.fcta-grid {
  gap: clamp(48px, 8vw, 120px);
  padding: 16px 0;
}

.fcta-stat-v {
  font-size: 22px;
  letter-spacing: -.025em;
}

.fcta-stat-l {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.fcta-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  margin-top: 12px;
}

/* ── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  letter-spacing: .12em;
  padding: 5px 14px;
  background: var(--accent-lt);
  color: var(--accent);
}

/* ── LINKS ─────────────────────────────────────────────────── */
.link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom-color: rgba(26, 107, 90, 0.3);
  letter-spacing: -.01em;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  gap: 5px;
}

.link:hover {
  color: var(--accent-mid);
  border-color: var(--accent-mid);
}

/* ── WA FAB ────────────────────────────────────────────────── */
#wa-fab {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

#wa-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}

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

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }
.reveal-delay-6 { transition-delay: .48s; }

/* ── MOBILE SHEET — glass style ────────────────────────────── */
.nav-mobile-sheet {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── RESPONSIVE OVERRIDES ──────────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: clamp(72px, 9vh, 120px) 0; }
  .hero-copy { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .stat-item:nth-child(n) { border-left: 1px solid var(--line-soft); }
  .stat-item:nth-child(odd) { border-left: none; }
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .advantage-card { padding: 28px 24px 32px; }
  .svc-card-grid { gap: 12px; }
}

@media (max-width: 480px) {
  .advantage-grid { grid-template-columns: 1fr; }
  .stats-strip { border-radius: var(--r-lg); }
}
