/* =====================================================
   KRISHNA CARE - Dairy Brand Website
   Modern, Responsive, Spiritual Design
   ===================================================== */

:root {
    --primary-white: #FFFFFF;
    --light-blue: #E3F2FD;
    --sky-blue: #87CEEB;
    --gold: #FFD700;
    --dark-gold: #DAA520;
    --dark-text: #2C3E50;
    --light-gray: #F5F5F5;
    --border-gray: #CCCCCC;
    --success-green: #27AE60;
    --error-red: #E74C3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--primary-white);
    overflow-x: hidden;
}

/* =====================================================
   TYPOGRAPHY & UTILITY CLASSES
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-gold);
}

button, .btn {
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #87CEEB, #E3F2FD);
    color: var(--dark-text);
    border: 2px solid var(--sky-blue);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: var(--gold);
    color: var(--dark-text);
}

.btn-secondary:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 20px;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--dark-gold);
}

/* =====================================================
   NAVBAR
   ===================================================== */

nav {
    background: linear-gradient(90deg, var(--primary-white), var(--light-blue));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo:before {
    content: "🥛";
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
}

.nav-menu a:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* =====================================================
   MOBILE RESPONSIVENESS - NAVBAR
   ===================================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -7px);
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        flex-direction: column;
        background-color: var(--light-blue);
        width: 100%;
        text-align: center;
        gap: 15px;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu a {
        display: block;
    }

    .nav-menu a:after {
        display: none;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background: linear-gradient(135deg, var(--light-blue), rgba(135, 206, 235, 0.2));
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold), transparent);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--dark-gold);
    margin-bottom: 20px;
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .hero {
        padding: 60px 20px;
    }
}

/* =====================================================
   FEATURED PRODUCTS / PRODUCTS GRID
   ===================================================== */

.products-section {
    background-color: var(--light-gray);
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.section-title .accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-blue), var(--gold));
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--primary-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.3);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--light-blue), var(--sky-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.product-price {
    font-size: 1.5rem;
    color: var(--dark-gold);
    margin: 10px 0;
    font-weight: 700;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-card .btn-primary {
    width: 100%;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about-section {
    padding: 60px 20px;
    background-color: var(--primary-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--light-blue), var(--sky-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.about-text h2 {
    margin-bottom: 20px;
    color: var(--dark-text);
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.values-list {
    margin: 20px 0;
    list-style: none;
}

.values-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 250px;
        font-size: 3rem;
    }
}

/* =====================================================
   CONTACT FORM
   ===================================================== */

.contact-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--light-blue), rgba(135, 206, 235, 0.1));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--dark-text);
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.contact-item p {
    margin: 0;
}

.contact-form {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 5px rgba(135, 206, 235, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: linear-gradient(135deg, var(--dark-text), #1A252F);
    color: var(--primary-white);
    padding: 40px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section a {
    color: var(--light-blue);
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: var(--sky-blue);
    border-radius: 50%;
    color: var(--dark-text);
    margin: 0;
    font-weight: bold;
}

.social-links a:hover {
    background-color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* =====================================================
   CHECKOUT PAGE STYLES
   ===================================================== */

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkout-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.order-summary {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.order-item-qty {
    color: #666;
}

.order-total {
    border-top: 2px solid var(--gold);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
}

.payment-options {
    margin-top: 25px;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-method label {
    cursor: pointer;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: relative;
        top: 0;
    }
}

/* =====================================================
   SUCCESS PAGE
   ===================================================== */

.success-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.success-message h1 {
    color: var(--success-green);
    margin-bottom: 20px;
}

.order-id {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.order-id strong {
    color: var(--dark-gold);
}

/* =====================================================
   POLICY PAGES
   ===================================================== */

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.policy-container h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.policy-container h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--sky-blue);
}

.policy-container p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.policy-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-container ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #555;
}

.policy-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.policy-container table th,
.policy-container table td {
    border: 1px solid var(--border-gray);
    padding: 12px;
    text-align: left;
}

.policy-container table th {
    background-color: var(--light-blue);
    font-weight: 600;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--sky-blue);
}

.breadcrumb span {
    color: #999;
}

/* =====================================================
   LOADING & TRANSITIONS
   ===================================================== */

.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.text-muted {
    color: #999;
    font-size: 0.9rem;
}

.highlight {
    color: var(--dark-gold);
    font-weight: 600;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
