/* ========================================
   SVD MILK AGENCIES - RESPONSIVE BASE CSS
   Mobile-First Approach
   ======================================== */

/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #25d366;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --cream: #fef7e0;
    --jersey:#8ae9fa;
    --border-color: #e1e5e9;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Breakpoints */
    --mobile: 576px;
    --tablet: 768px;
    --desktop: 992px;
    --large: 1200px;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 0 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.97) 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(102, 126, 234, 0.15);
    padding: 0.5rem 0;
}

/* Mobile Navigation Enhancements */
.navbar-collapse {
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 20px var(--shadow-medium);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-md);
}

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

.navbar-nav .nav-item {
    margin: var(--spacing-xs) 0;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: underline;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 25px;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
    height: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Modern Place Order Button */
.btn-place-order {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 140px;
    text-align: center;
}

.btn-place-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-place-order:hover::before {
    left: 100%;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.btn-place-order:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-text-full {
    display: inline;
}

.btn-text-short {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    width: 100vw;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--spacing-xxl) 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-bg-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.3;
}

.hero-gradient-overlay {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.9));
}
.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    margin-top: 35px;
}

.hero-logo-img {
    border-radius: 50%;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.hero-logo-img:hover {
    transform: scale(1.05);
}

/* Brand Logo Styles */
.brand-logo {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: var(--spacing-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.brand-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-heavy);
}

.hero-main-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-lg);
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero-cta-buttons {
    gap: var(--spacing-md);
}

.btn-hero-cta {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
}

.trust-indicators {
    margin-top: var(--spacing-xxl);
}

.trust-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--spacing-xxl) 0;
    width: 100%;
    margin: 0;
    position: relative;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Ensure full-width sections extend properly */
.section > .container-fluid {
    width: 100%;
    max-width: 100%;
}

.section-title {
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.section-title p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 450px;
    width: 100%;
    text-align: center !important;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.product-image {
    width: 90%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 10px 10px 0 0;
    background-color: #f8f9fa;
    padding: 10px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.product-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    padding: 0 var(--spacing-md) var(--spacing-lg);
}

.product-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0 0;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--success-color);
    margin-right: var(--spacing-xs);
    font-size: 0.8rem;
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    display: block;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-white);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}


/* ========================================
   FORMS
   ======================================== */

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: var(--spacing-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a1a);
    color: var(--text-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-logo {
    max-width: 100px;
    border-radius: 10px;
}

.footer-title {
    color: var(--text-white);
    font-family: var(--font-secondary);
    font-weight: 600;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

.loading {
    animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Extra small devices (phones, 320px and up) */
@media (min-width: 320px) {
    .hero-section {
        padding: var(--spacing-lg) 0;
        min-height: 90vh;
    }

    .hero-logo-img {
        width: 100px;
        height: 100px;
    }

    .hero-main-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 0 var(--spacing-sm);
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn-hero-cta {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }

    .trust-indicators {
        margin-top: var(--spacing-lg);
    }

    .trust-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }

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

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-main-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .hero-cta-buttons {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .btn-hero-cta {
        width: auto;
        max-width: none;
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1.1rem;
    }

    .btn-text-short {
        display: none;
    }

    .brand-full {
        display: inline;
    }

    .brand-short {
        display: none;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
    }

    .trust-indicators .row {
        gap: var(--spacing-md);
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar {
        padding: var(--spacing-md) 0;
    }
    
    .hero-section {
        padding: var(--spacing-xxl) 0;
    }
    
    .hero-logo-img {
        width: 150px;
        height: 150px;
    }
    
    .section {
        padding: var(--spacing-xxl) 0;
    }
    
    .feature-card {
        padding: var(--spacing-xxl);
    }
    
    .trust-indicators .row {
        gap: var(--spacing-lg);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-main-title {
        font-size: clamp(3rem, 3vw, 4rem);
    }

    .hero-description {
        font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    }

    .section-title h2 {
        font-size: clamp(2rem, 2.5vw, 2.5rem);
    }

    .footer {
        padding: var(--spacing-xxl) 0;
    }

    /* Keep container-fluid full width for large screens */
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .section {
        padding: 4rem 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile-specific utility classes */
.mobile-center {
    text-align: center;
}

.mobile-full-width {
    width: 100% !important;
}

.mobile-stack {
    flex-direction: column;
}

.mobile-spacing {
    margin: var(--spacing-sm) 0;
}

.mobile-padding {
    padding: var(--spacing-md);
}

/* Touch-friendly enhancements */
@media (max-width: 768px) {
    .btn, .btn-hero-cta, .btn-place-order {
        min-height: 44px; /* iOS recommended touch target */
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    .card {
        margin-bottom: var(--spacing-lg);
    }

    .navbar-nav .nav-link {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1.1rem;
    }

    .form-control, .form-select {
        font-size: 1rem; /* Prevents zoom on iOS */
        padding: var(--spacing-lg);
    }

    /* Improve readability on mobile */
    .hero-description, .section-title p, .feature-description {
        line-height: 1.7;
    }

    /* Better spacing for mobile sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

    /* Mobile-first grid adjustments */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto,
    .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto,
    .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto,
    .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto,
    .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.shadow-sm {
    box-shadow: 0 2px 10px var(--shadow-light);
}

.shadow-md {
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.shadow-lg {
    box-shadow: 0 10px 30px var(--shadow-heavy);
}

.rounded-lg {
    border-radius: 15px;
}

.rounded-xl {
    border-radius: 20px;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
}
