/* ==================================================
   Brotherhood Food & Beverages - Professional Website
   Modern, Responsive Design with Animations
   Cache Control: No-Cache
================================================== */

/* Prevent caching */
* {
    -webkit-cache: no-cache;
    -moz-cache: no-cache;
    -o-cache: no-cache;
    cache: no-cache;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    display: flex;               /* make footer stick to bottom when content is short */
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfb 100%);
    overflow-x: hidden;
    /* Prevent caching */
    -webkit-cache-control: no-cache;
    -moz-cache-control: no-cache;
    cache-control: no-cache;
    expires: 0;
    pragma: no-cache;
}

main { flex: 1 0 auto; }

/* ==================================================
   PRELOADER STYLES
================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    position: relative;
    width: 100px;
    height: 120px;
}

.bottle {
    width: 60px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid #fff;
    border-radius: 0 0 30px 30px;
    position: relative;
    margin: 0 auto;
}

.bottle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 3px 3px 0 0;
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 3px;
    right: 3px;
    height: 0%;
    background: linear-gradient(to top, #ff8a50, #ffab91);
    border-radius: 0 0 27px 27px;
    animation: fillBottle 2s ease-in-out infinite alternate;
}

@keyframes fillBottle {
    0% { height: 10%; }
    100% { height: 80%; }
}

/* ==================================================
   UTILITY CLASSES
================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   PAGE HERO SECTION (for all pages except home)
================================================== */
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/allhaveit.jpeg') center/cover no-repeat;
    opacity: 0.3;
}

.page-hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 600px;
    padding: 0 20px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .page-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 30vh;
        min-height: 280px;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border-color: #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

/* ==================================================
   HEADER STYLES
================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0; /* reduced vertical padding to remove extra space around logo */
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

/* Logo image */
.nav-brand .site-logo {
    height: 80px;      /* increased for better visibility on desktop */
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;          /* remove any extra default margin */
    vertical-align: middle;
    line-height: 0;
}

@media (max-width: 1024px) {
    .nav-brand .site-logo { height: 64px; }
}

@media (max-width: 768px) {
    .nav-brand .site-logo { height: 52px; }
    .brand-name { font-size: 1.25rem; }
}

.nav-brand .fa-tint {
    font-size: 2rem;
    color: #ff6b35;
    margin-right: 10px;
}

/* logo text removed — keep styles for footer-brand if needed */
.logo-text { display: none !important; }

.brand-name, .brand-tagline { display: none !important; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ==================================================
   HERO SECTION STYLES
================================================== */
.hero {
    position: relative;
    height: auto;              /* let aspect-ratio / content define height */
    min-height: 60vh;         /* fallback for small viewports */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
    /* Account for fixed header */
}

/* Desktop: match slide image aspect ratio (1560x720) so background-size: contain fills container without letterbox */
@media (min-width: 769px) {
    .hero {
        aspect-ratio: 1560 / 720;
        height: auto;
        max-height: 85vh; /* avoid exceeding viewport on short screens */
        width: 100vw !important;      /* force full viewport width */
        left: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
    }

    /* ensure slideshow children also fill the full-bleed container */
    .hero-slideshow, .slide, .slide-mobile {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #f8f5f2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Mobile specific slides */
.slide-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #f8f5f2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-mobile.active {
    opacity: 1;
}

/* Desktop slides visible only on desktop */
@media (min-width: 769px) {
    .slide {
        display: block;
        /* use cover on desktop to avoid empty space at sides; align to top so important content isn't cropped */
        background-size: cover;
        background-position: top center;
    }
    .slide-mobile {
        display: none !important;
    }
    .indicator.desktop {
        display: block;
    }
    .indicator.mobile {
        display: none !important;
    }
}

/* Mobile slides visible only on mobile */
@media (max-width: 768px) {
    .slide {
        display: none !important;
    }
    .slide-mobile {
        display: block !important;
    }
    .indicator.desktop {
        display: none !important;
    }
    .indicator.mobile {
        display: block;
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 32, 31, 0.7) 0%, rgba(79, 62, 62, 0.7) 100%);
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: rgb(235, 219, 211);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.title-line.highlight {
    background: linear-gradient(45deg, #edbc0a, #ffab91);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ==================================================
   SECTION STYLES
================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================================================
   ABOUT PREVIEW SECTION
================================================== */
.about-preview {
    padding: 100px 0;
    background: linear-gradient(135deg, #f4f1f0 0%, #ede5e3 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefbf8 100%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-item i {
    font-size: 2rem;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: auto;           /* let content & min-height decide */
    min-height: 520px;      /* increased so logo appears larger */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
}

.about-image img {
    width: auto;
    height: 88%;            /* large, but with some breathing space */
    object-fit: contain;    /* ensure full logo is visible */
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s ease;
}

/* reduce hover scale for logo area */
.about-image:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(211, 47, 47, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================================================
   PRODUCTS PREVIEW SECTION
================================================== */
.products-preview {
    padding: 100px 0;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdf9f6 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8f6 0%, #f5f2f0 100%);
    border-radius: 15px 15px 0 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 20px;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.category-overlay i {
    font-size: 1.5rem;
    color: #ff6b35;
}

.category-content {
    padding: 2rem;
}

.category-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.category-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.category-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: #666;
}

.category-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.category-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #d32f2f;
    gap: 10px;
}

/* ==================================================
   STATS SECTION
================================================== */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 3rem;
    color: #f4efed;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==================================================
   CTA SECTION
================================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0ede8 0%, #e8e1dc 100%);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================================================
   FOOTER STYLES
================================================== */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .fa-tint {
    font-size: 2rem;
    color: #ffab91;
    margin-right: 10px;
}

.footer-description {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ff6b35;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffab91;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffab91;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    color: #ffab91;
    margin-top: 3px;
    min-width: 16px;
}

.contact-item p {
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #ccc;
    margin: 0;
}

/* Developed by credit in footer */
.developed-by {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0 1rem;
}
.developed-by a {
    color: #ffab91;
    text-decoration: none;
    font-weight: 600;
}
.developed-by a:hover {
    text-decoration: underline;
}

.footer-certifications {
    display: flex;
    gap: 2rem;
}

.certification {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.certification i {
    color: #ffab91;
}

/* ==================================================
   BACK TO TOP BUTTON
================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.back-to-top.show {
    display: flex;
}

/* ==================================================
   RESPONSIVE DESIGN
================================================== */

/* Fix mobile overflow and spacing */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    /* Fix mobile container */
    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    /* Fix header positioning on mobile */
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: 0.5rem 1rem; /* reduced so logo has less top/bottom space on mobile */
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix hero section spacing on mobile */
    .hero {
        height: 85vh;
        margin-top: 70px; /* Reduced margin for mobile */
    }
    
    /* Ensure logo doesn't overflow */
    .nav-brand {
        flex: 1;
        min-width: 0;
    }
    
    .nav-brand .logo {
        max-width: calc(100vw - 80px); /* Leave space for menu button */
    }
    
    /* Fix menu toggle positioning */
    .nav-toggle {
        display: flex;
        margin-left: auto;
        padding: 10px;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        text-align: center;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        display: block;
    }
    
    /* Professional mobile footer layout */
    .footer-content .footer-section:first-child {
        /* Brand section - full width top */
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Create flex container for middle sections */
    .footer-content .footer-section:nth-child(2) {
        display: inline-block;
        width: 45%;
        vertical-align: top;
        text-align: left;
        padding-right: 0.5rem;
        margin-left: 2.5%;
    }
    
    .footer-content .footer-section:nth-child(3) {
        display: inline-block;
        width: 45%;
        vertical-align: top;
        text-align: left;
        padding-left: 0.5rem;
        margin-right: 2.5%;
    }
    
    .footer-content .footer-section:last-child {
        /* Contact info - full width bottom */
        text-align: center;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    /* Enhanced titles and links for mobile */
    .footer-title {
        font-size: 1.1rem;
        color: #ffab91;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }
    
    .footer-links a:hover {
        color: #ffab91;
    }
    
    /* Social links mobile optimization */
    .social-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 171, 145, 0.1);
        color: #ffab91;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .social-link:hover {
        background: #ffab91;
        color: white;
        transform: translateY(-2px);
    }
    
    /* Contact info mobile styling */
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-item i {
        color: #ffab91;
        width: 20px;
        text-align: center;
    }
    
    .contact-item p {
        margin: 0;
        color: #ccc;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        color: #aaa;
        margin: 0;
    }
    
    .footer-certifications {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .certification {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: #ffab91;
    }
    
    .certification i {
        font-size: 0.9rem;
    }
    
    .slide-nav {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        margin: 0 10px;
    }
    
    /* Mobile specific hero adjustments */
    .hero {
        height: 80vh;
        margin-top: 65px; /* Further reduced for small screens */
    }
    
    .slide-nav {
        padding: 0 1rem;
    }
    
    .slide, .slide-mobile {
        background-attachment: scroll;
        background-size: contain;
        background-position: top center;
    }
}

/* ==================================================
   ANIMATIONS
================================================== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #ff6b35 100%);
}

/* ==================================================
   LOADING ANIMATIONS
================================================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   HOVER EFFECTS
================================================== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* ==================================================
   PRODUCTS SHOWCASE SECTION
================================================== */
.products-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff7f4 0%, #ffe8e0 50%, #ffecda 100%);
}

.products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-showcase-item {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #fdf8f5 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.08);
    transition: all 0.3s ease;
}

.product-showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-showcase-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff; /* plain white background */
    padding: 8px;           /* reduced padding so image appears larger */
    height: 300px;         /* slightly taller to make image more prominent */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keeps full image visible while filling the box */
    transition: transform 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
} 

.product-showcase-item:hover .product-showcase-image img {
    transform: scale(1.15);
}

.product-showcase-item h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.product-showcase-item:hover h4 {
    color: #ff6b35;
}

.showcase-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Mobile Responsive for Products Showcase */
@media (max-width: 768px) {
    .products-showcase {
        padding: 60px 0;
    }
    
    .products-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-showcase-item {
        padding: 1rem;
    }
    
    .product-showcase-image {
        height: 240px; /* slightly larger on tablet */
        padding: 12px;
    }
} 

@media (max-width: 480px) {
    .products-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-showcase-item {
        padding: 0.8rem;
    }
    
    .product-showcase-image {
        height: 200px; /* increase so image looks bigger on small screens too */
        padding: 8px;
    }
    
    .product-showcase-item h4 {
        font-size: 0.95rem;
    }
}

/* Team/Leadership Section */
.team {
    background: linear-gradient(135deg, #f2ebe8 0%, #ede0db 100%);
    padding: 80px 0;
    color: #333;
}

.team .section-title {
    color: white;
}

.team .section-subtitle {
    color: white;
}

.team-message {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fdf9f6 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
    text-align: center;
    position: relative;
}

.team-message::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #ff6b35, #d32f2f);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.1;
}

.message-content .fas {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 1.5rem;
}

.message-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    margin-bottom: 2rem;
}

.message-author {
    border-top: 2px solid #f0f0f0;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.message-author strong {
    display: block;
    font-size: 1.1rem;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.message-author span {
    color: #888;
    font-size: 0.95rem;
}

/* Contact Form Messages */
.form-message {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #fff0e6 0%, #ffe4cc 100%);
    border: 1px solid #ffab91;
    color: #b8610a;
}

.form-message.error {
    background: linear-gradient(135deg, #ffe8e6 0%, #ffcccc 100%);
    border: 1px solid #ff8a80;
    color: #b71c1c;
}

.form-message .fas {
    font-size: 1.2rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.btn-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-loader.active {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}