/* 
 * Front-end Stylesheet 
 * Highly optimized, responsive, modern CSS
 */

/* Custom Font Integration */
@font-face {
    font-family: 'Kalpurush';
    src: url('../fonts/Kalpurush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Ensures text is visible while the font is loading */
}

:root {
    /* Color Grading Updated to perfectly match the provided image */
    --brand-color: #e2136e; 
    --brand-hover: #c40f5d;
    --sub-footer-bg: #9e0b4a;
    
    --text-dark: #333333;
    --text-light: #555555; 
    --bg-light: #fdf5f7;
    --white: #ffffff;
    --border-color: #eaeaea;
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Set Kalpurush as the primary global font */
    font-family: 'Kalpurush', 'Hind Siliguri', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 16px; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* Headings Base */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Reusable Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--brand-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: clamp(16px, 2vw, 18px); 
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
}

/* ==========================================================================
   Header Styles Specifics
   ========================================================================== */
.topbar {
    background-color: var(--brand-color);
    color: var(--white);
    padding: 8px 0;
    font-size: clamp(13px, 1.5vw, 14px);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.topbar-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-timer {
    font-weight: 600;
}

.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo svg {
    height: 40px;
    width: auto;
}

.header-logo h2 {
    color: var(--brand-color);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    margin: 0;
}

.header-logo p {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 2px;
    margin: -5px 0 0 0;
}

.header-contacts {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon.phone {
    background-color: var(--bg-light);
    color: var(--brand-color);
}

.contact-icon.whatsapp {
    background-color: #e8f5e9;
    color: #25d366;
}

.contact-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.contact-info p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Hero Section (New Layout & Advanced Blending)
   ========================================================================== */
.hero-section {
    display: flex;
    gap: 20px;
    align-items: stretch; 
    margin-top: 20px;
}

/* Left Main Banner */
.hero-main-banner {
    flex: 1; 
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--brand-color); 
}

.hero-text-content {
    flex: 0 0 55%; 
    max-width: 55%;
    position: relative;
    z-index: 10; 
}

.hero-text-content h3 {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-dark);
    margin-bottom: 5px;
}

.hero-text-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--brand-color);
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-tagline {
    font-weight: bold;
    color: var(--text-dark);
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 15px;
}

.hero-desc {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 90%;
}

/* Feature Badges Grid */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    max-width: 95%;
}

.hero-feature-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.hero-feature-badge div {
    display: flex;
    flex-direction: column;
}

.hero-feature-badge strong {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-feature-badge span {
    font-size: 11px;
    color: var(--text-light);
}

/* Reviews */
.hero-reviews {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid var(--border-color);
}

.review-stars {
    display: flex;
    gap: 2px;
}

/* Hero Model Image */
.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 45%; 
    z-index: 1;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end;
}

.hero-image img {
    height: 100%;
    width: 100%;
    object-fit: cover; 
    object-position: top center; 
    
    /* Magic Trick: Blends the yellowish background */
    mix-blend-mode: multiply; 
    
    /* Soft Fade Effect */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

/* Right Pricing Box */
.pricing-box {
    width: 320px; 
    flex-shrink: 0;
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-box h3 {
    font-size: clamp(18px, 2.5vw, 22px);
}

/* ==========================================================================
   Products Grid (Responsive: 4 on Desktop, 2 on Tablet, 1 on Mobile)
   ========================================================================== */
.product-grid {
    display: grid;
    /* Forces 4 columns on large screens */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin: 40px 0;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps button at bottom even if text varies */
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Ensures images are properly cropped without distortion */
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    background-color: #f5f5f5; /* Placeholder color before image loads */
}

.product-card h4 {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.product-card .btn-primary {
    padding: 8px 15px;
    width: 100%; /* Makes button full width inside card */
    margin-top: auto;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px); /* Adds a premium hover lift effect */
}

/* ==========================================================================
   Responsive Breakpoints for Product Grid
   ========================================================================== */
@media (max-width: 992px) {
    .product-grid {
        /* 2 columns on Tablets */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 576px) {
    .product-grid {
        /* 1 column on Mobile Phones (as requested) */
        grid-template-columns: 1fr; 
    }
    
    .product-card img {
        height: auto; /* Let image scale naturally on mobile */
        max-height: 350px; 
    }
}

/* ==========================================================================
   FAQ & Order Form Section (Two Column Layout)
   ========================================================================== */
.faq-order-container {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Ensures columns don't stretch to equal height if one is shorter */
}

/* --- FAQ Section Left --- */
.faq-section {
    flex: 1; /* Takes 50% width */
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(15px, 2vw, 16px);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--brand-color);
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: var(--brand-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 15px; /* Base padding when closed */
    background-color: #fdfdfd;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* --- Order Form Section Right --- */
.order-section {
    flex: 1; /* Takes 50% width */
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 19, 110, 0.1); /* Slight brand color border */
}

.order-section h2 {
    font-size: clamp(20px, 3vw, 24px);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 15px; 
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(226, 19, 110, 0.1);
}

/* Custom Grid Classes for Form Layout */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid-address {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 15px;
}

/* ==========================================================================
   Responsive Breakpoints for FAQ & Order
   ========================================================================== */
@media (max-width: 992px) {
    .faq-order-container {
        flex-direction: column; /* Stack FAQ and Order form vertically on tablets and mobile */
        gap: 30px;
    }
    
    .faq-section, .order-section {
        width: 100%; /* Takes full width when stacked */
    }
}

@media (max-width: 768px) {
    .order-section, .faq-section {
        padding: 20px 15px;
    }
    
    .form-grid-2, 
    .form-grid-address {
        grid-template-columns: 1fr; /* Stack form fields vertically on mobile */
        gap: 0;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer-features-section {
    background-color: var(--bg-light);
    padding: 20px 0;
}

.footer-features-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: clamp(13px, 1.5vw, 15px);
    color: var(--text-dark);
}

.footer-feature-item svg {
    color: var(--brand-color);
}

.sub-footer {
    background-color: var(--sub-footer-bg);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

.sub-footer-links {
    margin-bottom: 5px;
}

.sub-footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.9;
}

.sub-footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Global Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .header-contacts {
        display: none;
    }
    .hero-text-content {
        flex: 0 0 100%; 
        max-width: 100%;
    }
    .hero-features-grid {
        max-width: 100%;
    }
    .hero-image {
        width: 100%; 
        opacity: 0.15; 
        -webkit-mask-image: none; 
        mask-image: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; 
    }
    
    .hero-main-banner {
        padding: 25px 15px;
        flex-direction: column;
    }
    
    .hero-features-grid {
        grid-template-columns: 1fr; 
    }

    .hero-image {
        position: relative;
        height: 350px; 
        width: 100%;
        opacity: 1;
        justify-content: center;
        margin-top: 20px;
    }
    
    .hero-image img {
        object-position: top center; 
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }

    .pricing-box {
        width: 100%; 
        margin-top: 15px;
    }

    .order-section {
        padding: 25px 15px;
    }

    .topbar-inner {
        justify-content: center;
    }
    
    .topbar-features {
        display: none;
    }
    
    .main-header-inner {
        justify-content: center;
    }
    
    .footer-features-inner {
        justify-content: center;
    }
}