/* =========================================================================
   The Wizard Stone — John E Pointer
   Colors, fonts and spacing taken from the original Elementor site
   (global kit + home page styles).
   ========================================================================= */
:root {
  --gold:      #DCA632;  /* primary / accent */
  --dark:      #3A3A3A;  /* secondary, headings */
  --text:      #595959;  /* body text */
  --light:     #F4F4F4;  /* page background, light text */
  --grey:      #D8D8D8;
  --black:     #000000;
  --white:     #FFFFFF;
  --footer:    #353535;
  --star:      #FEC42D;
  --quote:     #C60405;
  --glow:      #1751FF;

  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-alt:  "Open Sans", Arial, sans-serif;

  --boxed: 1140px;
  --header-h: 74px;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--light); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 .9em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--boxed); margin-inline: auto; padding-inline: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--white); padding: 10px 16px; font-weight: 600; border-radius: 5px; }
.skip-link:focus { top: 12px; color: var(--white); }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Button (global kit style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 17px;
  font-family: var(--font-head); font-size: .9rem; font-weight: 600; line-height: 1;
  text-transform: uppercase; letter-spacing: 2px; text-align: center;
  color: var(--light); background-color: var(--gold);
  border: 2px solid var(--gold); border-radius: 5px;
  cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.btn:hover, .btn:focus-visible { background-color: transparent; color: var(--light); border-color: var(--gold); }
.btn--dark-hover:hover, .btn--dark-hover:focus-visible { color: var(--dark); }

/* ---------- Header (Elementor template post-20) ---------- */
.site-header { position: relative; z-index: 60; background: #000; border-bottom: 2px solid var(--gold); padding: 10px 0 12px; }
.header-inner { max-width: 1250px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; }
.h-col { padding: 10px; display: flex; align-items: center; }
.h-col--title { width: 20%; }
.h-col--nav { width: 61.839%; }
.h-col--social { width: 17.827%; justify-content: center; }
.site-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.2em; color: var(--light); }
.site-title a { color: inherit; }
.site-title a:hover { color: var(--gold); }
.site-nav { width: 100%; margin-right: 1em; }
.nav-list { display: flex; height: 50px; align-items: stretch; justify-content: center; }
.nav-list li { display: flex; }
.nav-list a { display: flex; align-items: center; padding: 0 15px; font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--light); }
.nav-list a:hover, .nav-list a:focus-visible, .nav-list li.is-current > a, .nav-list a[aria-current="true"] { color: var(--gold); }
.nav-identity, .nav-overlay { display: none; }
.social { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.social a { display: grid; place-items: center; width: calc(18px + 1em); height: calc(18px + 1em); padding: .5em; border-radius: 10%; background: var(--gold); color: var(--white); transition: opacity .3s; }
.social a:hover { opacity: .9; color: var(--white); }
.social .icon { width: 18px; height: 18px; }

.nav-toggle { display: none; margin-left: auto; width: 50px; padding: 15px; border: 1px solid var(--gold); border-radius: 5px; background: var(--gold); color: var(--light); cursor: pointer; transition: background-color .3s; }
.nav-toggle:hover { background: transparent; }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span { display: block; height: 2px; width: 100%; background: var(--light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 90vh; display: flex; align-items: center;
  margin-top: -72px; padding: 72px 0 0;
  background-color: #2b2b2b;
}
.hero-bg {
  position: absolute; inset: -30px; z-index: -2;
  background-position: center center; background-size: cover; background-repeat: no-repeat;
  transition: transform .4s ease-out; will-change: transform;
}
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: var(--black); opacity: .5; }
.hero-inner { padding: 1em 1em 1em 5em; text-align: center; }
.hero-eyebrow {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 14px;
}
.hero-title { font-family: var(--font-head); font-size: 42px; font-weight: 700; line-height: 1.2em; color: var(--light); margin-bottom: 20px; }
.hero-title span { color: var(--gold); transition: color .3s; }
.hero-title:hover span { color: var(--white); }
.hero-intro { margin: 0 8em 22px; font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.5em; color: var(--white); }
.hero-buttons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hero-buttons .btn { width: 100%; padding-inline: 8px; }

/* ---------- Video card ---------- */
.video-section { padding: 30px 10px; display: flex; justify-content: center; background: var(--light); }
.video-card {
  width: 60%; max-width: 60%; padding: 150px 0;
  display: flex; align-items: center; justify-content: center;
  background-color: #3a3a3a; background-position: center center; background-size: cover; background-repeat: no-repeat;
  border-radius: 20px; box-shadow: 0 0 25px 0 rgba(0, 0, 0, .5);
}
.play-btn {
  position: relative; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--gold); color: var(--white);
}
.play-btn .icon { width: 18px; height: 18px; margin-left: 3px; }
.play-btn::before, .play-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 var(--glow); animation: ripple 3s infinite; opacity: .6;
}
.play-btn::after { animation-delay: 1s; }
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(23, 81, 255, .55); }
  70%  { box-shadow: 0 0 0 30px rgba(23, 81, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 81, 255, 0); }
}

/* ---------- Section headings ("About The Author/Book") ---------- */
.sec-title { font-family: var(--font-head); font-size: 36px; font-weight: 800; line-height: 1.2em; color: var(--dark); margin-bottom: 20px; }
.sec-title span { color: var(--gold); transition: color .3s; }
.sec-title:hover span { color: var(--black); }

/* ---------- About The Author ---------- */
.author { background: var(--light); padding: 3em 1em 4em; }
.author-inner { display: flex; align-items: center; }
.author-photo { width: 50%; display: flex; justify-content: flex-end; text-align: center; padding: 10px; }
.author-photo picture, .author-photo .author-img, .author-photo .img-missing { width: 75%; }
.author-img { margin-inline: auto; border-radius: 10px; box-shadow: 0 0 28px 0 rgba(0, 0, 0, .5); }
.author-copy { width: 50%; padding: 10px 80px 10px 10px; }
.author-text { font-family: var(--font-body); font-size: 18px; font-weight: 500; line-height: 1.5em; color: var(--black); text-shadow: 0 0 10px rgba(0, 0, 0, .3); margin: 0; }

/* ---------- About The Book ---------- */
.book {
  padding: 4em 2em;
  background-color: var(--white); background-position: center center; background-size: cover; background-repeat: no-repeat;
}
.book-inner { display: flex; align-items: center; }
.book-copy { width: 50%; padding: 1em; }
.book-text p { font-family: var(--font-body); font-size: .9rem; font-weight: 400; line-height: 1.5em; color: var(--black); }
.book-buttons { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 18px; }
.book-buttons .btn:nth-child(1) { margin-right: 18px; }
.book-buttons .btn:nth-child(2) { margin-right: 15px; }
.book-image { width: 50%; padding: 1em 10px 10px; display: flex; justify-content: center; position: relative; z-index: 2; }
.book-image picture, .book-image .book-img, .book-image .img-missing { width: 80%; }
.book-image .img-missing { aspect-ratio: 1546 / 1464; }

/* ---------- Testimonials (one slide at a time, dots) ---------- */
.testimonials { background: var(--light); padding: 60px 150px 40px; position: relative; z-index: 9; }
.testim-inner { max-width: var(--boxed); margin-inline: auto; }
.testim-title { font-family: var(--font-alt); font-size: 32px; font-weight: 700; line-height: 1.2; text-transform: uppercase; text-align: center; color: var(--gold); margin-bottom: 50px; }
.slider { position: relative; overflow: hidden; padding-bottom: 50px; margin-bottom: 40px; }
.slider-track { display: flex; transition: transform .8s var(--ease); }
.slide { flex: 0 0 100%; margin: 0; padding: 30px 15px; position: relative; text-align: center; background: transparent; border-radius: 10px; }
.quote-mark { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; color: var(--quote); opacity: .08; pointer-events: none; }
.quote-mark svg { width: 100%; fill: currentColor; }
.stars { display: inline-flex; gap: 5px; color: var(--star); margin-top: 6px; }
.stars .icon { width: 18px; height: 18px; }
.slide-text { margin: 0 auto 5px; max-width: 760px; }
.slide-text p { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.6; color: var(--black); margin: 0 0 18px; }
.slide-author { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.slide-name { font-family: var(--font-alt); font-size: 1.5em; font-weight: 700; line-height: 1.5em; color: var(--dark); margin-bottom: 5px; }
.slide-role { font-size: 18px; color: var(--black); margin-bottom: 4px; }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--dark); cursor: pointer; transition: transform .3s, background-color .3s; }
.dot.is-active { background: var(--gold); transform: scale(1.4); }
.dot:hover { background: var(--gold); }

/* ---------- Footer (Elementor template post-94) ---------- */
.site-footer { color: var(--white); }
.footer-top {
  position: relative; isolation: isolate; padding: 3em 1em 5em;
  background-color: var(--dark); background-position: center center; background-size: cover; background-repeat: no-repeat;
}
.footer-overlay { position: absolute; inset: 0; z-index: -1; background: #000; opacity: .55; }
.footer-col { max-width: var(--boxed); margin-inline: auto; padding: 1em; text-align: center; }
.footer-title { font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1.2em; color: var(--light); margin-bottom: 20px; }
.footer-divider { padding-block: 2px; margin-bottom: 20px; }
.footer-divider span { display: block; width: 20%; margin: 0 auto; border-top: 1px solid #fff; }
.footer-text { color: var(--white); font-size: .9rem; margin-bottom: 20px; }
.footer-form-wrap { max-width: 900px; margin: 0 auto 20px; }
.newsletter-form { position: relative; }
.newsletter-row { display: flex; border-radius: 30px; box-shadow: 0 10px 29px 0 rgba(0, 0, 0, .18); }
.newsletter-row input {
  flex: 1; min-width: 0; padding: 6px 22px; margin: 0;
  font-family: "Jost", var(--font-body); font-size: 1.1rem; font-weight: 300; font-style: italic; line-height: 1.7em;
  color: #000; background: #fff; border: 0; border-radius: 30px 0 0 30px;
}
.newsletter-row input::placeholder { color: #7A7A7A; }
.newsletter-row input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.newsletter-row input[aria-invalid="true"] { outline: 2px solid #EC3C3C; outline-offset: -2px; }
.newsletter-row button {
  flex: none; min-width: 120px; padding: 1px 24px; margin: 0;
  font-family: "Jost", var(--font-body); font-size: .9rem; font-weight: 700; line-height: 1em; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: var(--gold); border: 1px solid var(--gold); border-radius: 0 30px 30px 0; cursor: pointer; transition: background-color .3s, border-color .3s;
}
.newsletter-row button:hover { background: #C25636; border-color: #C25636; }
.form-status { margin: 8px 0 0; min-height: 1.2em; font-family: "Jost", var(--font-body); font-size: .8rem; line-height: 1.7em; }
.form-status.is-ok { color: #fff; }
.form-status.is-error { color: #EC3C3C; }
.newsletter-consent { margin: 2px 0 0; font-family: "Jost", var(--font-body); font-size: .7rem; line-height: 1.7em; color: #fff; opacity: .85; }
.newsletter-form.is-loading button { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 0; margin-bottom: 20px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; color: #fff; transition: color .3s; word-break: break-word; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact .icon { width: 20px; height: 20px; }
.social--footer { gap: 15px; }
.social--footer a { width: calc(20px + 1em); height: calc(20px + 1em); border-radius: 5px; color: var(--light); }
.social--footer .icon { width: 20px; height: 20px; }
.footer-bottom { background: #000; padding: 10px; text-align: center; }
.copyright { margin: 0; font-family: var(--font-body); font-size: .9rem; font-weight: 400; line-height: 1.5em; color: #D8D8D8; }

/* ---------- Message / error pages ---------- */
.page-message { padding: 100px 10px; min-height: 60vh; display: flex; align-items: center; }
.narrow { max-width: 760px; }
.message-card { text-align: center; background: var(--white); border-radius: 10px; padding: 48px 28px; box-shadow: 0 0 25px rgba(0, 0, 0, .08); }
.message-card .eyebrow { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.section-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.2; color: var(--dark); margin-bottom: 16px; }
.lead-text { font-size: 1.05rem; color: var(--text); }
.error-code { font-family: var(--font-head); font-size: 5rem; font-weight: 800; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.message-card .btn--outline { background: transparent; color: var(--dark); }
.message-card .btn--outline:hover { background: var(--gold); color: var(--light); }
.message-card .btn--gold:hover { color: var(--dark); }

/* Image placeholder until the original files are uploaded */
.img-missing {
  display: grid; place-items: center; text-align: center; padding: 24px;
  aspect-ratio: 3 / 4; margin-inline: auto;
  background: linear-gradient(160deg, #e9e9e9, #d8d8d8); border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; color: var(--dark);
}

/* ---------- Video popup ---------- */
.video-dialog { padding: 0; border: 0; background: transparent; width: 100%; max-width: min(1000px, 92vw); overflow: visible; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.video-dialog-inner { position: relative; }
.video-dialog video { width: 100%; max-height: 82vh; background: var(--black); }
.video-close {
  position: absolute; top: -54px; right: 0; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--black); color: var(--white); cursor: pointer;
}
.video-close svg { width: 14px; height: 14px; }

/* ---------- Entrance animations (Elementor fadeInLeft / fadeInRight / fadeIn / zoomIn) ---------- */
.js .anim { opacity: 0; }
.js .anim.is-visible { animation-duration: 1.25s; animation-fill-mode: both; animation-timing-function: var(--ease); }
.js .anim--left.is-visible  { animation-name: fadeInLeft; animation-duration: 2s; }
.js .anim--right.is-visible { animation-name: fadeInRight; }
.js .anim--up.is-visible    { animation-name: fadeIn; }
.js .anim--fade.is-visible  { animation-name: fadeIn; }
.js .anim--zoom.is-visible  { animation-name: zoomIn; animation-delay: .9s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- Desktop-only: fixed forest background (as original) ---------- */
@media (min-width: 1025px) {
  .book { background-attachment: fixed; }
}

/* ---------- Tablet (Elementor ≤1024px) ---------- */
@media (max-width: 1024px) {
  .hero-inner { padding: 1em; }
  .hero-eyebrow { font-size: .7rem; }
  .hero-title { font-size: 3.5rem; }
  .hero-intro { margin: 0 0 22px; }
  .hero-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-card { width: 80%; max-width: 80%; }
  .sec-title { font-size: 2.5rem; }
  .author-text { font-size: 1rem; }
  .author-copy { padding-right: 20px; }
  .book-inner { flex-direction: column; }
  .book-copy, .book-image { width: 100%; }
  .book-image picture, .book-image .book-img, .book-image .img-missing { width: 60%; }
  .testimonials { padding: 100px 25px; }
  .slide-name { font-size: 1em; }
}

@media (max-width: 1024px) {
  .h-col--title { width: 40%; }
  .h-col--nav { width: 60%; justify-content: flex-end; }
  .h-col--social { width: 100%; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000; width: 100%; max-width: 350px; margin: 0;
    background: var(--dark); overflow-y: auto; transform: translateX(-105%); visibility: hidden;
    transition: transform .4s, visibility 0s .4s;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .4s; }
  .nav-identity { display: flex; justify-content: flex-end; padding: 10px 0; }
  .nav-close {
    width: 45px; margin: 12px; padding: 8px; border: 1px solid var(--gold); border-radius: 3px;
    background: var(--gold); color: var(--light); font-family: var(--font-body); font-weight: 600; cursor: pointer; transition: background-color .3s;
  }
  .nav-close:hover { background: transparent; }
  .nav-list { flex-direction: column; height: auto; }
  .nav-list a { padding: 10px 15px; }
  .nav-overlay.is-open { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .3); }
  .footer-col { max-width: 65%; }
  .copyright { font-size: .8rem; }
}

/* ---------- Mobile (Elementor ≤767px) ---------- */
@media (max-width: 767px) {
  .site-title { font-size: 24px; }
  .h-col--title { width: 70%; }
  .h-col--nav { width: 30%; }
  .footer-col { max-width: 100%; padding: 1em 0; }
  .footer-title { font-size: 30px; }
  .footer-text { font-size: 10px; }
  .social--footer .icon { width: 15px; height: 15px; }
  .social--footer a { width: calc(15px + 1em); height: calc(15px + 1em); }
  .copyright { font-size: .7rem; }
  .hero { min-height: 90vh; }
  .hero-inner { padding: 10px; }
  .hero-eyebrow { font-size: 1rem; }
  .hero-title { font-size: 2rem; }
  .hero-title span { font-size: 1.6rem; }
  .hero-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-buttons .btn { font-size: .8rem; letter-spacing: 1.5px; }
  .video-card { width: 100%; max-width: 100%; padding: 90px 0; }
  .sec-title { font-size: 1.7rem; }
  .author { padding: 3em 1em; }
  .author-inner { flex-direction: column; }
  .author-photo, .author-copy { width: 100%; }
  .author-photo { justify-content: flex-start; }
  .author-photo picture, .author-photo .author-img, .author-photo .img-missing { width: 100%; }
  .author-copy { padding: 30px 0 0 10px; }
  .book { padding: 3em 1em; }
  .book-copy { padding: 0; }
  .book-image picture, .book-image .book-img, .book-image .img-missing { width: 80%; }
  .testimonials { padding: 50px 20px; }
  .testim-title { font-size: 26px; margin-bottom: 30px; }
  .slide-text p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .anim { opacity: 1; }
  .hero-bg { transform: none !important; }
}
