/* ═══════════════════════════════════════════════════════════
   CurlRoutine – Global Styles
   ═══════════════════════════════════════════════════════════ */

:root {
    --plum-dark:    #2d1b33;
    --plum-medium:  #4a2d5e;
    --plum-light:   #6b3f8a;
    --lavender:     #c9a8e8;
    --rose-gold:    #e8b4b8;
    --cream:        #faf5f0;
    --warm-white:   #fff8f2;
    --text-dark:    #2d1b33;
    --text-muted:   rgba(45,27,51,0.65);
    --accent-gold:  #d4a574;
    --border-light: rgba(45,27,51,0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Announcement Bar ────────────────────────────────────── */
.announcement-bar {
    background: var(--plum-light);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: relative;
}
.announcement-track {
    display: flex;
    white-space: nowrap;
    animation: announcement-scroll 28s linear infinite;
}
.announcement-track:hover { animation-play-state: paused; }
.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 3rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.03em;
}
.announcement-item a {
    color: var(--rose-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.announcement-item a:hover { color: #fff; }
.announcement-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--lavender); opacity: 0.5;
    flex-shrink: 0; align-self: center;
}
@keyframes announcement-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Shop by Hair Type ──────────────────────────────────── */
.shop-by-type {
    max-width: 1200px; margin: 0 auto;
    padding: 3.5rem 1.5rem 1rem;
}
.shop-by-type-header {
    text-align: center; margin-bottom: 2rem;
}
.shop-by-type-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 700; color: var(--plum-dark); margin: 0 0 0.4rem;
}
.shop-by-type-header p {
    font-size: 0.92rem; color: var(--text-muted); margin: 0;
}
.hair-type-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.hair-type-card {
    position: relative; border-radius: 16px; overflow: hidden;
    aspect-ratio: 1/1; text-decoration: none; color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hair-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(45,27,51,0.25);
}
.hair-type-card img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}
.hair-type-card:hover img { transform: scale(1.05); }
.hair-type-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(45,27,51,0.85) 0%, rgba(45,27,51,0.15) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
}
.hair-type-card-label {
    font-family: 'DM Sans', sans-serif; font-size: 0.65rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--rose-gold); margin: 0 0 0.25rem;
}
.hair-type-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 700; margin: 0 0 0.3rem; line-height: 1.2;
}
.hair-type-card-desc {
    font-size: 0.8rem; color: rgba(255,255,255,0.8);
    margin: 0 0 0.75rem; line-height: 1.4;
}
.hair-type-card-cta {
    font-family: 'DM Sans', sans-serif; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--rose-gold);
}
@media (max-width: 640px) {
    .hair-type-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .hair-type-card { aspect-ratio: 16/9; }
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--plum-dark);
    border-bottom: 1px solid rgba(201,168,232,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(250,245,240,0.8);
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--lavender); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, rgba(45,27,51,0.82) 0%, rgba(74,45,94,0.78) 50%, rgba(107,63,138,0.72) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 1.25rem;
}

.main-title { margin-bottom: 1.5rem; }
.title-line {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1.1;
}
.subtitle {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    font-weight: 400;
    color: var(--lavender);
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
}

.hero-description {
    font-size: 1rem;
    color: rgba(250,245,240,0.8);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--rose-gold);
    color: var(--plum-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-hero-primary:hover { background: #d9a0a5; }

.btn-hero-secondary {
    border: 1.5px solid rgba(250,245,240,0.35);
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    transition: border-color 0.2s;
}
.btn-hero-secondary:hover { border-color: var(--lavender); }

/* Decorative curl swirl */
.curl-swirl {
    position: absolute;
    opacity: 0.06;
    font-size: 15rem;
    color: var(--lavender);
}
.curl-swirl:nth-child(1) { top: -2rem; left: -3rem; animation: floatCurl 6s ease-in-out infinite; }
.curl-swirl:nth-child(2) { bottom: -2rem; right: -3rem; transform: rotate(180deg); animation: floatCurl 6s ease-in-out infinite 3s; }

@keyframes floatCurl {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}
.curl-swirl:nth-child(2) {
    animation-name: floatCurl2;
}
@keyframes floatCurl2 {
    0%, 100% { transform: translateY(0) rotate(180deg); }
    50% { transform: translateY(-15px) rotate(185deg); }
}

/* ── Scroll reveal animations ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero entrance animation ────────────────────────────── */
.hero-inner > * {
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.7s; }

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

/* ── Stats bar ──────────────────────────────────────────── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem 1.5rem;
    background: var(--plum-dark);
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rose-gold);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250,245,240,0.6);
    margin-top: 0.25rem;
}

/* ── Section containers ──────────────────────────────────── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }

/* ── Editorial headers ───────────────────────────────────── */
.editorial-header { text-align: center; margin-bottom: 3rem; }
.editorial-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-bottom: 0.75rem;
}
.editorial-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}
.editorial-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Guide cards ─────────────────────────────────────────── */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.guide-card:hover {
    box-shadow: 0 14px 40px rgba(45,27,51,0.12);
    transform: translateY(-4px);
}
.guide-card--featured { grid-column: span 1; }

.guide-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-light);
    padding: 1.25rem 1.25rem 0;
}

.guide-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1.25rem 0;
    line-height: 1.25;
}

.guide-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem 0;
    line-height: 1.6;
    flex-grow: 1;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    font-size: 0.75rem;
}
.guide-time { color: var(--text-muted); }
.guide-cta { color: var(--plum-light); font-weight: 600; }

/* ── Trust section ───────────────────────────────────────── */
.trust-section { background: var(--warm-white); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }

.trust-pillar { text-align: center; padding: 1.5rem; }
.trust-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107,63,138,0.08);
    border-radius: 50%;
    color: var(--plum-light);
}
.trust-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.trust-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
    max-width: 1200px; margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.testimonial-card {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 14px; padding: 1.75rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-stars {
    color: var(--accent-gold); font-size: 0.9rem; letter-spacing: 2px;
}
.testimonial-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 500; font-style: italic;
    line-height: 1.5; color: var(--plum-dark); flex: 1;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.75rem;
}
.testimonial-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--lavender); color: var(--plum-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 700;
}
.testimonial-name {
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
    font-weight: 600; color: var(--plum-dark); margin: 0;
}
.testimonial-type {
    font-size: 0.72rem; color: var(--text-muted); margin: 0;
}
@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ── Styling Tutorials ───────────────────────────────────── */
.tutorials-section {
    max-width: 1200px; margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}
.tutorials-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.tutorial-card {
    display: flex; gap: 1.25rem;
    background: var(--warm-white); border: 1px solid var(--border-light);
    border-radius: 14px; padding: 1.5rem;
    text-decoration: none; color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45,27,51,0.12);
}
.tutorial-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(107,63,138,0.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tutorial-icon svg { color: var(--plum-light); }
.tutorial-content { flex: 1; }
.tutorial-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem;
    color: var(--plum-dark);
}
.tutorial-curl-types {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--plum-light); margin: 0 0 0.4rem;
}
.tutorial-content p {
    font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.5; margin: 0 0 0.5rem;
}
.tutorial-cta {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--rose-gold);
}
@media (max-width: 768px) {
    .tutorials-grid { grid-template-columns: 1fr; }
}

/* ── Product picks ───────────────────────────────────────── */
.top-picks-header { text-align: center; margin-bottom: 1.5rem; }
.dark-label { color: var(--plum-light); }
.top-picks-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-dark);
}
.top-picks-desc { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.5rem; }

.last-updated-inline {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-size: 0.82rem; font-weight: 500; }
.filter-group select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--warm-white);
}
.items-count { font-size: 0.82rem; color: var(--text-muted); }

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.chip {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
}
.chip:hover { border-color: var(--plum-light); color: var(--plum-light); }
.chip.active {
    background: var(--plum-dark);
    color: var(--cream);
    border-color: var(--plum-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(45,27,51,0.12);
    transform: translateY(-3px);
}
.product-card img {
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}
.product-card .product-info { padding: 1rem 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-card .product-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-bottom: 0.35rem;
}
.product-card .product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-card .product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}
.product-card .product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
}
.product-card .product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--plum-dark);
}
.product-card .product-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.product-card .product-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--plum-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}
.product-card .product-link:hover {
    color: var(--plum-dark);
}
.product-card .product-review-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cream);
    background: var(--plum-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.product-card .product-review-link:hover {
    background: var(--plum-medium);
}
.product-card a { text-decoration: none; color: inherit; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination button {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
}
.pagination button.active, .pagination button:hover {
    background: var(--plum-dark);
    color: var(--cream);
    border-color: var(--plum-dark);
}

/* ── All guides panel ────────────────────────────────────── */
.all-guides-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: var(--plum-dark);
    border-radius: 14px;
    padding: 2.5rem;
}
.all-guides-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 0.75rem;
}
.all-guides-list { list-style: none; }
.all-guides-list li { margin-bottom: 0.4rem; }
.all-guides-list a {
    font-size: 0.85rem;
    color: rgba(250,245,240,0.75);
    transition: color 0.2s;
}
.all-guides-list a:hover { color: var(--rose-gold); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--plum-dark);
    color: var(--cream);
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 2rem;
}
.footer-brand h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; color: rgba(250,245,240,0.7); }

.footer-links h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(250,245,240,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--rose-gold); }

.footer-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(250,245,240,0.5);
    padding-top: 1rem;
    border-top: 1px solid rgba(250,245,240,0.1);
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(250,245,240,0.4);
    padding: 1rem 1.5rem 2rem;
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--plum-dark);
    color: var(--cream);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--plum-medium); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--plum-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.25rem;
        transition: right 0.3s ease;
        z-index: 95;
    }
    .site-nav.open { right: 0; }
    .nav-overlay.open { display: block; }

    .hero { padding: 4rem 1.5rem; }
    .guides-grid { grid-template-columns: 1fr; }
    .all-guides-panel { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
}

/* ── Search Overlay ─────────────────────────────────────── */
.search-toggle {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: rgba(250,245,240,0.8); transition: color 0.2s; display: flex; align-items: center;
}
.search-toggle:hover { color: var(--lavender); }
.search-toggle .search-kbd {
    font-family: 'DM Sans', sans-serif; font-size: 0.65rem; font-weight: 600;
    color: rgba(250,245,240,0.4); border: 1px solid rgba(250,245,240,0.2);
    border-radius: 4px; padding: 1px 5px; margin-left: 6px;
}
@media (max-width: 768px) { .search-toggle .search-kbd { display: none; } }

.search-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(45,27,51,0.7); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center; align-items: flex-start; padding-top: 12vh;
}
.search-overlay.open { display: flex; }

.search-modal {
    background: var(--warm-white); border-radius: 16px;
    width: 90%; max-width: 560px; max-height: 70vh;
    box-shadow: 0 24px 80px rgba(45,27,51,0.35);
    display: flex; flex-direction: column; overflow: hidden;
    animation: searchSlideIn 0.2s ease-out;
}
@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-wrap {
    display: flex; align-items: center; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light); gap: 0.75rem;
}
.search-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-input {
    flex: 1; border: none; outline: none; background: none;
    font-family: 'DM Sans', sans-serif; font-size: 1rem;
    color: var(--text-dark);
}
.search-input::placeholder { color: rgba(45,27,51,0.35); }
.search-close {
    background: none; border: 1px solid var(--border-light); border-radius: 6px;
    cursor: pointer; padding: 2px 8px; font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    transition: 0.2s; flex-shrink: 0;
}
.search-close:hover { background: var(--border-light); }

.search-results {
    overflow-y: auto; padding: 0.5rem 0; flex: 1;
}
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

.search-result-group {
    padding: 0.5rem 1.25rem 0.25rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}

.search-result {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.65rem 1.25rem; cursor: pointer; transition: background 0.15s;
    text-decoration: none; color: inherit;
}
.search-result:hover, .search-result.active { background: rgba(201,168,232,0.1); }

.search-result-icon {
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--cream);
    margin-top: 2px;
}
.search-result-icon.blog { background: var(--plum-light); }
.search-result-icon.page { background: var(--rose-gold); }
.search-result-icon.tool { background: var(--accent-gold); }
.search-result-icon.glossary { background: #7d9b8f; }
.search-result-icon.product { background: var(--plum-medium); }

.search-result-text { flex: 1; min-width: 0; }
.search-result-title {
    font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
    color: var(--plum-dark); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-title mark {
    background: rgba(201,168,232,0.3); color: inherit; border-radius: 2px;
    padding: 0 1px;
}
.search-result-desc {
    font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: var(--text-muted);
    line-height: 1.4; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-result-badge {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--plum-light); margin-top: 3px;
}

.search-empty {
    padding: 2.5rem 1.25rem; text-align: center;
    font-family: 'DM Sans', sans-serif; color: var(--text-muted);
}
.search-empty p { font-size: 0.92rem; margin-bottom: 0.25rem; }
.search-empty span { font-size: 0.8rem; }

.search-footer {
    padding: 0.6rem 1.25rem; border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'DM Sans', sans-serif; font-size: 0.7rem; color: var(--text-muted);
}
.search-footer kbd {
    display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 0.62rem;
    font-weight: 600; padding: 1px 5px; border: 1px solid var(--border-light);
    border-radius: 4px; margin: 0 2px; background: var(--cream);
}
