/* Minimal scaffold — expand as needed */

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

html {
    scroll-behavior: smooth;
}

/* Reserve space ≈ static header (slightly conservative; too large = white band under hero + heavier cover crop) */
:root {
    --site-header-hero-offset: clamp(4.75rem, 16vw, 8.75rem);
    /* Covers subpixel rounding / dvh vs paint gap so body doesn’t show a sliver under the hero */
    --hero-height-fudge: 18px;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    background: #fff;
}

a {
    color: #0a58ca;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Skip link (accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 0.5rem;
    top: 0.5rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #000;
    z-index: 10000;
}

/* Shared header row layout (static + fixed clone) */
.site-header {
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.75rem;
    min-height: clamp(72px, 18vw, 125px);
    padding: 0.5rem clamp(0.5rem, 2vw, 1.25rem) 0.5rem 0;
}

/* Static + fixed menus: black bar, light text */
.site-header--static,
.site-header--fixed {
    background: #000;
}

/* Static bar — in page flow; scrolls away with content */
.site-header--static {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #333;
}

/* Fixed bar — hidden until 200px scroll (see body.show-fixed-nav) */
.site-header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: clamp(56px, 14vw, 75px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
    pointer-events: none;
}

.site-header--static .site-logo,
.site-header--fixed .site-logo {
    color: #fff;
    margin-left: clamp(0.75rem, 5vw, 100px);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: min(92vw, 420px);
}

.site-header--static a,
.site-header--fixed a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.site-header--static a:hover,
.site-header--static a:focus,
.site-header--fixed a:hover,
.site-header--fixed a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-header .site-nav a:hover:not(.btn-book),
.site-header .site-nav a:focus:not(.btn-book) {
    color: #4391c2;
    text-decoration: underline;
}

.site-header--static .site-logo:hover,
.site-header--static .site-logo:focus,
.site-header--fixed .site-logo:hover,
.site-header--fixed .site-logo:focus {
    text-decoration: none;
}

/* Current page — same blue as Book Adam button (not the button itself) */
.site-header .site-nav a.is-active:not(.btn-book) {
    color: #4391c2;
    font-weight: 700;
    text-decoration: none;
}

.site-header .site-nav a.is-active:not(.btn-book):hover,
.site-header .site-nav a.is-active:not(.btn-book):focus {
    color: #4391c2;
    text-decoration: none;
    opacity: 0.88;
}

body.show-fixed-nav .site-header--fixed {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-logo {
    text-decoration: none;
}

/* Up to 50px tall on wide viewports; scales down with viewport (12.5vw = 50px at 400px wide) */
.site-logo__img {
    display: block;
    width: auto;
    height: auto;
    max-height: min(50px, 12.5vw);
    max-width: min(100%, 75vw);
    object-fit: contain;
    object-position: left center;
}

.site-logo:hover,
.site-logo:focus {
    text-decoration: none;
    opacity: 0.9;
}

.site-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem clamp(0.65rem, 3vw, 2.5rem);
    justify-content: flex-end;
}

.site-nav li {
    display: flex;
    align-items: center;
}

/* Book Adam — black fill, blue border; hover fills blue */
.site-header .site-nav .btn-book {
    display: inline-block;
    padding: 0.45rem clamp(0.5rem, 2vw, 1.1rem);
    margin-right: clamp(0.5rem, 4vw, 75px);
    background: #000;
    border: 2px solid #4391c2;
    border-radius: 0;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header .site-nav .btn-book:hover,
.site-header .site-nav .btn-book:focus {
    background: #4391c2;
    border-color: #4391c2;
    color: #fff;
    text-decoration: none;
}

.site-header .site-nav .btn-book.is-active {
    font-weight: 700;
    text-decoration: none;
}

.site-header .site-nav .btn-book:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Hamburger — hidden on wide screens */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: clamp(0.35rem, 2vw, 1rem);
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.nav-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Slide-out panel (≤600px only; hidden ≥601px) */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.25s ease;
}

.mobile-nav.is-open {
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav.is-open .mobile-nav__backdrop {
    opacity: 1;
}

.mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    background: #000;
    border-left: 1px solid #333;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

.mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
}

.mobile-nav__head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav__link {
    display: block;
    padding: 0.9rem 1.35rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav__link.is-active:not(.mobile-nav__book) {
    color: #4391c2;
    font-weight: 700;
}

.mobile-nav__book {
    margin: 1rem 1.35rem 0;
    padding: 0.55rem 1rem;
    border: 2px solid #4391c2;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.mobile-nav__book:hover,
.mobile-nav__book:focus {
    background: #4391c2;
    color: #fff;
}

.mobile-nav__book.is-active {
    font-weight: 700;
}

@media (min-width: 601px) {
    .mobile-nav {
        display: none !important;
    }

    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .site-header .site-nav {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .site-header {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        row-gap: 0 !important;
    }

    .site-header--static .site-logo,
    .site-header--fixed .site-logo {
        flex: 0 1 auto !important;
        justify-content: flex-start !important;
        margin-left: clamp(0.5rem, 3vw, 1rem) !important;
        max-width: min(68vw, 280px) !important;
    }

    .site-logo__img {
        object-position: left center !important;
    }
}

@media (max-width: 900px) {
    .site-header {
        justify-content: center;
    }

    .site-header--static .site-logo,
    .site-header--fixed .site-logo {
        flex: 1 1 100%;
        justify-content: center;
        margin-left: 0;
        max-width: none;
    }

    .site-logo__img {
        object-position: center;
    }

    .site-nav {
        flex: 1 1 100%;
        justify-content: center;
    }

    .site-nav ul {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding-right: 0.35rem;
        row-gap: 0.5rem;
    }

    .site-nav ul {
        font-size: 0.78rem;
        gap: 0.3rem 0.45rem;
    }

    .site-header .site-nav .btn-book {
        padding: 0.3rem 0.5rem;
        font-size: 0.78rem;
    }
}

/* Booking page — centered block like shawnkanungo.com/booking */
.booking-page {
    background: #fff;
    color: #111;
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

.booking-page__inner {
    max-width: 36rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5.5rem) 1.5rem clamp(3.5rem, 9vw, 6.5rem);
    text-align: center;
}

.booking-page__title {
    margin: 0 0 clamp(2rem, 5vw, 3rem);
    font-family: "Raleway", Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.booking-page__meta {
    margin: 0 0 1.15rem;
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.65;
}

.booking-page__meta:last-of-type {
    margin-bottom: 0;
}

.booking-page__meta strong {
    font-weight: 600;
}

.booking-page__meta a {
    color: #111;
    text-decoration: none;
}

.booking-page__meta a:hover,
.booking-page__meta a:focus {
    opacity: 0.55;
    text-decoration: none;
}

/* Hero: one viewport below the static header (not 100vh in addition to the header) */
.hero {
    box-sizing: border-box;
    min-height: calc(100vh - var(--site-header-hero-offset) + var(--hero-height-fudge));
    height: calc(100vh - var(--site-header-hero-offset) + var(--hero-height-fudge));
    max-height: calc(100vh - var(--site-header-hero-offset) + var(--hero-height-fudge));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3d4a5c;
    background-image: url("../img/hero-placeholder.svg");
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 2rem 1.25rem;
    position: relative;
    z-index: 1;
}

/* dvh tracks the *current* visible viewport; svh stays “small” and leaves a gap when mobile chrome hides */
@supports (height: 100dvh) {
    .hero:not(.hero.hero--book):not(.hero.hero--booking):not(.hero.hero--stream) {
        min-height: calc(100dvh - var(--site-header-hero-offset) + var(--hero-height-fudge));
        height: calc(100dvh - var(--site-header-hero-offset) + var(--hero-height-fudge));
        max-height: calc(100dvh - var(--site-header-hero-offset) + var(--hero-height-fudge));
    }
}

/* After .hero so these override viewport-height rules — booking banner (quoteHeader.jpg 1170×293) */
.hero.hero--booking {
    min-height: unset;
    height: auto;
    max-height: none;
    display: block;
    aspect-ratio: 1170 / 293;
    width: 100%;
    margin-inline: auto;
    padding: 0;
    background: #111 url("../img/quoteHeader.jpg") no-repeat center / cover;
    background-origin: border-box;
}

@supports not (aspect-ratio: 1) {
    .hero.hero--booking {
        min-height: clamp(7rem, 25vw, 18rem);
    }
}

/* Cloudflare Stream hero: 16:9 embed + title band (not full viewport) */
.hero.hero--stream {
    min-height: unset;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background-image: none;
    background-color: #1a1f26;
    padding: 0;
}

.hero.hero--stream .hero__inner {
    max-width: 40rem;
    margin-inline: auto;
    padding: 2rem 1.25rem;
}

.hero--audio-programs {
    background-image: url("../img/audioHerohero.png");
    /* Artwork has headline/type near the top; center+cover was clipping it */
    background-position: center top;
}

/* Audio Programs hero art is 2560×1440 (16:9). Full viewport height + cover on narrow
   screens over-zooms the art; height follows width so it resizes cleanly. */
@media (max-width: 600px) {
    .hero.hero--audio-programs {
        min-height: unset !important;
        max-height: none !important;
        width: 100%;
        padding: 0;
        background-size: cover;
        background-position: center top;
    }

    @supports (aspect-ratio: 1) {
        .hero.hero--audio-programs {
            height: auto !important;
            aspect-ratio: 16 / 9;
        }
    }

    @supports not (aspect-ratio: 1) {
        .hero.hero--audio-programs {
            height: 0 !important;
            padding-bottom: 56.25%; /* 9÷16 — percentage padding is width-based */
        }
    }
}

/* Must beat .hero (higher specificity + shorthand resets placeholder image).
   Do not use 100vh here: landscape artwork + contain + vertical center = huge
   empty bands on narrow screens. Tie height to image aspect (1200×500). */
.hero.hero--book {
    min-height: unset;
    height: auto;
    max-height: none;
    display: block;
    aspect-ratio: 12 / 5;
    width: 100%;
    margin-inline: auto;
    padding: clamp(0.5rem, 2.5vw, 1.5rem) clamp(0.75rem, 4vw, 1.5rem);
    background: #fff url("../img/MedLogo.png") no-repeat center / contain;
    background-origin: content-box;
}

@supports not (aspect-ratio: 1) {
    .hero.hero--book {
        min-height: clamp(9rem, 42vw, 22rem);
    }
}

.hero__inner {
    max-width: 40rem;
}

.hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.hero__tag {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Placeholder block under hero */
.content-section {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

/* Full-width embed for Hypnotist Help store (audio-programs) */
.content-section--hypnotist-store {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.content-section h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.site-footer {
    background: #000;
    color: #fff;
    border-top: 1px solid #333;
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    font-family: "Poppins", "Raleway", Georgia, serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.site-footer > p.site-footer__phone {
    margin: 0;
}

.site-footer > p.site-footer__email {
    margin: 0 0 50px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: none;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin: 25px 0 0;
}

.site-footer__social-link {
    line-height: 0;
}

.site-footer__social-link img {
    display: block;
    height: 32px;
    width: auto;
}

.site-footer__social-link:hover img,
.site-footer__social-link:focus img {
    opacity: 0.8;
}

.site-footer__social-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 2px;
}

/* The Book page — body sections (hero image is .hero.hero--book above) */
.book-page__section {
    max-width: none;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.book-page__section--about {
    background: #fff;
}

.book-page__section--purchase {
    background: #fff;
    padding-bottom: 4rem;
}

.book-page__section-inner {
    max-width: 48rem;
    margin: 0 auto;
}

.book-page__section-inner--wide {
    max-width: 75rem;
}

/* Wider than default content-section so photo + copy fit comfortably in a row */
.book-page__section-inner--about {
    max-width: 62rem;
}

.book-page__title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #4588b9;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* Mobile-first: stack image above copy; row only when there is room */
.book-page__about-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2rem);
    width: 100%;
    min-width: 0;
}

.book-page__about-images {
    flex-shrink: 0;
    width: 100%;
    max-width: min(22rem, 100%);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-page__about-photo {
    display: block;
    width: 100%;
    height: auto;
}

.book-page__about-text {
    width: 100%;
    min-width: 0;
    text-align: left;
}

.book-page__story p {
    color: #34495e;
    font-size: clamp(1rem, 2.4vw, 1.0625rem);
    line-height: 1.75;
    margin: 0 0 1.2rem;
    text-align: left;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 50rem) {
    .book-page__about-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .book-page__about-images {
        flex: 0 1 42%;
        max-width: 42%;
        margin-inline: 0;
    }

    .book-page__about-text {
        flex: 1 1 0;
        min-width: min(100%, 12rem);
    }

    .book-page__story p {
        text-align: justify;
    }

    .book-page__book-layout {
        min-width: 0;
    }

    .book-page__book-copy {
        min-width: 0;
    }
}

.book-page__story p:last-child {
    margin-bottom: 0;
}

.book-page__book-layout {
    display: flex;
    width: 100%;
    gap: 3rem;
    align-items: flex-start;
}

.book-page__book-cover-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.book-page__book-cover {
    width: 100%;
    max-width: 22.5rem;
    height: auto;
}

.book-page__book-copy {
    flex: 1.5;
    text-align: left;
}

.book-page__book-copy p {
    color: #34495e;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.book-page__amazon-btn {
    background: #ff8c00;
    color: #fff;
    border: none;
    min-height: 3.125rem;
    padding: 0 2rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 3.125rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.book-page__amazon-btn:hover,
.book-page__amazon-btn:focus {
    background: #f5a13b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Purchase block: stack on small viewports (about uses mobile-first rules above) */
@media (max-width: 49.99rem) {
    .book-page__book-layout {
        flex-direction: column;
        align-items: center;
    }

    .book-page__book-copy {
        text-align: left;
        width: 100%;
        min-width: 0;
    }

    .book-page__book-cover {
        max-width: 17.5rem;
    }
}

@media (max-width: 480px) {
    .book-page__title {
        font-size: 1.75rem;
    }

    .book-page__amazon-btn {
        width: 100%;
        max-width: 20rem;
        font-size: 1.1rem;
    }
}

/* Back to top — appears after ~one viewport of scroll (see footer script threshold) */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    z-index: 1100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 22px rgba(29, 78, 216, 0.5);
}

.back-to-top:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.back-to-top svg {
    width: 1.35rem;
    height: 1.35rem;
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 1.1rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    .back-to-top svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}
