/* ==========================================================================
   Window Film Worthiness — Pillar Page | Premium Light Theme + 3D Scroller
   MAXXMA Phase 3 — Content Hub & Knowledge SEO
   ========================================================================== */

:root {
  --wf-bg-primary: #FFFFFF;
  --wf-bg-soft: #F8FAFC;
  --wf-bg-warm: #FEF9E7;
  --wf-accent-gold: #947E33;
  --wf-accent-blue: #1E5A7A;
  --wf-accent-blue-light: #E0EEF5;
  --wf-accent-green: #2D8B4E;
  --wf-text-primary: #1E293B;
  --wf-text-secondary: #475569;
  --wf-text-muted: #64748B;
  --wf-border: #E2E8F0;
  --wf-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --wf-shadow-md: 0 4px 20px rgba(0,0,0,0.07);
  --wf-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --wf-shadow-card: 0 8px 30px rgba(30, 90, 122, 0.10);
  --wf-radius: 16px;
  --wf-transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wf-article {
  font-family: GraphikTH, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--wf-text-primary);
  background: var(--wf-bg-primary);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* === 3D Parallax === */
.wf-scene { perspective: 1200px; transform-style: preserve-3d; will-change: transform; }
.wf-layer { transition: transform var(--wf-transition); }

/* ==========================================================================
   HERO
   ========================================================================== */
.wf-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #E8F2F8 0%, #F0F4F8 100%);
}

.wf-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.wf-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0.93) 100%);
  z-index: 1;
}

.wf-hero__bg-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wf-hero:hover .wf-hero__bg-img { transform: scale(1.02); }

.wf-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 2rem;
  animation: wfFadeUp 1s ease-out;
}

.wf-hero__breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--wf-text-muted); margin-bottom: 1rem;
}
.wf-hero__breadcrumb a { color: var(--wf-accent-blue); text-decoration: none; transition: color 0.2s; }
.wf-hero__breadcrumb a:hover { color: var(--wf-accent-gold); }

.wf-hero__badge {
  display: inline-block;
  background: var(--wf-accent-blue);
  color: #fff;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.wf-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: var(--wf-text-primary);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}
.wf-hero__title span { color: var(--wf-accent-blue); }

.wf-hero__subtitle {
  font-size: 1.15rem;
  color: var(--wf-text-secondary);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.wf-hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: center; font-size: 0.85rem; color: var(--wf-text-muted);
}
.wf-hero__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ==========================================================================
   ARTICLE CONTAINER
   ========================================================================== */
.wf-article__container {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ==========================================================================
   SECTION — 3D fade-up
   ========================================================================== */
.wf-section {
  margin-bottom: 4.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wf-section.wf-visible { opacity: 1; transform: translateY(0); }

.wf-section__header { margin-bottom: 1.5rem; }

.wf-section__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--wf-accent-blue);
  margin-bottom: 0.5rem;
}

.wf-section__title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--wf-text-primary);
  line-height: 1.35;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.wf-section__body { font-size: 1.06rem; color: var(--wf-text-secondary); line-height: 1.95; }
.wf-section__body p { margin-bottom: 1.3rem; }
.wf-section__body strong { color: var(--wf-text-primary); font-weight: 600; }

/* ==========================================================================
   FIGURE / IMAGE
   ========================================================================== */
.wf-figure {
  margin: 2.5rem 0;
  border-radius: var(--wf-radius);
  overflow: hidden;
  box-shadow: var(--wf-shadow-card);
  background: var(--wf-bg-primary);
  border: 1px solid rgba(30, 90, 122, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s ease;
}
.wf-figure:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--wf-shadow-lg); }
.wf-figure img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.wf-figure:hover img { transform: scale(1.03); }
.wf-figure__caption {
  padding: 0.75rem 1.25rem; font-size: 0.85rem; color: var(--wf-text-muted);
  text-align: center; background: var(--wf-bg-soft); border-top: 1px solid var(--wf-border);
}

/* ==========================================================================
   BENEFIT CARDS GRID
   ========================================================================== */
.wf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 480px) { .wf-benefits-grid { grid-template-columns: 1fr; } }

.wf-benefit-card {
  background: var(--wf-bg-primary);
  border-radius: var(--wf-radius);
  padding: 1.75rem;
  box-shadow: var(--wf-shadow-sm);
  border: 1px solid var(--wf-border);
  transition: all 0.35s ease;
  transform-style: preserve-3d;
}
.wf-benefit-card:hover {
  box-shadow: var(--wf-shadow-lg);
  border-color: var(--wf-accent-blue);
  transform: translateY(-4px);
}

.wf-benefit-card__icon { font-size: 2rem; margin-bottom: 0.85rem; }
.wf-benefit-card__title { font-size: 1.1rem; font-weight: 700; color: var(--wf-text-primary); margin: 0 0 0.6rem; }
.wf-benefit-card__desc { font-size: 0.94rem; color: var(--wf-text-secondary); line-height: 1.75; margin: 0; }

/* ==========================================================================
   CHECKLIST
   ========================================================================== */
.wf-checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.wf-checklist li {
  padding: 0.75rem 0 0.75rem 2.25rem;
  position: relative;
  color: var(--wf-text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--wf-border);
}
.wf-checklist li:last-child { border-bottom: none; }
.wf-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wf-accent-green);
  transform: translateY(-50%);
}

/* ==========================================================================
   HIGHLIGHT BOX
   ========================================================================== */
.wf-highlight-box {
  background: linear-gradient(135deg, #EBF4F8 0%, #D6E8F3 100%);
  border-left: 4px solid var(--wf-accent-blue);
  border-radius: 0 var(--wf-radius) var(--wf-radius) 0;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.wf-highlight-box__title { font-size: 1.2rem; font-weight: 700; color: var(--wf-accent-blue); margin-bottom: 0.75rem; }
.wf-highlight-box p { color: var(--wf-text-secondary); margin: 0; font-size: 1.02rem; }

.wf-highlight-box--gold {
  background: linear-gradient(135deg, #FEF9E7 0%, #FDF3D0 100%);
  border-left: 4px solid var(--wf-accent-gold);
}
.wf-highlight-box--gold .wf-highlight-box__title { color: var(--wf-accent-gold); }

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.wf-spec-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
  background: var(--wf-bg-primary); border-radius: var(--wf-radius);
  overflow: hidden; box-shadow: var(--wf-shadow-sm);
}
.wf-spec-table thead { background: var(--wf-accent-blue); color: #fff; }
.wf-spec-table th { padding: 0.85rem 1.25rem; text-align: left; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; }
.wf-spec-table td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--wf-border); font-size: 0.95rem; color: var(--wf-text-secondary); }
.wf-spec-table tr:last-child td { border-bottom: none; }
.wf-spec-table tr:nth-child(even) { background: var(--wf-bg-soft); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.wf-faq {
  background: var(--wf-bg-soft);
  border-radius: var(--wf-radius);
  padding: 2rem;
  margin: 3rem 0;
}
.wf-faq__heading { font-size: 1.5rem; font-weight: 700; color: var(--wf-text-primary); margin-bottom: 1.5rem; text-align: center; }
.wf-faq__item {
  background: var(--wf-bg-primary); border-radius: 12px; margin-bottom: 0.75rem;
  overflow: hidden; box-shadow: var(--wf-shadow-sm); transition: box-shadow 0.3s ease;
}
.wf-faq__item:hover { box-shadow: var(--wf-shadow-md); }
.wf-faq__question {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem; font-size: 1.05rem; font-weight: 600;
  color: var(--wf-text-primary); background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: color 0.2s;
}
.wf-faq__question:hover { color: var(--wf-accent-blue); }
.wf-faq__icon { font-size: 1.25rem; transition: transform 0.3s ease; color: var(--wf-accent-blue); }
.wf-faq__item.wf-faq--open .wf-faq__icon { transform: rotate(45deg); }
.wf-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.wf-faq__item.wf-faq--open .wf-faq__answer { max-height: 600px; }
.wf-faq__answer-inner { padding: 0 1.5rem 1.5rem; color: var(--wf-text-secondary); font-size: 0.98rem; line-height: 1.85; }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.wf-cta {
  background: linear-gradient(135deg, var(--wf-accent-blue) 0%, #144058 100%);
  border-radius: var(--wf-radius);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--wf-shadow-lg);
}
.wf-cta__title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.wf-cta__desc { font-size: 1.05rem; opacity: 0.9; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.wf-cta__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.wf-cta__btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2rem;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.wf-cta__btn--primary { background: #fff; color: var(--wf-accent-blue); }
.wf-cta__btn--primary:hover { background: var(--wf-accent-gold); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.wf-cta__btn--secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.wf-cta__btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.wf-cta--inline {
  margin: 2.5rem 0;
  padding: 2rem 1.75rem;
}
.wf-cta--inline .wf-cta__title { font-size: 1.3rem; }

/* ==========================================================================
   BLOCKQUOTE / STAT QUOTE
   ========================================================================== */
.wf-stat-quote {
  background: var(--wf-bg-soft);
  border-radius: var(--wf-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--wf-shadow-sm);
}
.wf-stat-quote__num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--wf-accent-blue);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.wf-stat-quote__label {
  font-size: 1.05rem;
  color: var(--wf-text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   TABLE OF CONTENTS (TOC)
   ========================================================================== */
.wf-toc {
  background: var(--wf-bg-soft);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--wf-shadow-sm);
}
.wf-toc__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wf-text-primary);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wf-toc__heading::before { content: '📑'; font-size: 1.25rem; }
.wf-toc__list { list-style: none; padding: 0; margin: 0; counter-reset: wf-toc-counter; }
.wf-toc__item { counter-increment: wf-toc-counter; margin-bottom: 0.25rem; }
.wf-toc__item:last-child { margin-bottom: 0; }
.wf-toc__link {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.45rem 0.75rem; border-radius: 8px;
  color: var(--wf-text-secondary); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; line-height: 1.5;
  transition: all 0.25s ease;
}
.wf-toc__link::before {
  content: counter(wf-toc-counter) '.';
  font-weight: 700; color: var(--wf-accent-blue);
  font-size: 0.8rem; min-width: 1.25rem; flex-shrink: 0;
}
.wf-toc__link:hover { background: var(--wf-accent-blue-light); color: var(--wf-accent-blue); }
.wf-toc__link.wf-toc--active {
  background: var(--wf-accent-blue-light);
  color: var(--wf-accent-blue);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--wf-accent-blue);
}

/* TOC Sticky Sidebar (≥1200px) */
@media (min-width: 1200px) {
  .wf-toc {
    position: fixed;
    left: max(calc((100vw - 840px) / 2 - 260px), 1rem);
    top: 8rem;
    width: 230px;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    padding: 1.25rem 1.25rem;
    margin-bottom: 0;
    z-index: 10;
  }
  .wf-toc__heading { font-size: 1rem; }
  .wf-toc__link { font-size: 0.85rem; padding: 0.35rem 0.6rem; }
}
@media (max-width: 1199px) { .wf-toc { display: block; } }

/* ==========================================================================
   TWO-COLUMN
   ========================================================================== */
.wf-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 2.5rem 0;
}
@media (max-width: 768px) { .wf-two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.wf-two-col__text { font-size: 1.05rem; color: var(--wf-text-secondary); line-height: 1.9; }
.wf-two-col__visual { border-radius: var(--wf-radius); overflow: hidden; box-shadow: var(--wf-shadow-card); border: 1px solid rgba(30,90,122,0.07); }
.wf-two-col__visual img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   BACK LINK
   ========================================================================== */
.wf-back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--wf-accent-blue); text-decoration: none;
  font-weight: 600; font-size: 0.9rem; padding: 0.5rem 0;
  transition: color 0.2s, gap 0.2s; margin-bottom: 2rem;
}
.wf-back-link:hover { color: var(--wf-accent-gold); gap: 0.75rem; }
.wf-back-link svg { transition: transform 0.2s; }
.wf-back-link:hover svg { transform: translateX(-3px); }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes wfFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .wf-hero { min-height: 55vh; }
  .wf-hero__title { font-size: 1.75rem; }
  .wf-hero__subtitle { font-size: 1rem; }
  .wf-section__title { font-size: 1.4rem; }
  .wf-section__body { font-size: 1rem; }
  .wf-article__container { padding: 2rem 1rem 3.5rem; }
  .wf-faq { padding: 1.5rem 1rem; }
  .wf-spec-table { font-size: 0.85rem; }
  .wf-spec-table th, .wf-spec-table td { padding: 0.6rem 0.75rem; }
  .wf-cta { padding: 2rem 1.25rem; }
  .wf-cta__title { font-size: 1.35rem; }
  .wf-benefits-grid { grid-template-columns: 1fr; }
  .wf-stat-quote__num { font-size: 2.2rem; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .wf-hero__bg, .wf-cta, .wf-faq, .wf-toc { display: none; }
  .wf-article { color: #000; background: #fff; }
  .wf-section { opacity: 1 !important; transform: none !important; break-inside: avoid; }
}