/* ==========================================================================
   Thrive Hive Nutrition - Shared Styles
   All common CSS across all pages
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-yellow: #F6C507;
    --primary-orange: #F77F43;
    --accent-white: #FFFFFF;
    --accent-dark-orange: #D9642A;
    
    /* Text Colors */
    --text-dark: #2D2416;
    --text-medium: #5C4D3C;
    --text-light: #8B7355;
    
    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(247, 127, 67, 0.2);
    --shadow-hover: 0 12px 40px rgba(247, 127, 67, 0.35);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #FFF9E8 0%, #FFE8D0 100%);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 17px;
}

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

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    color: var(--text-medium);
    line-height: 1.8;
}

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

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    color: var(--accent-dark-orange);
}

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

/* ==========================================================================
   4. NAVIGATION COMPONENT
   ========================================================================== */

/* Navigation Container */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 2px 24px rgba(247, 127, 67, 0.08);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 140px;
    width: auto;
    margin: -26px 0;
    transition: var(--transition-smooth);
}

.nav-logo span {
    display: none;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigation Items */
.nav-item {
    position: relative;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-orange);
    background: rgba(247, 127, 67, 0.06);
}

/* Simple Nav Links */
.nav-link {
    padding: 10px 18px;
    font-weight: 600;
    color: var(--text-medium);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
    background: rgba(247, 127, 67, 0.06);
}

/* Dropdown Arrow */
.dropdown-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.nav-item:hover .dropdown-arrow,
.nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    border: 1px solid rgba(247, 127, 67, 0.1);
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #FFF9E8 0%, rgba(247, 127, 67, 0.08) 100%);
    color: var(--primary-orange);
    transform: translateX(3px);
}

/* Clean CTA Button */
.nav-cta {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #F88A5A 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(247, 127, 67, 0.25);
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 127, 67, 0.35);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
    background: rgba(247, 127, 67, 0.1);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--primary-orange);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   5. HERO SECTION (Shared styles)
   ========================================================================== */

.hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #F8A66C 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--accent-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero h1 .highlight {
    color: var(--primary-yellow);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* ==========================================================================
   6. BREADCRUMB (Shared styles)
   ========================================================================== */

.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb a {
    color: var(--primary-orange);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

/* ==========================================================================
   7. CTA BUTTONS (Shared styles)
   ========================================================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-orange) 100%);
    color: white;
    padding: 20px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta-button::after {
    content: '→';
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(6px);
}

/* ==========================================================================
   8. FOOTER COMPONENT
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #3D3426 100%);
    padding: 60px 0 30px;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .nav-logo {
    margin-bottom: 20px;
}

.footer-brand .nav-logo span {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-4px);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary-yellow);
    padding-left: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: white;
}

/* ==========================================================================
   9. ANIMATIONS & INTERACTIONS
   ========================================================================== */

/* Scroll Animation Observer */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet and Mobile (1100px and below) */
@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* Mobile Navigation Menu */
    .main-nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
    }
    
    .main-nav.mobile-active .nav-item,
    .main-nav.mobile-active .nav-link {
        width: 100%;
        padding: 12px 16px;
        display: block;
    }
    
    .main-nav.mobile-active .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .main-nav.mobile-active .nav-item.active .dropdown-menu {
        max-height: 500px;
        padding: 8px 0 0 0;
    }
    
    .main-nav.mobile-active .dropdown-item {
        padding: 10px 16px 10px 32px;
    }
    
    .main-nav.mobile-active .nav-cta {
        margin: 16px 0 0 0;
        text-align: center;
        display: block;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .section {
        padding: 60px 0;
    }

    .nav-logo img {
        height: 70px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-logo img {
        height: 60px;
    }

    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}