/* إقرأ — Site theme v2 (brand photos + calm, fast UI) */

:root {
    --book-paper: #f7f2e8;
    --book-spine: #c4a574;
    --book-shadow: 0 14px 40px rgba(55, 66, 97, 0.14);
    --section-pad: clamp(2.5rem, 5vw, 4.5rem);
    --ease-book: cubic-bezier(0.33, 0.02, 0.18, 1);
}

body {
    background: var(--background);
    background-image:
        radial-gradient(ellipse 80% 55% at 100% 0%, rgba(var(--secondary-rgb), 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--primary-rgb), 0.12), transparent 50%);
}

.section--white {
    background: linear-gradient(165deg, rgba(var(--primary-rgb), 0.06) 0%, var(--surface) 42%, rgba(var(--secondary-rgb), 0.05) 100%);
}
.section--white.section-alt,
.section.section-alt {
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.05) 0%, var(--background) 55%, rgba(var(--primary-rgb), 0.08) 100%);
}

.home-pillars {
    background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.06) 100%);
    padding-block: var(--section-pad);
}
.home-pillar-card:nth-child(1) {
    background: linear-gradient(145deg, #fff 0%, rgba(var(--primary-rgb), 0.12) 100%);
    border-color: rgba(var(--primary-rgb), 0.2);
}
.home-pillar-card:nth-child(2) {
    background: linear-gradient(145deg, #fff 0%, rgba(var(--accent-rgb), 0.08) 100%);
    border-color: rgba(var(--accent-rgb), 0.15);
}
.home-pillar-card:nth-child(3) {
    background: linear-gradient(145deg, #fff 0%, rgba(var(--secondary-rgb), 0.15) 100%);
    border-color: rgba(var(--secondary-rgb), 0.25);
}
.home-pillar-icon--brand {
    background: #fff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.12);
}
.home-pillar-icon--brand .brand-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.section-header--plain .section-header-deco {
    display: none;
}
.section-header--plain {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Home — clean hero per brand brief */
.hero--clean {
    background:
        linear-gradient(125deg, rgba(var(--primary-rgb), 0.14) 0%, var(--surface) 38%, rgba(var(--secondary-rgb), 0.12) 100%);
    min-height: auto;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    position: relative;
    overflow: hidden;
}
.hero--clean::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../brand/patterns/wrapping-paper.jpg');
    background-size: 220px;
    opacity: 0.05;
    pointer-events: none;
}
.hero--clean .hero-content {
    position: relative;
    z-index: 1;
}
.hero--clean .brand-shapes {
    opacity: 0.45;
}
.hero--clean .hero-bg,
.hero--clean .brand-pattern-bg,
.hero--clean .hero-floating-letters {
    display: none !important;
}
.hero--clean .hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.25rem;
}
.hero-audience {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1rem;
    font-size: 0.92rem;
}
@media (min-width: 768px) {
    .hero-audience { justify-content: flex-start; }
}
.hero-audience-link {
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero-audience-link:hover { color: var(--primary); }
.hero-audience-sep { opacity: 0.45; }

.home-pillars-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .home-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-pillar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    box-shadow: 0 2px 12px rgba(55, 66, 97, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
}
.home-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.home-pillar-icon .brand-icon-img {
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.home-pillar-axis {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: none;
}
.home-pillar-card h3 {
    font-size: 1.1rem;
    margin: 0;
}
.home-pillar-card p {
    flex: 1;
    margin: 0.35rem 0 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.home-pillar-card .btn { align-self: flex-start; }

/* Hero — book product focal */
.hero {
    padding: var(--section-pad) 0;
    min-height: min(88vh, 900px);
    display: flex;
    align-items: center;
}
.hero .container.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 992px) {
    .hero .container.hero-content {
        grid-template-columns: 1.05fr 0.95fr;
    }
}
.hero-visual .brand-hero {
    position: relative;
}
.hero-book-showcase {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 8px 18px 18px 8px;
    box-shadow: var(--book-shadow);
    background: var(--book-paper);
    padding: 0.65rem 0.85rem 0.85rem 0.55rem;
    transform: rotateY(-4deg) rotateX(2deg);
    transform-style: preserve-3d;
}
.hero-book-showcase::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 6%;
    bottom: 6%;
    width: 12px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(90deg, var(--book-spine), #a88b5c);
    box-shadow: inset -2px 0 6px rgba(0,0,0,0.15);
}
.hero-book-showcase img.hero-book-photo {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.hero-floating-letters {
    opacity: 0.35;
}
.hero-tagline-art {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
}

/* Cards & shop — softer book-adjacent surfaces */
.product-card,
.konvoo-card,
.audio-package-card,
.feature-card {
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 8px 28px rgba(55, 66, 97, 0.08);
}
.product-card:hover,
.konvoo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--book-shadow);
}

/* Digital / e-product badge as book */
.product-card.product-card--digital .product-image::after,
.audio-package-card.is-book-pack .audio-package-cover::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 8%;
    bottom: 8%;
    width: 8px;
    border-radius: 3px;
    background: var(--book-spine);
    opacity: 0.85;
}
.audio-package-card.is-book-pack {
    background: var(--book-paper);
    border-radius: 12px 20px 20px 12px;
    padding: 1rem;
}

/* Story strip */
.brand-story-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.brand-story-strip img {
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Guide PDF — book panel */
.guide-book-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--book-paper);
    border-radius: 6px 22px 22px 6px;
    border-inline-start: 10px solid var(--book-spine);
    box-shadow: var(--book-shadow);
}

/* Flash cards grid — miniature pages */
.audio-items-grid .audio-item-tile {
    background: var(--book-paper);
    border-radius: 6px 14px 14px 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(196, 165, 116, 0.35);
    transition: transform 0.2s var(--ease-book), box-shadow 0.2s ease;
}
.audio-items-grid .audio-item-tile:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: var(--book-shadow);
}
.audio-items-grid .audio-item-tile img {
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-book-showcase {
        transform: none;
    }
    .product-card:hover,
    .konvoo-card:hover,
    .audio-items-grid .audio-item-tile:hover {
        transform: none;
    }
}