:root {
    --primary: #1565c0; /* Darker blue */
    --secondary: #e3f2fd; /* Light blue background */
    --text: #0d47a1; /* Deep blue text */
    --white: #ffffff;
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hamburger button -- hidden on desktop */
.nav-toggle-input {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger X animation via checkbox */
.nav-toggle-input:checked ~ nav .hamburger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle-input:checked ~ nav .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle-input:checked ~ nav .hamburger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Show nav links when checkbox is checked */
.nav-toggle-input:checked ~ nav .nav-links {
    display: flex;
}

/* Hero Section */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000');
    background-size: cover;
    background-position: center;
    padding: 0 1rem;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #f5f5f5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0d47a1; /* Deep blue for hover */
}

/* General Section Styles */
.section-padding {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-card button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
}

/* About Section */
.about-bg {
    background-color: var(--secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #1a237e; /* Very dark blue for text readability */
}

/* Quality Section */
.quality-bg {
    background-color: #f0f4f8;
}

.quality-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.quality-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.quality-item {
    flex: 1;
    min-width: 240px;
    padding: 2.5rem 2rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(21, 101, 192, 0.15);
}

.quality-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.quality-item p {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex: 1;
}

/* Newsletter Section */
.newsletter-bg {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    flex: 1;
    min-width: 250px;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background-color: var(--text);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #002171; /* Very dark blue for button hover */
}

/* Custom Order Section */
.custom-order-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0d47a1; /* Deep blue for button hover */
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--text);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Newsletter button hover (no JS) */
.newsletter-submit-btn {
    background-color: #0d47a1;
}

.newsletter-submit-btn:hover {
    background-color: #002171;
}

/* ==============================================
   MASCOT
   ============================================== */

.mascot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 90px;
    cursor: pointer;
    animation: mascot-bounce 2.8s ease-in-out infinite;
}

.mascot-svg {
    display: block;
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.mascot-name {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Speech bubble */
.mascot-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(8px) scale(0.95);
    background: #fff;
    color: var(--text);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-size: 0.88rem;
    width: 180px;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 1.5px solid var(--secondary);
}

.mascot-bubble p {
    margin-bottom: 6px;
}

.mascot-bubble strong {
    color: var(--primary);
}

/* Transparent bridge between bubble and mascot so hover doesn't break */
.mascot-bubble::before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Bubble tail */
.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -8px;
    border-width: 10px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.mascot-cta-link {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 12px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    pointer-events: all;
    transition: background 0.2s;
}

.mascot-cta-link:hover {
    background: #0d47a1;
}

/* Show bubble on hover */
.mascot-container:hover .mascot-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
}

/* Wiggle on hover */
.mascot-container:hover {
    animation: mascot-wiggle 0.45s ease-in-out infinite alternate !important;
}

/* ==============================================
   MASCOT KEYFRAMES
   ============================================== */

@keyframes mascot-bounce {
    0%   { transform: translateY(0)     rotate(0deg); }
    25%  { transform: translateY(-14px) rotate(-4deg); }
    50%  { transform: translateY(0)     rotate(0deg); }
    75%  { transform: translateY(-7px)  rotate(3deg); }
    100% { transform: translateY(0)     rotate(0deg); }
}

@keyframes mascot-wiggle {
    0%   { transform: rotate(-12deg) scale(1.08); }
    100% { transform: rotate(12deg)  scale(1.08); }
}

/* Mascot smaller on mobile */
@media screen and (max-width: 768px) {
    .mascot-container {
        width: 70px;
        right: 12px;
    }

    .mascot-svg {
        width: 70px;
        height: 70px;
    }

    .mascot-bubble {
        width: 155px;
        font-size: 0.8rem;
    }
}

/* Mobile-only banner -- hidden on desktop, revealed via media query */
.banner-close-input {
    display: none;
}

.banner-close-input:checked ~ .mobile-only-banner {
    display: none;
}

.mobile-only-banner {
    display: none;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #1a237e;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    position: relative;
}

.mobile-banner-icon {
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-only-banner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.mobile-only-banner code {
    background: rgba(0,0,0,0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
}

.mobile-banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #1a237e;
    font-weight: bold;
}

/* Secondary CTA -- hidden on desktop, shown on mobile */
.cta-secondary {
    background-color: rgba(255,255,255,0.15);
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background-color: rgba(255,255,255,0.3);
}

.mobile-only-cta {
    display: none;
}

/* ==============================================
   MEDIA QUERIES
   ============================================== */

/* Tablet (max-width: 900px) */
@media screen and (max-width: 900px) {
    .section-padding {
        padding: 4rem 6%;
    }

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

    .quality-item {
        min-width: 180px;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Nav: show hamburger, collapse links */
    nav {
        position: sticky;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 0.5rem 0;
    }

    .nav-links li a {
        display: block;
        padding: 0.9rem 5%;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    /* Show mobile-only elements */
    .mobile-only-banner {
        display: flex;
    }

    .mobile-only-cta {
        display: inline-block;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0.5rem auto;
        text-align: center;
    }

    /* Sections */
    .section-padding {
        padding: 3rem 5%;
    }

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

    /* Product grid: single column */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Quality grid: single column */
    .quality-grid {
        flex-direction: column;
        align-items: center;
    }

    .quality-item {
        width: 100%;
        min-width: unset;
    }

    /* Form: stack the email/phone row */
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }

    .custom-order-form {
        padding: 1.5rem;
    }
}

/* Small mobile (max-width: 400px) */
@media screen and (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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