/* ==========================================================================
   Bayley Coaching Solutions — local rebuild
   Shared stylesheet / design system
   Colors, type, and layout are a close approximation of solvingcareers.com
   and are intentionally easy to adjust from the :root variables below.
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Palette built around the brand blue from the BCS logo (#6575b8) */
  --brand:       #6575b8;   /* exact logo periwinkle blue */
  --navy:        #3b4680;   /* deep periwinkle-indigo — headings, dark bands */
  --navy-dark:   #2b3360;
  --navy-light:  #6575b8;   /* brand blue — links & lighter accents */
  --accent:      #c89a52;   /* complementary warm gold */
  --accent-dark: #a97e34;
  --teal:        #5f83a8;   /* soft slate-blue — list bullets, secondary */
  --bg:          #ffffff;
  --bg-alt:      #eef0f8;   /* light periwinkle tint */
  --bg-alt-2:    #e7ebf5;
  --text:        #2c313d;   /* near the logo's subtitle gray */
  --muted:       #5c6472;
  --line:        #e0e3ef;
  --white:       #ffffff;

  --maxw: 1160px;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(59, 70, 128, 0.12);
  --shadow-sm: 0 3px 12px rgba(59, 70, 128, 0.09);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: all .2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--navy); }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand a { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .02em;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.brand .brand-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--navy); padding: 6px;
}

.menu { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 10px 11px; white-space: nowrap;
  color: var(--text); font-weight: 500; font-size: .92rem;
}
.menu > li > a:hover, .menu > li.has-children:hover > a { color: var(--accent-dark); }
.menu .btn-nav { margin-left: 8px; }
.menu .btn-nav a { color:#fff; }

/* Dropdown */
.submenu {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.menu > li.has-children:hover > .submenu,
.menu > li.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { position: relative; }
.submenu a { display: block; padding: 10px 14px; border-radius: 4px; color: var(--text); font-size: .92rem; }
.submenu a:hover { background: var(--bg-alt); color: var(--navy); }
.submenu .submenu { top: 0; left: 100%; }
.caret { font-size: .6rem; opacity: .6; margin-left: 3px; }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--navy-light));
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% -10%, rgba(200,138,61,.22), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.2rem; max-width: 54ch; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-media img { border-radius: 10px; box-shadow: var(--shadow); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px;
}

/* ----- Sections --------------------------------------------------------- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.85); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 10px; box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; }
.split-body h2 { margin-bottom: .4em; }

/* Feature cards (home three-up) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 10px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: var(--bg-alt); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.5rem;
}

/* Lists with checkmarks */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding: 8px 0 8px 34px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .8rem;
  display: grid; place-items: center;
}

/* ----- Logo strip ------------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; justify-content: center; }
.logos img { height: 56px; width: auto; filter: none; opacity: 1; transition: transform .25s ease; }
.logos img:hover { transform: translateY(-2px); }

/* ----- Service tags ----------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500;
}

/* ----- Testimonials ----------------------------------------------------- */
.quotes { columns: 2; column-gap: 28px; }
.quote {
  break-inside: avoid; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 28px 30px; margin: 0 0 28px;
  box-shadow: var(--shadow-sm);
}
.quote .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--text); }
.quote .who { font-weight: 600; color: var(--navy); }
.quote .role { color: var(--muted); font-size: .9rem; }

/* ----- Book promo ------------------------------------------------------- */
.book { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.book img { border-radius: 8px; box-shadow: var(--shadow); }

/* ----- Engagements list ------------------------------------------------- */
.timeline { max-width: 820px; margin: 0 auto; }
.timeline .item {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
}
.timeline .date { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }
.timeline .what strong { color: var(--navy); display: block; }
.timeline .what span { color: var(--muted); font-size: .95rem; }

/* ----- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card {
  background: var(--bg-alt); border-radius: 10px; padding: 30px 32px; margin-bottom: 22px;
}
.contact-card h3 { margin-bottom: .3em; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem; color: var(--text);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.price-badge {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}

/* ----- CTA band --------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--navy-dark), var(--navy-light)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 28px; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 60px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--accent); }
.footer-brand .brand-name { color: #fff; font-family: var(--font-head); font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ----- Page hero (interior pages) -------------------------------------- */
.page-hero { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: 70px 0; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 14px; letter-spacing: .04em; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; color: var(--navy-light); }

/* ----- Utilities -------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .book { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { columns: 1; }
  .book { grid-template-columns: 160px 1fr; }

  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; max-height: calc(100vh - 76px); overflow-y: auto;
    transform: translateY(-120%); transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .menu.open { transform: translateY(0); }
  .menu > li > a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 16px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .menu li.has-children.open > .submenu { max-height: 600px; }
  .menu .btn-nav { margin: 12px 0 0; }
  .menu .btn-nav a { display: inline-block; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .timeline .item { grid-template-columns: 1fr; gap: 4px; }
  body { font-size: 16px; }
}

/* ==========================================================================
   Additions: photo cards, dark testimonials, scheduler, resources, polish
   ========================================================================== */

/* Image-topped cards */
.card-img { padding: 0; overflow: hidden; }
.card-photo { display: block; overflow: hidden; }
.card-photo img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.card-img:hover .card-photo img { transform: scale(1.05); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--muted); flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 12px; }

/* Testimonials on dark section */
.quote-dark {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 28px 30px; box-shadow: none;
}
.quote-dark blockquote { color: #fff; font-size: 1.05rem; margin: 0 0 16px; line-height: 1.6; }
.quote-dark .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote-dark .who { color: #fff; font-weight: 600; }
.quote-dark .role { color: rgba(255,255,255,.65); font-size: .9rem; }

/* Scheduler embed (responsive) */
.scheduler-frame {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
}
.scheduler-frame iframe { width: 100%; height: 760px; border: 0; display: block; }
@media (max-width: 600px) { .scheduler-frame iframe { height: 900px; } }

/* Resources download icon reuse (.icon already defined) */
.card .icon { flex: none; }

/* Slightly refined buttons */
.btn { box-shadow: 0 2px 8px rgba(200,138,61,.25); }
.btn-outline, .btn-light { box-shadow: none; }

/* Nicer focus states for accessibility */
a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ----- Real logo in header/footer -------------------------------------- */
.brand-logo { height: 44px; width: auto; display: block; }
.footer-logo { height: 42px; width: auto; margin-bottom: 16px; }
@media (max-width: 600px) { .brand-logo { height: 34px; } }
@media (max-width: 380px) { .brand-logo { height: 29px; } }

/* ----- Full-bleed hero (photo background + overlay) --------------------- */
.hero-bg { padding: 0; display: flex; align-items: center; min-height: 600px; }
.hero-bg::after { display: none; }              /* drop the base glow here */
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(28,33,62,.95) 0%, rgba(37,44,86,.86) 34%, rgba(59,70,128,.5) 72%, rgba(59,70,128,.28) 100%),
    linear-gradient(0deg, rgba(18,22,44,.55), rgba(18,22,44,0) 60%);
}
.hero-bg .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; padding: 48px 0; }
.hero-content .hero-cta { margin-top: 26px; margin-bottom: 0; }
.hero-content .hero-cta .btn + .btn { margin-left: 10px; }
@media (max-width: 760px) {
  .hero-bg { min-height: 520px; }
  .hero-content { max-width: none; padding: 40px 0; }
  .hero-bg-img { object-position: 64% center; }
}

/* ----- Short full-bleed hero (interior pages) -------------------------- */
.hero-bg.hero-sm { min-height: 400px; }
.hero-bg.hero-sm .hero-content { padding: 40px 0; }

/* ----- Two-path cards -------------------------------------------------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .cards-2 { grid-template-columns: 1fr; } }
.path-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 34px 34px 36px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand);
}
.path-card.alt { border-top-color: var(--accent); }
.path-card .path-label {
  text-transform: uppercase; letter-spacing: .13em; font-size: .72rem;
  font-weight: 700; color: var(--brand); margin-bottom: 10px;
}
.path-card.alt .path-label { color: var(--accent-dark); }
.path-card h3 { font-size: 1.5rem; margin-bottom: .5em; }
.path-card p { color: var(--muted); }
.path-card .check-list { margin-top: 4px; margin-bottom: 0; }

/* Two-column check-list (for longer outcome lists) */
.check-list.cols { columns: 2; column-gap: 44px; }
.check-list.cols li { break-inside: avoid; }
@media (max-width: 640px) { .check-list.cols { columns: 1; } }

/* Small circular founder portrait (About page) */
.founder-photo {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; object-position: center 15%;
  margin: 0 auto 20px; border: 4px solid #fff; box-shadow: var(--shadow);
}

/* Contact info cards in a row (no form) */
.cards .contact-card { margin-bottom: 0; height: 100%; }

/* ----- Book promo page ------------------------------------------------- */
.book-hero .hero-grid { grid-template-columns: 1.12fr .88fr; align-items: center; }
.book-hero .breadcrumb { margin-bottom: 14px; }
.book-hero .hero-cta { margin-top: 26px; margin-bottom: 0; }
.book-hero .hero-cta .btn + .btn { margin-left: 10px; }
.book-cover-wrap { text-align: center; }
.book-cover-3d {
  width: auto; max-height: 440px; margin: 0 auto; border-radius: 3px;
  box-shadow: 0 30px 55px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1200px) rotateY(-14deg);
}
@media (max-width: 760px) {
  .book-hero .hero-grid { grid-template-columns: 1fr; }
  .book-cover-3d { max-height: 340px; transform: none; margin-top: 26px; }
}

/* Book full-bleed hero: keep the stacked books on the right */
.book-hero .hero-bg-img { object-position: right center; }
