/* ════════════════════════════════════════════
   home.css — BENT. Media Group homepage styles
   Depends on: global.css (vars, base, nav, footer, buttons)
════════════════════════════════════════════ */

/* ── SHARED SECTION TYPOGRAPHY ── */
.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 72px; /* nav height */
  overflow: hidden;
}

/* Herringbone SVG layer */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-pattern {
  width: 100%;
  height: 100%;
  display: block;
}

/* Photo slot — 3:2 landscape. Export at minimum 1800×1200px.
   🔲 PLACEHOLDER: replace hero-main.jpg with your chosen hero image */
.hero-img-slot {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  background-image: url('/assets/images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem) 3rem;
  max-width: 1100px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 72px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(254,254,240,0.45);
  margin-bottom: 1.75rem;
}
.eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(254,254,240,0.3);
  flex-shrink: 0;
}

/* Headline — each line slides up on load */
.hero-headline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.h-line {
  display: block;
  overflow: hidden;
}
.h-inner {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.h-line:nth-child(1) .h-inner { animation-delay: 0.05s; }
.h-line:nth-child(2) .h-inner { animation-delay: 0.15s; }
.h-line:nth-child(3) .h-inner { animation-delay: 0.25s; }
.h-line:nth-child(4) .h-inner { animation-delay: 0.35s; }

.hero-sub-line { margin-top: 0.1em; }
.hero-dot { color: var(--teal); }

@keyframes slideUp {
  to { transform: translateY(0); }
}

.hero-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(254,254,240,0.6);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 2rem;
  animation: fadeUp 1s 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: fadeUp 1s 0.65s both;
}

/* Invert button colours for dark hero bg */
.hero-actions .btn-primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.hero-actions .btn-primary:hover {
  background: transparent;
  color: var(--cream);
}
.hero-actions .btn-ghost {
  color: var(--cream);
  border-color: rgba(254,254,240,0.45);
}
.hero-actions .btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll nudge */
.hero-scroll-nudge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 2rem;
  color: rgba(254,254,240,0.3);
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s 1s both;
}
.scroll-track {
  width: 60px;
  height: 1px;
  background: rgba(254,254,240,0.15);
  position: relative;
  overflow: hidden;
}
.scroll-thumb {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(254,254,240,0.5);
  animation: scanLine 2s linear 1.5s infinite;
}
@keyframes scanLine {
  to { left: 200%; }
}

/* ══════════════════════════════════════════
   WORK PREVIEW GRID — 12 items
   🔲 PLACEHOLDER: swap work-01.jpg–work-12.jpg with real exports.
   Portrait slots  (2:3)  → items 1, 4, 9, 11
   Landscape slots (3:2)  → items 2, 3, 5, 6, 7, 8, 10, 12
══════════════════════════════════════════ */
.work-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(19,37,36,0.12);
}

.work-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 320px 240px 320px 240px;
  gap: 6px;
}

/* Row 1 — portrait | landscape | landscape | portrait */
.work-item:nth-child(1)  { grid-column: 1; grid-row: 1 / 3; }   /* portrait — spans rows 1+2 */
.work-item:nth-child(2)  { grid-column: 2; grid-row: 1; }        /* landscape */
.work-item:nth-child(3)  { grid-column: 3; grid-row: 1; }        /* landscape */
.work-item:nth-child(4)  { grid-column: 4; grid-row: 1 / 3; }   /* portrait — spans rows 1+2 */

/* Row 2 — (cols 1+4 occupied by portraits above) */
.work-item:nth-child(5)  { grid-column: 2; grid-row: 2; }        /* landscape */
.work-item:nth-child(6)  { grid-column: 3; grid-row: 2; }        /* landscape */

/* Row 3 — landscape | portrait | landscape | landscape */
.work-item:nth-child(7)  { grid-column: 1; grid-row: 3; }        /* landscape */
.work-item:nth-child(8)  { grid-column: 2; grid-row: 3 / 5; }   /* portrait — spans rows 3+4 */
.work-item:nth-child(9)  { grid-column: 3; grid-row: 3; }        /* landscape */
.work-item:nth-child(10) { grid-column: 4; grid-row: 3; }        /* landscape */

/* Row 4 — landscape | (col 2 occupied) | portrait | landscape */
.work-item:nth-child(11) { grid-column: 1; grid-row: 4; }        /* landscape */
.work-item:nth-child(12) { grid-column: 3; grid-row: 4 / 6; }   /* portrait — spans rows 4+5 */
/* row 5 implicit for item 12 overhang — add one more row */

.work-grid {
  grid-template-rows: 320px 240px 320px 240px 80px;
}

.work-item:nth-child(10) { grid-column: 4; grid-row: 3 / 5; }   /* landscape tall */

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  min-height: 0; /* prevent grid blowout */
}

.work-photo {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .work-photo {
  transform: scale(1.04);
}

.work-photo-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(19,37,36,0.85) 0%,
    rgba(19,37,36,0.0) 50%
  );
}

.work-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.work-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}
.work-arrow {
  font-size: 1rem;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s;
}
.work-item:hover .work-arrow {
  opacity: 1;
  transform: translateX(0);
}

.work-footer { margin-top: 2rem; }
.work-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  opacity: 0.35;
  letter-spacing: 0.05em;
  border: 1px dashed rgba(19,37,36,0.2);
  padding: 0.75rem 1.25rem;
  display: inline-block;
}
.work-note code { font-size: inherit; opacity: 0.8; }

/* ══════════════════════════════════════════
   SERVICES OVERVIEW
══════════════════════════════════════════ */
.services-section {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.services-header {
  margin-bottom: 3.5rem;
}
.services-section .section-label { color: var(--cream); }
.services-section .section-title { color: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.07);
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem 2rem;
  border: none;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.svc-card:hover { background: rgba(255,255,255,0.03); }

/* teal accent sweep on hover */
.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover::before { width: 100%; }

.svc-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  opacity: 0.25;
  margin-bottom: 1.5rem;
}

.svc-soon-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.svc-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.svc-desc {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
  opacity: 0.5;
  flex: 1;
}

.svc-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.svc-card:hover .svc-link { opacity: 1; }

.svc-card--soon { opacity: 0.65; }
.svc-card--soon:hover { opacity: 0.8; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(19,37,36,0.12);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* Image column */
.about-img-col { position: relative; }

.about-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 440px;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.about-img-placeholder span {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(254,254,240,0.15);
  border: 1px dashed rgba(254,254,240,0.1);
  padding: 1.5rem 2rem;
  line-height: 2;
}

/* When a real image is added:
   .about-img-placeholder → replace with <img> or set as bg */

.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--teal);
  color: var(--ink);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.badge-num {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  display: block;
  line-height: 1;
}
.badge-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-top: 0.3rem;
}

/* Text column */
.about-text-col {
  padding-top: 1rem;
}

.about-body {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-body p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.7;
  line-height: 1.85;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(19,37,36,0.2);
  padding: 0.3rem 0.75rem;
  opacity: 0.6;
}

.about-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-section {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.how-section .section-label { color: var(--cream); }
.how-section .section-title { color: var(--cream); }

.how-header { margin-bottom: 4rem; }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-num {
  font-family: 'Anton', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(254,254,240,0.08);
  letter-spacing: 0.03em;
}

.step-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.step-desc {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.85;
  opacity: 0.5;
}

.step-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.step-link:hover { opacity: 1; }

.step-divider {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: rgba(254,254,240,0.1);
  align-self: center;
  padding: 0 1rem;
  margin-top: 4rem;
}

/* ══════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════ */
.cta-section {
  position: relative;
  background: var(--ink);
  padding: clamp(5rem, 12vw, 12rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-pattern { display: block; width: 100%; height: 100%; }

.cta-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
}

.cta-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 2rem;
}

.cta-headline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(4rem, 13vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 3.5rem;
}
.cta-dot { color: var(--teal); }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* On dark bg, invert buttons */
.btn-primary--invert {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-primary--invert:hover {
  background: transparent;
  color: var(--cream);
}
.btn-ghost--invert {
  color: var(--cream);
  border-color: rgba(254,254,240,0.4);
}
.btn-ghost--invert:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Work grid: 2 columns on tablet, fixed row heights */
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 260px;
  }
  .work-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  /* Steps: vertical */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .step { padding: 0; }
  .step-divider {
    margin: 0;
    font-size: 1.5rem;
    padding: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 100%; aspect-ratio: 4 / 3; }
  .about-img-badge { bottom: -1rem; right: -0.5rem; }
  .about-text-col { padding-top: 2.5rem; }
}

@media (max-width: 600px) {
  /* Work grid: single column on mobile */
  .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .work-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }
  /* Portrait items stay portrait on mobile */
  .work-item:nth-child(1),
  .work-item:nth-child(4),
  .work-item:nth-child(8),
  .work-item:nth-child(12) {
    aspect-ratio: 2 / 3;
  }

  .hero-headline { font-size: clamp(1.6rem, 8.5vw, 2.8rem); }
  .cta-headline  { font-size: clamp(2.5rem, 14vw, 5rem); }
  .hero-content  { padding: 2rem 1.25rem 2rem; }
  .hero-scroll-nudge { display: none; }
}
