/* =========================================================
   Shoham Band — Portfolio
   Shared stylesheet
   ========================================================= */

:root {
  --bg: #f6f5f1;
  --bg-soft: #efeee9;
  --ink: #14140f;
  --ink-soft: #4a4a44;
  --ink-muted: #8a8a82;
  --pill-bg: #1a1a14;
  --pill-ink: #f6f5f1;

  --card-green: #cfe5c4;
  --card-green-deep: #b9d9ad;
  --card-blue: #cfe0f0;
  --card-blue-deep: #b7cfe6;
  --card-peach: #f3d8c5;
  --card-peach-deep: #ecc6ad;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-card: 0 12px 40px -10px rgba(20, 20, 15, 0.18);
  --shadow-soft: 0 6px 24px -10px rgba(20, 20, 15, 0.12);

  --maxw: 920px;
  --pad-x: clamp(20px, 4vw, 40px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: 80px 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 20, 15, 0.04);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-style: italic;
  color: #1c2456;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #ffe3cf 0%, rgba(255,227,207,0) 70%);
}

.hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 22px;
  object-fit: cover;
  background: #d9d5cc;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.25);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero p {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto;
  font-size: 16px;
}

/* ---------- Section heading ---------- */
.section h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

/* ---------- Case study cards (scroll-stack) ---------- */
.cases {
  position: relative;
  padding: 40px 0 80px;
}

.case-card {
  position: sticky;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0 auto 28px;
  max-width: var(--maxw);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  min-height: 360px;
  transition: transform .3s ease;
}

.case-card:nth-of-type(1) {
  background: var(--card-green);
  top: 96px;
}
.case-card:nth-of-type(2) {
  background: var(--card-blue);
  top: 116px;
}
.case-card:nth-of-type(3) {
  background: var(--card-peach);
  top: 136px;
}

/* Spacer below each sticky card to extend scroll distance.
   Kept intentionally small so the NEXT card peeks into view almost immediately
   after the previous one sticks — a visual hint that there's more to scroll. */
.case-spacer {
  height: 18vh;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.case-tag {
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.case-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.case-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 22px;
  max-width: 360px;
}

.case-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.case-cta {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .15s ease, background .15s ease;
  margin-top: auto;
  width: fit-content;
}
.case-cta:hover { transform: translateY(-1px); background: #000; }

.case-visual {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.case-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.case-visual-head small {
  font-weight: 500;
  color: var(--ink-muted);
}

.case-visual-amount {
  background: #eceae3;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}

.case-visual-amount span:first-child {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
}

.case-visual-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.case-visual-rows .label {
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

.case-visual-rows .value {
  color: var(--ink);
  font-weight: 500;
}

.case-visual-footer {
  border-top: 1px solid #eceae3;
  padding-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.case-visual-footer strong { color: var(--ink); }

/* card-specific visual variations */
.visual-bubbles {
  background: linear-gradient(135deg, #f0e6dc 0%, #d9d3cb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-bubbles svg { width: 80%; height: auto; }

/* ---------- Skills pills ---------- */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--pill-bg);
  color: var(--pill-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.pill-light {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
}

/* ---------- Experience ---------- */
.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(20,20,15,.08);
  gap: 20px;
  flex-wrap: wrap;
}

.experience-row:last-child { border-bottom: none; }

.experience-role {
  font-size: 16px;
  font-weight: 500;
}

.experience-meta {
  text-align: right;
  font-size: 14px;
  color: var(--ink-soft);
}

.experience-meta .company { color: var(--ink); font-weight: 500; display: block; }
.experience-meta .dates { color: var(--ink-muted); font-size: 13px; display: block; margin-top: 2px; }

.resume-cta {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
}

.btn {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-ink);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }

.btn-light {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1px solid rgba(20,20,15,.1);
}
.btn-light:hover { background: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: #0d0d0a;
  color: #d8d8d2;
  padding: 60px 0 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(40, 80, 40, 0.25), transparent 60%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.footer h3 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.footer p { margin: 0 0 28px; color: #8a8a82; }

.footer-meta {
  font-size: 13px;
  color: #6a6a62;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-meta a { color: #d8d8d2; }
.footer-meta a:hover { color: #fff; }

/* ===========================================================
   Case study (subpage) layout
   =========================================================== */
.cs-hero {
  padding: 72px 0 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #ffe3cf 0%, rgba(255,227,207,0) 70%);
}

.cs-hero .container { text-align: center; }

.cs-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.cs-hero h1 {
  font-size: clamp(32px, 4.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.cs-hero p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 24px;
}

.cs-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.cs-cover {
  max-width: var(--maxw);
  margin: 30px auto 0;
  height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20,20,15,.4);
  font-size: 14px;
  font-weight: 500;
}

.cs-cover.green { background: var(--card-green); }
.cs-cover.blue  { background: var(--card-blue); }
.cs-cover.peach { background: var(--card-peach); }

.cs-content {
  padding: 60px 0;
}

.cs-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.cs-content h2:first-child { margin-top: 0; }

.cs-content p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 16px;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}

.cs-meta-grid .label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.cs-meta-grid .value {
  font-size: 15px;
  font-weight: 500;
}

.cs-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 30px;
}
.cs-nav-back:hover { color: var(--ink); }

/* ----- Case study subsection (Process / Solutions items) ----- */
.cs-subsection {
  margin: 28px 0;
}
.cs-subsection h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.cs-content ol {
  color: var(--ink-soft);
  margin: 10px 0 16px;
  padding-left: 22px;
}
.cs-content ol li { margin-bottom: 6px; }
.cs-content ol li strong { color: var(--ink); font-weight: 600; }

/* ----- Image placeholder for screenshots to be added ----- */
.cs-image {
  margin: 24px 0 12px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.cs-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: repeating-linear-gradient(45deg, #f3f1ea 0 12px, #ede9df 12px 24px);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 28px;
  border-radius: var(--radius-md);
}
.cs-image-caption {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 6px 4px 24px;
  font-style: italic;
}

/* ----- Billing plan comparison cards (Active vs Declined) ----- */
.billing-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 12px;
}
.billing-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.billing-card-title {
  color: #5b4ad6;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.billing-card-title .pill-action {
  font-size: 12px;
  color: #5b4ad6;
  font-weight: 500;
}
.billing-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #c1bce0;
  background: #f6f4fb;
  font-weight: 600;
  font-size: 18px;
}
.billing-amount.active {
  background: #f5e6f0;
  border-left-color: #b5478f;
}
.billing-amount .label {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
}
.billing-amount.declined .value { color: #b2afc6; }

.billing-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  font-size: 13px;
}
.billing-rows .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.billing-rows .value { color: var(--ink); font-weight: 500; }

@media (max-width: 720px) {
  .billing-compare { grid-template-columns: 1fr; }
}

/* ----- Quote callout ----- */
.cs-quote {
  background: #fff;
  border-left: 3px solid var(--ink);
  padding: 18px 22px;
  margin: 18px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
  box-shadow: var(--shadow-soft);
}
.cs-quote-stack {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

/* ----- Feature category grid (locked 3x3) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 10px;
}
.feature-grid .pill {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1px solid rgba(20,20,15,.08);
  text-align: center;
  padding: 14px 12px;
  font-size: 13px;
}
/* Dark pink gradient for highlighted (community-focused) categories.
   White on #be185d ≈ 5.8:1 and on #831843 ≈ 10:1 — AA compliant across the gradient. */
.feature-grid .pill.highlight {
  background: linear-gradient(135deg, #be185d 0%, #831843 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Competitor logo row (equal, small, contained) ----- */
.competitor-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
.logo-tile {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .competitor-logos { gap: 8px; }
  .logo-tile { height: 78px; padding: 10px; }
}

/* ----- Image gallery rows for screen mockups ----- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0 12px;
}
.screen-tile {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.screen-tile img {
  width: 100%;
  height: auto;
  display: block;
  background: #f3f1ea;
}
.screen-tile .label {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  border-top: 1px solid rgba(20,20,15,.05);
}

/* Full-width image inside a case study */
.cs-image-full {
  margin: 24px 0 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.cs-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* Side-by-side image row */
.cs-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 12px;
}
.cs-image-row img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: block;
}

/* ----- Mini "summary cards" used for project meta sections ----- */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.summary-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.summary-card .label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.summary-card .value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

/* ===========================================================
   About page
   =========================================================== */
.about-hero {
  padding: 80px 0 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #ffe3cf 0%, rgba(255,227,207,0) 70%);
}

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: #d9d5cc;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.about-grid h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.about-grid p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 18px;
}

.about-contact {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================================
   Resume page
   =========================================================== */
.resume-wrap {
  padding: 60px 0;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(20,20,15,.08);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-header h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.resume-header .subtitle {
  color: var(--ink-soft);
  font-size: 16px;
}

.resume-header .contact {
  text-align: right;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.resume-section {
  margin-bottom: 40px;
}

.resume-section h2 {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(20,20,15,.08);
  padding-bottom: 8px;
}

.resume-item {
  margin-bottom: 22px;
}

.resume-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-item-title {
  font-size: 16px;
  font-weight: 600;
}

.resume-item-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.resume-item-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.resume-item ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.resume-item li { margin-bottom: 4px; }

.placeholder-note {
  background: #fff7e0;
  border: 1px solid #f1d98a;
  color: #6b5a14;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 32px;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 760px) {
  .case-card {
    grid-template-columns: 1fr;
    padding: 24px;
    min-height: auto;
  }
  .case-visual { order: -1; }
  .case-spacer { height: 12vh; }
  .case-card:nth-of-type(1) { top: 80px; }
  .case-card:nth-of-type(2) { top: 96px; }
  .case-card:nth-of-type(3) { top: 112px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-photo { max-width: 200px; }

  .experience-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .experience-meta { text-align: left; }

  .resume-header { flex-direction: column; align-items: flex-start; }
  .resume-header .contact { text-align: left; }
}
