/*
Theme Name: BernardXL
Theme URI: https://bernardxl.com
Author: Brad Bernard
Description: Custom theme for BernardXL Marketing and Growth Partners. Marketing and media strategy, board advisory, fractional leadership, and speaking engagements.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bernardxl
*/

:root{
  --navy:#0e1f2f;
  --navy-light:#16324a;
  --ink:#1c2b36;
  --paper:#faf8f4;
  --paper-alt:#f1ede4;
  --gold:#b8945a;
  --gold-light:#d9bd8a;
  --line:#dcd5c6;
  --muted:#5c6b74;
  --white:#ffffff;
  --max:1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:'Playfair Display',Georgia,'Times New Roman',serif;
  color:var(--navy);
  line-height:1.2;
  margin:0 0 0.5em;
  font-weight:700;
}

h1{font-size:clamp(2.2rem,4.5vw,3.4rem);}
h2{font-size:clamp(1.6rem,3vw,2.2rem);}
h3{font-size:1.3rem;}

p{margin:0 0 1em;}
a{color:inherit;text-decoration:none;}

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

/* ---------- Header / Nav ---------- */
.site-header{
  background:var(--navy);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 28px;
  max-width:var(--max);
  margin:0 auto;
}
.logo{
  font-family:'Playfair Display',Georgia,serif;
  font-size:1.35rem;
  font-weight:700;
  color:var(--white);
  letter-spacing:0.5px;
  display:flex;
  align-items:center;
}
.logo span{color:var(--gold-light);}
.logo-img{
  height:40px;
  width:auto;
  display:block;
}
.nav-links{
  display:flex;
  gap:22px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color:rgba(255,255,255,0.82);
  font-size:0.92rem;
  font-weight:500;
  letter-spacing:0.2px;
  transition:color .15s ease;
  padding:6px 0;
  border-bottom:2px solid transparent;
  white-space:nowrap;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a{
  color:var(--white);
  border-bottom-color:var(--gold);
}
.nav-cta{
  background:var(--gold);
  color:var(--navy) !important;
  padding:10px 20px;
  border-radius:3px;
  font-weight:600;
  font-size:0.9rem;
  white-space:nowrap;
}
.nav-cta:hover{background:var(--gold-light);}
.nav-toggle{display:none;}

@media (max-width:960px){
  .nav-links{
    position:absolute;
    top:100%;
    left:0;right:0;
    background:var(--navy);
    flex-direction:column;
    gap:0;
    padding:10px 28px 20px;
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.08);}
  .nav-cta{display:inline-block;margin-top:10px;}
  .nav-toggle{
    display:block;
    background:none;
    border:none;
    color:var(--white);
    font-size:1.6rem;
    cursor:pointer;
    line-height:1;
  }
}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(160deg,var(--navy) 0%,var(--navy-light) 100%);
  color:var(--white);
  padding:100px 0 70px;
  text-align:center;
}
.hero h1{color:var(--white);max-width:820px;margin:0 auto 22px;}
.hero .lede{
  max-width:640px;
  margin:0 auto 34px;
  color:rgba(255,255,255,0.78);
  font-size:1.1rem;
}

/* Photo hero variant (home page) */
.hero-photo{
  background:
    linear-gradient(180deg, rgba(9,19,29,0.78) 0%, rgba(9,19,29,0.5) 45%, rgba(9,19,29,0.85) 100%),
    url('assets/hero-mountain-bearprint.jpg') center 38% / cover no-repeat;
  padding:150px 0 110px;
}
.hero-photo h1{text-shadow:0 2px 18px rgba(0,0,0,0.45);}
.hero-photo .lede{
  color:rgba(255,255,255,0.9);
  text-shadow:0 1px 10px rgba(0,0,0,0.4);
}
.btn{
  display:inline-block;
  background:var(--gold);
  color:var(--navy);
  padding:14px 32px;
  border-radius:3px;
  font-weight:600;
  font-size:0.98rem;
  letter-spacing:0.3px;
  transition:background .15s ease, transform .15s ease;
}
.btn:hover{background:var(--gold-light);transform:translateY(-1px);}
.btn-outline{
  background:transparent;
  border:1.5px solid var(--gold);
  color:var(--gold-light);
}
.btn-outline:hover{background:rgba(184,148,90,0.12);}

/* Sub-page hero (with CTA button) */
.hero-sub .lede{margin-bottom:28px;}
/* Photo hero variants for interior pages, same mountain/bear-print scene at different times of day/year */
.hero-bg-about,
.hero-bg-services,
.hero-bg-solutions,
.hero-bg-sectors,
.hero-bg-contact{
  background-position:center 40%;
  background-size:cover;
  background-repeat:no-repeat;
}
.hero-bg-about{
  background-image:
    linear-gradient(180deg, rgba(9,19,29,0.75) 0%, rgba(9,19,29,0.45) 45%, rgba(9,19,29,0.82) 100%),
    url('assets/hero-about-winter-dawn.png');
}
.hero-bg-services{
  background-image:
    linear-gradient(180deg, rgba(9,19,29,0.75) 0%, rgba(9,19,29,0.45) 45%, rgba(9,19,29,0.82) 100%),
    url('assets/hero-services-summer-midday.png');
}
.hero-bg-solutions{
  background-image:
    linear-gradient(180deg, rgba(9,19,29,0.75) 0%, rgba(9,19,29,0.45) 45%, rgba(9,19,29,0.82) 100%),
    url('assets/hero-solutions-autumn-dusk.png');
}
.hero-bg-sectors{
  background-image:
    linear-gradient(180deg, rgba(9,19,29,0.75) 0%, rgba(9,19,29,0.45) 45%, rgba(9,19,29,0.82) 100%),
    url('assets/hero-sectors-spring-fog.png');
}
.hero-bg-contact{
  background-image:
    linear-gradient(180deg, rgba(9,19,29,0.75) 0%, rgba(9,19,29,0.45) 45%, rgba(9,19,29,0.82) 100%),
    url('assets/hero-contact-winter-night.png');
}
.hero-bg-about h1,
.hero-bg-services h1,
.hero-bg-solutions h1,
.hero-bg-sectors h1,
.hero-bg-contact h1{text-shadow:0 2px 18px rgba(0,0,0,0.45);}
.hero-bg-about .lede,
.hero-bg-services .lede,
.hero-bg-solutions .lede,
.hero-bg-sectors .lede,
.hero-bg-contact .lede{
  color:rgba(255,255,255,0.9);
  text-shadow:0 1px 10px rgba(0,0,0,0.4);
}
.hero-bg-about .eyebrow,
.hero-bg-services .eyebrow,
.hero-bg-solutions .eyebrow,
.hero-bg-sectors .eyebrow,
.hero-bg-contact .eyebrow{text-shadow:0 1px 8px rgba(0,0,0,0.4);}

/* ---------- Triangle bullets ---------- */
.tri-list{list-style:none;padding:0;margin:0;}
.tri-list li{position:relative;padding-left:24px;margin-bottom:11px;}
.tri-list li:last-child{margin-bottom:0;}
.tri-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.48em;
  width:0;
  height:0;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-left:9px solid var(--gold);
}
.tri-list.navy li::before{border-left-color:var(--navy);}
.tri-list a{color:var(--navy);font-weight:600;}
.tri-list a:hover{color:var(--gold);}

/* ---------- Icon badges ---------- */
.icon-badge{
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  flex-shrink:0;
}
.icon-badge svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:var(--gold-light);
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.icon-badge.on-gold{background:var(--gold);}
.icon-badge.on-gold svg{stroke:var(--navy);}
.icon-badge.sm{width:44px;height:44px;}
.icon-badge.sm svg{width:22px;height:22px;}

/* ---------- Stats strip ---------- */
.stats-strip{
  background:var(--paper-alt);
  border-bottom:1px solid var(--line);
  padding:26px 0;
}
.stats-strip .container{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px 40px;
  text-align:center;
}
.stats-strip .stat{
  font-size:0.92rem;
  font-weight:600;
  color:var(--navy);
  letter-spacing:0.2px;
}
.stats-strip .stat small{
  display:block;
  font-weight:400;
  color:var(--muted);
  font-size:0.8rem;
  margin-top:2px;
}

/* ---------- Sections ---------- */
section{padding:76px 0;}
.section-alt{background:var(--paper-alt);}
.section-navy{background:var(--navy);color:rgba(255,255,255,0.85);}
.section-navy h2{color:var(--white);}
.section-head{
  text-align:center;
  max-width:680px;
  margin:0 auto 48px;
}
.section-head p{color:var(--muted);font-size:1.05rem;}
.eyebrow{
  display:inline-block;
  color:var(--gold);
  font-weight:700;
  font-size:0.8rem;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:12px;
}

/* ---------- Card grids ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:24px;
}
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:30px 26px;
  transition:box-shadow .15s ease, transform .15s ease;
}
.card:hover{box-shadow:0 10px 30px rgba(14,31,47,0.08);transform:translateY(-2px);}
.card h3{margin-bottom:10px;}
.card p{color:var(--muted);margin-bottom:0;font-size:0.95rem;}
.card ul.card-list{list-style:none;padding-left:0;margin:0;color:var(--muted);font-size:0.9rem;}
.card ul.card-list li{position:relative;padding-left:18px;margin-bottom:6px;}
.card ul.card-list li:last-child{margin-bottom:0;}
.card ul.card-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.45em;
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid var(--gold);
}
.card.icon-card .icon-badge{margin-bottom:14px;}
.card .card-link{
  display:inline-block;
  margin-top:14px;
  color:var(--gold);
  font-weight:600;
  font-size:0.88rem;
}

/* ---------- Sectors pill list ---------- */
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}
.pill{
  border:1px solid var(--line);
  background:var(--white);
  padding:9px 18px;
  border-radius:30px;
  font-size:0.9rem;
  font-weight:600;
  color:var(--navy);
}

/* ---------- Service / sector detail blocks ---------- */
.detail-block{
  border-bottom:1px solid var(--line);
  padding:44px 0;
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:40px;
}
.detail-block:last-child{border-bottom:none;}
.detail-block .detail-head{display:flex;align-items:center;gap:16px;}
.detail-block .icon-badge{margin-bottom:0;}
.detail-block .num{
  color:var(--gold);
  font-family:'Playfair Display',serif;
  font-size:1rem;
  font-weight:700;
  letter-spacing:1px;
}
.detail-block h3{margin-top:6px;}
.detail-block .includes{
  margin-top:16px;
  font-size:0.9rem;
  color:var(--navy);
}
.detail-block .includes strong{color:var(--muted);font-weight:600;text-transform:uppercase;font-size:0.75rem;letter-spacing:1px;}
.detail-block p{color:var(--muted);}

@media (max-width:760px){
  .detail-block{grid-template-columns:1fr;gap:14px;}
}

/* ---------- About bio layout ---------- */
.bio-wrap{
  display:grid;
  grid-template-columns:0.9fr 1.4fr;
  gap:56px;
  align-items:start;
}
.bio-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:34px;
  position:sticky;
  top:110px;
}
.bio-card .initials{
  width:64px;height:64px;
  border-radius:50%;
  background:var(--navy);
  color:var(--gold-light);
  display:flex;align-items:center;justify-content:center;
  font-family:'Playfair Display',serif;
  font-size:1.4rem;
  margin-bottom:16px;
}
.bio-card .headshot{
  width:110px;
  height:110px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  margin-bottom:18px;
  border:3px solid var(--gold-light);
  box-shadow:0 6px 18px rgba(14,31,47,0.15);
}
.bio-card ul{list-style:none;padding:0;margin:18px 0 0;font-size:0.9rem;color:var(--muted);}
.bio-card li{padding:6px 0;border-top:1px solid var(--line);}
.bio-card li:first-child{border-top:none;}

@media (max-width:840px){
  .bio-wrap{grid-template-columns:1fr;}
  .bio-card{position:static;}
}

.why-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:26px;
  margin-top:10px;
}
.why-list .item h4{
  margin-bottom:6px;
  color:var(--navy);
  font-family:'Playfair Display',serif;
  font-size:1.05rem;
  position:relative;
  padding-left:20px;
}
.why-list .item h4::before{
  content:"";
  position:absolute;
  left:0;
  top:0.35em;
  width:0;
  height:0;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-left:9px solid var(--gold);
}
.why-list .item p{color:var(--muted);font-size:0.95rem;padding-left:20px;}

/* ---------- Solutions preview (home page) ---------- */
.solutions-preview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:8px 40px;
  max-width:900px;
  margin:0 auto;
}

/* ---------- Assessment picker (Contact page) ---------- */
.assess-options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;
  margin:8px 0 26px;
}
.assess-option{
  display:block;
  border:1.5px solid var(--line);
  border-radius:6px;
  padding:18px;
  cursor:pointer;
  background:var(--paper);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.assess-option:has(input:checked){
  border-color:var(--gold);
  box-shadow:0 0 0 2px rgba(184,148,90,0.22);
  background:var(--white);
}
.assess-option input{margin-right:8px;}
.assess-option .opt-title{
  font-family:'Playfair Display',serif;
  color:var(--navy);
  font-weight:700;
  font-size:1rem;
}
.assess-option p{margin:8px 0 0;font-size:0.85rem;color:var(--muted);}

.form-section-title{margin-bottom:6px;}
.form-note{
  font-size:0.85rem;
  color:var(--muted);
  margin-top:4px;
}
.contact-divider{
  border:none;
  border-top:1px solid var(--line);
  margin:0;
}
.fulfillment-note{
  background:var(--paper-alt);
  border:1px solid var(--line);
  border-radius:6px;
  padding:16px 20px;
  font-size:0.85rem;
  color:var(--muted);
  margin-top:6px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:0.7fr 1.5fr;
  gap:36px;
}
.contact-info h3{margin-top:26px;}
.contact-info .line{margin-bottom:6px;color:var(--muted);}
.contact-info .line strong{color:var(--navy);}
.form{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:34px;
}
.form label{
  display:block;
  font-size:0.82rem;
  font-weight:600;
  color:var(--navy);
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.form .field{margin-bottom:20px;}
.form input,.form textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:inherit;
  font-size:0.95rem;
  background:var(--paper);
}
.form textarea{min-height:120px;resize:vertical;}

/* Force WPForms fields to fill the same width as the rest of the site,
   regardless of the per-field Size setting inside WPForms itself.
   Scoped to the input/textarea/select elements only, so it doesn't
   fight with WPForms' own row/column layout wrappers. */
.form .wpforms-container,
.form .wpforms-form{width:100%;max-width:100%;}
.form .wpforms-field input[type="text"],
.form .wpforms-field input[type="email"],
.form .wpforms-field input[type="tel"],
.form .wpforms-field input[type="url"],
.form .wpforms-field textarea,
.form .wpforms-field select{
  width:100% !important;
  box-sizing:border-box;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:inherit;
  font-size:0.95rem;
  background:var(--paper);
}
.form .wpforms-field-label{
  font-size:0.82rem;
  font-weight:600;
  color:var(--navy);
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.form .wpforms-submit-container{margin-top:6px;}
.form button[type="submit"],
.form .wpforms-submit{
  background:var(--gold) !important;
  color:var(--navy) !important;
  padding:14px 32px !important;
  border-radius:3px !important;
  font-weight:600 !important;
  border:none !important;
  cursor:pointer;
}
.form input:focus,.form textarea:focus{outline:2px solid var(--gold);outline-offset:1px;}

@media (max-width:840px){
  .contact-grid{grid-template-columns:1fr;}
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--navy);
  color:var(--white);
  text-align:center;
  padding:70px 0;
}
.cta-band h2{color:var(--white);}
.cta-band p{color:rgba(255,255,255,0.75);max-width:520px;margin:0 auto 28px;}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy);
  color:rgba(255,255,255,0.6);
  padding:34px 0;
  font-size:0.85rem;
  border-top:1px solid rgba(255,255,255,0.08);
}
.footer-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.footer-links{display:flex;gap:18px;}
.footer-links a{color:rgba(255,255,255,0.7);}
.footer-links a:hover{color:var(--gold-light);}