/*
Theme Name: Phonics Notebook for Kids
Theme URI: https://phonicsnotebookforkids.com/
Author: Custom Theme
Description: Premium modern card-based one-page WordPress theme with blue color scheme, Facebook & WhatsApp buttons, and Customizer price control.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: phonics-notebook
*/

/* ========== CSS VARIABLES - BLUE THEME ========== */
:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #42a5f5;
    --secondary: #ffca28;
    --secondary-dark: #ffb300;
    --accent: #00bcd4;
    --text: #1a237e;
    --text-light: #455a64;
    --bg: #e3f2fd;
    --bg-soft: #bbdefb;
    --white: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 10px 40px rgba(21, 101, 192, 0.15);
    --shadow-hover: 0 18px 50px rgba(21, 101, 192, 0.25);
    --radius: 22px;
    --radius-sm: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    font-size: 18px;
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ========== HEADER ========== */
.site-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.4);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title span {
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.95;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 30px;
}

.header-cta {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(255, 202, 40, 0.5);
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px) scale(1.04);
}

/* ========== SOCIAL BUTTONS ========== */
.social-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

.btn-facebook,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff !important;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.btn-facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #0d65d9, #0a4bb5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(24, 119, 242, 0.45);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.btn-facebook svg,
.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(165deg, #bbdefb 0%, #e3f2fd 40%, #ffffff 100%);
    padding: 70px 0 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.35) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 202, 40, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 35px;
    letter-spacing: 0.2px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.75);
    padding: 18px 28px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.12);
    backdrop-filter: blur(8px);
}

.hero-product {
    max-width: 520px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.hero-product img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(21, 101, 192, 0.25);
    border: 6px solid #fff;
    display: block;
}

.hero-product .price-badge {
    position: absolute;
    top: 20px;
    left: 15px;
    background: linear-gradient(135deg, #ffca28, #ffb300);
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 900;
    padding: 14px 22px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(255, 179, 0, 0.55);
    transform: rotate(-6deg);
    line-height: 1.2;
    z-index: 5;
    border: 4px solid #fff;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(21, 101, 192, 0.45);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(21, 101, 192, 0.55);
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3.8vw, 2.4rem);
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 14px auto 0;
    border-radius: 10px;
}

/* ========== WHO IS IT FOR ========== */
.for-whom {
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
}

.for-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.for-card {
    background: var(--card-bg);
    padding: 32px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(21, 101, 192, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.for-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.for-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.for-card h3 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 800;
    padding-left: 12px;
}

.for-card p {
    color: var(--text-light);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.7;
    padding-left: 12px;
}

/* ========== LEVELS ========== */
.levels-section {
    background: linear-gradient(180deg, #ffffff 0%, #e3f2fd 100%);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.level-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(21, 101, 192, 0.1);
}

.level-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.level-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 22px 26px;
    font-size: 1.35rem;
    font-weight: 800;
}

.level-body {
    padding: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.level-body ul {
    list-style: none;
}

.level-body li {
    padding: 12px 0;
    padding-left: 36px;
    position: relative;
    color: var(--text);
    border-bottom: 1px dashed rgba(21, 101, 192, 0.15);
    font-size: 1.12rem;
    font-weight: 500;
    transition: var(--transition);
}

.level-body li:hover {
    background: rgba(21, 101, 192, 0.04);
    padding-left: 40px;
}

.level-body li:last-child {
    border-bottom: none;
}

.level-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

/* ========== FEATURES ========== */
.features {
    background: linear-gradient(160deg, #bbdefb 0%, #90caf9 40%, #e3f2fd 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
    text-align: center;
}

.feature-item {
    background: var(--card-bg);
    padding: 36px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.15);
}

.feature-item h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.feature-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ========== PRICING ========== */
.pricing {
    text-align: center;
    background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 100%);
}

.price-box {
    background: linear-gradient(165deg, #ffffff 0%, #e3f2fd 100%);
    max-width: 460px;
    margin: 0 auto;
    padding: 50px 36px;
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(21, 101, 192, 0.18);
    border: 2px solid rgba(21, 101, 192, 0.12);
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
}

.regular-price {
    font-size: 1.15rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 8px;
    font-weight: 500;
}

.discount-price {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.05;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.discount-price span {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-note {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(21, 101, 192, 0.08);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
}

.price-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.28rem;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(21, 101, 192, 0.45);
    transition: var(--transition);
}

.price-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(21, 101, 192, 0.55);
}

/* ========== ORDER ========== */
.order-section {
    background: linear-gradient(180deg, #bbdefb 0%, #e3f2fd 100%);
}

.order-box {
    max-width: 680px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 45px 36px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(21, 101, 192, 0.1);
}

.phone-order {
    text-align: center;
    margin-bottom: 28px;
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: var(--radius-sm);
}

.phone-order h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.phone-number {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.15);
    transition: var(--transition);
}

.phone-number:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(21, 101, 192, 0.25);
}

.order-form .form-row {
    margin-bottom: 20px;
}

.order-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.1rem;
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #d6e9f8;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    background: #f8fcff;
    color: var(--text);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(21, 101, 192, 0.12);
}

.order-form textarea {
    min-height: 110px;
    resize: vertical;
}

.order-summary {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 22px 24px;
    border-radius: 16px;
    margin: 28px 0;
    border: 1px solid rgba(21, 101, 192, 0.12);
}

.order-summary table {
    width: 100%;
    border-collapse: collapse;
}

.order-summary td {
    padding: 10px 0;
    font-size: 1.12rem;
    font-weight: 500;
}

.order-summary .total {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 19px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(21, 101, 192, 0.4);
    transition: var(--transition);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(21, 101, 192, 0.5);
}

.cod-note {
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(21, 101, 192, 0.08);
    display: inline-block;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    color: var(--white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 8px;
    opacity: 0.95;
    font-size: 1.05rem;
}

.footer-phone {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.12);
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
}

.copyright {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .hero-title {
        padding: 14px 18px;
        font-size: 1.4rem;
    }
    .hero-product .price-badge {
        font-size: 1.2rem;
        padding: 10px 16px;
        top: 12px;
        left: 8px;
    }
    .section {
        padding: 55px 0;
    }
    .order-box {
        padding: 30px 20px;
    }
    .phone-number {
        font-size: 1.4rem;
        padding: 12px 22px;
    }
    .discount-price {
        font-size: 2.8rem;
    }
    .btn-facebook,
    .btn-whatsapp {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-cta,
    .price-cta {
        padding: 15px 32px;
        font-size: 1.05rem;
    }
    .feature-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2.5rem;
    }
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-facebook,
    .btn-whatsapp {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========== IMPROVED SOCIAL BUTTONS ========== */
.social-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 28px 0 10px;
}

.btn-facebook,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.btn-facebook {
    background-color: #1877f2 !important;
    background-image: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%) !important;
}

.btn-facebook:hover {
    background-color: #0d65d9 !important;
    background-image: linear-gradient(135deg, #0d65d9 0%, #0a4bb5 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(24, 119, 242, 0.5);
    color: #ffffff !important;
}

.btn-whatsapp {
    background-color: #25d366 !important;
    background-image: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
}

.btn-whatsapp:hover {
    background-color: #128c7e !important;
    background-image: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.btn-facebook svg,
.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* ========== DELIVERY AREA SELECTOR ========== */
.delivery-area {
    margin-bottom: 22px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(21, 101, 192, 0.15);
}

.delivery-area > label.main-label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0d47a1;
    font-size: 1.15rem;
    font-weight: 800;
}

.delivery-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-option {
    flex: 1;
    min-width: 140px;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #d6e9f8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    color: #1a237e;
    font-size: 1.08rem;
    font-weight: 700;
}

.delivery-option label:hover {
    border-color: #42a5f5;
    background: #f5faff;
}

.delivery-option input[type="radio"]:checked + label {
    border-color: #1565c0;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.2);
    color: #0d47a1;
}

.delivery-option label .icon {
    font-size: 1.3rem;
}

.delivery-option label .price-tag {
    margin-left: auto;
    background: #1565c0;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .delivery-options {
        flex-direction: column;
    }
    .btn-facebook,
    .btn-whatsapp {
        width: 100%;
        max-width: 280px;
        min-width: unset;
    }
}

/* Feature numbers - large & clear */
.feature-item .feature-num {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0d47a1 !important;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.feature-item p {
    font-size: 1.08rem !important;
    font-weight: 500;
}

.feature-item h3 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .feature-item .feature-num {
        font-size: 1.25rem !important;
    }
    .feature-item h3 {
        font-size: 1.25rem !important;
    }
}
