/* ===== CSS Variables – Logo colours: red + blue, clean food-industry look ===== */
:root {
    /* Blue from logo ("global", sphere) */
    --primary-color: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2c5282;
    --blue-soft: #ebf4f8;
    /* Red from logo ("brix") – used for CTAs and highlights */
    --accent-color: #c53030;
    --accent-soft: #fff5f5;
    /* Neutrals – clean, minimal */
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-light: #fafbfc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #2d6a4f;
    --error-color: #c53030;
    /* Softer shadows for a clean feel */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease;
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
    --radius: 6px;
    --space-section: 5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== Navigation – clean, minimal ===== */
.navbar {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.logo a:hover .logo-img {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero – rotating food images + overlay, text on top ===== */
.hero {
    background: var(--primary-dark); /* fallback when no images */
    color: #ffffff;
    padding: 5.5rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-light) 100%);
    z-index: 2;
}

.hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-bg-slide.active {
    opacity: 1;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.62);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: var(--radius);
}

.btn-primary:hover {
    background-color: #9b2c2c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    color: #ffffff;
}

/* ===== Sections – generous whitespace for clean look ===== */
section {
    padding: var(--space-section) 0;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1rem;
}

/* ===== Features Section – light grey for subtle contrast ===== */
.features {
    background-color: var(--bg-light);
}

.features.industries-home {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

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

/* ===== Industries (home + industries page) ===== */
.industries-home .section-title { margin-bottom: 0.5rem; }

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.industry-card {
    display: block;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.industry-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.industry-placeholder {
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
}

.industry-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.industry-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 1.25rem 1rem 0.5rem;
    color: var(--text-dark);
}

.industry-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 1rem 1.25rem;
}

.industry-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-color);
}

.industry-card-large .industry-placeholder { height: 200px; }
.industry-card-large p { margin-bottom: 0.75rem; }

.industries-page .industries-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.industries-page .industry-card {
    text-align: left;
}

.industries-page .industry-card .industry-placeholder {
    height: 160px;
}

/* ===== Industry content (dairy, fruit, confectionery, bakery pages) ===== */
.industry-content {
    padding: 3rem 0 4rem;
    background: var(--bg-white);
}

.industry-content .container {
    max-width: 720px;
}

.industry-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.industry-content p {
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.industry-content .btn { margin-top: 0.5rem; }

/* ===== CTA Section – deep blue ===== */
.cta {
    background: var(--primary-dark);
    color: #ffffff;
    text-align: center;
    position: relative;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-light) 100%);
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}

/* ===== Footer – deep blue (logo) ===== */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.88);
    padding: 3.5rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.125rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section p a {
    color: rgba(255, 255, 255, 0.95);
}

.footer-section p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* ===== Page Header – deep blue, thin red accent ===== */
.page-header {
    background: var(--primary-dark);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 2;
}

/* About page: banner image with overlay */
.page-header-about {
    background-image: url('images/about-banner.png');
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
}
.page-header-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.72);
    z-index: 1;
}
.page-header-about .container {
    position: relative;
    z-index: 2;
}

/* Industries page: banner image with overlay */
.page-header-industries {
    background-image: url('images/industries-banner.png');
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
}
.page-header-industries::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.65);
    z-index: 1;
}
.page-header-industries .container {
    position: relative;
    z-index: 2;
}

/* Contact page: banner image with overlay */
.page-header-contact {
    background-image: url('images/contact-banner.png');
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
}
.page-header-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.65);
    z-index: 1;
}
.page-header-contact .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.0625rem;
    opacity: 0.92;
}

/* ===== About Page ===== */
.about-content {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Mission Section ===== */
.mission {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.value-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

/* ===== Team Section ===== */
.team {
    background-color: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.team-member h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.team-member p {
    color: var(--text-light);
}

/* ===== Services Page ===== */
.services-section {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: disc;
    padding-left: 1.5rem;
}

.service-features li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* ===== Process Section ===== */
.process {
    background-color: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    font-family: var(--font-heading);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
}

/* ===== Contact Page ===== */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ===== Contact Form ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* ===== Contact Info ===== */
.contact-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-content p {
    margin-bottom: 0.25rem;
}

.info-content a {
    color: var(--primary-color);
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

/* ===== Map Section ===== */
.map-section {
    background-color: var(--bg-light);
    padding: 0;
}

.map-placeholder {
    height: 400px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

.map-note {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: var(--text-dark);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
}

/* ===== WhatsApp floating button – follows on scroll ===== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
