/* Cindy Wahler — reproduces the Divi 5 design with plain CSS.
   Colours and fonts come from content/site.json (CSS variables in <head>). */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url(/assets/fonts/lato-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url(/assets/fonts/lato-latin-900-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

body { margin: 0; background: #fff; color: var(--c-text); font: 400 17px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-heading); font-weight: 700; line-height: 1.3; margin: 0; padding-bottom: 10px; color: var(--c-heading); }
h1 { font-size: 40px; } h2 { font-size: 26px; } h3 { font-size: 22px; } h4 { font-size: 19px; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
strong, b { font-weight: 700; }

.container { width: 90%; max-width: 1260px; margin: 0 auto; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .5em 1em; }
.skip-link:focus { left: 1em; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

.prose ul, .prose ol { margin: 0; padding: 0 0 1em 1.5em; line-height: 26px; }
.prose li { margin-bottom: .15em; }
.prose > :last-child { padding-bottom: 0; }
.prose a { font-weight: 700; }  /* links in text are bold, as in the original */

/* ---------- Header ---------- */
.site-header { background: #fff; border-top: 3px solid var(--c-primary); border-bottom: 1px solid var(--c-header-line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.logo img { width: 259px; height: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { display: block; font: 900 16px/1.2 var(--f-body); color: var(--c-primary); padding: 12px 11px; }
.site-nav a:hover { text-decoration: none; opacity: .75; }
.site-nav a[aria-current="page"], .site-nav .is-ancestor > a { color: #000; background: var(--c-active-bg); }
.site-nav li { position: relative; }
.site-nav .has-children > a { padding-right: 24px; }
.site-nav .has-children > a::after { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; width: 240px; background: #fff; border-top: 3px solid var(--c-primary); box-shadow: 0 2px 5px rgba(0,0,0,.1); visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.sub-menu a { padding: 12px 20px; font-weight: 900; }
.menu-toggle { display: none; }

/* ---------- Sections ---------- */
.section { padding: 30px 0 50px; }
.section--alt { background: var(--c-panel); }
.banner { position: relative; height: var(--banner-h, 400px); overflow: hidden; background: var(--c-panel); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Columns (Divi gutter 3) */
.columns { display: flex; flex-wrap: wrap; gap: 30px 3%; align-items: flex-start; }
.columns--center { align-items: center; }
.column > * + * { margin-top: 20px; }
.column--1 { flex: 0 0 100%; }
.column--1-2 { flex: 0 0 48.5%; }
.column--1-5 { flex: 0 0 18.6%; }
.column--4-5 { flex: 0 0 78.4%; }
.column--1-6 { flex: 0 0 calc((100% - 15%) / 6); }

/* Main content + sidebar */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3%; align-items: start; }
.with-sidebar-main > * + * { margin-top: 20px; }
.sidebar { background: var(--c-panel); padding-bottom: 20px; }
/* Sidebar blocks, spaced as in the original (Divi module padding and margins) */
.sidebar > * + * { margin-top: 0; }
.sidebar > .sidebar-photo img { width: 100%; }
.sidebar-links { padding: 20px; margin-bottom: 17px; }
.sidebar-links p { padding-bottom: 17px; }
.sidebar-links p:last-child { padding-bottom: 0; }
.sidebar-links a { font-size: 19px; font-weight: 700; }
.sidebar-contact { padding: 20px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); margin-bottom: 25px; }
.sidebar-follow { padding: 0 20px; margin-bottom: 17px; }
.sidebar-follow h4 { font-size: 18px; padding-bottom: 0; }
.sidebar > .block-social { padding: 0 20px; margin-bottom: 34px; }
.sidebar > .block-divider { margin: 0 20px 22px; }
.sidebar > .block-button { padding: 0 20px; text-align: left; }
.sidebar .button { width: 220px; }
.block-divider { border: 0; border-top: 1px solid var(--c-line); }

/* Book pictures: Divi's soft drop shadow */
.block-image.shadow img { box-shadow: 0 12px 18px -6px rgba(0,0,0,.3); }

/* Bordered text panel (Professional Memberships, the seminar list) */
.box { border: 1px solid var(--c-primary); padding: 30px; }
.with-sidebar-main > .box { margin-top: 36px; }

/* Contact page details */
.contact-info { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 20px 0; margin-bottom: 20px; }
.contact-info p { font-size: 20px; line-height: 1.4; }

/* Buttons */
.button { display: inline-block; font: 700 18px/1.7 var(--f-body); padding: .3em 1em; border: 2px solid var(--c-primary); border-radius: var(--r-button); color: var(--c-primary); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.button:hover { text-decoration: none; background: var(--c-primary); color: #fff; }
.button--solid { background: var(--c-primary); color: #fff; border-radius: 0; min-width: 220px; padding: 5px 18px; text-align: center; }
.button--solid:hover { background: #fff; color: var(--c-primary); }
.sidebar .button { min-width: 220px; }
.button[disabled] { opacity: .6; cursor: wait; }

/* Social buttons */
.block-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.block-social li { display: flex; align-items: center; gap: 8px; }
.block-social a:not(.social-follow) { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; color: #fff; background: #555; }
.social-follow { display: inline-block; font-size: 14px; line-height: 26px; padding: 0 12px; border-radius: 3px; background: rgba(0,0,0,.1); color: rgba(0,0,0,.5) !important; }
.social-follow:hover { text-decoration: none; background: rgba(0,0,0,.15); }
.block-social a:hover { opacity: .85; }
.social-linkedin { background: #007bb6 !important; }
.social-x { background: #000 !important; }

/* Home hero */
.home-hero { background: var(--c-hero); color: #fff; padding: 40px 0 0; }
/* The photo sits on the bottom edge of the band, as in the original; the text is centred beside it */
.home-hero .columns { align-items: flex-end; column-gap: 0; }
.home-hero .column:first-child { flex-basis: 46%; align-self: center; padding: 0 34px 40px 24px; }
.home-hero .column:last-child { flex-basis: 54%; padding: 0 24px; }
.home-hero .column:last-child img { width: 100%; }
.home-hero h1 { color: #fff; font-size: 54px; line-height: 1.2; }
.home-hero p { color: #fff; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 10px; }
.store-badges img { width: 150px; height: auto; }
.store-badges--large img { width: 200px; }

/* Professional services icons */
.block-blurb { text-align: center; }
.block-blurb img { width: 120px; margin: 0 auto 30px; }
.blurb-title { font-size: 18px; line-height: 1.3; padding: 0; }
.blurb-title a { display: block; background: var(--c-primary); color: #fff; padding: 7.5px 9px; border-radius: 3px; }
.blurb-title a:hover { text-decoration: none; opacity: .9; }

/* Book (Divi gutter 4 between the cover and the text) */
.columns--wide { column-gap: 5.5%; }
.columns--wide > .column--1-2 { flex-basis: 47.25%; }
.columns--wide > .column--1-5 { flex-basis: 20.875%; }
.columns--wide > .column--4-5 { flex-basis: 73.625%; }
.book-top { padding-top: 86px; padding-bottom: 58px; }
.book-top .columns { row-gap: 29px; }
.book-top .column--4-5 p { font-size: 24px; line-height: 1.4; }
.book-top .store-badges { gap: 27px; padding-top: 6px; }
.store-badges--large img { width: 200px; border: 1px solid #ccc; padding: 5px; box-sizing: content-box; }
.book-top .column--4-5 > .block-image { margin-top: 43px; }
.book-media { padding-bottom: 0; }
.book-reviews { padding-top: 30px; padding-bottom: 58px; }
.book-intro h1 { font-size: 31px; font-weight: 400; color: #000; }
.book-intro strong { font-weight: 900; }
.book-media .block-image a { display: block; }
.block-testimonial { background: #fff; padding: 30px; margin: 0; }
.column > .block-testimonial + .block-testimonial { margin-top: 32px; }
.block-testimonial blockquote { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.block-testimonial blockquote p { padding: 0; }
.testimonial-name { display: block; font-size: 16px; }
.testimonial-role { display: block; font-size: 17px; }
.block-embed iframe { display: block; border-radius: 12px; }

/* Publications and podcasts */
.link-list { display: grid; gap: 0; }
.link-item { display: flow-root; }
.link-item-image { float: left; margin: 5px 25px 30px 0; }
.link-item-image img { width: 120px; height: auto; border: 1px solid #eee; }
.link-item-title { font-size: 26px; padding-bottom: 4px; }
.link-item-excerpt { color: var(--c-muted); padding: 0; }
.pagenav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 40px; }
.pagenav > * { display: inline-block; min-width: 2em; padding: 3px 9px; border: 1px solid #bfbfbf; text-align: center; }
.pagenav a:hover { background: var(--c-active-bg); text-decoration: none; }
.pagenav-count { border-color: transparent !important; padding-left: 0 !important; }
.pagenav-current { font-weight: 700; color: #000; }

/* Contact form */
.contact-box { border: 2px solid #c5c9e8; padding: 24px 28px 28px; }
.contact-form { max-width: none; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 13px; color: #777; margin-bottom: 2px; }
.req { color: #e04562; }
.field input, .field textarea { width: 100%; font: 400 16px/1.3 var(--f-body); color: #000; background: transparent; border: 0; border-bottom: 1px solid #999; padding: 10px 0 9px; border-radius: 0; }
.field textarea { border: 1px solid #999; padding: 10px; min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 1px 0 var(--c-primary); }
.cf-turnstile { margin-bottom: 20px; }
.contact-form .button { background: #000; border-color: #000; color: #fff; border-radius: 0; font-size: 14px; letter-spacing: .03em; padding: 8px 22px; }
.contact-form .button:hover { background: var(--c-primary); border-color: var(--c-primary); }
.form-status { margin-top: 1em; min-height: 1.6em; padding: 0; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--c-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); padding: 30px 0; }
.footer-links ul { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 6px; }
.footer-links li + li::before { content: "|"; color: #777; margin: 0 10px; }
.footer-links a { color: var(--c-footer-link); font-size: 14px; }
.footer-bottom p { color: var(--c-footer-text); font-size: 13px; padding: 14px 0 0; }

/* ---------- Responsive (Divi breakpoints) ---------- */
@media (max-width: 1180px) { .site-nav a { padding: 12px 7px; font-size: 15px; } .site-nav .has-children > a { padding-right: 20px; } .logo img { width: 220px; } }
@media (max-width: 980px) {
  .with-sidebar { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { max-width: 420px; }
  .column--1-2, .column--1-5, .column--4-5, .columns--wide > .column--1-2, .columns--wide > .column--1-5, .columns--wide > .column--4-5 { flex-basis: 100%; }
  .book-top { padding-top: 40px; }
  .book-top .column--4-5 p { font-size: 20px; }
  .column--1-6 { flex-basis: calc((100% - 6%) / 3); }
  .column--1-5 .block-image { max-width: 240px; }
  .banner { height: min(var(--banner-h, 400px), 45vw); }
  .home-hero h1 { font-size: 42px; }
  .home-hero .column:first-child, .home-hero .column:last-child { flex-basis: 100%; padding: 0; }
  .home-hero .column:first-child { order: 2; padding: 30px 0 40px; }

  .header-inner { min-height: 70px; position: relative; }
  .logo img { width: 200px; }
  .menu-toggle { display: block; background: none; border: 0; padding: 10px; cursor: pointer; width: 46px; height: 46px; position: relative; }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 11px; width: 24px; height: 3px; background: #000; border-radius: 2px; content: ""; transition: transform .2s; }
  .menu-toggle-bars { top: 21px; }
  .menu-toggle-bars::before { left: 0; top: -8px; }
  .menu-toggle-bars::after { left: 0; top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }
  /* Divi's mobile menu: a white panel under the button, blue top edge, sub-pages indented */
  .site-nav { display: none; position: absolute; right: 0; top: 100%; width: 260px; background: #fff; border-top: 3px solid var(--c-primary); box-shadow: 0 2px 5px rgba(0,0,0,.1); }
  .site-nav.is-open { display: block; }
  .site-nav > ul { display: block; }
  .site-nav li { border-bottom: 1px solid rgba(0,0,0,.03); }
  .site-nav a { font-weight: 500; padding: 10px 14px; font-size: 16px; }
  .site-nav .has-children > a { padding-right: 14px; font-weight: 700; background: rgba(0,0,0,.03); }
  .site-nav .has-children > a::after { display: none; }
  .sub-menu { position: static; width: auto; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; padding-left: 20px; }
  .sub-menu a { font-weight: 500; padding: 10px 14px; }
}
@media (max-width: 767px) {
  h1 { font-size: 32px; } h2 { font-size: 23px; }
  .home-hero h1 { font-size: 34px; }
  .book-intro h1 { font-size: 23px; }
  .link-item-title { font-size: 21px; }
  .block-testimonial blockquote { font-size: 18px; }
  .column--1-6 { flex-basis: calc((100% - 3%) / 2); }
}
@media (max-width: 480px) {
  .container { width: auto; margin: 0 16px; }
  .link-item-image { float: none; margin: 30px 0 10px; }
  .link-item-image img { width: 90px; }
  .contact-box { padding: 18px; }
}

/* Store badges fit one row on phones */
@media (max-width: 480px) { .store-badges { gap: 10px; } .store-badges img, .store-badges--large img { width: calc((100vw - 32px - 20px) / 3); } }
