/*
Theme Name: Professional Impact
Theme URI: https://www.professionalimpact.com/
Author: Chase New Media
Description: Custom WordPress theme for Professional Impact, Inc. — Wendy Lipton-Dibner. White / black / red (#ff0000) brand, Open Sans typography, working dropdown navigation, responsive mobile menu, click carousel, and animated logo strip.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: professional-impact
*/

/* ============================================================
   Base / reset
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: #111113;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: #111113; text-decoration: none; transition: color .15s ease; }
a:hover { color: #ff0000; }
img { display: block; max-width: 100%; }
::selection { background: #ff0000; color: #fff; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }

.eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: #ff0000; font-weight: 700;
}
.section-title {
  font-weight: 700; font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1px; margin-top: 8px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 30px; border-radius: 10px; cursor: pointer;
  border: none; transition: filter .15s ease, background .15s ease, color .15s ease;
}
.btn--red { background: #ff0000; color: #fff; }
.btn--red:hover { background: #ff0000; color: #fff; filter: brightness(.9); }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid #3a3a40; font-weight: 600; }
.btn--outline-light:hover { color: #fff; border-color: #fff; }
.btn--white { background: #fff; color: #ff0000; padding: 15px 32px; }
.btn--white:hover { color: #ff0000; filter: brightness(.95); }
.btn--outline-dark { border: 1.5px solid #111; font-weight: 700; padding: 15px 30px; background: transparent; }
.btn--outline-dark:hover { background: #111; color: #fff; }
.btn--sm { padding: 15px 32px; }

/* ============================================================
   Header + navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #000000; backdrop-filter: blur(12px);
  border-bottom: 1px solid #26262b;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { height: 46px; width: auto; }

.main-nav {
  list-style: none; display: flex; align-items: center;
  flex: 1; justify-content: center; flex-wrap: wrap;
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px; font-size: 14.5px; font-weight: 600;
  color: #ffffff; cursor: pointer;
}
.main-nav__link:hover { color: #ff0000; }
.caret { font-size: 9px; transition: transform .2s ease; }

.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 250px; background: #fff; border: 1px solid #ececec;
  border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.22);
  padding: 8px; display: none; flex-direction: column; gap: 1px;
  list-style: none; animation: fadeUp .16s ease;
}
.dropdown__link {
  display: block; padding: 11px 14px; font-size: 14px;
  color: #333; border-radius: 8px; white-space: nowrap;
}
.dropdown__link:hover { background: #f6f6f7; color: #ff0000; }

@media (min-width: 961px) {
  .main-nav__item.has-dropdown:hover > .dropdown,
  .main-nav__item.has-dropdown.is-open > .dropdown { display: flex; }
  .main-nav__item.has-dropdown:hover > .main-nav__link .caret,
  .main-nav__item.has-dropdown.is-open > .main-nav__link .caret { transform: rotate(180deg); }
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Mobile drawer */
.mobile-nav {
  display: none; border-top: 1px solid #26262b;
  max-height: calc(100vh - 78px); overflow-y: auto; background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__list { list-style: none; }
.mobile-nav__item { border-bottom: 1px solid #f2f2f2; }
.mobile-nav__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; font-weight: 600; font-size: 16px;
}
.mobile-nav__caret { font-size: 22px; font-weight: 400; color: #ff0000; transition: transform .2s ease; }
.mobile-nav__item.is-open .mobile-nav__caret { transform: rotate(45deg); }
.mobile-nav__sub { list-style: none; display: none; padding: 0 24px 12px; background: #fafafa; }
.mobile-nav__item.is-open .mobile-nav__sub { display: block; }
.mobile-nav__sub a { display: block; padding: 9px 12px; font-size: 14px; color: #444; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: #0c0c0e; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(12,12,14,.94) 0%, rgba(12,12,14,.78) 52%, rgba(12,12,14,.55) 100%);
}
.hero__overlay--radial {
  background: radial-gradient(1000px 500px at 80% -10%, rgba(255,0,0,.35), transparent 60%);
}
.hero__awards {
  position: absolute; right: 24px; bottom: 20px; z-index: 10;
  width: min(38vw, 320px); height: auto; pointer-events: none;
  margin: 0 20% 50px 0;
}
.hero__inner { position: relative; padding: 96px 24px 72px; }
.hero__title {
  font-weight: 700; font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04; letter-spacing: -1.5px; max-width: 16ch; text-wrap: balance;
}
.hero__title .accent-impact { color: #ff0000; }
.hero__title .accent-currency { color: #ffffff; }
.hero__lead {
  margin-top: 26px; max-width: 60ch;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: #c9c9cf;
}
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   Definitions
   ============================================================ */
.defs { padding: 84px 24px; max-width: 1240px; margin: 0 auto; }
.defs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.def-card {
  border: 1px solid #ececec; border-radius: 16px; padding: 34px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.def-card:hover { border-color: #ff0000; box-shadow: 0 20px 40px -24px rgba(255,0,0,.3); }
.def-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: #ff0000; color: #fff;
  border-radius: 9px; font-weight: 700; margin-bottom: 20px;
}
.def-card__title { font-weight: 600; font-size: 20px; letter-spacing: -.3px; margin-bottom: 12px; }
.def-card__body { font-size: 15.5px; line-height: 1.6; color: #4a4a52; }

/* ============================================================
   Testimonials carousel
   ============================================================ */
.testimonials { background: #f6f6f7; padding: 84px 0; }
.testimonials__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 44px;
}
.testimonials__link { font-weight: 700; color: #ff0000; white-space: nowrap; }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 26px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.quote-card {
  scroll-snap-align: start; flex: 0 0 clamp(280px, 88%, 360px);
  background: #fff; border: 1px solid #ececec; border-radius: 16px;
  padding: 30px; display: flex; flex-direction: column; gap: 18px;
}
.quote-card__mark { color: #ff0000; font-size: 46px; line-height: .6; font-weight: 800; }
.quote-card__text { font-size: 16px; line-height: 1.62; color: #26262b; flex: 1; }
.quote-card__foot {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid #f0f0f0; padding-top: 16px;
}
.quote-card__avatar { width: 69px; height: 69px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.quote-card__name { font-size: 12px; font-weight: 700; line-height: 1.3; }

.carousel__btn {
  position: absolute; top: calc(50% - 23px);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: #0c0c0e; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.carousel__btn--prev { left: -12px; }
.carousel__btn--next { right: -12px; }

/* ============================================================
   Logo strip (infinite marquee)
   ============================================================ */
.logos { border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; padding: 64px 0; background: #fff; }
.logos__title {
  text-align: center; font-weight: 700; font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.5px; text-wrap: balance; margin-bottom: 40px;
}
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logos__track { display: flex; gap: 22px; width: max-content; animation: marqueeLeft 38s linear infinite; }
.logos__track:hover { animation-play-state: paused; }
.logo-item { flex: 0 0 190px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.logo-item img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .6; }

/* ============================================================
   Impact / research content
   ============================================================ */
.impact { max-width: 900px; margin: 0 auto; padding: 90px 24px; }
.impact__title { font-weight: 700; font-size: clamp(32px, 5vw, 54px); letter-spacing: -1.2px; margin: 10px 0 26px; text-wrap: balance; }
.impact p { font-size: 18px; line-height: 1.7; color: #3a3a42; margin-bottom: 20px; }
.impact strong { color: #111; }
.callout { border-left: 4px solid #ff0000; background: #fafafa; padding: 28px 30px; border-radius: 0 12px 12px 0; margin: 34px 0; }
.callout__title { font-weight: 600; font-size: 22px; margin-bottom: 10px; }
.callout p { font-size: 17px; margin: 0; }
.outcomes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 34px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: #26262b; }
.check { color: #ff0000; font-weight: 800; flex-shrink: 0; }
.impact__subtitle { font-weight: 600; font-size: 24px; margin: 8px 0 14px; }

.cta-dark { background: #0c0c0e; color: #fff; border-radius: 18px; padding: 42px 38px; text-align: center; margin: 40px 0; }
.cta-dark__title { font-weight: 700; font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -.6px; margin-bottom: 14px; }
.cta-dark p { font-size: 16.5px; line-height: 1.65; color: #c9c9cf; max-width: 60ch; margin: 0 auto 26px; }

/* ============================================================
   Book promo
   ============================================================ */
.book { background: #ff0000; color: #fff; padding: 80px 0; }
.book__inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 48px; align-items: center; }
.book__cover { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; }
.book__cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.35)); }
.book__eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; opacity: .85; }
.book__title { font-weight: 700; font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -1px; line-height: 1.05; margin: 12px 0 20px; }
.book__body p { font-size: 17px; line-height: 1.65; opacity: .95; margin-bottom: 18px; }
.book__body p.small { font-size: 16px; opacity: .9; margin-bottom: 28px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0c0c0e; color: #c9c9cf; padding: 60px 0 30px; margin-top: auto; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #26262b; }
.site-footer__brand { max-width: 320px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social__link { width: 38px; height: 38px; border-radius: 8px; border: 1px solid #333; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.social__link:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.footer-col__title { font-weight: 600; color: #fff; font-size: 14px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #9a9aa2; }
.footer-col a:hover { color: #ff0000; }
.site-footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 12.5px; color: #6a6a72; }

/* ============================================================
   Generic page / post content (page.php, index.php)
   ============================================================ */
.page-content { max-width: 900px; margin: 0 auto; padding: 72px 24px; }
.page-content h1 { font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; margin-bottom: 24px; }
.page-content h2 { font-weight: 700; font-size: 28px; margin: 32px 0 12px; }
.page-content p { font-size: 18px; line-height: 1.7; color: #3a3a42; margin-bottom: 20px; }
.page-content a { color: #ff0000; }
.page-content img { border-radius: 12px; margin: 16px 0; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .book__inner { grid-template-columns: 1fr; }
  .site-footer__top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  * { scroll-behavior: auto !important; }
}
