/* ==========================================================================
   Gentle Life theme styles
   Design tokens (colors/fonts/spacing) taken from the source Angular
   project's tailwind.config.js (libs/themes/techwind) so the palette
   matches thegentlelife.org. Hand-written CSS rather than shipping the
   Tailwind framework itself - same visual result, far less weight.
   ========================================================================== */

:root {
    --gl-dark: #3c4858;
    --gl-black: #161c2d;
    --gl-purple: #775c6a;
    --gl-rose: #f4828c;
    --gl-dustypink: #FDCFB7;
    --gl-green: #8EB9A8;
    --gl-yellow: #FEFBD0;
    --gl-footer-bg: #001F3F;
    --gl-max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: var(--gl-dark);
    background: #f8fafc;
    line-height: 1.6;
    /* The decorative curve SVGs are scaled 2x horizontally - without this
       (and overflow:hidden on each curve wrapper) they widen the page and
       create a horizontal scrollbar that shifts the whole layout. */
    overflow-x: hidden;
}

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

a { text-decoration: none; color: var(--gl-purple); transition: color .3s ease; }

p { margin: 0 0 1.5em; line-height: 1.8; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; margin: 0; color: var(--gl-black); }

.gl-container {
    width: 100%;
    max-width: var(--gl-max-width);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 1024px) { .gl-container { padding: 0 45px; } }
@media (min-width: 1536px) { .gl-container { padding: 0 5rem; } }

.gl-section { margin-top: 4rem; }
.gl-center { text-align: center; }
.gl-eyebrow { color: var(--gl-purple); font-size: .8rem; font-weight: 700; text-transform: uppercase; margin-bottom: .5rem; }
.gl-h3 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 1rem; }
@media (min-width: 768px) { .gl-h3 { font-size: 2rem; } }
.gl-muted { color: var(--gl-purple); max-width: 40rem; }
.gl-accent { color: var(--gl-purple); }
.gl-quote { font-style: italic; }

/* Buttons - the source project globally overrides every CTA to the same
   rose-fill / purple-hover treatment regardless of "filled" vs "outline"
   variant, so one button style covers all CTAs here. */
.gl-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .6rem 1.4rem;
    border-radius: 999px;
    background: var(--gl-rose);
    border: 1px solid var(--gl-rose);
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all .3s ease;
}
.gl-btn:hover {
    background: var(--gl-purple);
    border-color: var(--gl-purple);
    color: #fff;
}
.gl-btn i { margin-right: .35rem; }

/* ---- Navbar ---- */
.gl-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(60, 72, 88, .08);
}
.gl-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
}
.gl-navbar__logo img { max-height: 50px; width: auto; }
.gl-navbar__menu { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.gl-navbar__menu a { color: var(--gl-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; transition: color .3s ease; }
.gl-navbar__menu a:hover,
.gl-navbar__menu a.is-active,
.gl-navbar__menu li.current-menu-item a { color: var(--gl-rose); }
.gl-navbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.gl-navbar__toggle span { width: 24px; height: 2px; background: var(--gl-dark); display: block; }

@media (max-width: 900px) {
    .gl-navbar__toggle { display: flex; }
    .gl-navbar__menu-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 15px rgba(60, 72, 88, .1);
    }
    .gl-navbar__menu-wrap.is-open { display: block; }
    .gl-navbar__menu { flex-direction: column; gap: 0; padding: 1rem 1.25rem; }
    .gl-navbar__menu li { border-bottom: 1px solid #f1f1f1; padding: .75rem 0; }
}

/* ---- Hero ---- */
.gl-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 6rem 0;
}
.gl-hero__overlay { position: absolute; inset: 0; background: rgba(255,255,255,0); }
.gl-hero__inner { position: relative; text-align: center; }
.gl-hero__title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--gl-purple);
    margin-bottom: 1rem;
    font-weight: 700;
}
@media (min-width: 1024px) { .gl-hero__title { font-size: 3.75rem; } }
.gl-hero__desc { color: var(--gl-purple); max-width: 60rem; margin: 0 auto; font-size: 1.05rem; }
.gl-hero__curve { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; color: #f8fafc; overflow: hidden; }
.gl-hero__curve svg { width: 100%; height: auto; transform: scale(2); transform-origin: top; }

/* ---- Intro card ---- */
.gl-intro-card {
    background: var(--gl-purple);
    color: #fff;
    padding: 2.5rem;
    border-radius: 1.75rem;
    box-shadow: 0 5px 13px rgba(60, 72, 88, .2);
    max-width: 64rem;
    margin: 0 auto;
}
.gl-intro-card p { color: #fff; }
.gl-intro-card strong,
.gl-intro-card .gl-accent { color: var(--gl-rose); }
.gl-intro-card .gl-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.gl-intro-card .gl-btn:hover { background: var(--gl-rose); border-color: var(--gl-rose); }

/* ---- Book section ---- */
.gl-book { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .gl-book { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.gl-book__cover img { max-width: 260px; margin: 0 auto; border-radius: 6px; box-shadow: 0 10px 25px rgba(60,72,88,.2); }

/* ---- About section ---- */
.gl-about { position: relative; margin-top: 4rem; padding: 5rem 0; }
.gl-about__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .gl-about__inner { grid-template-columns: 5fr 7fr; } }
.gl-about__image { position: relative; max-width: 22rem; margin: 0 auto; }
.gl-about__image img:first-child { border-radius: 50%; box-shadow: 0 10px 25px rgba(60,72,88,.2); position: relative; z-index: 1; }
.gl-about__dots { position: absolute; top: -1.5rem; left: -1.5rem; width: 5rem; z-index: 0; }
.gl-about__content p { color: #fff; }
.gl-about__curve { line-height: 0; color: #f8fafc; overflow: hidden; }
.gl-about__curve svg { width: 100%; height: auto; transform: scale(2); }
.gl-about__curve--top { transform-origin: bottom; }
.gl-about__curve--bottom { transform-origin: top; }

/* ---- Testimonials ---- */
.gl-section__head { text-align: center; margin-bottom: 2.5rem; }
.gl-testimonials__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}
.gl-testimonial {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 320px;
    background: var(--gl-dustypink);
    border-radius: 1.5rem;
    padding: 1.75rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(60,72,88,.15);
}
.gl-testimonial i.mdi-format-quote-open { font-size: 2rem; color: var(--gl-purple); }
.gl-testimonial p { color: var(--gl-purple); font-size: .95rem; }
.gl-stars { list-style: none; padding: 0; margin: .5rem 0 0; color: var(--gl-yellow); }
.gl-stars li { display: inline; }
.gl-stars i { color: #f5c344; }
.gl-testimonial h6 { margin-top: .75rem; color: var(--gl-purple); }
.gl-testimonial span { font-size: .8rem; color: var(--gl-purple); }

/* ---- Blog ---- */
.gl-blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .gl-blog-grid { grid-template-columns: repeat(2, 1fr); } }
.gl-blog-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(60,72,88,.15);
    display: flex;
    flex-direction: column;
}
.gl-blog-card__image img { width: 100%; height: 220px; object-fit: cover; }
.gl-blog-card__body { padding: 1.5rem; }
.gl-blog-card__date { font-size: .8rem; color: var(--gl-rose); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.gl-blog-card__body h4 { margin: .5rem 0; font-size: 1.25rem; }
.gl-blog-card__body h4 a { color: var(--gl-black); }
.gl-blog-card__body h4 a:hover { color: var(--gl-rose); }
.gl-blog-card__body p { color: var(--gl-purple); font-size: .95rem; }
.gl-blog-card__more { font-weight: 700; color: var(--gl-purple); }
.gl-blog-card__more:hover { color: var(--gl-rose); }

/* ---- Inner-page banner (about/coaching/book/contact) ----
   Matches the source's lib-header: tall full-bleed image, vertically
   centered white title + description, curve into the page background. */
.gl-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: 8rem 0 6rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
}
.gl-banner__overlay { position: absolute; inset: 0; background: rgba(22,28,45,.4); }
.gl-banner__inner { position: relative; animation: gl-fade-up .8s ease both; }
.gl-banner__title { font-size: 2.25rem; font-weight: 500; color: #fff; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .gl-banner__title { font-size: 2.75rem; } }
.gl-banner__desc { color: #e2e8f0; max-width: 46rem; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.gl-banner__curve { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; color: #f8fafc; overflow: hidden; }
.gl-banner__curve svg { width: 100%; height: auto; transform: scale(2); transform-origin: top; }

@keyframes gl-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* Scroll-reveal (applied by main.js via IntersectionObserver) */
.gl-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.gl-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .gl-reveal { opacity: 1; transform: none; transition: none; }
    .gl-banner__inner { animation: none; }
}

/* ---- Generic prose page content ---- */
.gl-prose { max-width: 48rem; margin: 0 auto; }
.gl-prose p { color: var(--gl-dark); }
.gl-prose h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.gl-prose ul { color: var(--gl-dark); padding-left: 1.25rem; }
.gl-prose li { margin-bottom: .5rem; }

/* ---- Coaching pages (benefits/offerings) ---- */
.gl-benefits { max-width: 48rem; margin: 0 auto; }
.gl-benefits p { color: var(--gl-purple); font-size: 1.05rem; }
.gl-benefits h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--gl-black); }
.gl-benefit-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .gl-benefit-grid { grid-template-columns: 1fr 1fr; } }
.gl-benefit-card { background: #f8f5f6; border-radius: 1rem; padding: 1.5rem; }
.gl-benefit-card h3 { font-size: 1.2rem; margin-bottom: .75rem; color: var(--gl-purple); }
.gl-benefit-card ul { color: var(--gl-purple); padding-left: 1.1rem; margin: 0; }
.gl-benefit-card li { margin-bottom: .5rem; }

/* ---- Book page ---- */
.gl-book-hero { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; padding: 3rem 0; }
@media (min-width: 900px) { .gl-book-hero { grid-template-columns: 1fr 1fr; } }
.gl-book-hero h1 { font-size: 2.25rem; margin-bottom: .5rem; }
.gl-book-hero__subtitle { color: var(--gl-rose); font-weight: 600; margin-bottom: 1rem; }
.gl-book-hero__actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.gl-book-hero__side { display: grid; grid-template-columns: 5fr 7fr; gap: 1.5rem; align-items: center; }
.gl-book-hero__side img.gl-book-hero__cover { border-radius: .5rem; box-shadow: 0 10px 25px rgba(60,72,88,.2); }
.gl-book-hero__author { text-align: center; }
.gl-book-hero__author img { border-radius: 1.5rem; margin-bottom: .75rem; box-shadow: 0 5px 13px rgba(60,72,88,.2); }
.gl-book-about {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 5px 13px rgba(60,72,88,.2);
    max-width: 50rem;
    margin: 3rem auto;
}
.gl-book-about h2 { text-align: center; margin-bottom: 1rem; }
.gl-book-about p { color: var(--gl-dark); }

/* ---- Contact page ---- */
.gl-contact { text-align: center; padding: 3rem 0; }
.gl-contact h2 { color: var(--gl-rose); font-size: 1.5rem; margin-bottom: 1rem; }
.gl-contact h3 { color: var(--gl-rose); font-size: 1.1rem; font-weight: 500; max-width: 40rem; margin: 0 auto 2.5rem; }
.gl-contact__icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    background: rgba(244,130,140,.1);
    color: var(--gl-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}
.gl-contact__title { font-size: 1.1rem; margin-bottom: .5rem; }

.gl-post__image { margin: 1.5rem 0; border-radius: 1.25rem; overflow: hidden; }
.gl-post__image img { width: 100%; }
.gl-page__content { max-width: 46rem; }
.gl-page__content p { color: var(--gl-dark); }

/* ---- Footer ---- */
.gl-footer { background: var(--gl-footer-bg); color: #e2e8f0; margin-top: 5rem; padding: 3.5rem 0 0; }
.gl-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .gl-footer__grid { grid-template-columns: 1.6fr 1.2fr 1fr; column-gap: 2rem; } }
.gl-footer__brand img { max-height: 40px; margin-bottom: 1rem; }
.gl-footer h5 { color: #f8fafc; letter-spacing: .05em; margin-bottom: 1rem; }
.gl-footer__menu { list-style: none; padding: 0; margin: 0; }
.gl-footer__menu li { margin-bottom: .6rem; }
.gl-footer__menu a { color: #cbd5e1; }
.gl-footer__menu a:hover { color: #fff; }
.gl-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 1.25rem 0; }
.gl-footer__bottom a { color: #fff; }
.gl-footer__bottom i { color: var(--gl-rose); }

/* ---- Back to top ---- */
.gl-back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gl-purple);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 5px 13px rgba(60,72,88,.3);
}
.gl-back-to-top.is-visible { display: flex; }

/* ---- Card hover polish ---- */
.gl-blog-card,
.gl-benefit-card,
.gl-testimonial { transition: transform .3s ease, box-shadow .3s ease; }
.gl-blog-card:hover,
.gl-benefit-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(60,72,88,.15); }

/* ---- Swup fade transition ---- */
html.is-changing .transition-fade { opacity: 0; transform: translateY(10px); }
.transition-fade { transition: opacity .3s ease, transform .3s ease; opacity: 1; transform: none; }
