/* ============================================
   KHALSA S-MART - Modern Website Stylesheet
   Brand Colors: Green #1B5E20 / Yellow #FFD600
   ============================================ */

/* === CSS Variables === */
:root {
    --green-dark: #1B5E20;
    --green-main: #2E7D32;
    --green-mid: #388E3C;
    --green-light: #4CAF50;
    --green-pale: #E8F5E9;
    --green-subtle: #f0f9f0;
    --yellow-main: #FFD600;
    --yellow-light: #FFEA00;
    --yellow-dark: #F9A825;
    --yellow-pale: #FFFDE7;
    --white: #ffffff;
    --off-white: #FAFAFA;
    --gray-50: #F5F5F5;
    --gray-100: #EEEEEE;
    --gray-200: #E0E0E0;
    --gray-300: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.highlight {
    color: var(--green-main);
}

.highlight-light {
    color: var(--yellow-main);
}

/* === Preloader === */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader img {
    width: 80px;
    margin: 0 auto 20px;
    animation: pulse 1.2s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.loader-fill {
    width: 0;
    height: 100%;
    background: var(--yellow-main);
    border-radius: 4px;
    animation: loadBar 1.5s ease-in-out forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loadBar {
    0% { width: 0; }
    100% { width: 100%; }
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-dark);
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yellow-dark);
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-main);
    background: var(--green-pale);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--green-main);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-phone:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}

.nav-phone i {
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span {
    background: var(--white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 40%, var(--yellow-pale) 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(46,125,50,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,214,0,0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(46,125,50,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--green-pale);
    color: var(--green-main);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(46,125,50,0.15);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle strong {
    color: var(--green-main);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--green-main);
    color: var(--white);
    border-color: var(--green-main);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,125,50,0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--green-main);
    border-color: var(--green-main);
}

.btn-outline:hover {
    background: var(--green-main);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,125,50,0.2);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 3s ease-in-out infinite;
}

.hero-float-card i {
    color: var(--yellow-dark);
    font-size: 1.1rem;
}

.card-1 {
    top: 20px;
    right: -10px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30px;
    left: -10px;
    animation-delay: 1.5s;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Section Header (Shared) === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--green-pale);
    color: var(--green-main);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255,255,255,0.15);
    color: var(--yellow-main);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title.light {
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.section-desc.light {
    color: rgba(255,255,255,0.75);
}

/* === About Section === */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;
}

.about-img-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 60px;
    height: 60px;
    background: var(--green-main);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) 0 0 0;
    font-size: 1.3rem;
}

.founder-info {
    text-align: center;
    margin-top: 20px;
}

.founder-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.founder-info p {
    font-size: 0.85rem;
    color: var(--green-main);
    font-weight: 500;
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--green-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--green-pale);
    transform: translateX(5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--green-main);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.about-feature h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === Categories Section === */
.categories {
    padding: 100px 0;
    background: var(--gray-50);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-main), var(--yellow-main));
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon-wrap {
    margin-bottom: 20px;
}

.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--green-pale), var(--yellow-pale));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--green-main);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    color: var(--white);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.category-card > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.category-items {
    text-align: left;
    margin-bottom: 16px;
}

.category-items li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-items li:last-child {
    border-bottom: none;
}

.category-items li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--green-light);
}

.category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--yellow-pale);
    color: var(--yellow-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* === Why Choose Us === */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 50%, #1a6928 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,214,0,0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.why-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    border-color: rgba(255,214,0,0.3);
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--yellow-main), var(--yellow-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--green-dark);
}

.why-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* === Offer Banner / Marquee === */
.offer-banner {
    background: var(--yellow-main);
    padding: 16px 0;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-content span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.marquee-content i {
    font-size: 0.7rem;
    color: var(--green-main);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Contact Section === */
.contact {
    padding: 100px 0;
    background: var(--gray-50);
}

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

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.contact-card:hover {
    border-color: var(--green-main);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-card a {
    color: var(--green-main);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--green-dark);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--transition);
}

.social-btn.phone {
    background: var(--green-main);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.gmaps {
    background: #EA4335;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-map {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* === Footer === */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 45px;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    display: block;
    line-height: 1.1;
}

.footer-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--yellow-main);
    letter-spacing: 3px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--yellow-main);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--green-light);
    margin-top: 3px;
    min-width: 16px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
    color: var(--yellow-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.float-tooltip {
    position: absolute;
    right: 70px;
    background: var(--white);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float:hover .float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 44px;
    height: 44px;
    background: var(--green-main);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
}

/* === Services Section === */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 50%, var(--yellow-pale) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-main);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #25D366, #1da851);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main));
    color: var(--green-dark);
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card a {
    color: var(--green-main);
    font-weight: 600;
}

.services-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === Gallery Section === */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-large {
    grid-row: 1 / 3;
}

.gallery-large img {
    height: 100%;
    min-height: 580px;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-label i {
    color: var(--yellow-main);
}

/* === Special Offers Section === */
.special-offers {
    padding: 100px 0;
    background: var(--white);
}

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

.offer-card {
    position: relative;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 60%, var(--yellow-pale) 100%);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-main), var(--yellow-main));
    transform: scaleX(0);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.offer-card:hover::before {
    transform: scaleX(1);
}

.offer-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    transition: var(--transition);
}

.offer-card:hover .offer-icon {
    transform: scale(1.1);
}

.offer-card:nth-child(2) .offer-icon {
    background: linear-gradient(135deg, #25D366, #1da851);
}

.offer-card:nth-child(3) .offer-icon {
    background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main));
    color: var(--green-dark);
}

.offer-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--yellow-pale);
    color: var(--yellow-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.offer-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === How to Order Section === */
.how-to-order {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 50%, var(--yellow-pale) 100%);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step-card {
    flex: 1;
    max-width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-main);
}

.step-number {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    background: var(--green-main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--green-pale), var(--yellow-pale));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--green-main);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    color: var(--white);
    transform: scale(1.1);
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-card a {
    color: var(--green-main);
    font-weight: 600;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--green-main);
    padding-top: 60px;
}

/* === Customer Reviews Section === */
.reviews {
    padding: 100px 0;
    background: var(--gray-50);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-main);
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.review-stars i {
    color: var(--yellow-dark);
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.review-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.review-author h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Scroll Animations === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Design === */

/* Tablet Large */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 300px 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .offers-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Tablet */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Branded header inside mobile menu */
    .nav-menu::before {
        content: 'KHALSA S-MART';
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 70px;
        background: linear-gradient(135deg, var(--green-dark), var(--green-main));
        color: var(--white);
        font-size: 1.1rem;
        font-weight: 800;
        letter-spacing: 3px;
        flex-shrink: 0;
        border-bottom: 3px solid var(--yellow-main);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 24px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        border-radius: 0;
        border-bottom: 1px solid var(--gray-100);
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--green-pale);
        color: var(--green-main);
        padding-left: 32px;
    }

    .nav-phone span { display: none; }
    .nav-phone { padding: 10px 12px; border-radius: 50%; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }

    .hero-stats {
        justify-content: center;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats .stat {
        flex: 1;
        min-width: 0;
        align-items: center;
        padding: 12px 8px;
        background: var(--green-pale);
        border-radius: var(--radius-sm);
    }

    .hero-visual { order: -1; }
    .hero-image-wrapper img { height: 300px; }

    .card-1 { right: 10px; }
    .card-2 { left: 10px; }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img-wrapper img { height: 350px; }
    .about-features { align-items: center; }
    .about-feature { text-align: left; }

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

    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { min-height: 300px; }

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

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

    .steps-grid { flex-direction: column; align-items: center; }
    .step-card { max-width: 100%; width: 100%; }
    .step-arrow { padding-top: 0; transform: rotate(90deg); }

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

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

    .gallery-large {
        grid-row: auto;
    }

    .gallery-large img {
        height: 280px;
        min-height: auto;
    }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container { height: 65px; }
    .nav-logo img { width: 40px; height: 40px; }
    .logo-name { font-size: 1.1rem; }

    html { scroll-padding-top: 65px; }

    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .hero-stats .stat {
        padding: 10px 6px;
    }

    .stat-number { font-size: 1.4rem; }
    .stat-suffix { font-size: 1.1rem; }
    .stat-label { font-size: 0.7rem; }

    .hero-image-wrapper img { height: 220px; }

    .hero-float-card { padding: 8px 14px; font-size: 0.75rem; }

    .categories-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }

    .about { padding: 60px 0; }
    .categories { padding: 60px 0; }
    .why-us { padding: 60px 0; }
    .contact { padding: 60px 0; }
    .services { padding: 60px 0; }
    .special-offers { padding: 60px 0; }
    .how-to-order { padding: 60px 0; }
    .reviews { padding: 60px 0; }
    .gallery { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.7rem; }

    .services-grid { grid-template-columns: 1fr; }
    .services-cta { flex-direction: column; align-items: center; }
    .services-cta .btn { width: 100%; }

    .gallery-item img { height: 220px; }

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

    .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .back-to-top { right: 80px; bottom: 20px; width: 40px; height: 40px; }
}
