/* ============================================================
   EDITORIAL TEMPLATE — THEME STYLES
   ============================================================ */

/* ---- THEME VARIABLES ---- */
:root {
    --ed-bg: #ffffff;
    --ed-bg-alt: #f7f7fb;
    --ed-bg-card: #ffffff;
    --ed-text: #1a1a2e;
    --ed-text-muted: #5a5a7a;
    --ed-text-faint: #8a8aa0;
    --ed-border: #e8e8f0;
    --ed-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --ed-card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    --ed-nav-scrolled-bg: rgba(255, 255, 255, 0.97);
    --ed-nav-text: #1a1a2e;
    --ed-nav-text-muted: rgba(26, 26, 46, 0.65);
    --ed-footer-bg: #0d1322;
    --ed-fiction-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ed-nonfiction-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --ed-academic-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="dark"] {
    --ed-bg: #1e2433;
    --ed-bg-alt: #232a3a;
    --ed-bg-card: #252d40;
    --ed-text: #e4e6ed;
    --ed-text-muted: #a0a6ba;
    --ed-text-faint: #747a90;
    --ed-border: rgba(255, 255, 255, 0.1);
    --ed-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --ed-card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    --ed-nav-scrolled-bg: rgba(30, 36, 51, 0.97);
    --ed-nav-text: #e4e6ed;
    --ed-nav-text-muted: rgba(228, 230, 237, 0.6);
    --ed-footer-bg: #141a26;
}

[data-theme="dark"] body {
    background: var(--ed-bg);
    color: var(--ed-text);
}

[data-theme="dark"] .section:not(.section-dark) {
    background: var(--ed-bg);
    color: var(--ed-text);
}

[data-theme="dark"] .section-title {
    color: var(--ed-text);
}

[data-theme="dark"] .section-subtitle {
    color: var(--ed-text-muted);
}

[data-theme="dark"] .footer {
    background: var(--ed-footer-bg);
}


/* ---- PAGE ROUTING ---- */
.page {
    display: none;
}

.page--active {
    display: block;
    animation: pageFadeIn 0.45s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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


/* ---- SCROLL ANIMATIONS ---- */
.service-block,
.editor-card,
.author-card,
.review-card,
.publishers__benefit {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.35s ease;
}

.nav--scrolled {
    background: var(--ed-nav-scrolled-bg);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav--scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav--scrolled .nav__brand {
    color: var(--ed-nav-text);
}

.nav__brand-icon {
    font-size: 1.5rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.25s ease;
    position: relative;
}

.nav--scrolled .nav__link {
    color: var(--ed-nav-text-muted);
}

.nav__link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav--scrolled .nav__link:hover {
    color: var(--ed-nav-text);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav--scrolled .nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav__link--active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav--scrolled .nav__link--active {
    color: var(--accent-color);
    background: rgba(201, 168, 76, 0.1);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav--scrolled .nav__theme-toggle {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .nav--scrolled .nav__theme-toggle {
    background: rgba(255, 255, 255, 0.08);
}

.nav__theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

.nav--scrolled .nav__theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle__icon {
    position: absolute;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.theme-toggle__icon--light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__icon--light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__icon--dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 8px 20px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.nav__cta:hover {
    background: var(--accent-color);
    color: #1a1a2e;
    border-color: var(--accent-color);
}

.nav__cta-icon {
    font-size: 0.95rem;
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav--scrolled .nav__toggle span {
    background: var(--ed-nav-text);
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--brand-color) 0%, #0d1a30 50%, #0a1628 100%);
    transition: background 0.5s ease;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
    transition: background 0.5s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 50%;
    pointer-events: none;
    transition: border-color 0.5s ease;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

/* Dark mode hero — deep charcoal with warm accents */
[data-theme="dark"] .hero {
    background:
        linear-gradient(135deg, #0a0c12 0%, #111520 40%, #0d0f16 100%);
}

[data-theme="dark"] .hero__overlay {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
}

[data-theme="dark"] .hero::before {
    border-color: rgba(201, 168, 76, 0.05);
}

[data-theme="dark"] .hero::after {
    border-color: rgba(255, 255, 255, 0.015);
}

/* Dark mode sub-page heroes */
[data-theme="dark"] .services-hero,
[data-theme="dark"] .editors-hero,
[data-theme="dark"] .authors-hero,
[data-theme="dark"] .publishers-hero,
[data-theme="dark"] .reviews-hero {
    background: linear-gradient(135deg, #0a0c12 0%, #111520 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.hero__stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.hero__stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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


/* ---- INTRO ---- */
.intro {
    background: var(--ed-bg);
}

.intro__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
}

.intro__text {
    font-size: 1.05rem;
    color: var(--ed-text-muted);
    line-height: 1.8;
    max-width: 580px;
}

.intro__highlights {
    display: flex;
    gap: 24px;
}

.intro__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    transition: all 0.3s ease;
    min-width: 110px;
}

.intro__highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--ed-card-hover-shadow);
}

.intro__highlight-icon {
    font-size: 2rem;
}

.intro__highlight-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ed-text);
}


/* ---- SERVICES PAGE HERO ---- */
.services-hero,
.editors-hero,
.authors-hero,
.publishers-hero,
.reviews-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.services-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
}

.services-hero__subtitle {
    max-width: 600px;
    margin: 0 auto;
}


/* ---- SERVICE BLOCKS ---- */
.service-block__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.service-block__inner--reverse {
    grid-template-columns: 1fr 280px;
    direction: rtl;
}

.service-block__inner--reverse>* {
    direction: ltr;
}

.service-block--alt {
    background: var(--ed-bg-alt);
}

.service-block__icon-area {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.service-block__icon-wrap {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-block__icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    border-radius: 24px;
}

.service-block__icon-wrap--fiction {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.service-block__icon-wrap--nonfiction {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.12), rgba(245, 87, 108, 0.12));
    border: 1px solid rgba(240, 147, 251, 0.2);
}

.service-block__icon-wrap--academic {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.12), rgba(0, 242, 254, 0.12));
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.service-block__icon {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.service-block__desc {
    font-size: 1.02rem;
    color: var(--ed-text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.service-block__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-block__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--ed-text);
}

.service-block__feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}


/* ---- PRICING (optional) ---- */
.pricing__header {
    text-align: center;
    margin-bottom: 56px;
}

.pricing__header .section-subtitle {
    margin: 0 auto;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
    position: relative;
    transition: all 0.35s ease;
}

.pricing__card--featured {
    border-color: var(--accent-color);
    background: rgba(201, 168, 76, 0.06);
    transform: scale(1.03);
}

.pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing__card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing__card-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.pricing__card-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.pricing__card-features {
    text-align: left;
    margin-bottom: 28px;
}

.pricing__card-features li {
    font-size: 0.9rem;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.75);
}

.btn-outline-dark {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline-dark:hover {
    background: var(--accent-color);
    color: #1a1a2e;
}


/* ---- EDITORS ---- */
.editors {
    background: var(--ed-bg);
}

.editors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.editor-card {
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
}

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

.editor-card__avatar {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.editor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-color), #2a3f6f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-card__placeholder span {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.6;
}

.editor-card__info {
    padding: 28px;
}

.editor-card__name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ed-text);
    margin-bottom: 4px;
}

.editor-card__role {
    display: block;
    font-size: 0.88rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.editor-card__bio {
    font-size: 0.92rem;
    color: var(--ed-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.editor-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-card__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ed-text-faint);
    background: var(--ed-bg-alt);
    border: 1px solid var(--ed-border);
    padding: 4px 12px;
    border-radius: 20px;
}

[data-theme="dark"] .editor-card__tag {
    background: rgba(255, 255, 255, 0.05);
}


/* ---- AUTHORS ---- */
.authors {
    background: var(--ed-bg);
}

.authors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.author-card {
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.author-card__cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    position: relative;
}

.author-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-card:hover .author-card__img {
    transform: scale(1.05);
}

/* Book placeholder */
.author-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1a2744 0%, #2a3f6f 40%, #1a2744 100%);
    display: flex;
    position: relative;
}

.author-card__placeholder-spine {
    width: 20px;
    height: 100%;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.1));
    border-right: 1px solid rgba(201, 168, 76, 0.2);
    flex-shrink: 0;
}

.author-card__placeholder-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.author-card__placeholder-icon {
    font-size: 3rem;
    opacity: 0.4;
}

.author-card__placeholder-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.author-card__placeholder-author {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.author-card__info {
    padding: 24px;
}

.author-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ed-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.author-card__author {
    display: block;
    font-size: 0.88rem;
    color: var(--ed-text-muted);
    margin-bottom: 4px;
}

.author-card__genre {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.author-card__quote {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--ed-text-faint);
    line-height: 1.6;
    border-left: 2px solid var(--accent-color);
    padding-left: 12px;
    margin-top: 8px;
}


/* ---- PUBLISHERS ---- */
.publishers {
    background: var(--ed-bg);
}

.publishers__content {
    max-width: 880px;
    margin: 0 auto;
}

.publishers__text {
    font-size: 1.05rem;
    color: var(--ed-text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 700px;
}

.publishers__benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.publishers__benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.publishers__benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ed-bg-alt);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
}

[data-theme="dark"] .publishers__benefit-icon {
    background: rgba(255, 255, 255, 0.04);
}

.publishers__benefit-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ed-text);
    margin-bottom: 4px;
}

.publishers__benefit-desc {
    font-size: 0.9rem;
    color: var(--ed-text-muted);
    line-height: 1.6;
}

/* Partners strip */
.partners-strip {
    background: var(--ed-bg-alt);
    text-align: center;
}

.partners-strip__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--ed-text-faint);
    margin-bottom: 32px;
}

.partners-strip__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partners-strip__logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ed-text-faint);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.partners-strip__logo:hover {
    opacity: 1;
}

.partners-strip__logo img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partners-strip__logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}


/* ---- REVIEWS ---- */
.reviews {
    background: var(--ed-bg);
}

.reviews__aggregate {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px;
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--ed-card-shadow);
}

.reviews__aggregate-score {
    text-align: center;
    flex-shrink: 0;
}

.reviews__aggregate-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ed-text);
    line-height: 1;
}

.reviews__aggregate-stars {
    color: #fbbc05;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin: 8px 0;
}

.reviews__aggregate-count {
    font-size: 0.85rem;
    color: var(--ed-text-faint);
}

.reviews__aggregate-bars {
    flex: 1;
    max-width: 400px;
}

.reviews__bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.reviews__bar-label {
    font-size: 0.82rem;
    font-weight: 600;
    width: 14px;
    text-align: right;
    color: var(--ed-text-muted);
}

.reviews__bar-track {
    flex: 1;
    height: 8px;
    background: var(--ed-bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .reviews__bar-track {
    background: rgba(255, 255, 255, 0.06);
}

.reviews__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbc05, #f5a623);
    border-radius: 4px;
    transition: width 1s ease;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.35s ease;
}

.review-card:hover {
    box-shadow: var(--ed-card-hover-shadow);
    transform: translateY(-3px);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.review-card__meta {
    flex: 1;
}

.review-card__name {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ed-text);
}

.review-card__date {
    display: block;
    font-size: 0.78rem;
    color: var(--ed-text-faint);
}

.review-card__google-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.review-card__stars {
    color: #fbbc05;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-card__text {
    font-size: 0.92rem;
    color: var(--ed-text-muted);
    line-height: 1.7;
}


/* ---- FOOTER ---- */
.footer {
    background: var(--ed-bg-alt);
    color: var(--ed-text-muted);
    padding: 64px 0 0;
    transition: background 0.4s ease, color 0.4s ease;
    border-top: 1px solid var(--ed-border);
}

[data-theme="dark"] .footer {
    background: var(--ed-footer-bg);
    border-top-color: rgba(255, 255, 255, 0.06);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__brand-icon {
    font-size: 1.8rem;
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ed-text);
}

.footer__brand-tagline {
    font-size: 0.88rem;
    color: var(--ed-text-faint);
    margin-top: 4px;
}

.footer__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ed-text);
    margin-bottom: 16px;
}

.footer__links a,
.footer__contact a {
    display: block;
    font-size: 0.88rem;
    color: var(--ed-text-muted);
    padding: 4px 0;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--accent-color);
}

.footer__contact p {
    font-size: 0.88rem;
    color: var(--ed-text-muted);
    margin-bottom: 8px;
}

.footer__social-links {
    display: flex;
    gap: 10px;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--ed-bg-card);
    border: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ed-text-muted);
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: var(--accent-color);
    color: #1a1a2e;
    border-color: var(--accent-color);
}

.footer__bottom {
    border-top: 1px solid var(--ed-border);
    padding: 24px 0;
}

.footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--ed-text-faint);
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .intro__inner {
        grid-template-columns: 1fr;
    }

    .intro__highlights {
        justify-content: center;
    }

    .service-block__inner,
    .service-block__inner--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }

    .service-block__icon-area {
        justify-content: flex-start;
    }

    .service-block__icon-wrap {
        width: 120px;
        height: 120px;
    }

    .service-block__icon {
        font-size: 3rem;
    }

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

    .reviews__aggregate {
        flex-direction: column;
        text-align: center;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {

    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__actions {
        gap: 8px;
    }

    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 39, 68, 0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .nav__links--open {
        background: rgba(15, 18, 25, 0.98);
    }

    .nav__links--open .nav__link {
        color: rgba(255, 255, 255, 0.8);
        padding: 12px 16px;
        border-radius: 8px;
    }

    .nav__links--open .nav__link:hover,
    .nav__links--open .nav__link--active {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero__content {
        padding-top: 100px;
    }

    .intro__highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .intro__highlight {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 20px;
    }

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

    .authors__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

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

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-hero,
    .editors-hero,
    .authors-hero,
    .publishers-hero,
    .reviews-hero {
        padding: 120px 0 40px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }
}