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

:root {
    --green: #2ecc71;
    --green-dark: #27ae60;
    --blue: #3498db;
    --blue-dark: #2980b9;
    --orange: #e67e22;
    --orange-dark: #d35400;
    --pink: #ff69b4;
    --purple: #9b59b6;
    --yellow: #f1c40f;
    --bg-light: #fffdf7;
    --bg-warm: #fff8f0;
    --text-dark: #2d2d2d;
    --text-medium: #555;
    --text-light: #888;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== HERO ===== */
.hero {
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-scene {
    width: 100%;
    position: relative;
}

.hero-svg {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
}

.hero-cta {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

/* Star twinkling */
.twinkle1 { animation: twinkle 2s ease-in-out infinite; }
.twinkle2 { animation: twinkle 2.5s ease-in-out infinite 0.5s; }
.twinkle3 { animation: twinkle 3s ease-in-out infinite 1s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; r: 2; }
    50% { opacity: 0.3; r: 1; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), #f39c12);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ===== USP BAR ===== */
.usp-bar {
    background: linear-gradient(135deg, var(--purple), #8e44ad);
    color: var(--white);
    padding: 20px 0;
}

.usp-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.usp-icon {
    font-size: 1.3rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.15rem;
    margin-bottom: 48px;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.product-card[data-color="green"] { border-top: 4px solid var(--green); }
.product-card[data-color="blue"] { border-top: 4px solid var(--blue); }
.product-card[data-color="orange"] { border-top: 4px solid var(--orange); }

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--green), #27ae60);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-large {
    background: linear-gradient(135deg, var(--blue), #2980b9) !important;
}

.product-image {
    width: 120px;
    height: 180px;
    margin: 0 auto 20px;
}

.product-image.large-fridge {
    width: 130px;
    height: 220px;
}

.product-image svg {
    width: 100%;
    height: 100%;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.product-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 20px;
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f4ff 0%, var(--bg-warm) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ===== TRADE-IN ===== */
.trade-in {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0f0 100%);
}

.trade-in-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trade-in-text h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.trade-in-lead {
    font-size: 1.2rem;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 16px;
}

.trade-in-text p {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.7;
}

.trade-in-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--orange);
    margin: 20px 0;
    font-size: 1.05rem;
}

.trade-in-emoji {
    font-size: 2rem;
}

.trade-in-steps {
    list-style: none;
    margin-top: 20px;
}

.trade-in-steps li {
    padding: 6px 0;
    font-size: 1rem;
    color: var(--text-medium);
}

.trade-in-illustration svg {
    width: 100%;
    max-width: 400px;
}

/* ===== FORMS (shared) ===== */
.order-section,
.delivery-section {
    padding: 80px 0;
}

.order-section {
    background: var(--bg-light);
}

.delivery-section {
    background: linear-gradient(180deg, #e8f4fd 0%, #f0f7ff 100%);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-summary {
    background: linear-gradient(135deg, #e8f8f0, #d4f1e0);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.05rem;
}

.order-form,
.delivery-form,
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-warm) 0%, #fff5f0 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-form .form-group + .form-group {
    margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--pink);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-in-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-cta {
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .order-form,
    .delivery-form,
    .contact-form {
        padding: 24px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        bottom: 20px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .usp-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-svg {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-svg {
        min-height: 250px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}
