/* ============================================
   EXTERNAL STYLESHEET - Golden Fork Caterers
   Filename: style.css
   Description: Advanced styling with background images 
   & modern UI enhancements. Complements internal CSS.
   ============================================ */

/* ---------- GLOBAL EXTENSIONS ---------- */
:root {
    --mustard-glow: rgba(212, 175, 55, 0.2);
    --black-rich: #050505;
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Background image overlays and hero enhancement */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' opacity='0.08'%3E%3Cpath fill='%23D4AF37' d='M400,100L500,200L400,300L300,200L400,100Z M600,300L700,400L600,500L500,400L600,300Z M200,300L300,400L200,500L100,400L200,300Z M400,500L500,600L400,700L300,600L400,500Z'/%3E%3Ccircle cx='400' cy='400' r='50' fill='%23D4AF37'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 120px;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 2;
}

/* Hero image area now supports local background image */
.hero-image {
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(0,0,0,0.02) 100%);
    backdrop-filter: blur(1px);
    transition: var(--transition-smooth);
    border: 1px solid rgba(212,175,55,0.25);
}

/* internal background image support - replace 'catering-bg.jpg' with your local image */
.hero-image .img-placeholder {
    background: rgba(10, 10, 10, 0.03);
    transition: transform 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* If you have a local background image for hero section, uncomment and edit path */
/*
.hero {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
*/

/* ---------- TEAM SECTION PHOTO BACKGROUND SUPPORT ---------- */
/* internal staff images - dynamic overlay support for photos */
.team-card {
    transition: var(--transition-smooth);
    background: #ffffff;
}

.team-img {
    position: relative;
    background-color: #f5f0e3;
    /* support for local background image per team member — these will be overridden by actual image tags if you add img */
    transition: all 0.3s;
    overflow: hidden;
}

/* individual background image placeholders: 
   you can replace with actual image paths e.g., url('team/william.jpg') */
.team-card:nth-child(1) .team-img {
    background-image: url('css/William.jpeg');
    background-size: cover;
    background-position: center 20%;
}

.team-card:nth-child(2) .team-img {
    background-image: url('images/joyce-njeri.jpg');
    background-size: cover;
    background-position: center;
}

.team-card:nth-child(3) .team-img {
    background-image: url('images/erick-obonyo.jpg');
    background-size: cover;
    background-position: center;
}

.team-card:nth-child(4) .team-img {
    background-image: url('images/victor-odeny.jpg');
    background-size: cover;
    background-position: center;
}

/* fallback styling when images missing - keeps icons readable */
.team-img i, 
.team-img span {
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    border-radius: 40px;
    color: white;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.team-img i {
    background: rgba(212,175,55,0.85);
    color: black;
    font-size: 2rem;
    padding: 10px;
    border-radius: 60px;
}

/* hover effect on team cards */
.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2);
    border-color: var(--mustard);
}

/* ---------- SERVICE CARDS: GLASS EFFECT ---------- */
.service-card {
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.92);
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    border-bottom: 3px solid var(--mustard);
    background: white;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
}

.service-icon i {
    transition: transform 0.2s;
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotate(2deg);
}

/* ---------- CLIENTS SECTION BACKGROUND IMAGE (optional texture) ---------- */
.clients-section {
    background-image: linear-gradient(to right, rgba(212,175,55,0.03), rgba(0,0,0,0.02)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.03"><path fill="%23D4AF37" d="M80,40 L100,10 L120,40 L150,50 L120,70 L100,100 L80,70 L50,50 L80,40Z"/></svg>');
    background-repeat: repeat;
    background-size: 48px;
}

/* ---------- MISSION BLOCK : DARK BACKGROUND ENHANCEMENT ---------- */
.mission-block {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1408 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.4);
}

.mission-block::after {
    content: "✦";
    font-size: 280px;
    position: absolute;
    bottom: -80px;
    right: -40px;
    opacity: 0.04;
    color: var(--mustard);
    font-family: serif;
    pointer-events: none;
}

.haccp-box {
    transition: all 0.3s;
    background: rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(2px);
}

.haccp-box:hover {
    background: rgba(212, 175, 55, 0.18);
    transform: scale(1.01);
}

/* ---------- CONTACT CARDS BACKGROUND IMAGE SUPPORT ---------- */
.contact-card {
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, transparent 70%);
    z-index: -1;
    transition: 0.5s;
}

.contact-card:hover::before {
    transform: scale(1.1);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--mustard);
}

/* ---------- BUTTONS & INTERACTIONS (enhancements) ---------- */
.btn {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    letter-spacing: 0.3px;
}

.btn-outline {
    box-shadow: none;
}

.btn:active {
    transform: translateY(1px);
}

/* ---------- NAVBAR SCROLL EFFECT (external adds sticky shadow) ---------- */
.navbar {
    transition: all 0.3s ease;
}

/* dynamic scroll class can be added by JS if needed, but base style stays */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ---------- TEAM PHOTO FULL COVERAGE WITH LOCAL IMAGES ---------- */
/* Explicit override: ensure that any <img> inside .team-img gets proper styling */
.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

/* ensure background images also cover well if no img tag present */
.team-img {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* icon overlay fades on hover to reveal image better */
.team-img i, 
.team-img span {
    transition: opacity 0.3s, transform 0.2s;
    z-index: 2;
}

.team-card:hover .team-img i,
.team-card:hover .team-img span {
    opacity: 0.9;
    transform: scale(0.95);
}

/* add some decorative mustard separator */
.section-header h2:after {
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--mustard), #f5d742, var(--mustard));
}

/* ---------- ADDITIONAL BACKGROUND IMAGE SECTIONS (internal pc) ---------- */
/* you can enable a global container background image if needed */
body {
    background-color: #ffffff;
    background-image: url('images/bg-pattern-light.png');  /* replace with your local subtle pattern or remove */
    background-repeat: repeat;
    background-size: 180px;
    background-attachment: fixed;
    opacity: 1;
}

/* fallback: if the above pattern is missing, no issue */
/* clients logo grid images support */
.client-item {
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-weight: 600;
    border: 1px solid rgba(212,175,55,0.3);
}

.client-item:hover {
    background: var(--mustard);
    color: black;
    transform: translateY(-3px);
}

/* additional background image for footer if desired */
footer {
    background: #0b0b0b;
    background-image: radial-gradient(circle at 10% 30%, rgba(212,175,55,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    border-top: 2px solid rgba(212,175,55,0.3);
}

/* responsive refinements for background images */
@media (max-width: 768px) {
    .team-img {
        background-size: cover;
        min-height: 240px;
    }
    
    .hero::before {
        background-size: 70px;
    }
    
    .mission-block::after {
        font-size: 160px;
        bottom: -40px;
        right: -20px;
    }
    
    body {
        background-size: 100px;
    }
}

/* custom cursor accent for modern look (optional) */
a, .btn, .service-card, .team-card, .contact-card {
    cursor: pointer;
}

/* ---------- ANIMATIONS FOR BACKGROUND IMAGES (graceful) ---------- */
@keyframes softPulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.7; }
}

.haccp-box, .mission-text {
    animation: softPulse 6s infinite alternate;
    animation-play-state: paused;
}

.haccp-box:hover, .mission-text:hover {
    animation-play-state: running;
}

/* support for local hero background image if you want to add later */
/* just uncomment and replace 'hero-catering.jpg' with your actual file */
/*
.hero {
    background-image: linear-gradient(105deg, rgba(255,255,240,0.92), rgba(255,250,225,0.96)), url('images/hero-catering-bg.jpg');
    background-size: cover;
    background-attachment: local;
}
*/

/* specific photo frame hover effect for management images */
.team-img {
    position: relative;
    isolation: isolate;
}

.team-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, rgba(212,175,55,0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover .team-img::after {
    opacity: 1;
}

/* provide smooth background transition */
* {
    transition: background-color 0.2s ease, border-color 0.2s;
}


/* ========== GLOBAL RESET & VARIABLES ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #FFFFFF;
            color: #1e1e1e;
            scroll-behavior: smooth;
            line-height: 1.5;
        }

        /* Mustard & Black / Mustard & White theme */
        :root {
            --mustard: #D4AF37;    /* rich mustard gold */
            --mustard-light: #EBC844;
            --mustard-dark: #B58E2E;
            --black: #0A0A0A;
            --white: #FFFFFF;
            --gray-50: #F9F9F9;
            --gray-100: #F2F2F2;
            --gray-800: #2C2C2C;
            --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
            --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
        }

        h1, h2, h3, h4, .logo-font {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 32px;
        }

        section {
            padding: 80px 0;
        }

        /* buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--mustard);
            color: var(--black);
            padding: 12px 28px;
            border-radius: 40px;
            font-weight: 600;
            text-decoration: none;
            transition: 0.25s ease;
            border: 1px solid transparent;
        }

        .btn-outline {
            background: transparent;
            border: 1.5px solid var(--mustard);
            color: var(--black);
        }

        .btn-outline:hover {
            background: var(--mustard);
            color: var(--black);
        }

        .btn:hover {
            background: var(--mustard-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        /* header / nav */
        .navbar {
            background: var(--white);
            box-shadow: 0 2px 12px rgba(0,0,0,0.03);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(0px);
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 32px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-img {
            height: 52px;
            width: auto;
            object-fit: contain;
        }

        /* Fallback if image missing */
        .logo-placeholder {
            background: var(--mustard);
            width: 52px;
            height: 52px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: var(--black);
        }

        .brand-text {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.3px;
            color: var(--black);
        }
        .brand-text span {
            color: var(--mustard);
        }

        .nav-links {
            display: flex;
            gap: 32px;
            align-items: center;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--black);
            font-weight: 500;
            transition: color 0.2s;
        }
        .nav-links a:hover {
            color: var(--mustard);
        }

        .mobile-menu-btn {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
        }

        /* hero */
        .hero {
            background: linear-gradient(110deg, #FEF9E6 0%, #FFFFFF 100%);
            padding: 70px 0 80px;
        }
        .hero-grid {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 48px;
        }
        .hero-content {
            flex: 1;
        }
        .hero-badge {
            background: var(--mustard);
            display: inline-block;
            padding: 6px 16px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 20px;
        }
        .hero-content h1 {
            font-size: 3.2rem;
            line-height: 1.2;
            margin-bottom: 20px;
            color: var(--black);
        }
        .hero-content p {
            font-size: 1.1rem;
            color: #3a3a3a;
            margin-bottom: 32px;
            max-width: 90%;
        }
        .hero-stats {
            display: flex;
            gap: 30px;
            margin-top: 24px;
        }
        .hero-image {
            flex: 1;
            background: rgba(212, 175, 55, 0.1);
            border-radius: 32px;
            min-height: 320px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .img-placeholder {
            width: 100%;
            background: #e9e6dd;
            border-radius: 28px;
            padding: 32px;
            text-align: center;
            color: #7f6b2d;
        }

        /* section header */
        .section-header {
            text-align: center;
            margin-bottom: 56px;
        }
        .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 16px;
            position: relative;
            display: inline-block;
        }
        .section-header h2:after {
            content: '';
            display: block;
            width: 70px;
            height: 3px;
            background: var(--mustard);
            margin: 12px auto 0;
            border-radius: 4px;
        }
        .section-header p {
            color: #5a5a5a;
            max-width: 680px;
            margin: 16px auto 0;
        }

        /* services grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 32px;
        }
        .service-card {
            background: var(--white);
            padding: 32px 24px;
            border-radius: 28px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s;
            text-align: center;
            border: 1px solid rgba(212, 175, 55, 0.2);
        }
        .service-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-md);
            border-color: var(--mustard);
        }
        .service-icon {
            font-size: 2.5rem;
            color: var(--mustard);
            margin-bottom: 20px;
        }
        .service-card h3 {
            margin-bottom: 12px;
        }

        /* clients marquee / logo wall */
        .clients-section {
            background: var(--gray-50);
        }
        .clients-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 48px;
            align-items: center;
            margin-top: 24px;
        }
        .client-item {
            font-weight: 600;
            font-size: 1.1rem;
            background: white;
            padding: 8px 20px;
            border-radius: 60px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
            color: #2c2c2c;
        }
        .client-highlight {
            color: var(--mustard-dark);
            font-weight: 700;
        }

        /* Team / hierarchy section */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 40px;
        }
        .team-card {
            background: var(--white);
            border-radius: 28px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: 0.2s;
            text-align: center;
            border: 1px solid #f0ede8;
        }
        .team-img {
            width: 100%;
            height: 280px;
            background: #e6e2d6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            color: #7c6e48;
            flex-direction: column;
        }
        .team-img i {
            font-size: 3rem;
            margin-bottom: 12px;
            color: var(--mustard);
        }
        .team-info {
            padding: 24px 16px 28px;
        }
        .team-info h3 {
            font-size: 1.5rem;
            margin-bottom: 6px;
        }
        .team-role {
            color: var(--mustard);
            font-weight: 600;
            letter-spacing: 0.3px;
            margin-bottom: 10px;
        }
        .team-desc {
            font-size: 0.9rem;
            color: #5c5c5c;
        }

        /* Mission & HACCP */
        .mission-block {
            background: var(--black);
            color: var(--white);
            border-radius: 48px;
            padding: 56px 48px;
            margin-bottom: 60px;
        }
        .mission-flex {
            display: flex;
            flex-wrap: wrap;
            gap: 48px;
            align-items: center;
        }
        .mission-text {
            flex: 1.5;
        }
        .mission-text h3 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--mustard);
        }
        .haccp-box {
            flex: 1;
            background: rgba(212,175,55,0.12);
            padding: 28px;
            border-radius: 32px;
            border-left: 5px solid var(--mustard);
        }
        .haccp-box h4 {
            color: var(--mustard);
            margin-bottom: 16px;
        }

        /* address & contact */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
        }
        .contact-card {
            background: var(--white);
            border-radius: 32px;
            padding: 32px;
            box-shadow: var(--shadow-sm);
            border: 1px solid #f0ebe0;
        }
        .contact-card i {
            font-size: 2rem;
            color: var(--mustard);
            margin-bottom: 16px;
        }

        footer {
            background: #0f0f0f;
            color: #dddddd;
            padding: 48px 0 24px;
            margin-top: 40px;
        }
        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 32px;
        }

        @media (max-width: 900px) {
            .nav-links {
                display: none;
            }
            .mobile-menu-btn {
                display: block;
            }
            .container {
                padding: 0 24px;
            }
            .hero-content h1 {
                font-size: 2.3rem;
            }
            .mission-flex {
                flex-direction: column;
            }
        }

        /* reveal on scroll using AOS or manual */
        [data-aos] {
            transition-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }