/* ==========================================================================
   PAGE STYLES — capabilities/shopify (Shopify)
   Kosh Media Design System
   ========================================================================== */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── PROGRESS BAR ── */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 600;
}
.prog-fill {
  height: 100%;
  background: var(--color-secondary);
  width: 0%;
}

/* ── REVEAL ANIMATIONS ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1);
}
.rv.in {
  opacity: 1 !important;
  transform: none !important;
}
/* Hero elements visible by default for instant above-the-fold impact */
.sh-hero .rv {
  opacity: 1;
  transform: none;
}
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .15s; }
.rv.d3 { transition-delay: .22s; }
.rv.d4 { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── SHARED SECTION TYPOGRAPHY & SPACING ── */
.sh-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.sh-section--sand {
  background: var(--bg-sand);
}

.sh-section--white {
  background: #FFFFFF;
}

.sh-section--dark {
  background: var(--color-primary);
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sh-section__header {
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

.sh-section__hl {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
}
.sh-section__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.sh-section__hl--light {
  color: #FFFFFF;
}
.sh-section__hl--light em {
  color: var(--color-tertiary);
}

.sh-section__body {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 16px;
}
.sh-section__body--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Eyebrows */
.eyebrow {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 16px;
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}
.eyebrow--blush {
  color: var(--color-tertiary);
}

/* Arrow link */
.sh-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  text-decoration: none;
  transition: color .2s, border-color .2s, gap .25s var(--ease);
}
.sh-arrow-link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  gap: 14px;
}
.sh-arrow-link svg {
  width: 12px;
  height: 12px;
}

/* ══════════════════════════════════════════════
   01. HERO
══════════════════════════════════════════════ */
.sh-hero {
  padding: clamp(88px, 11vw, 144px) 0 clamp(64px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-page);
}

.sh-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.sh-hero__hl {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 640px;
}
.sh-hero__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.sh-hero__body {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 24px;
}

.sh-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.sh-hero__tag {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(20, 18, 16, 0.04);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  border-radius: 2px;
}

.sh-hero__action {
  margin-top: 12px;
}

/* Architecture preview card */
.sh-preview-window {
  background: #1B1917;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(20, 18, 16, 0.12);
}

.sh-preview-bar {
  background: #141210;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.sh-preview-dot:nth-child(1) { background: #FF5F56; }
.sh-preview-dot:nth-child(2) { background: #FFBD2E; }
.sh-preview-dot:nth-child(3) { background: #27C93F; }

.sh-preview-url {
  font-size: 11px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 12px;
}

.sh-preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.sh-preview-stat {
  background: #1B1917;
  padding: 24px 20px;
}

.sh-preview-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.sh-preview-num em {
  font-size: 14px;
  font-style: normal;
  color: var(--color-tertiary);
  margin-left: 2px;
}

.sh-preview-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: .02em;
}

.sh-preview-footer {
  background: #141210;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   02. WHAT WE GET RIGHT (PILLARS)
══════════════════════════════════════════════ */
.sh-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sh-pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sh-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 18, 16, 0.06);
}

.sh-pillar-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sh-pillar-card__num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--color-secondary);
}

.sh-pillar-card__divider {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sh-pillar-card__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.sh-pillar-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ══════════════════════════════════════════════
   03. FROM BRIEF TO LIVE (PROCESS PIPELINE)
══════════════════════════════════════════════ */
.sh-process__pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sh-process-card {
  border-top: 2px solid var(--color-secondary);
  padding-top: 20px;
}

.sh-process-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sh-process-card__num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: italic;
  color: var(--color-secondary);
}

.sh-process-card__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sh-process-card__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.sh-process-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ══════════════════════════════════════════════
   04. SELECTED WORK
══════════════════════════════════════════════ */
.sh-work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.sh-work-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.sh-work-card__badge {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.sh-work-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.sh-work-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.sh-work__action {
  text-align: left;
}

/* ══════════════════════════════════════════════
   05. BUILT FOR WHAT COMES NEXT
══════════════════════════════════════════════ */
.sh-next__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sh-next__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sh-next-feature {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.sh-next-feature__icon {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  color: var(--color-tertiary);
  flex-shrink: 0;
}

.sh-next-feature__content h4 {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.sh-next-feature__content p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.sh-next__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sh-next__pill {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-tertiary);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   06. BEFORE WE BUILD (FAQS ACCORDION)
══════════════════════════════════════════════ */
.sh-faq__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.sh-faq__accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}

.faq-q__text {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color .2s;
}

.faq-q:hover .faq-q__text {
  color: var(--color-secondary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
  transition: transform .25s var(--ease), border-color .2s, color .2s;
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  transition: transform .25s var(--ease);
}

.faq-item.open .faq-icon {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a__inner {
  padding-bottom: 24px;
}

.faq-a__inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ══════════════════════════════════════════════
   07. FINAL CTA
══════════════════════════════════════════════ */
.sh-cta {
  background: var(--bg-page);
  padding: clamp(80px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.sh-cta__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.sh-cta__hl {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin: 0 0 32px;
}
.sh-cta__hl em {
  font-style: italic;
  color: var(--color-secondary);
}

.sh-cta__action {
  margin-top: 12px;
}

.sh-cta__contact-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sh-cta__contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sh-cta__contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sh-cta__contact-label {
  color: var(--text-tertiary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sh-cta__contact-value {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  transition: color .2s;
}
a.sh-cta__contact-value:hover {
  color: var(--color-secondary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-primary);
  color: #FFFFFF !important;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(20, 18, 16, 0.08);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover {
  background: var(--color-secondary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 0, 0, 0.2);
}
.btn-primary svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .25s var(--ease);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sh-hero__grid,
  .sh-next__grid,
  .sh-faq__layout,
  .sh-cta__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sh-process__pipeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .sh-pillars__grid,
  .sh-work__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sh-process__pipeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
