/* Savory Safari - Main Stylesheet */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #2d5a27;
    --secondary: #4a7c59;
    --accent: #6b8e23;
    --text-dark: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --light-bg: #f8f9fa;
    --border: #e0e0e0;
    
    /* Typography */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 15px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 20px;
    --text-3xl: 24px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 4px;
    --transition: 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

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

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

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

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

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

.hidden {
    display: none;
}

/* ===== HEADER ===== */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: grid;
    grid-template-columns: 200px 1fr auto; /* Give logo a fixed minimum width */
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0; /* Prevent the entire logo container from shrinking */
    min-width: 200px; /* Minimum width to preserve logo space */
}

.logo img {
    width: 180px;
    height: 124px;
    flex-shrink: 0; /* Prevent shrinking */
}

/* ===== NAVIGATION - UPDATED STYLES ===== */
.nav {
    display: flex;
    gap: 8px; /* Reduced gap */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.nav a {
    font-size: 12px; /* Smaller font */
    font-weight: 500;
    padding: 8px 14px; /* Smaller padding */
    border-radius: 20px; /* Slightly less rounded */
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    white-space: nowrap;
    
    /* Default state - subtle background */
    background-color: rgba(45, 90, 39, 0.1);
    color: var(--primary);
}

.nav a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
    border-color: var(--primary);
}

.nav a.shop-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: 2px solid var(--primary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav a.shop-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav a.shop-link:hover::before {
    left: 0;
}

.nav a.shop-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.4);
}

/* Active state for current page (optional - you can add this with PHP) */
.nav a.active {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when open */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding-top: 80px;
}

.nav-mobile.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nav-mobile a {
    font-size: 18px;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-mobile a.shop-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: 2px solid var(--primary);
}

/* Close button for mobile menu */
.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

/* Mobile social links */
.nav-mobile-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile-social .social-icon {
    width: 32px;
    height: 32px;
    fill: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-mobile-social .social-icon:hover {
    fill: white;
    transform: scale(1.1);
}

/* Individual social platform colors on hover in mobile menu */
.nav-mobile-social .facebook:hover { fill: #1877F2; }
.nav-mobile-social .x:hover { fill: #000000; }
.nav-mobile-social .instagram:hover { fill: #E4405F; }
.nav-mobile-social .youtube:hover { fill: #FF0000; }
.nav-mobile-social .tiktok:hover { fill: #000000; }
.nav-mobile-social .telegram:hover { fill: #0088cc; }

/* ===== SOCIAL ICONS ===== */
.social-links {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.social-icon {
    fill: var(--text-light);
    transition: fill var(--transition);
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    fill: var(--primary);
}

/* Individual social platform colors on hover */
.facebook:hover { fill: #1877F2; }
.x:hover { fill: #000000; }
.instagram:hover { fill: #E4405F; }
.youtube:hover { fill: #FF0000; }
.tiktok:hover { fill: #000000; }
.telegram:hover { fill: #0088cc; }

/* ===== MAIN CONTENT ===== */
.main {
    min-height: calc(100vh - 200px);
}

.hero {
    padding: var(--space-xl) 0;
    text-align: center;
    background: var(--light-bg);
}

.hero h1 {
    font-size: var(--text-3xl);
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-weight: bold;
}

.hero p {
    font-size: var(--text-lg);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

/* ===== CONTENT SECTIONS ===== */
.section {
    padding: var(--space-sm) 0; /* Drastically reduce from lg to sm */
}

.section h2 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-sm); /* Reduce margin */
    text-align: center;
}

.section h3 {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.section p {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

/* ===== GALLERY GRID ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.gallery-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform var(--transition);
}

.gallery-card:hover {
    transform: translateY(-2px);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-card-content {
    padding: var(--space-md);
}

.gallery-card h3 {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-weight: bold;
}

.gallery-card p {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.gallery-card .btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition);
}

.gallery-card .btn:hover {
    background: var(--secondary);
    color: white;
}

.gallery img {
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform var(--transition);
}

.gallery img:hover {
    transform: translateY(-2px);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
    background: var(--accent);
    color: white;
    padding: var(--space-sm) 0;
    text-align: center;
    font-size: var(--text-sm);
}

.announcement a {
    color: white;
    text-decoration: underline;
}

.announcement a:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    font-family: inherit;
}

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

.btn {
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    cursor: pointer;
    transition: background-color var(--transition);
}

.btn:hover {
    background: var(--secondary);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.testimonial-text a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
}

.testimonial-text a:hover {
    color: var(--secondary);
}

.testimonial-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.testimonial-author-info p {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin: 0;
}

/* ===== EXPEDITION CAFE SECTION ===== */
.expedition-cafe {
    background: #f5f1e8; /* Tan background */
    padding: var(--space-lg) 0;
}

.expedition-content {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.expedition-image {
    flex: 1;
}

.expedition-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.expedition-text {
    flex: 1;
    padding-left: var(--space-md);
}

.expedition-overline {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expedition-title {
    font-size: var(--text-3xl);
    color: var(--primary);
    font-weight: bold;
    margin-bottom: var(--space-md);
}

.expedition-description {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.expedition-features {
    list-style: none;
    padding: 0;
}

.expedition-features li {
    margin-bottom: var(--space-sm);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
    align-items: flex-start;
}

.expedition-features li::before {
    content: "🌿";
    grid-column: 1;
}

.expedition-feature-content {
    grid-column: 2;
}

.expedition-features strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hero-section {
    background: #f5f1e8; /* Tan background */
    padding: var(--space-lg) 0;
}
.footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */


/* Tablet - start showing hamburger */
@media (max-width: 768px) {
    .nav {
        display: none; /* Hide desktop nav */
    }
    
    .hamburger {
        display: flex; /* Show hamburger */
    }
    
    .header-content {
        grid-template-columns: auto 1fr auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: var(--space-sm);
    }
}

/* ===== SIMPLE TWO COLUMN FLEXBOX ===== */
.two-columns {
    display: flex;
    gap: 0.25rem; /* Even smaller gap */
    margin: var(--space-sm) 0 0 0; /* Remove almost all bottom margin */
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-sm);
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.column:first-child {
    flex: 1.5; /* Give image column more space */
    text-align: center; /* Keep image column centered */
    padding: var(--space-sm) var(--space-xs);
    padding-right: 0; /* Remove right padding completely */
}

.column:last-child {
    flex: 1; /* Text column takes less space */
    text-align: left; /* Left align text column */
    padding: var(--space-sm) var(--space-xs);
    padding-left: 0; /* Remove left padding completely */
}

.column img {
    max-width: 500px; /* Increase from 400px */
    margin: 0 auto 0.5rem; /* Much smaller bottom margin */
    width: 100%;
    height: auto;
}

.column h1 {
    font-size: var(--text-3xl);
    color: var(--primary); /* Green color like other headings */
    margin-bottom: var(--space-xs); /* Reduce margin */
    font-weight: bold;
}

.column h3 {
    font-size: var(--text-2xl); /* Larger like hero h1 */
    color: var(--primary); /* Green color like hero */
    margin-bottom: var(--space-xs); /* Reduce margin */
    font-weight: bold;
}

.column p {
    font-size: var(--text-base); /* Same size as expedition section */
    color: var(--text-dark); /* Same darker color as expedition section */
    margin-bottom: var(--space-xs); /* Much smaller margin */
}

/* Stack on mobile */
@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
        gap: var(--space-xs); /* Reduce gap */
        margin: var(--space-xs) 0 0 0; /* Much smaller top margin, no bottom */
    }

    .column {
        padding: var(--space-xs); /* Much smaller padding on mobile */
    }

    .column img {
        max-width: 100% !important; /* Override inline styles on mobile */
        width: 100%;
        height: auto;
        margin: 0 auto 0.25rem !important; /* Very little bottom margin on mobile */
    }

    .column h1 {
        margin-bottom: var(--space-xs) !important; /* Tighter spacing */
    }

    .column p {
        margin-bottom: var(--space-xs) !important; /* Tighter spacing */
    }

    .section {
        padding: var(--space-xs) 0; /* Much smaller section padding on mobile */
    }

    .section h2 {
        margin-bottom: var(--space-xs) !important; /* Tighter heading spacing */
    }
}

/* ===== RESPONSIVE HAMBURGER MENU ===== */
@media (max-width: 1200px) {
    /* Show hamburger menu and hide desktop navigation - trigger earlier to account for social icons */
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
    }

    /* Keep social icons visible next to hamburger */
    .social-links {
        display: flex;
    }

    /* Adjust header layout: logo, spacer, hamburger + social icons */
    .header-content {
        grid-template-columns: auto 1fr auto auto;
        gap: var(--space-sm);
    }

    /* Logo adjustments */
    .logo img {
        width: 150px;
        height: auto;
    }

    /* Hamburger and social icons container */
    .hamburger {
        margin-right: var(--space-sm);
    }
}

@media (max-width: 768px) {
    /* Further adjustments for mobile phones */
    .header-content {
        grid-template-columns: auto 1fr auto auto;
        padding: var(--space-xs) 0;
        gap: var(--space-xs);
    }

    .logo {
        min-width: 100px;
    }

    .logo img {
        width: 100px;
        height: auto;
    }

    /* Smaller social icons on mobile */
    .social-links {
        gap: var(--space-xs);
    }

    .social-links .social-icon {
        width: 20px;
        height: 20px;
    }

    /* Mobile menu includes social links */
    .nav-mobile {
        padding-top: 60px;
    }

    .nav-mobile::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
        margin: 20px 0;
    }
}