/*
Theme Name: RT7 Fluff Theme
Theme URI: https://fluff.rt7.media
Author: RT7 Media
Author URI: https://rt7.media
Description: RT7 Media website theme — Blueprint palette, scroll-driven homepage.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rt7fluff
*/

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --bg: #F4F7FE;
  --bg-dark: #0D1B36;
  --card: #FFFFFF;
  --text: #0D1B36;
  --text-muted: #5B6E8A;
  --text-light: #EEF3FF;
  --primary: #2B6CB0;
  --primary-light: #DBEAFE;
  --border: #C9D9EE;
}

/* ── RESET + BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── HEADER / NAV ───────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,247,254,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); }
.logo svg { width: 32px; height: 32px; }
header nav ul { list-style: none; display: flex; gap: 32px; }
header nav ul li a { font-size: 14px; font-weight: 500; color: var(--text); transition: color 0.2s; }
header nav ul li a:hover { color: var(--primary); }
.btn-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-cta:hover { background: #1e5a9e; }

/* ── HERO ───────────────────────────────────────────────── */
.hero-section { height: 300vh; position: relative; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  padding-top: 64px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-heading { font-size: clamp(2.5rem, 8vw, 8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; max-width: 900px; }
.hero-heading .keyword { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--text-muted); transition: color 0.4s; }
.hero-heading .keyword.active { color: var(--primary); }
.hero-sub { margin-top: 28px; font-size: 18px; color: var(--text-muted); max-width: 560px; }

/* ── INDUSTRIES SCROLL ──────────────────────────────────── */
.industries-section { background: var(--bg); }
.ind-section-header { text-align: center; padding: 80px 32px 40px; }
.ind-scroll-container { height: 500vh; position: relative; }
.ind-sticky-panel {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ind-left {
  width: 45%;
  background: var(--bg-dark);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ind-eyebrow {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ind-heading {
  font-size: clamp(3.3rem, 5.3vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 48px;
}
.ind-heading em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.ind-info { color: var(--text-light); transition: opacity 0.3s, transform 0.3s; }
.ind-info.switching { opacity: 0; transform: translateY(10px); }
.ind-info-label { font-size: 19px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.ind-info-name { font-size: clamp(2.3rem, 3.7vw, 3.1rem); font-weight: 600; line-height: 1.1; margin-bottom: 20px; }
.ind-info-desc { font-size: 27px; line-height: 1.5; color: rgba(238,243,255,0.75); margin-bottom: 24px; }
.ind-info-divider { width: 40px; height: 2px; background: currentColor; opacity: 0.3; margin-bottom: 16px; }
.ind-info-clients { font-size: 22px; color: rgba(238,243,255,0.5); line-height: 1.6; }
.ind-dots { display: flex; gap: 8px; margin-top: 40px; }
.ind-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(238,243,255,0.18); transition: background 0.3s, transform 0.3s; cursor: default; }
.ind-dot.active { transform: scale(1.3); }
.ind-right { flex: 1; position: relative; overflow: hidden; background: var(--bg-dark); }
.ind-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.ind-img.active { opacity: 0.85; }
.ind-scroll-triggers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.ind-trigger { position: absolute; left: 0; width: 100%; height: 1px; }

/* ── FEATURE STATEMENTS ─────────────────────────────────── */
.features-section { background: var(--bg-dark); padding: 120px 32px; }
.features-inner { max-width: 800px; margin: 0 auto; }
.feature-stmt {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: rgba(238,243,255,0.25);
  line-height: 1.3;
  padding: 40px 0;
  border-bottom: 1px solid rgba(238,243,255,0.08);
  transition: color 0.5s;
}
.feature-stmt.active { color: var(--text-light); }
.feature-stmt em { font-family: 'Playfair Display', serif; font-style: italic; color: var(--primary); }

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-section {
  background: var(--bg);
  padding: 80px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 600; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── CTA SECTION ────────────────────────────────────────── */
.cta-section { background: var(--bg-dark); padding: 120px 32px; text-align: center; }
.cta-heading { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; color: var(--text-light); margin-bottom: 32px; }
.cta-heading em { font-family: 'Playfair Display', serif; font-style: italic; color: var(--primary); }
.cta-email {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--primary);
  font-weight: 500;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.cta-email:hover { opacity: 0.8; }

/* ── RECENT WORK + POSTS (homepage) ─────────────────────── */
.recent-work-section { padding: 80px 32px; background: var(--bg); }
.recent-posts-section { padding: 80px 32px; background: var(--bg); border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; }
.cards-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,27,54,0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,27,54,0.12); border-color: var(--primary); }
.card-image { aspect-ratio: 3/2; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 20px; }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--text-muted); }
.skills-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.skill-pill { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; background: var(--primary-light); color: var(--primary); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--bg-dark); color: var(--text-light); padding: 64px 32px 32px; }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(238,243,255,0.1);
}
.footer-brand-desc { font-size: 14px; color: rgba(238,243,255,0.55); line-height: 1.7; margin-top: 16px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(238,243,255,0.4); margin-bottom: 20px; }
footer nav ul { list-style: none; }
footer nav ul li { margin-bottom: 10px; }
footer nav ul li a { font-size: 14px; color: rgba(238,243,255,0.65); transition: color 0.2s; }
footer nav ul li a:hover { color: var(--text-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(238,243,255,0.35);
}

/* ── INTERIOR PAGES — SHARED ────────────────────────────── */
.page-hero { background: var(--bg-dark); padding: 120px 32px 64px; text-align: center; margin-top: 64px; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--text-light); }
.page-content-area { max-width: 800px; margin: 0 auto; padding: 60px 32px; font-size: 18px; line-height: 1.8; color: var(--text); }
.page-content-area h2 { font-size: 1.6rem; font-weight: 600; margin: 40px 0 16px; }
.page-content-area h3 { font-size: 1.3rem; font-weight: 600; margin: 32px 0 12px; }
.page-content-area p { margin-bottom: 24px; }
.page-content-area em { font-family: 'Playfair Display', serif; font-style: italic; }
.page-content-area a { color: var(--primary); border-bottom: 1px solid var(--primary-light); }

/* ── SINGLE POST ────────────────────────────────────────── */
.post-hero-image { margin-top: 64px; width: 100%; max-height: 480px; object-fit: cover; display: block; }
.post-header { max-width: 800px; margin: 0 auto; padding: 48px 32px 0; }
.post-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.1; margin-bottom: 16px; }
.post-byline { font-size: 15px; color: var(--text-muted); margin-bottom: 40px; }
.post-nav { max-width: 800px; margin: 0 auto; padding: 40px 32px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); font-size: 14px; }
.post-nav a { color: var(--primary); }

/* ── ARCHIVE — BLOG ─────────────────────────────────────── */
.archive-header { text-align: center; padding: 120px 32px 60px; }
.archive-header .section-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.archive-header h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; }
.blog-grid { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.wp-pagenavi, .pagination { text-align: center; padding: 40px 32px; }
.wp-pagenavi a, .wp-pagenavi span, .page-numbers { padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--text); margin: 0 3px; }
.page-numbers.current, .wp-pagenavi .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── ARCHIVE — PROJECTS ─────────────────────────────────── */
.work-grid { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── SINGLE PROJECT ─────────────────────────────────────── */
.project-hero-image { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.project-header { max-width: 1000px; margin: 0 auto; padding: 40px 32px 0; }
.project-back { padding-bottom: 16px; font-size: 14px; }
.project-back a { color: var(--primary); }
.project-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; margin-bottom: 16px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ind-left { width: 50%; padding: 40px 28px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ind-sticky-panel { flex-direction: column; }
  .ind-left { width: 100%; height: auto; padding: 32px 20px; }
  .ind-right { flex: 1; min-height: 200px; }
  .cards-grid, .blog-grid, .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
  header nav { display: none; }
}
