/* style.css - Black Header/Footer + Cream White Content Theme */

/* Global Reset Classes */
.es-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.es-page {
    background-color: #faf8f3;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.es-heading-1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.es-heading-2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.es-heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.75rem;
}

.es-text {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.es-text-small {
    font-size: 0.9rem;
    color: #777;
}

.es-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.es-link:hover {
    color: #555;
    text-decoration: underline;
}

/* Layout Classes */
.es-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.es-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.es-section-alt {
    background-color: #fff;
}

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

.es-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.es-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.es-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* UI Elements */
.es-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.es-btn-primary {
    background-color: #1a1a1a;
    color: #faf8f3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.es-btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #faf8f3;
    text-decoration: none;
}

.es-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.es-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.es-list-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #4a4a4a;
    font-size: 1rem;
}

.es-list-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Badge */
.es-badge {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    background: rgba(26, 26, 26, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Component Classes - BLACK HEADER */
.es-header {
    background-color: #0d0d0d;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.es-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #faf8f3;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.es-disclosure {
    background-color: #1a1a1a;
    padding: 0.6rem 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.es-disclosure-text {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.es-hero {
    background: linear-gradient(135deg, #faf8f3 0%, #f0ebe3 100%);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.es-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.es-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* BLACK FOOTER */
.es-footer {
    background-color: #0d0d0d;
    color: #aaa;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 0;
}

.es-footer-link {
    color: #ccc;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.es-footer-link:hover {
    color: #fff;
    text-decoration: none;
}

.es-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 16px;
}

.es-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.es-th, .es-td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.es-th {
    background-color: #faf8f3;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.es-td {
    color: #4a4a4a;
}

.es-text-center {
    text-align: center;
}

/* Spacing */
.es-mt-2 { margin-top: 0.5rem; }
.es-mt-4 { margin-top: 1.25rem; }
.es-mt-8 { margin-top: 2.5rem; }
.es-mb-2 { margin-bottom: 0.5rem; }
.es-mb-4 { margin-bottom: 1.25rem; }
.es-mb-8 { margin-bottom: 2.5rem; }

/* ===== Hamburger Menu ===== */
.es-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
    position: relative;
}

.es-hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #faf8f3;
    border-radius: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.es-hamburger.active .es-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.es-hamburger.active .es-hamburger-line:nth-child(2) {
    opacity: 0;
}

.es-hamburger.active .es-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.es-nav-desktop {
    display: flex;
    align-items: center;
}

.es-nav-desktop .es-link {
    color: #ccc;
    font-weight: 500;
}

.es-nav-desktop .es-link:hover {
    color: #fff;
}

.es-nav-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.es-nav-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.es-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 160;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.es-nav-mobile.active {
    right: 0;
}

.es-nav-mobile a {
    display: block;
    padding: 1.25rem 0;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
}

.es-nav-mobile a:hover {
    color: #fff;
    padding-left: 0.75rem;
}

.es-nav-mobile a:last-child {
    border-bottom: none;
}

/* ===== Price Components ===== */
.es-price-box {
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: inline-block;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.es-price-box-centered {
    display: inline-block;
}

.es-price-main {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.es-price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 2px;
}

.es-price-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.es-price-decimal {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.es-price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.es-price-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.es-price-discount {
    background-color: #d32f2f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.es-price-tax {
    font-size: 0.85rem;
    color: #777;
}

.es-offer-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.es-offer-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
}

.es-offer-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .es-heading-1 {
        font-size: 2rem;
    }

    .es-heading-2 {
        font-size: 1.5rem;
    }

    .es-heading-3 {
        font-size: 1.25rem;
    }

    .es-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .es-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .es-grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .es-grid-3 {
        grid-template-columns: 1fr;
    }

    .es-hamburger {
        display: block;
    }

    .es-nav-desktop {
        display: none;
    }

    .es-nav-mobile {
        display: block;
    }

    .es-btn {
        padding: 0.9rem 1.75rem;
        font-size: 1rem;
    }

    .es-disclosure-text {
        font-size: 0.7rem;
    }

    .es-table {
        font-size: 0.85rem;
    }

    .es-th, .es-td {
        padding: 0.85rem 0.6rem;
    }

    .es-footer {
        padding-top: 3rem;
    }

    .es-price-value {
        font-size: 2.5rem;
    }

    .es-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .es-heading-1 {
        font-size: 1.65rem;
    }

    .es-heading-2 {
        font-size: 1.35rem;
    }

    .es-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .es-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .es-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .es-card {
        padding: 1.25rem;
    }

    .es-text {
        font-size: 1rem;
    }

    .es-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .es-footer .es-grid-3 {
        gap: 2rem;
    }

    .es-price-value {
        font-size: 2rem;
    }

    .es-price-box {
        padding: 1rem 1.25rem;
        width: 100%;
    }
}

/* Editorial Classes */
.es-article-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .es-article-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .es-article-container {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

.es-author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.es-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.es-article-body {
    margin-top: 2rem;
}

.es-article-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .es-article-text {
        font-size: 1rem;
        line-height: 1.65;
    }
}

.es-pros-cons-box {
    background-color: #faf8f3;
    border: 1px solid #e5e0d8;
    border-radius: 16px;
    padding: 2rem;
}

@media (max-width: 480px) {
    .es-pros-cons-box {
        padding: 1.25rem;
    }
}

/* Body no-scroll when menu open */
body.es-menu-open {
    overflow: hidden;
}

/* ===== Preloader ===== */
.es-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #faf8f3;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.es-preloader.es-hidden {
    opacity: 0;
    visibility: hidden;
}

.es-loader {
    border: 4px solid #e5e0d8;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: es-spin 1s linear infinite;
    margin-bottom: 1rem;
}

.es-preloader-text {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
}

@keyframes es-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Strong text in content ===== */
strong {
    color: #1a1a1a;
    font-weight: 700;
}