/* ═══════════════════════════════════════
   WT Digital Consulting — style.css
   Shared across all pages
═══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --ink: #0f0e0d;
  --paper: #ffffff;
  --cream: #f5f5f5;
  --accent: #f74e4e;
  --accent-light: #ff7a7a;
  --muted: #8a8278;
  --rule: rgba(15,14,13,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  /* Portfolio page compatibility */
  --text-primary: var(--ink);
  --text-secondary: #444;
  --text-muted: var(--muted);
  --bg: var(--paper);
  --surface: #ffffff;
  --border: var(--rule);
  --border-strong: rgba(15,14,13,0.2);
}

:root {
  --ink: #0f0e0d;
  --paper: #ffffff;
  --cream: #f5f5f5;
  --accent: #f74e4e;
  --accent-light: #ff7a7a;
  --muted: #8a8278;
  --rule: rgba(15,14,13,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 4vw 4rem;
  gap: 4rem;
  border-bottom: 1px solid var(--rule);
}
.hero-text { max-width: 600px; }
.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  margin-left: 1rem;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-bg {
  position: absolute;
  width: 340px; height: 420px;
  background: var(--cream);
  top: 20px; left: 20px;
  border: 1px solid var(--rule);
}
.hero-image-wrap img {
  position: relative;
  width: 300px;
  border: 1px solid var(--rule);
  display: block;
}
.hero-tag {
  position: absolute;
  bottom: -1rem; right: 2rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.stat-item {
  padding: 2.5rem 4vw;
  border-right: 1px solid var(--rule);
  animation: fadeUp 0.6s both;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--accent);
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}

/* ── WHY WES ── */
.section {
  padding: 6rem 4vw;
  border-bottom: 1px solid var(--rule);
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 2rem;
}
.section-body {
  font-size: 1rem;
  color: #444;
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.service-card {
  padding: 3rem 2.5rem;
  border: 1px solid var(--rule);
  margin: -1px 0 0 -1px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--cream); }
.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.service-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── BRANDS ── */
.brands-section {
  padding: 5rem 4vw;
  border-bottom: 1px solid var(--rule);
}
.brands-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2rem;
  text-align: center;
}
.brands-image-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.brands-image-wrap img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s;
}
.brands-image-wrap:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── CONTACT EMAIL ── */
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--cream);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testimonial-card:nth-child(even) { background: var(--paper); border: 1px solid var(--rule); }
.testimonial-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--ink);
  flex: 1;
}
.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.6em;
  color: var(--accent);
  font-family: var(--serif);
  margin-right: 0.15em;
}
.testimonial-author { font-size: 0.8rem; font-weight: 500; }
.testimonial-author strong { display: block; color: var(--ink); }
.testimonial-author span { color: var(--muted); }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin-top: 2.5rem; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  gap: 1rem;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.4rem;
}

/* ── CONTACT ── */
.contact-section {
  padding: 6rem 4vw;
  max-width: 720px;
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-tagline { font-style: italic; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
@keyframes heroLine {
  from { opacity: 0; transform: translateY(20px) skewY(1.5deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes statPop {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
  to { opacity: 1; transform: translateX(0); }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-up-1 { animation-delay: 0.15s; }
.fade-up-2 { animation-delay: 0.3s; }
.fade-up-3 { animation-delay: 0.45s; }
.fade-up-4 { animation-delay: 0.6s; }

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 4vw; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 6rem; }
  .hero-image-wrap { display: flex; justify-content: flex-start; margin-top: 1.5rem; }
  .hero-image-bg { display: none; }
  .hero-image-wrap img { width: 180px; }
  .hero-tag { right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

.reveal-d1 { transition-delay: 0.1s !important; }
.reveal-d2 { transition-delay: 0.2s !important; }
.reveal-d3 { transition-delay: 0.3s !important; }
.reveal-d4 { transition-delay: 0.45s !important; }

/* Hero headline line animation */
.hero-headline .line {
  display: block;
  overflow: hidden;
}
.hero-headline .line-inner {
  display: block;
  animation: heroLine 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-headline .line:nth-child(1) .line-inner { animation-delay: 0.05s; }
.hero-headline .line:nth-child(2) .line-inner { animation-delay: 0.18s; }
.hero-headline .line:nth-child(3) .line-inner { animation-delay: 0.3s; }

/* Stat number pop */
.stat-number.popped {
  animation: statPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Subtle image float on desktop */
@media (min-width: 901px) {
  .hero-image-wrap img {
    transition: transform 0.1s linear;
    will-change: transform;
  }
}

.brands-projects-link {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}
.brands-projects-link a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.brands-projects-link a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   PROJECTS PAGE STYLES
═══════════════════════════════════════ */

/* Back link */
.proj-back {
  padding: 6rem 3rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.proj-back-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.proj-back-link:hover { color: var(--accent); }

/* Hero */
.proj-hero { padding: 110px 3rem 60px; max-width: 1100px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; display: block; width: 20px; height: 1px; background: var(--accent); }
.proj-hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 900; line-height: 1.08;
  max-width: 540px; margin-bottom: 1.25rem;
}
.proj-hero h1 em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 15px; color: #444; max-width: 460px; line-height: 1.7; margin-bottom: 2.25rem; }
.hero-stats { display: flex; gap: 3rem; }
.stat-num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.stat-lbl { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

/* Main wrapper */
.main { max-width: 1100px; margin: 0 auto; padding: 0 3rem 6rem; }

/* Project block */
.project { padding: 3.5rem 0; border-top: 0.5px solid var(--rule); }
.proj-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 2rem; gap: 2rem; flex-wrap: wrap;
}
.proj-num { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 5px; }
.proj-name { font-family: var(--serif); font-size: 25px; font-weight: 700; margin-bottom: 6px; }
.proj-desc { font-size: 13.5px; color: #444; max-width: 400px; line-height: 1.65; }
.proj-url {
  font-size: 12px; color: var(--accent); text-decoration: none;
  border-bottom: 0.5px solid var(--accent); padding-bottom: 1px;
  margin-top: 6px; display: inline-block; opacity: .85;
}
.proj-url:hover { opacity: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-start; padding-top: 4px; }
.tag {
  font-size: 11px; padding: 4px 11px; border-radius: 20px;
  border: 0.5px solid rgba(15,14,13,0.2); color: #444; background: #fff;
}

/* Before/After panels */
.panels { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: start; }
.panel { background: #fff; border-radius: 12px; overflow: hidden; border: 0.5px solid var(--rule); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 0.5px solid var(--rule);
}
.badge { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.badge-b { background: var(--ink); color: #fff; }
.badge-a { background: var(--accent); color: #fff; }
.dots { display: flex; gap: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(15,14,13,0.2); }
.img-wrap { overflow: hidden; height: 420px; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: object-position 3s ease; }
.panel:hover .img-wrap img { object-position: bottom center; }
.panel-foot { padding: 10px 14px; border-top: 0.5px solid var(--rule); font-size: 12px; color: var(--muted); line-height: 1.5; }

.arrow-col { display: flex; align-items: center; justify-content: center; height: 420px; margin-top: 41px; }
.arr {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0.5px solid rgba(15,14,13,0.2); background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Improvements grid */
.imps { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 1.5rem; }
.imp { background: #fff; border: 0.5px solid var(--rule); border-radius: 10px; padding: 13px 15px; }
.imp-lbl { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.imp-val { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.imp-val em { font-style: normal; color: var(--accent); }

.hint { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 9px; display: flex; align-items: center; gap: 5px; }
.hint::before { content: ""; display: block; width: 12px; height: 0.5px; background: var(--muted); }

/* Projects footer */
.proj-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 4vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted);
}
.proj-footer .footer-tagline { font-style: italic; }

/* Projects page responsive */
@media (max-width: 768px) {
  .proj-back { padding: 5.5rem 1.25rem 0; }
  .proj-hero, .main { padding-left: 1.25rem; padding-right: 1.25rem; }
  .panels { grid-template-columns: 1fr; }
  .arrow-col { height: auto; margin-top: 0; padding: 8px 0; transform: rotate(90deg); }
  .imps { grid-template-columns: repeat(2,1fr); }
}