/* 
 * B9 Food & Beverage - Main Stylesheet
 * Version: 1.0
 * Date: 2026-04-04
 */

/* CSS Variables for Theme Colors */
:root {
    /* Yellow Theme Colors */
    --primary-yellow: #f59e0b;
    --yellow-light: #fef3c7;
    --yellow-dark: #d97706;
    --yellow-darker: #92400e;
    
    /* Text Colors */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #1f2937;
    
    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-yellow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yellow-dark);
}

/* Hero Section - Default (for other pages) */
.hero {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-dark) 100%);
    color: var(--text-white);
    padding: var(--spacing-4xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::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 100 100" preserveAspectRatio="none"><path fill="%23ffffff" fill-opacity="0.1" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
}

/* Hero Section - Home Page (index.php only) */
.home-hero {
    background: url('../images/company/office-exterior.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    padding: var(--spacing-4xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-white);
}

.home-hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    color: var(--text-white);
}

.home-hero .cta-button {
    background-color: var(--primary-yellow);
    color: var(--text-white);
    border: 2px solid var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.home-hero .cta-button:hover {
    background-color: var(--yellow-dark);
    border-color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Hero Section - Products Page (products.php only) */
.products-hero {
    background: url('../images/company/our-product-final-make.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    padding: var(--spacing-4xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.products-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.products-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-white);
}

.products-hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    color: var(--text-white);
}

/* Hero Section - About Page (about.php only) */
.about-hero {
    background: url('../images/company/factory.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    padding: var(--spacing-4xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-white);
}

.about-hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    color: var(--text-white);
}

/* Hero Section - Contact Page (contact.php only) */
.contact-hero {
    background: url('../images/company/office-interior.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    padding: var(--spacing-4xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-white);
}

.contact-hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    color: var(--text-white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-yellow);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background-color: var(--yellow-light);
    border-color: var(--primary-yellow);
}

/* Section Styles */
.section {
    padding: var(--spacing-4xl) var(--spacing-lg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-yellow);
    border-color: var(--yellow-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--yellow-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--primary-yellow);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Preview */
.about-preview {
    background-color: var(--yellow-light);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--yellow-darker);
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    line-height: 1.8;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 1.1rem;
}

.learn-more:hover {
    color: var(--yellow-dark);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Story Timeline - New Design for Our Story */
.story-timeline {
    max-width: 1200px;
    margin: var(--spacing-3xl) auto;
}

.story-part {
    margin-bottom: var(--spacing-4xl);
    position: relative;
}

.story-part:last-child {
    margin-bottom: 0;
}

.story-part::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-yellow), var(--yellow-dark));
    transform: translateX(-50%);
    z-index: 1;
}

.story-part.reverse::before {
    left: 50%;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.story-part.reverse .story-content {
    direction: rtl;
}

.story-part.reverse .story-content > * {
    direction: ltr;
}

.story-text {
    background-color: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--yellow-light);
}

.story-part.reverse .story-text {
    text-align: right;
}

.story-text h3 {
    color: var(--yellow-darker);
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.story-text h3::before {
    content: '';
    width: 30px;
    height: 30px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: inline-block;
}

.story-text p {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 1.05rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-image {
    position: relative;
}

.story-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.image-caption {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background-color: var(--bg-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-left: 4px solid var(--primary-yellow);
}

.image-caption i {
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

.image-caption span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.mission-vision-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-4xl);
}

.mission-card, .vision-card {
    background-color: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 5px solid var(--primary-yellow);
}

.vision-card {
    border-top-color: var(--yellow-dark);
}

.mission-icon, .vision-icon {
    width: 70px;
    height: 70px;
    background-color: var(--yellow-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--primary-yellow);
    font-size: 1.8rem;
}

.vision-icon {
    background-color: #fef3c7;
    color: var(--yellow-dark);
}

.mission-card h3, .vision-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.mission-card p, .vision-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: var(--bg-light);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 var(--spacing-sm);
    color: var(--border-medium);
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumb-item a:hover {
    color: var(--primary-yellow);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb-item i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: var(--spacing-xs) 0;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-yellow);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: var(--spacing-lg);
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.product-price {
    color: var(--primary-yellow);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    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(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-yellow);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero,
    .home-hero {
        padding: var(--spacing-3xl) var(--spacing-md);
        min-height: 70vh;
    }
    
    .hero h1,
    .home-hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: var(--spacing-3xl) var(--spacing-md);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Story Timeline Responsive */
    .story-part::before {
        left: 30px;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .story-part.reverse .story-content {
        direction: ltr;
    }
    
    .story-part.reverse .story-text {
        text-align: left;
    }
    
    .story-text {
        padding: var(--spacing-xl);
    }
    
    .story-img {
        height: 250px;
    }
    
    .image-caption {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: var(--spacing-md);
    }
    
    .mission-vision-summary {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1,
    .home-hero h1,
    .products-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .home-hero,
    .products-hero,
    .about-hero,
    .contact-hero {
        min-height: 60vh;
        padding: var(--spacing-3xl) var(--spacing-md);
    }
    
    .home-hero p,
    .products-hero p,
    .about-hero p,
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
}