/* ============================================
   Levy Strategies
   ============================================ */

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

:root {
  /* Brand */
  --green: #218650;
  --green-hover: #1a6e42;
  --green-light: rgba(33, 134, 80, 0.06);
  --green-glow: rgba(33, 134, 80, 0.22);

  /* Neutrals */
  --dark: #0b0b0b;
  --dark-soft: #161616;
  --white: #ffffff;
  --off-white: #fbfbfb;
  --cream: #fdfcfa;
  --gray-100: #f6f6f6;
  --gray-200: #e8e6e3;
  --gray-300: #d1cdc7;
  --gray-400: #9a958e;
  --gray-500: #706b64;
  --gray-600: #4a4744;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Roboto Serif', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 96px;
  --gutter: 48px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.6s;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-green: 0 6px 24px rgba(33, 134, 80, 0.25);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--green-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 520px;
  align-items: center;
}

.hero-content {
  padding: 64px var(--gutter) 64px 64px;
}

.hero-brand {
  margin-bottom: 44px;
}

.levy-logo {
  height: 32px;
  width: auto;
}

.hero-accent {
  width: 38px;
  height: 3px;
  background: var(--green);
  margin-bottom: 24px;
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.green-bold {
  font-weight: 800;
  color: var(--green);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 6px;
  max-width: 420px;
}

.hero-guarantee {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 32px;
}

/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--green-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- Hero Image --- */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px 40px 0;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-frame::after {
  display: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Engagements
   ============================================ */
.engagements {
  background: var(--dark);
  padding: 48px 0;
  position: relative;
}

.engagements-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-bottom: 28px;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.client-logo {
  width: 170px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  filter: brightness(0) invert(1);
}

.client-logo:hover {
  opacity: 1;
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--off-white);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.services-intro {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
}

.services-intro strong {
  color: var(--dark);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
  position: relative;
}

.service-card::before {
  display: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(33, 134, 80, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(33, 134, 80, 0.25);
}

.service-card:hover::before {
  display: none;
}

.service-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-500);
}

.service-card p strong {
  color: var(--dark);
  font-weight: 600;
}

.service-card p em {
  font-style: italic;
  color: var(--gray-600);
}

/* ============================================
   CTA Band
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, #1a7a4a 100%);
  padding: 52px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
  letter-spacing: -0.01em;
  position: relative;
}

.cta-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  font-weight: 700;
  transition: opacity 0.25s ease;
}

.cta-text a:hover {
  color: var(--white);
  opacity: 0.8;
}

/* ============================================
   Note from Scott
   ============================================ */
.note {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.note-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.03em;
}

.note-letter {
  max-width: 740px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-300);
  border-radius: 14px;
  padding: 56px 48px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.note-letter::before {
  display: none;
}

.note-greeting {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  font-style: italic;
}

.note-letter p {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.note-letter p em {
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
}

.note-signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.sig-closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.signature-img {
  width: 240px;
  margin: 8px 0 10px;
}

.signature-name {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--dark) !important;
  font-size: 17px !important;
  letter-spacing: -0.01em;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.35);
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Scroll Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .hero-media {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s var(--ease-out) forwards;
  }

  .hero-media {
    animation-delay: 0.1s;
  }

  .service-card,
  .note-letter,
  .cta-text {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
  }

  .service-card.visible,
  .note-letter.visible,
  .cta-text.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .service-card:nth-child(1) { transition-delay: 0.00s; }
  .service-card:nth-child(2) { transition-delay: 0.06s; }
  .service-card:nth-child(3) { transition-delay: 0.12s; }
  .service-card:nth-child(4) { transition-delay: 0.18s; }
  .service-card:nth-child(5) { transition-delay: 0.24s; }
  .service-card:nth-child(6) { transition-delay: 0.30s; }
  .service-card:nth-child(7) { transition-delay: 0.36s; }
  .service-card:nth-child(8) { transition-delay: 0.42s; }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive: Tablet
   ============================================ */
@media (max-width: 1100px) {
  :root {
    --section-pad: 72px;
    --gutter: 36px;
  }

  .hero-inner {
    grid-template-columns: 3fr 2fr;
    min-height: 440px;
  }

  .hero-content {
    padding: 48px 28px 48px 36px;
  }

  .hero-headline {
    font-size: 30px;
  }

  .hero-media {
    padding: 32px 32px 32px 0;
  }

  .hero-image-frame {
    max-width: 360px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-title,
  .note-title {
    font-size: 32px;
  }

  .client-logo {
    width: 120px;
  }

  .logo-strip {
    gap: 28px;
  }

  .note-letter {
    padding: 44px 36px;
  }
}

/* ============================================
   Responsive: Mobile
   ============================================ */
@media (max-width: 809px) {
  :root {
    --section-pad: 56px;
    --gutter: 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 36px 24px 28px;
  }

  .hero-brand {
    margin-bottom: 28px;
  }

  .levy-logo {
    height: 26px;
  }

  .hero-accent {
    width: 30px;
    margin-bottom: 18px;
  }

  .hero-headline {
    font-size: 26px;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-media {
    padding: 0 24px 28px;
    justify-content: flex-start;
  }

  .hero-image-frame {
    max-width: 100%;
  }

  .engagements {
    padding: 36px 0;
  }

  .engagements-label {
    font-size: 10px;
    margin-bottom: 20px;
  }

  .logo-strip {
    gap: 16px 24px;
  }

  .client-logo {
    width: 100px;
  }

  .services-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    text-align: left;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    padding: 18px;
    border-radius: 12px;
  }

  .service-card::before {
    display: none;
  }

  .service-card:hover {
    transform: none;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
  }

  .service-card h3 {
    align-self: end;
    margin-bottom: 2px;
  }

  .service-card p {
    align-self: start;
  }

  .cta-band {
    padding: 36px 0;
  }

  .cta-text {
    font-size: 17px;
  }

  .note-title {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .note-letter {
    padding: 28px 22px;
    border-radius: 12px;
  }

  .note-letter::before {
    display: none;
  }

  .note-greeting {
    font-size: 21px;
  }

  .note-letter p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .signature-img {
    width: 170px;
  }

  .footer {
    padding: 20px 0;
  }
}

/* ============================================
   Responsive: Small phones
   ============================================ */
@media (max-width: 480px) {
  .hero-content {
    padding: 28px 20px 20px;
  }

  .hero-headline {
    font-size: 23px;
  }

  .hero-sub,
  .hero-guarantee {
    font-size: 14px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }

  .logo-strip {
    gap: 14px 18px;
  }

  .client-logo {
    width: 76px;
  }

  .section-title {
    font-size: 23px;
  }

  .cta-text {
    font-size: 15px;
  }

  .note-title {
    font-size: 23px;
  }

  .note-letter {
    padding: 22px 16px;
  }

  .note-letter p {
    font-size: 15px;
  }
}
