/* =============================================
   JULY LIFE COACH — Design System
   Serene, warm, Buddhist-inspired
   ============================================= */

:root {
    /* Colors — warm, earthy, serene */
    --bg: #FAF8F5;
    --bg-alt: #F3F0EB;
    --bg-accent: #EDE8E0;
    --text: #2D2A26;
    --text-secondary: #6B6560;
    --text-tertiary: #9C9590;
    --accent: #7C9A82;
    --accent-hover: #6B8A72;
    --accent-light: rgba(124, 154, 130, 0.1);
    --gold: #C9A96E;
    --gold-light: rgba(201, 169, 110, 0.12);
    --border: rgba(45, 42, 38, 0.08);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-py: clamp(4rem, 8vw, 7rem);
    --container-max: 1100px;
    --container-px: clamp(1.25rem, 4vw, 2.5rem);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.section {
    padding: var(--section-py) 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent-light);
    color: var(--accent) !important;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 500 !important;
}

.nav-cta:hover {
    background: var(--accent);
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    padding-top: calc(64px + var(--section-py));
    padding-bottom: var(--section-py);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    position: relative;
    z-index: 1;
}

.hero-pre {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s var(--ease) both;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text);
    animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-cta {
    animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero-cta-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}

.hero-accent {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    color: var(--accent);
    opacity: 0.5;
    pointer-events: none;
}

.signup-embed {
    max-width: 480px;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.about-learn-more {
    margin-top: 0.75rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    max-height: 400px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(45, 42, 38, 0.1);
}

/* =============================================
   BOOKS
   ============================================= */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border);
    background: white;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(45, 42, 38, 0.08);
}

.book-cover {
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-alt));
    padding: 2.5rem 2rem;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.book-card:nth-child(1) .book-cover {
    background: linear-gradient(135deg, #E8EDE9, #D5DDD7);
}

.book-card:nth-child(2) .book-cover {
    background: linear-gradient(135deg, #EDE8E0, #DDD5C8);
}

.book-card:nth-child(3) .book-cover {
    background: linear-gradient(135deg, #E0E5ED, #C8D0DD);
}

.book-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: rgba(45, 42, 38, 0.1);
}

.book-cover-inner h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.book-cover-inner p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.book-meta {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 500;
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 100px;
}

.book-link {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.book-card:hover .book-link {
    color: var(--accent);
}

/* =============================================
   COACHING
   ============================================= */
.coaching {
    background: var(--bg-alt);
}

.coaching-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.coaching-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.coaching-card:hover {
    box-shadow: 0 8px 30px rgba(45, 42, 38, 0.06);
}

.coaching-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.coaching-card h3 {
    margin-bottom: 0.75rem;
}

.coaching-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.coaching-features {
    margin-bottom: 1.5rem;
}

.coaching-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.coaching-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.coaching-quiz {
    text-align: center;
    padding: 2rem;
    background: var(--gold-light);
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.coaching-quiz p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--text);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =============================================
   WRITINGS
   ============================================= */
.writings-list {
    max-width: 700px;
}

.writing-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.writing-item:first-child {
    border-top: 1px solid var(--border);
}

.writing-item:hover {
    padding-left: 0.5rem;
}

.writing-item:hover .writing-title {
    color: var(--accent);
}

.writing-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    min-width: 50px;
    font-weight: 500;
}

.writing-title {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text);
    transition: var(--transition);
}

.writing-arrow {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0;
}

.writing-item:hover .writing-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.writings-more {
    margin-top: 2.5rem;
}

/* =============================================
   FINAL CTA
   ============================================= */
.cta-final {
    background: var(--bg-alt);
    text-align: center;
}

.cta-final h2 {
    margin-bottom: 0.75rem;
}

.cta-final p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.signup-embed-footer {
    max-width: 480px;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--text);
    color: rgba(250, 248, 245, 0.7);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--bg);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(250, 248, 245, 0.4);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--bg);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(250, 248, 245, 0.08);
    padding-top: 1.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem var(--container-px);
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-accent {
        display: none;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .coaching-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .writing-item {
        gap: 1rem;
    }

    .coaching-card {
        padding: 1.5rem;
    }
}