/* Willow Jam Media — home.css
   Homepage-specific styles (front-page.php).
   Global styles live in main.css.
*/

/* ─── Nav overrides for dark hero ───────────────────────────────────────────── */
body.home .nav:not(.stuck) .nav-links a {
  color: rgba(245,240,232,.65);
}
body.home .nav:not(.stuck) .nav-links a::after { background: var(--purple-lt); }
body.home .nav:not(.stuck) .nav-btn {
  color: var(--cream);
  background: rgba(245,240,232,.12);
  border: 1px solid rgba(245,240,232,.25);
}
body.home .nav:not(.stuck) .nav-btn:hover { background: var(--purple); border-color: var(--purple); }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding: 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8,4,8,.42) 0%,
    rgba(8,4,8,.52) 55%,
    rgba(8,4,8,.92) 100%
  );
}
.hero-side-label {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  z-index: 3;
  color: rgba(245,240,232,.35);
  opacity: 0;
  animation: fadeUp .8s ease forwards 1.3s;
}
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-kicker {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .7s ease forwards .3s;
}
.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(5rem, 11.5vw, 14rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--cream);
}
.hero-h1 .clip { overflow: hidden; display: block; }
.hero-h1 .inner {
  display: block;
  opacity: 0;
  transform: translateY(108%);
  animation: slideUp .95s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-h1 .clip:nth-child(1) .inner { animation-delay: .35s; }
.hero-h1 .clip:nth-child(2) .inner { animation-delay: .52s; }
.hero-h1 .clip:nth-child(3) .inner { animation-delay: .68s; }
.hero-h1 em { font-style: normal; color: var(--purple-lt); }
.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(245,240,232,.1);
  position: relative; z-index: 2;
  opacity: 0;
  animation: fadeUp .8s ease forwards 1.1s;
}
.hero-foot-desc {
  font-size: .9rem;
  color: rgba(245,240,232,.48);
  max-width: 400px;
  line-height: 1.6;
}
.hero-scroll {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(245,240,232,.35);
  white-space: nowrap;
}
.blink {
  width: 6px; height: 6px;
  background: var(--purple-lt);
  border-radius: 50%;
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}

/* ─── Services ───────────────────────────────────────────────────────────────── */
.services { background: var(--bg); }
.services-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem; margin-bottom: 5rem;
}
.services-intro {
  max-width: 380px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  padding-bottom: .5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6.25rem;
}
.svc {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.8rem;
}
.svc::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) blur(3px);
  transform: scale(1.04);
  transition: transform .6s ease, filter .6s ease;
  z-index: 0;
}
.svc::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,18,12,.25) 0%,
    rgba(10,18,12,.55) 45%,
    rgba(10,18,12,.88) 100%
  );
  z-index: 1;
  border-radius: 10px;
  transition: background .4s;
}
.svc:hover::before { transform: scale(1.08); filter: grayscale(0) blur(2px); }
.svc:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(10,18,12,.2) 0%,
    rgba(10,18,12,.5) 45%,
    rgba(10,18,12,.82) 100%
  );
}
.svc > * { position: relative; z-index: 2; }
.svc-ico {
  width: 40px; height: 40px;
  margin-bottom: 1.3rem;
  stroke: rgba(245,240,232,.6);
  fill: none;
  transition: stroke .3s;
}
.svc:hover .svc-ico { stroke: var(--purple-lt); }
.svc h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: .9rem;
}
.svc p {
  font-size: .88rem;
  line-height: 1.72;
  color: rgba(245,240,232,.72);
  margin-bottom: 2rem;
}
.svc-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-lt);
  transition: gap .3s;
}
.svc:hover .svc-arrow { gap: .9rem; }

/* ─── About ──────────────────────────────────────────────────────────────────── */
.about { background: var(--green); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
}
.about .section-tag { color: rgba(245,240,232,.45); }
.about .section-title { color: var(--cream); }
.about-quote {
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  color: rgba(245,240,232,.75);
  line-height: 1.55;
  margin: 2rem 0;
  padding-left: 1.8rem;
  border-left: 2px solid var(--purple);
}
.about-quote em { font-style: normal; font-weight: 600; color: var(--purple-lt); }
.about-body {
  font-size: .97rem;
  line-height: 1.8;
  color: rgba(245,240,232,.55);
  margin-bottom: 1.2rem;
}
.about-panel {
  aspect-ratio: 4/5;
  max-height: 55vh;
  background: rgba(245,240,232,.04);
  border: 1px solid rgba(245,240,232,.08);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-panel-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 11rem;
  font-weight: 700;
  color: rgba(245,240,232,.03);
  letter-spacing: -.05em;
  user-select: none;
  text-align: center;
  line-height: .9;
}
.about-panel-hero {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: rgba(245,240,232,.75);
  text-align: center;
  line-height: 1.2;
  position: relative;
}
.about-panel-hero strong {
  font-weight: 800;
  color: var(--purple-lt);
  display: block;
  font-size: 1.4em;
  letter-spacing: -.02em;
}
.about-pills {
  display: flex; flex-wrap: wrap;
  gap: .45rem; justify-content: center;
  padding: 0 2rem;
  position: relative;
}
.about-pill {
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,240,232,.4);
  border: 1px solid rgba(245,240,232,.1);
  padding: .35rem .8rem;
  border-radius: 100px;
}
.about-badge {
  position: absolute;
  bottom: -1.2rem; right: -1.2rem;
  width: 116px; height: 116px;
  background: var(--purple);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.about-badge-n {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.about-badge-l {
  font-family: var(--f-mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(26,46,30,.7);
  margin-top: .2rem;
}

/* ─── Why Us ─────────────────────────────────────────────────────────────────── */
.why { background: var(--bg); }
.why-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem;
  margin-bottom: 5rem;
}
.why-head-sub {
  max-width: 360px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
  padding-bottom: .5rem;
}
.why-list { display: flex; flex-direction: column; }
.why-row {
  display: grid;
  grid-template-columns: 6rem 1fr 1.2fr;
  gap: 3rem 4rem;
  align-items: start;
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
  cursor: default;
}
.why-row:first-child { border-top: 1px solid var(--border); }
.why-row:hover { background: var(--cream); margin: 0 -3.5rem; padding: 3.2rem 3.5rem; }
.why-row-n {
  font-family: var(--f-display);
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(26,46,30,.07);
  line-height: 1;
  transition: color .3s;
}
.why-row:hover .why-row-n { color: rgba(139,42,110,.12); }
.why-row-title {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.15;
  padding-top: .4rem;
}
.why-row-desc {
  font-size: .9rem;
  line-height: 1.78;
  color: var(--muted);
  padding-top: .4rem;
}

/* ─── Portfolio ──────────────────────────────────────────────────────────────── */
.portfolio { background: var(--dark); }
.portfolio-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}
.portfolio-head .section-title { color: var(--cream); }
.portfolio-head .section-tag { color: rgba(245,240,232,.4); }
.portfolio-intro {
  max-width: 360px;
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(245,240,232,.45);
  padding-bottom: .5rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 420px;
  gap: 1rem;
}
.pf-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a1a;
}
.pf-card:nth-child(1) { grid-column: span 2; }
.pf-card:nth-child(4) { grid-column: span 2; }
.pf-card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.pf-card:hover .pf-card-img { transform: scale(1.06); }
.pf-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(8,4,8,.9) 100%);
}
.pf-card-overlay {
  position: absolute; inset: 0;
  background: rgba(139,42,110,.7);
  opacity: 0;
  transition: opacity .4s ease;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.pf-card:hover .pf-card-overlay { opacity: 1; }
.pf-view {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(245,240,232,.5);
  padding: .8rem 1.8rem;
  border-radius: 100px;
  transition: background .3s, border-color .3s;
}
.pf-card:hover .pf-view:hover {
  background: rgba(245,240,232,.15);
  border-color: var(--cream);
}
.pf-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 1.8rem;
  z-index: 1;
}
.pf-cat {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: .6rem;
}
.pf-card h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
}
.pf-card:nth-child(1) h3,
.pf-card:nth-child(4) h3 { font-size: 2rem; }
.pf-card-link {
  position: absolute; inset: 0; z-index: 3;
}
.portfolio-footer {
  margin-top: 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.portfolio-note {
  font-size: .88rem;
  color: rgba(245,240,232,.35);
  font-style: italic;
}

/* ─── Process ────────────────────────────────────────────────────────────────── */
.process { background: var(--cream); }
.process-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7rem;
  align-items: start;
}
.process-sticky { position: sticky; top: 8rem; }
.process-note {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 1.5rem;
}
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { border-top: 1px solid var(--border); }
.step-n {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(26,46,30,.15);
  line-height: 1;
}
.step h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: .7rem;
}
.step p { font-size: .88rem; line-height: 1.75; color: var(--muted); }

/* ─── Blog / Insights ────────────────────────────────────────────────────────── */
.blog { background: var(--green); }
.blog .section-title { color: var(--cream); }
.blog .section-tag { color: rgba(245,240,232,.4); }
.blog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem; margin-bottom: 4rem;
}
.blog-intro { max-width: 380px; font-size: 1rem; line-height: 1.75; color: rgba(245,240,232,.5); }
.blog-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2px;
}
.blog-right { display: flex; flex-direction: column; gap: 2px; }
.post {
  background: rgba(245,240,232,.05);
  border: 1px solid rgba(245,240,232,.08);
  padding: 2.5rem;
  display: flex; flex-direction: column;
  transition: background .3s, border-color .3s;
}
.post:hover {
  background: rgba(245,240,232,.08);
  border-color: rgba(245,240,232,.14);
}
.post > p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(245,240,232,.7);
  flex: 1;
  margin-bottom: 2.5rem;
}
.post.featured > p { font-size: 1.2rem; }
.post-meta { margin-top: auto; }
.post-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: .6rem;
}
.post h3 {
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(245,240,232,.5);
  line-height: 1.4;
  margin-bottom: 1.4rem;
  letter-spacing: .01em;
}
.post-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(245,240,232,.08);
}
.post-date {
  font-family: var(--f-mono);
  font-size: .65rem;
  color: rgba(245,240,232,.3);
  letter-spacing: .06em;
}
.post-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--purple-lt);
  transition: gap .3s;
}
.post-link:hover { gap: .75rem; }

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
.faq { background: var(--bg); }
.faq-head {
  margin-bottom: 5rem;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:nth-child(-n+2) { border-top: 1px solid var(--border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  line-height: 1.3;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform .3s ease;
  line-height: 1;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--purple); }
.faq-a {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--muted);
  padding-bottom: 1.8rem;
  max-width: 520px;
}

/* ─── CTA ────────────────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--cream-dark, #ece5d8);
  padding: 10rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: 28vw;
  font-weight: 700;
  color: rgba(26,46,30,.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.05em;
}
.cta-tag { color: var(--purple); margin-bottom: 2rem; }
.cta-h2 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 700;
  color: var(--green);
  line-height: .93;
  letter-spacing: -.04em;
  margin-bottom: 2.5rem;
}
.cta-h2 em { font-style: normal; color: var(--purple); }
.cta-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 3.5rem;
  line-height: 1.75;
}
.cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
  position: relative;
}
.cta-link {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  transition: color .3s;
}
.cta-link:hover { color: var(--purple); }

/* ─── Keyframes ──────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(105%); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.75); }
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { gap: 3rem; }
  .about-inner   { grid-template-columns: 1fr; gap: 4rem; }
}
@media (max-width: 768px) {
  .hero { padding: 0 1.5rem; }
  .hero-side-label { display: none; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-scroll { display: none; }
  .hero-h1 { font-size: clamp(3.5rem, 14vw, 6rem); }
  .services-head { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .svc { min-height: 420px; }
  .why-head { flex-direction: column; }
  .why-row { grid-template-columns: 1fr; gap: 1rem; }
  .why-row-n { font-size: 2.5rem; }
  .why-row:hover { margin: 0; padding: 3.2rem 0; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .pf-card:nth-child(1), .pf-card:nth-child(4) { grid-column: span 1; }
  .process-inner { grid-template-columns: 1fr; gap: 3rem; }
  .process-sticky { position: static; }
  .blog-head { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .faq-item:nth-child(-n+2) { border-top: none; }
  .faq-item:first-child { border-top: 1px solid var(--border); }
  .cta-section { padding: 7rem 1.5rem; }
}
