/* Homepage sections — Naila Pustaka UI */

.page-home {
    background: #fff;
}

.home-main section {
    padding-block: 4rem;
}

/* Hero */
.home-hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.home-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home-hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.home-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fef2f1;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.home-stat strong {
    display: block;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.2;
}

.home-stat span {
    color: var(--muted);
    font-size: 0.82rem;
}

.home-hero-visual {
    display: grid;
    place-items: center;
    min-height: 380px;
}

.home-books-showcase {
    position: relative;
    width: min(100%, 420px);
    height: 340px;
}

.showcase-book {
    position: absolute;
    bottom: 0;
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(26, 43, 72, 0.22);
    transition: transform 0.3s ease;
}

.showcase-book img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4.3;
    object-fit: cover;
}

.showcase-book-left {
    left: 0;
    transform: rotate(-8deg) translateY(10px);
    z-index: 1;
}

.showcase-book-center {
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 200px;
}

.showcase-book-right {
    right: 0;
    transform: rotate(8deg) translateY(10px);
    z-index: 2;
}

.home-books-showcase:hover .showcase-book-left {
    transform: rotate(-12deg) translateY(4px);
}

.home-books-showcase:hover .showcase-book-right {
    transform: rotate(12deg) translateY(4px);
}

/* Trusted */
.home-trusted {
    padding-block: 2rem 3rem;
    background: #fff;
}

.home-trusted-label {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.home-trusted-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 2.5rem;
}

.trusted-logo img {
    height: 42px;
    width: auto;
    opacity: 0.55;
    filter: grayscale(1);
    transition: opacity 0.2s ease;
}

.trusted-logo img:hover {
    opacity: 0.85;
}

/* Section head */
.home-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.home-section-line {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
    margin: 0 auto 1rem;
}

.home-section-head h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--navy);
    margin-bottom: 0.65rem;
}

.home-section-head p {
    color: var(--muted);
    line-height: 1.7;
}

/* Services */
.home-services {
    background: #f7f9fc;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-service-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 43, 72, 0.04);
}

.home-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fef2f1;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.home-service-icon img {
    width: 28px;
    height: 28px;
}

.home-service-card h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.home-service-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.home-service-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Process */
.home-process {
    background: #fff;
}

.home-process-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    position: relative;
}

.home-process-track::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    border-top: 2px dashed rgba(26, 43, 72, 0.15);
    z-index: 0;
}

.home-process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-process-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eef2f7;
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow);
}

.home-process-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.home-process-step h3 {
    font-size: 0.88rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.home-process-step p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    padding: 0 0.25rem;
}

/* Publications */
.home-publications {
    background: #f7f9fc;
}

.home-pub-block + .home-pub-block {
    margin-top: 3rem;
}

.home-pub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-pub-head h2 {
    font-size: 1.35rem;
    color: var(--navy);
}

.home-pub-head a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-pub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-pub-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow);
    color: inherit;
    transition: transform 0.2s ease;
}

.home-pub-card:hover {
    transform: translateY(-4px);
}

.home-pub-cover {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.home-pub-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.home-journal-card .journal-cover-placeholder {
    aspect-ratio: 3 / 4;
    min-height: 180px;
    background: linear-gradient(145deg, #1a2b48, #243a5e);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.home-journal-card .journal-cover-placeholder span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.home-pub-card.home-journal-card {
    text-decoration: none;
    color: inherit;
}

.home-pub-card h3 {
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.home-pub-meta {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.home-pub-price {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.95rem;
}

/* Why choose */
.home-why {
    background: #fff;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-why-item {
    text-align: center;
}

.home-why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef2f1;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.home-why-item h3 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.home-why-item p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Testimonial + FAQ */
.home-proof {
    background: #f7f9fc;
}

.home-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.home-testimonial-wrap h2,
.home-faq-wrap h2 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.home-testimonial-carousel {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-testimonial-track {
    display: flex;
    transition: transform 0.35s ease;
}

.home-testimonial-card {
    min-width: 100%;
    flex: 0 0 100%;
}

.home-quote-icon {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.35;
    margin-bottom: 0.5rem;
}

.home-testimonial-card > p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.home-testimonial-person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home-testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef2f7;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--navy);
    flex-shrink: 0;
}

.home-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-testimonial-person strong {
    display: block;
    color: var(--navy);
    font-size: 0.92rem;
}

.home-testimonial-person span {
    color: var(--muted);
    font-size: 0.82rem;
}

.home-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.home-testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.home-testimonial-dots {
    display: flex;
    gap: 0.4rem;
}

.testimonial-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 43, 72, 0.18);
    cursor: pointer;
}

.testimonial-indicator.active {
    background: var(--primary);
}

.home-testimonial-arrows {
    display: flex;
    gap: 0.5rem;
}

.testimonial-prev,
.testimonial-next {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* FAQ */
.home-faq-list {
    display: grid;
    gap: 0.65rem;
}

.home-faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(26, 43, 72, 0.05);
}

.home-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
}

.home-faq-trigger i {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.home-faq-item.active .home-faq-trigger i {
    transform: rotate(45deg);
}

.home-faq-panel {
    display: none;
    padding: 0 1.15rem 1rem;
}

.home-faq-item.active .home-faq-panel {
    display: block;
}

.home-faq-panel p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Newsletter */
.home-newsletter {
    padding-bottom: 4.5rem;
    background: #fff;
}

.home-newsletter-card {
    background: #eef4fb;
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.home-newsletter-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow);
}

.home-newsletter-copy h2 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.home-newsletter-copy p {
    color: var(--muted);
    font-size: 0.9rem;
}

.home-newsletter-form {
    display: flex;
    gap: 0.65rem;
    min-width: min(100%, 360px);
}

.home-newsletter-form input {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    min-width: 0;
    box-shadow: inset 0 0 0 1px rgba(26, 43, 72, 0.08);
}

.home-newsletter-form .btn-primary {
    white-space: nowrap;
    padding-inline: 1.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        order: -1;
        min-height: 280px;
    }

    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-process-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    .home-process-track::before {
        display: none;
    }

    .home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-proof-grid {
        grid-template-columns: 1fr;
    }

    .home-newsletter-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-main section {
        padding-block: 3rem;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-services-grid,
    .home-pub-grid,
    .home-why-grid,
    .home-process-track {
        grid-template-columns: 1fr;
    }

    .home-books-showcase {
        height: 260px;
        width: 100%;
    }

    .showcase-book {
        width: 130px;
    }

    .showcase-book-center {
        width: 150px;
    }

    .home-newsletter-form {
        flex-direction: column;
        width: 100%;
    }
}
