/*
Theme Name: LaborShares
Theme URI:
Author: LaborShares
Description: Buy-side M&A advisory landing page theme for LaborShares. Mobile-first, fully block-editor compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: laborshares
*/

/* ==========================================================================
   Design Tokens — Typography
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'PT Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fw-regular: 400;
  --fw-bold: 700;

  --fs-display: clamp(36px, 5vw, 56px);
  --fs-h1: clamp(32px, 4vw, 48px);
  --fs-h2: clamp(26px, 3.5vw, 36px);
  --fs-h3: clamp(22px, 2.5vw, 28px);
  --fs-h4: clamp(18px, 2vw, 22px);
  --fs-body-lg: clamp(17px, 1.8vw, 20px);
  --fs-body: 18px;
  --fs-body-sm: 16px;
  --fs-label: 14px;
  --fs-caption: 12px;

  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.6;
  --lh-ui: 1.4;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.04em;

  /* ==========================================================================
     Design Tokens — Colors
     ========================================================================== */
  --m1: rgb(6, 51, 18);
  --m2: rgb(11, 102, 35);
  --m3: rgb(78, 140, 94);
  --m4: rgb(125, 179, 139);
  --m5: rgb(168, 217, 181);
  --g1: rgb(37, 43, 48);
  --g2: rgb(75, 85, 96);
  --g3: rgb(112, 128, 144);
  --g4: rgb(161, 171, 181);
  --g5: rgb(202, 210, 218);
  --b1: rgb(70, 34, 9);
  --b2: rgb(139, 69, 19);
  --creme: rgb(245, 245, 220);
  --white: #ffffff;
  --black: #000000;
  --m2-08: rgba(11, 102, 35, 0.08);
  --m2-12: rgba(11, 102, 35, 0.12);
  --m2-15: rgba(11, 102, 35, 0.15);
  --creme-50: rgba(245, 245, 220, 0.5);
  --creme-80: rgba(245, 245, 220, 0.8);

  --brand: var(--m2);
  --brand-dark: var(--m1);
  --brand-hover: rgb(9, 77, 27);
  --brand-soft: var(--m5);
  --accent: var(--b2);

  --text-strong: var(--g1);
  --text-body: var(--g2);
  --text-muted: var(--g3);
  --text-on-brand: var(--white);
  --text-on-dark: var(--creme);

  --surface: var(--white);
  --surface-sunken: rgb(247, 248, 249);
  --surface-card: var(--white);
  --surface-warm: var(--creme);
  --surface-brand: var(--m2);
  --surface-dark: var(--m1);

  --border: var(--g5);
  --border-strong: var(--g4);
  --border-brand: var(--m2-15);
  --focus-ring: rgba(11, 102, 35, 0.35);

  /* ==========================================================================
     Design Tokens — Spacing, Radii, Shadows
     ========================================================================== */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-28: 112px;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 32px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 20px 60px rgba(17, 24, 39, 0.18);
  --shadow-xl: 0 24px 80px rgba(17, 24, 39, 0.20);
  --shadow-brand: 0 8px 24px rgba(11, 102, 35, 0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;

  --container: 1280px;
  --container-narrow: 820px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin: 0;
}

p { margin: 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.ls-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.ls-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px clamp(16px, 4vw, 40px) 0;
}

.ls-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 22px;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.ls-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ls-header__logo img {
  height: 26px;
  width: auto;
}

.ls-header__logo-text {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: var(--ls-tight);
  text-decoration: none;
}

/* ==========================================================================
   Button Component
   ========================================================================== */
.ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.ls-btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.ls-btn--primary {
  background: var(--brand);
  color: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-brand);
}
.ls-btn--primary:hover {
  background: var(--brand-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(11, 102, 35, 0.30);
}

.ls-btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
}
.ls-btn--ghost:hover {
  background: var(--surface-sunken);
  color: var(--text-strong);
}

.ls-btn--dark {
  background: var(--creme);
  color: var(--m1);
  border-radius: var(--r-lg);
}
.ls-btn--dark:hover {
  background: var(--white);
  color: var(--m1);
}

.ls-btn--sm { font-size: var(--fs-body-sm); padding: 8px 18px; }
.ls-btn--md { font-size: var(--fs-body-sm); padding: 10px 22px; }
.ls-btn--lg { font-size: var(--fs-body); padding: 14px 28px; }

/* ==========================================================================
   Chip / Badge
   ========================================================================== */
.ls-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 5px 14px;
}

.ls-chip--primary {
  background: var(--m2-12);
  color: var(--m2);
  border: 1px solid var(--m2-15);
}

.ls-chip--soft {
  background: var(--surface-sunken);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.ls-chip--warm {
  background: rgba(139, 69, 19, 0.1);
  color: var(--b2);
  border: 1px solid rgba(139, 69, 19, 0.2);
}

/* ==========================================================================
   Card Component
   ========================================================================== */
.ls-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.ls-card--interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.ls-card--warm {
  background: var(--creme-80);
  border-color: rgba(139, 69, 19, 0.15);
}

.ls-card__icon {
  width: 84px;
  height: 84px;
}

.ls-card__icon svg { width: 100%; height: 100%; }

.ls-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  color: var(--text-strong);
  margin: 16px 0 8px;
}

.ls-card p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-body);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.ls-section {
  padding-block: clamp(64px, 8vw, 112px);
}

.ls-section--hero {
  background: var(--white);
  padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 96px);
}

.ls-section--sunken {
  background: var(--surface-sunken);
}

.ls-section--warm {
  background: var(--creme-80);
}

.ls-section--dark {
  background: var(--m2);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ls-hero {
  text-align: center;
}

.ls-hero__content {
  max-width: 720px;
  margin-inline: auto;
}

.ls-hero__eyebrow {
  margin-bottom: 20px;
  padding-top: clamp(40px, 6vw, 72px);
}

.ls-hero__pill-wrap {
  position: relative;
  display: inline-block;
}

.ls-hero__duck {
  position: absolute;
  right: -14px;
  bottom: 100%;
  transform: translateY(22%);
  width: clamp(96px, 13vw, 140px);
  height: auto;
  pointer-events: none;
}

.ls-hero__heading-wrap { width: 100%; }

.ls-hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  margin-top: 0;
  margin-bottom: 20px;
}

.ls-hero__body {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--text-body);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.ls-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Why ESOPs Acquire — background image section
   ========================================================================== */
.ls-section--why {
  position: relative;
  background-image: url('assets/images/background.jpg');
  background-size: cover;
  background-position: center;
}

.ls-why__scrim {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 0;
}

.ls-why__content {
  position: relative;
  z-index: 1;
}

.ls-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .ls-why__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
  }
}

.ls-why__reason {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .ls-why__reason {
    padding-inline: clamp(32px, 4vw, 56px);
  }
  .ls-why__reason:first-child { padding-left: 0; }
  .ls-why__reason:last-child  { padding-right: 0; }
}

.ls-why__icon {
  color: var(--brand);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ls-why__icon svg {
  width: 100%;
  height: 100%;
}

.ls-why__reason h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: var(--lh-tight);
  margin: 0;
}

.ls-why__reason p {
  color: var(--text-body);
  line-height: var(--lh-body);
  margin: 0;
}

.ls-why__divider {
  display: none;
}

@media (min-width: 768px) {
  .ls-why__divider {
    display: block;
    width: 1px;
    align-self: stretch;
    background: var(--border-brand);
    opacity: 0.5;
    margin-block: 4px;
  }
}

/* ==========================================================================
   Feature Grid (3 cards)
   ========================================================================== */
.ls-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 600px) {
  .ls-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .ls-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.ls-section__eyebrow { margin-bottom: 14px; }

.ls-section__heading {
  font-size: var(--fs-h2);
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 0;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.ls-process {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 700px) {
  .ls-process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .ls-process {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .ls-process::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 8%;
    right: 8%;
    height: 0;
    border-top: 2px dashed var(--border-strong);
    z-index: 0;
  }
}

.ls-process__step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ls-process__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.ls-process__icon svg { width: 100%; height: 100%; }

.ls-process__label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ls-process__step h4 {
  font-size: var(--fs-h4);
  margin: 0 0 6px;
}

.ls-process__step p {
  font-size: var(--fs-body-sm);
  color: var(--text-body);
  max-width: 220px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.ls-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .ls-about__grid {
    grid-template-columns: auto 1fr;
    gap: 56px;
  }
}

.ls-about__photo {
  width: clamp(180px, 40vw, 280px);
  height: clamp(180px, 40vw, 280px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--m5);
  border: 4px solid var(--border-brand);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-about__photo-placeholder {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  line-height: var(--lh-body);
}

.ls-about__name {
  font-size: var(--fs-h2);
  margin: 14px 0 6px;
}

.ls-about__title {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ls-about__bio {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 640px;
  margin-bottom: 20px;
}

.ls-about__bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-body);
}

/* ==========================================================================
   CTA Block
   ========================================================================== */
.ls-cta-wrap {
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 40px);
}

.ls-cta-block {
  max-width: var(--container);
  margin-inline: auto;
  border-radius: var(--r-3xl);
  background: var(--m2);
  color: var(--text-body);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.ls-cta-block h3 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-strong);
  margin-bottom: 8px;
}

.ls-cta-block p {
  font-size: var(--fs-body);
  color: var(--text-body);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ls-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 40px);
}

.ls-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ls-footer .custom-logo {
  max-height: 36px;
  max-width: 160px;
  width: auto;
  height: auto;
  display: block;
}

.ls-footer__copy {
  color: var(--text-muted);
  font-size: var(--fs-label);
}

/* ==========================================================================
   WordPress Editor Styles (applied in editor via add_editor_style)
   ========================================================================== */
.wp-block-image img { border-radius: var(--r-xl); }

/* ==========================================================================
   Utility
   ========================================================================== */
.ls-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  font-size: clamp(18px, 2.5vw, 22px);
  letter-spacing: var(--ls-tight);
}

.ls-logo-mark svg { flex-shrink: 0; }
