/* Global Styles */
:root {
    --brand-red: #E31E24;
    /* Approximate from logo */
    --brand-yellow: #FFF200;
    /* Approximate from logo */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

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

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

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

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

.mt-40 {
    margin-top: 40px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--brand-red);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Buttons */
.btn-cta-nav {
    background: var(--brand-red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta-nav:hover {
    background: #c0151a;
    color: var(--white);
}

.btn-cta-hero {
    display: inline-block;
    background: var(--brand-yellow);
    color: var(--brand-red);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn-cta-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--brand-red);
    color: var(--white);
}

.btn-submit {
    width: 100%;
    background: var(--brand-yellow);
    color: var(--brand-red);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #fff;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
}

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

.logo img {
    height: 80px;
    /* Adjust based on logo aspect ratio */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--brand-red);
}

.nav-links li a.btn-cta-nav {
    color: var(--white);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
#hero {
    height: 90vh;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Add overlay to ensure text readability */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-slide .container {
    position: relative;
    z-index: 2;
}

.slide-container {
    background-image: url('./images/shipping_container_port.jpg');
}

.slide-factory {
    background-image: url('./images/confectionery_factory_interior.jpg');
}

.slide-generic {
    background-image: url('./images/banner.jpg');
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-headline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-trust {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-trust i {
    color: var(--brand-yellow);
    margin-right: 8px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.icon-box {
    width: 80px;
    height: 80px;
    background: #FFF0F0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--brand-red);
}

.benefit-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img-placeholder {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.product-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-card p {
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Lead Capture Form */
.lead-capture-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.lead-text {
    flex: 1;
    min-width: 300px;
}

.lead-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lead-benefits {
    margin-top: 30px;
}

.lead-benefits li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.lead-benefits i {
    color: var(--brand-yellow);
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.lead-form-container {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.lead-form-container h3 {
    margin-bottom: 20px;
    color: var(--brand-red);
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Certifications */
.cert-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.cert-item {
    width: 120px;
    height: 120px;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #888;
    background: var(--white);
}

.testimonial-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-box::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--brand-red);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
}

.testimonial-box blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonial-box cite {
    font-weight: 600;
    color: var(--brand-red);
}

/* Footer */
.footer-dark {
    background: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 20px;
    /* filter: brightness(0) invert(1); Removed to show original logo colors */
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list i {
    margin-right: 10px;
    color: var(--brand-red);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 100px;
        height: calc(100vh - 100px);
        background: var(--white);
        flex-direction: column;
        width: 100%;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

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

    .lead-capture-wrapper {
        flex-direction: column;
    }

    .lead-form-container {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Shipment Section */
.shipment {
    padding: 80px 0;
    background-color: var(--white);
}

.shipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.shipment-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.shipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

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

/* Responsive adjustment for Shipment */
@media (max-width: 768px) {
    .shipment-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--brand-yellow);
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px;
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Form Modal */
.popup-form-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-form-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-form-content h3 {
    color: var(--brand-red);
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.8rem;
}

.popup-form-content > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.popup-form-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.popup-form-close:hover,
.popup-form-close:focus {
    color: var(--brand-red);
    text-decoration: none;
    cursor: pointer;
}

.popup-form-content .form-group {
    margin-bottom: 15px;
}

.popup-form-content .form-group input,
.popup-form-content .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.popup-form-content .form-group input:focus,
.popup-form-content .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

.popup-form-content .btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.popup-form-content .btn-submit:hover {
    background: #c41a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.popup-form-content .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media only screen and (max-width: 600px) {
    .popup-form-content {
        width: 95%;
        padding: 25px 20px;
        max-height: 95vh;
    }
    
    .popup-form-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-form-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}