/* =========================================================
   Soul Pathways — styles.css
   Palette: sage greens, warm sand, soft off-white
   ========================================================= */

:root {
    --c-bg: #faf8f4;
    --c-bg-alt: #f1ece3;
    --c-ink: #2f3a33;
    --c-ink-soft: #5d6b61;
    --c-sage: #7d9b78;
    --c-sage-dark: #5f7e5b;
    --c-violet: #8a7aa8;
    --c-sand: #d8c3a5;
    --c-line: #e4ddd0;
    --c-white: #ffffff;

    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;

    --radius: 14px;
    --radius-lg: 26px;
    --shadow-sm: 0 6px 18px rgba(47, 58, 51, 0.08);
    --shadow-md: 0 18px 40px rgba(47, 58, 51, 0.12);
    --max-w: 1120px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--c-sage-dark);
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--c-ink);
}

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

/* ----------------------- Buttons ----------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    border: 1.5px solid transparent;
}

.btn--primary {
    background: var(--c-sage);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--c-sage-dark);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

/* ----------------------- Header / Nav ----------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line);
}

.nav {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--c-ink);
}

.nav__logo {
    width: 38px;
    height: 38px;
}

.nav__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: var(--c-ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--c-sage-dark);
    background: var(--c-bg-alt);
}

.nav__link.is-active {
    color: var(--c-sage-dark);
}

.nav__link--cta {
    background: var(--c-sage);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
}

.nav__link--cta:hover {
    background: var(--c-sage-dark);
    color: #fff;
}

/* Services dropdown (desktop hover menu) */
.nav__has-dropdown {
    position: relative;
}

.nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav__dropdown-toggle.is-active {
    color: var(--c-sage-dark);
}

.nav__caret {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav__has-dropdown:hover .nav__caret {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translate(-50%, 8px);
    min-width: 190px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}

/* Invisible bridge so the menu stays open while moving the cursor down onto it. */
.nav__dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav__has-dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav__dropdown-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--c-ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav__dropdown-link:hover,
.nav__dropdown-link.is-active {
    background: var(--c-bg-alt);
    color: var(--c-sage-dark);
}

/* Direct Reiki / Soul Healing links only appear on mobile. */
.nav__item--mobile {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-bar {
    width: 26px;
    height: 2px;
    background: var(--c-ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ----------------------- Hero ----------------------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    background: var(--c-bg-alt);
    color: #fff;
    overflow: hidden;
}

/* The background photo lives on a pseudo-element so we can make just the image
   slightly transparent (letting the base colour show through) without fading
   the hero content. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../static/images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /*background: linear-gradient(120deg, rgba(47, 58, 51, 0.62) 0%, rgba(95, 126, 91, 0.42) 100%);*/
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: 80px;
}

/* Glass "card" that lifts the hero copy off the photo, echoing the rounded
   cards further down the page (same radius/border/shadow tokens). */
.hero__card {
    max-width: 620px;
    margin-inline: auto;
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
    background: rgb(57, 84, 68, 0.47);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    /* Fade + rise in once the page has loaded. */
    animation: heroCardIn 2.5s ease-out 0.15s both;
}

@keyframes heroCardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
}

.hero__title {
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 500;
    margin-bottom: 0.3em;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 38ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
    z-index: 2;
}

.hero__scroll-dot {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; transform: translateY(-4px); }
    50% { opacity: 1; transform: translateY(4px); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ----------------------- Sections ----------------------- */
.section {
    padding-block: clamp(64px, 9vw, 120px);
}

.section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c-sage-dark);
    margin: 0 0 12px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.4em;
}

.section__head {
    max-width: 640px;
    margin: 0 auto clamp(36px, 5vw, 60px);
    text-align: center;
}

.section__lead {
    color: var(--c-ink-soft);
    font-size: 1.1rem;
    margin: 0;
}

/* ----------------------- About ----------------------- */
.about {
    background: var(--c-bg);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.about__media {
    position: relative;
    min-height: 420px;
}

.about__photo {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.about__photo--main {
    width: 80%;
    max-width: 340px;
    margin-inline: auto;
    aspect-ratio: 3 / 4;
}


.about__text p {
    color: var(--c-ink-soft);
    margin-bottom: 1.1em;
}

.about__highlights {
    list-style: none;
    padding: 0;
    margin: 1.6em 0 2em;
    display: grid;
    gap: 12px;
}

/* Two copies exist in the markup so the list can sit under the photo on wide
   screens but beneath the paragraphs on mobile. Only one shows per breakpoint. */
.about__highlights--inText {
    display: none;
}

.about__highlights--onMedia {
    width: fit-content;
    max-width: 100%;
    margin: 1.8em auto 0;
}

.about__highlights li {
    position: relative;
    padding-left: 30px;
    color: var(--c-ink);
    font-weight: 600;
}

.about__highlights li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--c-sage);
}

/* ----------------------- Services ----------------------- */
.services {
    background: var(--c-bg-alt);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
    gap: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Whole card acts as a link to its service page. */
.card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Icon + title are centred; body copy stays left-aligned for readability. */
.card__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-bg-alt);
    color: var(--c-sage-dark);
    font-size: 1.6rem;
    margin: 0 auto 22px;
}

.card__title {
    font-size: 1.6rem;
    margin-bottom: 0.4em;
    text-align: center;
}

.card__text {
    color: var(--c-ink-soft);
    margin: 0;
}

.card__more {
    margin-top: 18px;
    color: var(--c-sage-dark);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.card--link:hover .card__more,
.card--link:focus-visible .card__more {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------- Contact ----------------------- */
.contact {
    background: var(--c-bg);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
        "reach   booking"
        "pricing booking";
    gap: clamp(20px, 3vw, 32px) clamp(28px, 5vw, 56px);
    margin-bottom: clamp(40px, 6vw, 64px);
}

.contact__details { grid-area: reach; }
.contact__pricing { grid-area: pricing; }
.contact__schedule { grid-area: booking; }

.contact__subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.6em;
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
    display: grid;
    gap: 14px;
}

.contact__list li {
    display: flex;
    flex-direction: column;
}

/* WhatsApp link with brand-green glyph */
.contact__wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 4px;
}

.contact__wa-icon {
    width: 18px;
    height: 18px;
    color: #25d366;
    flex-shrink: 0;
}

.contact__label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-ink-soft);
}

/* Email "copy to clipboard" button — looks like the other contact links. */
.contact__copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: var(--c-sage-dark);
    cursor: pointer;
    width: fit-content;
    text-align: left;
}

.contact__copy:hover {
    color: var(--c-ink);
}

/* Phone & email actions (copy button on desktop, tel/mailto link on mobile).
   The wrapper shrinks to its content so the click area matches the text, not
   the full column width. */
.contact__action {
    display: block;
    width: fit-content;
}

/* Match the email's hover cue on the phone/email links & WhatsApp so they read
   as actionable too. */
.contact__action a:hover,
.contact__wa:hover {
    color: var(--c-ink);
}

/* Slide-in toast confirming the copy. */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    z-index: 1000;
    background: var(--c-ink);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .toast { transition: opacity 0.2s ease; }
}

.contact__location {
    font-style: normal;
    color: var(--c-ink-soft);
    margin-bottom: 1.2em;
    padding-left: 16px;
    border-left: 3px solid var(--c-sage);
}

.contact__location strong {
    color: var(--c-ink);
}

.contact__location-sub {
    font-size: 0.9rem;
}

/* Pricing lines */
.contact__price {
    color: var(--c-ink-soft);
    margin: 0 0 1em;
}

/* Inline links inside the booking text — made obvious so people know they're
   clickable (the global <a> resets text-decoration off). */
.contact__schedule p a,
.contact__schedule p .contact__copy--inline {
    color: var(--c-sage-dark);
    font-weight: 700;
    transition: color 0.15s ease;
}

.contact__schedule p a:hover,
.contact__schedule p a:focus-visible,
.contact__schedule p .contact__copy--inline:hover,
.contact__schedule p .contact__copy--inline:focus-visible {
    color: var(--c-ink);
}

/* Inline copy button in the booking text — sit inline like a link. */
.contact__copy--inline {
    display: inline;
    vertical-align: baseline;
}

/* Schedule table */
.schedule {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.schedule th,
.schedule td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--c-line);
}

.schedule thead th {
    background: var(--c-sage);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.schedule tbody th {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--c-ink);
}

.schedule tbody tr:last-child th,
.schedule tbody tr:last-child td {
    border-bottom: 0;
}

.schedule tbody tr:nth-child(even) {
    background: var(--c-bg);
}

.schedule__closed {
    color: var(--c-ink-soft);
    font-style: italic;
}

.contact__note {
    font-size: 0.9rem;
    color: var(--c-ink-soft);
    margin-top: 1em;
}

/* Online booking */
.contact__booking {
    margin-bottom: clamp(40px, 6vw, 64px);
    text-align: center;
}

.contact__booking-lead {
    max-width: 60ch;
    margin: 0 auto 1.6em;
    color: var(--c-ink-soft);
}

/* ----------------------- Service pages (Reiki / Soul Healing) ----------------------- */
.service-page__body {
    max-width: 720px;
    margin: 0 auto;
}

.service-page__body h3 {
    font-size: 1.35rem;
    margin: 1.6em 0 0.4em;
    color: var(--c-ink);
}

.service-page__body p {
    color: var(--c-ink-soft);
    margin: 0 0 1.1em;
}

/* Italic gloss that acts as an "in-between" subtitle: sits close under the
   heading, with a clear gap before the paragraph that follows.
   Scoped under .service-page__body so it out-specifies `.service-page__body p`. */
.service-page__body .service-page__gloss {
    margin: -0.1em 0 0.4em;
    color: var(--c-ink);
}

.service-page__body .btn {
    margin-top: 20px;
}

/* Inline links inside body copy — made obvious (bold + hover colour shift),
   matching the WhatsApp/Email links in the booking section. */
.service-page__body p a {
    color: var(--c-sage-dark);
    font-weight: 700;
    transition: color 0.15s ease;
}

.service-page__body p a:hover,
.service-page__body p a:focus-visible {
    color: var(--c-ink);
}

/* Map */
.contact__map-wrap {
    text-align: center;
}

/* Location switcher — sits above the map, aligned to the left. */
.contact__map-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.contact__map-btn {
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--c-line);
    background: var(--c-white);
    color: var(--c-ink-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact__map-btn:hover {
    border-color: var(--c-sage);
    color: var(--c-sage-dark);
}

.contact__map-btn.is-active {
    background: var(--c-sage);
    border-color: var(--c-sage);
    color: #fff;
}

.contact__map {
    position: relative;
    height: 420px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-line);
    z-index: 1;
}

/* Hint shown when a single finger tries to pan the map (touch devices). */
.sp-map-hint {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: rgba(47, 58, 51, 0.55);
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.sp-map-hint.is-visible {
    opacity: 1;
    visibility: visible;
}


/* ----------------------- Footer ----------------------- */
.site-footer {
    background: var(--c-ink);
    color: rgba(255, 255, 255, 0.82);
    padding-block: 48px;
    text-align: center;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
}

.site-footer__logo {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.site-footer__tag {
    margin: 0;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

.site-footer__copy-top, .site-footer__copy-bottom {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ----------------------- Responsive ----------------------- */
@media (max-width: 860px) {
    .nav__toggle {
        display: flex;
    }

    /* Swap the Services hover menu for direct links on touch/small screens. */
    .nav__has-dropdown {
        display: none;
    }

    .nav__item--mobile {
        display: block;
    }

    .nav__menu {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-line);
        padding: 8px 24px 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav__menu.is-open {
        transform: translateY(0);
    }

    .nav__menu li {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: 14px 16px;
        width: 100%;
    }

    .nav__link--cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: 0;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    /* Flip which highlights copy is visible: beneath the paragraphs on mobile. */
    .about__highlights--onMedia {
        display: none;
    }

    .about__highlights--inText {
        display: grid;
    }

    .contact__grid {
        grid-template-areas:
            "reach"
            "booking"
            "pricing";
    }

    .about__media {
        min-height: 0;
        max-width: 420px;
        margin-inline: auto;
    }


    .services__grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .nav__name { font-size: 1.15rem; }
    .hero__actions { width: 100%; }
    .hero__actions .btn { flex: 1; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__scroll-dot { animation: none; }
    .hero__card { animation: none; }
    * { transition: none !important; }
}
