/* ============================================================
   NEW CHAPTER CARE — BASE STYLES
   Typography, Reset, Utilities, Layout
   ============================================================ */

/* ── Google Fonts Import ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

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

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
        background-color 0.8s ease,
        color 0.8s ease;
}

/* ── Typography Scale ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    transition: color 0.8s ease;
}

h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    transition: color 0.8s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--wide {
    max-width: 1400px;
}

/* ── Section Spacing ──────────────────────────────────────── */
.section {
    padding: 7rem 0;
    transition: background-color 0.8s ease;
}

.section--alt {
    background: var(--gradient-section);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4.5rem;
}

.section-header .overline {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: color 0.8s ease;
}

.section-header h2 {
    margin-bottom: 1.2rem;
}

.section-header p {
    font-size: 1.08rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Decorative Divider ───────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.2rem auto;
}

.divider__line {
    width: 48px;
    height: 1px;
    background: var(--color-primary-light);
    opacity: 0.5;
    transition: background 0.8s ease;
}

.divider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    transition: background 0.8s ease;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 2px;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    outline: none;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--color-cta);
    color: #FFFFFF;
}

.btn--primary:hover {
    background: var(--color-cta-hover);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

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

.btn--outline:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

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

.btn--white:hover {
    background: var(--color-primary-pale);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-primary    { color: var(--color-primary); }
.text-muted      { color: var(--color-text-muted); }
.text-center     { text-align: center; }
.text-italic     { font-style: italic; }

.italic-serif {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
}

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-36px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(36px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Responsive Helpers ───────────────────────────────────── */
@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}
