/* ============================================================
   NoteUp — Homepage Styles
   ============================================================ */

/* ===== HERO ===== */
.hero {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-beige-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-block;
    background: var(--color-sage);
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-charcoal-light);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 500px;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-left: 0;
    }
}

@media (max-width: 1023px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-ctas {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .hero-ctas {
        justify-content: flex-start;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 500px;
    width: 100%;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-beige);
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brown);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-xl);
}

/* ===== SECTION COMMON ===== */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-badge {
    display: inline-block;
    background: var(--color-beige-light);
    color: var(--color-brown);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-serif);
    margin-bottom: var(--space-3);
}

.section-description {
    color: var(--color-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== DUAL PATH SECTION ===== */
.dual-path {
    padding: var(--space-16) 0;
    background: var(--color-white);
}

.dual-path-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .dual-path-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dual-path-card {
    border: 2px solid var(--color-grey-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.dual-path-card:hover {
    border-color: var(--color-sage);
    box-shadow: var(--shadow-md);
}

.dual-path-card.custom-card:hover {
    border-color: var(--color-terracotta);
}

.dual-path-image {
    height: 250px;
    background: var(--color-beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dual-path-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dual-path-image .dual-path-placeholder {
    font-size: var(--text-6xl);
    opacity: 0.3;
}

.dual-path-body {
    padding: var(--space-6);
    text-align: center;
}

.dual-path-body h3 {
    margin-bottom: var(--space-2);
}

.dual-path-body p {
    color: var(--color-grey);
    margin-bottom: var(--space-4);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-grey-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-beige);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--color-paper-dark);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-grey-light);
    font-size: var(--text-sm);
}

.product-card-badges {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.product-card-info {
    padding: var(--space-4);
}

.product-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: var(--text-sm);
    color: var(--color-grey);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-card-current-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-charcoal);
}

.product-card-original-price {
    font-size: var(--text-sm);
    color: var(--color-grey-light);
    text-decoration: line-through;
}

.product-card-actions {
    padding: 0 var(--space-4) var(--space-4);
    display: flex;
    gap: var(--space-2);
}

.product-card-actions .btn {
    flex: 1;
    font-size: var(--text-xs);
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    background: var(--color-white);
    border: 1px solid var(--color-grey-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: var(--color-sage);
    box-shadow: var(--shadow);
    color: inherit;
}

.category-card-image {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3);
    background: var(--color-beige-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-name {
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ===== WHY NOTEUP ===== */
.why-section {
    background: var(--color-beige-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: var(--space-6);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--color-grey);
}

/* ===== CUSTOM PROMOTION ===== */
.custom-promo {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-16) 0;
}

.custom-promo .section-title {
    color: var(--color-white);
}

.custom-promo .section-description {
    color: var(--color-grey-light);
}

.custom-promo .section-badge {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.custom-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: var(--space-8) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .custom-features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

.custom-feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-beige-light);
}

.custom-feature-item .check {
    color: var(--color-sage);
    font-weight: 700;
}

/* ===== REVIEWS ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: var(--color-white);
    border: 1px solid var(--color-grey-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
}

.review-stars {
    color: var(--color-warning);
    margin-bottom: var(--space-3);
    letter-spacing: 2px;
}

.review-text {
    color: var(--color-charcoal-light);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.review-author {
    font-weight: 600;
    font-size: var(--text-sm);
}

.review-date {
    color: var(--color-grey-light);
    font-size: var(--text-xs);
}