/* ===== Pharmalogic — Weight Management theme styles ===== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body { margin: 0; padding: 0; background: #fff; color: #23282B; font-family: 'Outfit', system-ui, sans-serif; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
picture { display: contents; }
/* <picture> uses display:contents so its <source>/<img> become the real
   flex/grid items — but <source> isn't display:none by default in every
   context, so it can silently occupy its own empty grid track (e.g. inside
   .pl-banner's 2-column grid, turning it into 3 columns and squeezing the
   text column). It never renders a box; make that explicit. */
picture source { display: none; }
a { color: #6F2874; text-decoration: none; }
a:hover { color: #4F1A53; }
button { font-family: inherit; }

.pl-container { max-width: 1240px; margin: 0 auto; }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal="in"] { opacity: 1; transform: none; }
[data-motion="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }

@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[data-reveal="in"] [data-num] { animation: popIn .7s cubic-bezier(.2,.7,.2,1) both; }
[data-reveal="in"] [data-line] { animation: lineGrow 1.2s .3s cubic-bezier(.2,.7,.2,1) both; }

/* Header */
.pl-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); padding: 20px 48px; box-shadow: 0 0 0 rgba(0,0,0,0); transition: padding .35s ease, box-shadow .35s ease, background .35s ease; }
.pl-header.is-scrolled { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 10px 40px rgba(35,40,43,.08); }
.pl-header-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pl-logo-link { display: flex; align-items: center; }
.pl-logo { height: 40px; width: auto; display: block; transition: height .35s ease; }
.pl-header.is-scrolled .pl-logo { height: 30px; }
.pl-nav { display: flex; align-items: center; gap: 32px; }
/* wp_nav_menu() (used whenever a real "Primary Menu" is assigned in
   Appearance > Menus) always wraps items in <ul><li>, unlike the plain
   <a> fallback below — reset that list so it lays out the same way. */
.pl-nav ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.pl-nav li { list-style: none; margin: 0; }
.pl-nav a { font-size: 15px; font-weight: 500; color: #23282B; padding: 4px 0; white-space: nowrap; }
.pl-nav a:hover { color: #6F2874; }
.pl-header-actions { display: flex; align-items: center; gap: 12px; }
.pl-btn-header-cta { display: inline-flex; align-items: center; background: #6F2874; color: #fff; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; white-space: nowrap; }
.pl-btn-header-cta:hover { background: #5A1F5E; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(111,40,116,.28); }
.pl-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #E6E0E8; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.pl-mobile-menu { max-width: 1240px; margin: 16px auto 0; display: none; flex-direction: column; gap: 6px; border-top: 1px solid #EFEAF1; padding-top: 14px; }
.pl-mobile-menu.is-open { display: flex; }
.pl-mobile-menu a { padding: 12px 8px; font-size: 17px; font-weight: 500; color: #23282B; border-radius: 10px; }
.pl-mobile-menu a:hover { background: #F7F3F8; color: #6F2874; }

/* Eyebrow */
.pl-eyebrow { display: flex; align-items: center; gap: 10px; color: #6F2874; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pl-eyebrow span.pl-eyebrow-line { display: block; width: 28px; height: 2px; background: #AA8AB8; }

/* Hero */
.pl-hero { background: linear-gradient(180deg,#F7F3F8 0%,#FFFFFF 100%); padding: 72px 48px 88px; }
.pl-hero-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 56px; align-items: center; }
.pl-hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.pl-h1 { margin: 0; font-size: 58px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: #23282B; text-wrap: balance; }
.pl-h1 span { color: #6F2874; }
.pl-lead { margin: 0; font-size: 18px; line-height: 1.65; color: #4E5459; font-weight: 300; text-wrap: pretty; }
.pl-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.pl-btn-primary { display: inline-flex; align-items: center; gap: 10px; background: #6F2874; color: #fff; font-weight: 600; font-size: 16px; padding: 16px 28px; border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; text-decoration: none; }
.pl-btn-primary:hover { background: #5A1F5E; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(111,40,116,.3); }
.pl-btn-primary.pl-btn-lg { font-size: 17px; padding: 18px 32px; margin-top: 8px; }
.pl-btn-primary.pl-btn-inverse { background: #fff; color: #6F2874; text-decoration: none; }
.pl-btn-primary.pl-btn-inverse:hover { color: #6F2874; box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.pl-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: #6F2874; font-weight: 500; font-size: 16px; padding: 16px 8px; transition: gap .25s ease; }
.pl-link-arrow:hover { gap: 14px; color: #4F1A53; }
.pl-hero-media { position: relative; }
.pl-hero-media-bg { position: absolute; inset: auto -24px -24px auto; width: 60%; height: 60%; border-radius: 32px; background: #EFE8F1; z-index: 0; }
.pl-hero-media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 480px; max-height: 560px; object-fit: cover; object-position: 75% center; border-radius: 28px; box-shadow: 0 30px 60px rgba(35,40,43,.12); }

/* Section shells */
.pl-section { padding: 96px 48px; }
.pl-section-tight { padding: 40px 48px 112px; }
.pl-section-alt { background: #F7F3F8; }
.pl-h2 { margin: 0; font-size: 42px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }

/* Who we are */
.pl-about-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 64px; align-items: center; }
.pl-about-media { position: relative; }
.pl-about-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; }
.pl-about-badge { position: absolute; left: 24px; bottom: -24px; background: #fff; border-radius: 20px; padding: 20px 24px; box-shadow: 0 20px 50px rgba(35,40,43,.14); display: flex; align-items: baseline; gap: 10px; }
.pl-about-badge .pl-year { font-size: 40px; font-weight: 600; color: #6F2874; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-about-badge .pl-year-label { font-size: 14px; color: #4E5459; font-weight: 400; }
.pl-about-copy { display: flex; flex-direction: column; gap: 22px; }
.pl-about-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: #4E5459; font-weight: 300; }
.pl-feature-list { display: grid; gap: 18px; margin-top: 8px; }
.pl-feature { display: flex; gap: 16px; align-items: flex-start; }
.pl-feature-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #EFE8F1; display: flex; align-items: center; justify-content: center; }
.pl-feature-title { font-weight: 600; font-size: 17px; }
.pl-feature-text { font-size: 15px; color: #4E5459; line-height: 1.6; font-weight: 300; }

/* About weight management */
.pl-two-col { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 64px; align-items: center; }
.pl-two-col img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; }
.pl-copy-block { display: flex; flex-direction: column; gap: 22px; }
.pl-copy-block p { margin: 0; font-size: 17px; line-height: 1.7; color: #4E5459; font-weight: 300; }
.pl-card-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; margin-top: 64px; }
.pl-card { background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, opacity .8s, translate .8s; }
.pl-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(111,40,116,.14); }
.pl-card-icon { width: 52px; height: 52px; border-radius: 16px; background: #EFE8F1; display: flex; align-items: center; justify-content: center; }
.pl-card-title { font-weight: 600; font-size: 19px; }
.pl-card-text { margin: 0; font-size: 15px; line-height: 1.65; color: #4E5459; font-weight: 300; }

/* Assessment banner */
.pl-banner { background: #6F2874; border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); align-items: stretch; }
.pl-banner-copy { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; color: #fff; }
.pl-banner .pl-eyebrow { color: #D9CCE0; }
.pl-banner-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: #EFE8F1; font-weight: 300; }
.pl-banner-media { position: relative; min-width: 0; }
.pl-banner img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: none; }

/* How it works */
.pl-steps-head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; margin-bottom: 64px; }
.pl-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 32px; }
.pl-steps-line { position: absolute; top: 28px; left: 12%; right: 12%; display: none; height: 2px; background: linear-gradient(90deg,#AA8AB8,#6F2874); transform-origin: left; z-index: 0; }
.pl-step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.pl-step-num { width: 56px; height: 56px; border-radius: 50%; background: #6F2874; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; box-shadow: 0 0 0 8px #fff; }
.pl-step-title { font-weight: 600; font-size: 19px; }
.pl-step-text { margin: 0; font-size: 15px; line-height: 1.65; color: #4E5459; font-weight: 300; }

/* Why cards with images */
.pl-why-head { display: flex; flex-direction: column; gap: 16px; max-width: 620px; margin-bottom: 56px; }
.pl-why-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 24px; }
.pl-why-card { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, opacity .8s, translate .8s; }
.pl-why-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(111,40,116,.14); }
.pl-why-card img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.pl-why-card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }

/* Other services */
.pl-services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 24px; }
.pl-service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #EDE7EF; border-radius: 24px; overflow: hidden; color: #23282B; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, opacity .8s, translate .8s; text-decoration: none; }
.pl-service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(111,40,116,.14); border-color: #fff; color: #23282B; }
.pl-service-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pl-service-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pl-service-card-text { margin: 0; font-size: 15px; line-height: 1.65; color: #4E5459; font-weight: 300; flex: 1; text-decoration: none; }
.pl-service-learn-more { display: inline-flex; align-items: center; gap: 8px; color: #6F2874; font-weight: 600; font-size: 15px; margin-top: 6px; }

/* FAQ */
.pl-faq-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 64px; align-items: start; }
.pl-faq-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.pl-faq-side img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; margin-top: 12px; }
.pl-faq-list { display: flex; flex-direction: column; gap: 12px; }
.pl-faq-item { background: #fff; border-radius: 18px; border: 1px solid #EDE7EF; transition: border-color .3s ease, box-shadow .3s ease; }
.pl-faq-item.is-open { border-color: #D9CCE0; box-shadow: 0 12px 30px rgba(111,40,116,.08); }
.pl-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; background: transparent; border: 0; padding: 22px 24px; cursor: pointer; font-size: 17px; font-weight: 500; color: #23282B; line-height: 1.4; }
.pl-faq-q:hover { color: #6F2874; }
.pl-faq-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #EFE8F1; color: #6F2874; display: flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s; }
.pl-faq-item.is-open .pl-faq-icon { background: #6F2874; color: #fff; transform: rotate(180deg); }
.pl-faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
.pl-faq-item.is-open .pl-faq-a-wrap { grid-template-rows: 1fr; }
.pl-faq-a-inner { overflow: hidden; }
.pl-faq-a-inner p { margin: 0; padding: 0 24px 24px; font-size: 15px; line-height: 1.7; color: #4E5459; font-weight: 300; }

/* Final CTA */
.pl-final-cta { padding: 112px 48px; background: #6F2874; position: relative; overflow: hidden; }
.pl-final-cta-blob-1 { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #7E3A83; right: -160px; top: -200px; opacity: .6; }
.pl-final-cta-blob-2 { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #5C2061; left: -120px; bottom: -180px; opacity: .7; }
.pl-final-cta-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; color: #fff; }
.pl-final-cta-inner .pl-eyebrow { color: #D9CCE0; }
.pl-final-cta-inner h2 { margin: 0; font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; color: #fff; }
.pl-final-cta-inner p { margin: 0; font-size: 18px; line-height: 1.7; color: #EFE8F1; font-weight: 300; max-width: 600px; }

/* Footer */
.pl-footer { background: #23282B; color: #fff; padding: 80px 48px 32px; }
.pl-footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 48px; }
.pl-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.pl-footer-brand img { height: 36px; width: auto; display: block; align-self: flex-start; }
.pl-footer-brand p { margin: 0; font-size: 14px; line-height: 1.7; color: #A7ADB1; font-weight: 300; }
.pl-footer-col { display: flex; flex-direction: column; gap: 12px; }
.pl-footer-heading { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #AA8AB8; margin-bottom: 6px; }
.pl-footer-col a, .pl-footer-col address { color: #fff; font-size: 15px; font-weight: 300; font-style: normal; line-height: 1.7; }
.pl-footer-col a:hover { color: #AA8AB8; }
.pl-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: #A7ADB1; }
.pl-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.pl-footer-legal a { color: #A7ADB1; }
.pl-footer-legal a:hover { color: #fff; }

@media (min-width: 1140px) { .pl-steps-line { display: block !important; } }

@media (max-width: 1024px) {
  .pl-faq-grid { grid-template-columns: minmax(0,1fr) !important; gap: 32px !important; }
  .pl-faq-side { position: static !important; }
  .pl-nav { display: none !important; }
  .pl-burger { display: flex !important; }
  .pl-hide-mobile { display: none !important; }
}

@media (max-width: 640px) {
  .pl-hero, .pl-section, .pl-section-tight, .pl-final-cta, .pl-header, .pl-footer { padding-left: 20px !important; padding-right: 20px !important; }
  .pl-h1 { font-size: 38px !important; }
  .pl-h2, .pl-final-cta-inner h2 { font-size: 30px !important; }
  .pl-hero-media img { min-height: 300px !important; }
  .pl-banner-copy { padding: 36px 28px !important; }
}

/* The7's own header nav background (.navigation::before) is a "full-bleed"
   trick centered on the nav element's left edge: width:Npx + margin-left:
   -N/2px. On native The7 templates, a theme script recalculates N to
   exactly match the page's measured width. On our page templates that
   script doesn't run (or measures before our content is in the DOM), so it
   falls back to a static default that doesn't reach the viewport edge,
   leaving a visible gap. This isn't our markup — we never touch the
   header/nav — so instead of fixing the calculation, force a generously
   oversized value that always covers the full viewport regardless of what
   The7's own script does or doesn't compute. */
.navigation::before { width: 4000px !important; margin-left: -2000px !important; }
