/* Freshmama Website Custom Styles */

/* Lao Font */
@font-face {
    font-family: 'Phetsarath OT';
    src: url('../fonts/Phetsarath OT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* General Styles */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #66bb6a;
    --dark-color: #1b5e20;
    --light-color: #f1f8e9;
    --text-dark: #212529;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Lao Language Support */
body.lang-lo,
body.lang-lo * {
    font-family: 'Phetsarath OT', 'Poppins', sans-serif;
}

.lang-lo {
    font-family: 'Phetsarath OT', 'Poppins', sans-serif;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        max-width: 150px;
    }
}

.brand-text {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: var(--text-dark) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    background-image: url('../images/header/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    animation: fadeInUp 1s ease;
}

.hero-section .lead {
    animation: fadeInUp 1.2s ease;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    padding: 4rem 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Feature Icons */
.feature-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-sm {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Value Icons */
.value-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Images */
.team-image {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Impact Stats */
.impact-stat h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

/* Product Image Placeholder */
.product-image-placeholder,
.before-after-placeholder,
.data-visual,
.mission-image,
.video-placeholder,
.map-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Product Image Container */
.product-image-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* Comparison Images */
.comparison-image-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.comparison-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.comparison-image-container:hover img {
    transform: scale(1.05);
}

/* Mission Image Container */
.mission-image-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.mission-image-container img:hover {
    transform: scale(1.05);
}

/* Technology Image Container */
.technology-image-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.technology-image-container img:hover {
    transform: scale(1.05);
}

/* Ethylene Graph Container */
.ethylene-graph-container {
    transition: transform 0.3s ease;
}

.ethylene-graph-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ethylene-graph-container:hover {
    transform: translateY(-5px);
}

/* Papaya Demo Container */
.papaya-demo-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.papaya-demo-container img:hover {
    transform: scale(1.05);
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Video Container */
.video-container {
    position: relative;
    background: #000;
}

.video-container video {
    display: block;
    max-width: 100%;
    height: auto;
}

.video-container video:focus {
    outline: none;
}

/* Forms */
.form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

textarea.form-control {
    resize: vertical;
}

/* Newsletter Section */
#newsletter .form-control {
    height: 55px;
}

/* Contact Info Items */
.contact-info-item i {
    width: 30px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #212529, #343a40);
}

.footer-with-bg {
    position: relative;
    background: linear-gradient(135deg, #212529, #343a40);
    background-image: url('../images/footer/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.footer .container {
    z-index: 2;
}

.footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Accordion */
.accordion-item {
    border-radius: 10px !important;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.accordion-button {
    font-weight: 600;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

/* Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .impact-stat h2 {
        font-size: 2.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .product-image-placeholder,
    .before-after-placeholder,
    .data-visual,
    .mission-image,
    .video-placeholder,
    .map-placeholder {
        min-height: 250px;
    }

    .footer-with-bg {
        background-attachment: scroll;
    }
}

/* Utility Classes */
.section-padding {
    padding: 5rem 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

.text-gradient {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
