/* ── Juvenal Mazé – Shared Design System ── */
:root {
  --red: #EC3F41;
  --black: #0D0D0D;
  --offwhite: #F5F3EE;
  --white: #FFFFFF;
  --grey: #666666;
  --mid-grey: #888888;
  --border: #E0E0E0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --nav-h: 70px;
  --tab-h: 56px;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.85;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--black);
}
h1 {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
  margin-bottom: 2rem;
}
h3 {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.section-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.label-location {
  display: block;
  color: var(--red);
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  padding: 5rem 0;
  scroll-margin-top: var(--nav-h);
}
.bg-black {
  background: var(--black);
  color: var(--offwhite);
}
.bg-black h1,
.bg-black h2,
.bg-black h3 {
  color: var(--offwhite);
}
.bg-black .section-label {
  color: var(--red);
}

/* ── HERO ── */
#hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-sub {
  font-size: 1rem;
  color: var(--grey);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.social-proof {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.3);
  color: var(--offwhite);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--grey);
}
.btn:hover {
  opacity: 0.9;
}

/* ── TALENT CTAs ── */
.talent-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* ── NAVIGATION (DESKTOP) ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  padding: 0 1.5rem;
  background: var(--black);
  color: var(--offwhite);
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Logo image in nav */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--offwhite);
}

/* ── BOTTOM TAB BAR (MOBILE) ── */
.tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  border-top: 1px solid #222;
  z-index: 200;
  min-height: var(--tab-h);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.tab-item.active,
.tab-item:hover {
  color: var(--red);
}
.tab-icon {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #ddd;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  padding: 2rem;
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── WORK ACCORDION ── */
.work-accordion {
  margin-top: 2rem;
}
.work-entry {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
}
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}
.work-header h3 {
  margin-bottom: 0.15rem;
  font-size: 1.3rem;
}
.work-header p {
  font-size: 0.75rem;
  color: var(--grey);
}
.work-context {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
}
.work-toggle {
  font-size: 1.6rem;
  color: var(--red);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.work-entry.open .work-toggle {
  transform: rotate(45deg);
}
.work-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.work-entry.open .work-body {
  max-height: 600px;
  padding-top: 1rem;
}
.embed-reel,
.embed-post {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}
.embed-reel iframe,
.embed-post iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── PROCESS CARDS ── */
.process-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.process-card {
  flex: 1;
  min-width: 200px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.process-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ── CONTRAST GRID ── */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #ccc;
  margin: 2rem 0;
}
.contrast-head {
  padding: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contrast-head.left {
  background: #111;
  color: var(--grey);
}
.contrast-head.right {
  background: var(--red);
  color: var(--white);
}
.contrast-cell {
  padding: 1rem;
  font-size: 0.85rem;
}
.contrast-cell.left {
  background: #f0f0f0;
  color: #333;
}
.contrast-cell.right {
  background: var(--white);
  color: var(--black);
}

/* ── PROOF CARD ── */
.proof-card {
  background: #111;
  color: var(--offwhite);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}
.proof-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}
.proof-result {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.proof-result span {
  color: var(--red);
}
.proof-body {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.proof-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.proof-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}
.proof-stat-val {
  font-size: 0.85rem;
  font-weight: 600;
}

.case-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.cs-stat {
  flex: 1;
  min-width: 100px;
}
.cs-val {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
}
.cs-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey);
}

/* ── BRIEF FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--white);
  border: 1px solid #ddd;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 100%;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--offwhite);
  border: 1px solid rgba(255,255,255,0.12);
}
.check-item input {
  display: none;
}
.check-box {
  width: 14px;
  height: 14px;
  border: 1px solid #aaa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check-item.checked .check-box::after {
  content: '✓';
  font-size: 10px;
  color: var(--red);
}
.char-count {
  font-size: 0.65rem;
  color: #888;
  text-align: right;
  margin-top: 0.2rem;
}
.form-error,
.form-success {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
}
.form-error {
  background: #fee;
  color: #c00;
  border-left: 3px solid #c00;
}
.form-success {
  background: #e6f4e8;
  color: #2c6e2c;
  border-left: 3px solid #2c6e2c;
}
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-promise {
  font-size: 0.7rem;
  color: var(--grey);
}

/* ── AVAILABILITY STRIP ── */
.availability {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #111;
  color: var(--offwhite);
  padding: 1rem 2rem;
  margin: 2rem 0;
}
.avail-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  flex-shrink: 0;
  align-self: center;
  aspect-ratio: 1 / 1;
  background: #22c55e;
  border-radius: 50%;
}

/* ── TALENT STRIP ── */
.talent-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  background: #111;
  color: var(--offwhite);
  margin-top: 2rem;
}

/* ── TESTIMONIAL ── */
.testimonial {
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
  background: #111111;
  color: #ffffff;
  margin: 1rem 0;
  border-left: 3px solid var(--red);
}
.testimonial-quote {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
}
.testimonial strong {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── CONTACT ── */
.contact-sub {
  max-width: 340px;
  margin: 0 auto 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--grey);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}
.footer-links a {
  color: var(--grey);
}
.footer-links a:hover {
  color: var(--red);
}

/* ── CAL.COM MODAL ── */
#cal-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
#cal-sheet.open {
  display: flex;
}
.cal-inner {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}
.cal-iframe-wrap {
  flex: 1;
}
.cal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .tab-bar {
    display: flex;
  }
  body {
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-top: 16px;
  }
  section {
    padding: 2.5rem 0;
    scroll-margin-top: 16px;
  }
  #hero {
    padding: 2.5rem 0 2rem;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .talent-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .talent-ctas .btn {
    width: 100%;
  }
  .service-card .btn {
    width: 100%;
  }
  .contrast-grid {
    grid-template-columns: 1fr;
  }
  .contrast-head.left {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .talent-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .talent-strip .btn {
    width: 100%;
    text-align: center;
  }
  /* Scale logo image down on mobile */
  .nav-logo img {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .proof-meta {
    gap: 1rem;
  }
  .process-cards {
    flex-direction: column;
  }
  h1 {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }
}
