/* 
   Rampushpa Business Website - Premium Design System 
   Style: Minimal, Modern, Professional, Premium
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Rampushpa Agro Identity */
    --color-primary: #019340;
    /* Deep Green - Headers, Nav, Primary Buttons */
    --color-primary-light: #017a35;
    /* Darker Green for hover */
    --color-secondary: #5BA7D1;
    /* Sky Blue - Subheadings, Icons */
    --color-accent: #F28C28;
    /* Orange - CTA Buttons, Highlights */
    --color-accent-hover: #d97b1f;
    /* Darker Orange for hover */
    --color-highlight: #A8CF6A;
    /* Light Green - Borders, Dividers, Hover States */
    --color-decorative: #C94A7A;
    /* Pink - Minimal Accents */

    --color-bg-body: #ffffff;
    /* White - Background */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8fafc;
    /* Very subtle off-white for sections */
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #A8CF6A;
    /* Light Green Border */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* UI Elements */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.01);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    /* Sky Blue for subheadings/smaller titles */
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.bg-white {
    background-color: var(--color-bg-white);
}

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

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* --- Components --- */

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    padding: var(--spacing-sm) 0;
}

.main-header.scrolled {
    padding: var(--spacing-xs) 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo span {
    margin-left: 10px;
    font-size: 1.25rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.mobile-cta,
.mobile-menu-btn {
    display: none;
}

.desktop-cta {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: calc(80px + var(--spacing-xl));
    /* Header height + spacing */
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #fdfbf7 0%, #f3f4f6 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-btns {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.visual-placeholder {
    display: none;
    /* Hide old placeholder styles if accessible */
}

/* Hero Slider */
.slider-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    border: 4px solid var(--color-highlight);
    box-shadow: var(--shadow-lg);
    background-color: white;
}

.slider-track {
    display: flex;
    height: 100%;
    /* 4 slides + 1 duplicate = 5 slides. Width = 500% */
    width: 400%;
    /* 4 slides. JS will handle scrolling */
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 25%;
    /* 100% / 4 slides */
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--color-primary);
    color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-highlight);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

/* Split Layout (About Teaser) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.section-tag {
    color: var(--color-decorative);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.image-placeholder-rect {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    border-radius: var(--border-radius-md);
}

/* Footer */
.main-footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.main-footer p {
    color: #94a3b8;
}

.main-footer h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.main-footer ul li {
    margin-bottom: 0.5rem;
}

.main-footer a {
    color: #94a3b8;
}

.main-footer a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all var(--transition-normal);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: var(--spacing-md);
    font-size: 0.875rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    .hero-container,
    .split-layout,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        z-index: 900;
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: var(--spacing-sm);
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 12px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Location Section */
.location-section {
    background-color: var(--color-bg-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-md);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
    height: 400px;
}

.location-details {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
}

.location-details h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.location-details p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}

/* Product Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    min-height: 200px;
}

.brand-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 1;
    transform: translateY(0);
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-highlight);
    transform: translateY(-5px);
}

    color: #94a3b8;
    transition: all var(--transition-normal);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: var(--spacing-md);
    font-size: 0.875rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    .hero-container,
    .split-layout,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        z-index: 900;
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: var(--spacing-sm);
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 12px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Location Section */
.location-section {
    background-color: var(--color-bg-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-md);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
    height: 400px;
}

.location-details {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
}

.location-details h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.location-details p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}

/* Product Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    min-height: 200px;
}

.brand-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 1;
    transform: translateY(0);
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-highlight);
    transform: translateY(-5px);
}

.brand-info {
    padding: 1.5rem;
    text-align: center;
}

.brand-info h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.brand-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Slider Animation */
@keyframes scroll-slider {
    0%, 15% { transform: translateX(0); }
    20%, 35% { transform: translateX(-20%); }
    40%, 55% { transform: translateX(-40%); }
    60%, 75% { transform: translateX(-60%); }
    80%, 100% { transform: translateX(-80%); }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-placeholder {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    font-weight: 500;
}
.gallery-category {
    margin-bottom: 3rem;
}

/* Service Page Styles */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.service-block:nth-child(even) {
    direction: rtl;
}
.service-block:nth-child(even) > * {
    direction: ltr;
}
.service-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.service-list {
    list-style-type: none;
    margin-bottom: 1.5rem;
}
.service-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}
.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}
.service-image {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-md);
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(1, 147, 64, 0.2);
}
.error-msg {
    color: red;
    font-size: 0.85rem;
    display: none;
    margin-top: 0.25rem;
}

/* WhatsApp Contact Cards */
.whatsapp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.wa-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-normal);
}
.wa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #22c55e;
}
.wa-card h4 {
    color: #166534;
    margin-bottom: 0.5rem;
}
.wa-card a {
    color: #15803d;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.wa-card a svg {
    fill: #16a34a;
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .service-block {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .service-block:nth-child(even) {
        direction: ltr;
    }
}
