/* ==========================================================================
   Public Navigation Styles
   Extracted from landing_home.css for reuse across public pages (blog, etc.)
   ========================================================================== */

/* Main content offset to match header height */
.public-main-offset {
    margin-top: 100px;
}

@media (max-width: 968px) {
    .public-main-offset { margin-top: 72px; }
}

@media (max-width: 768px) {
    .public-main-offset { margin-top: 64px; }
}

@media (max-width: 480px) {
    .public-main-offset { margin-top: 56px; }
}

/* Use .pub-container instead of .container to avoid Tailwind conflict */
.pub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .pub-container {
        padding: 0 16px;
    }
}

/* Buttons (scoped to header & mobile menu) */
.header-cta .btn,
.mobile-menu-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 480px) {
    .header-cta .btn,
    .mobile-menu-cta .btn {
        padding: 14px 24px;
        font-size: 14px;
        gap: 8px;
        border-radius: 12px;
    }
}

.header-cta .btn-primary,
.mobile-menu-cta .btn-primary {
    background: #B6FB6F;
    color: #004400;
    box-shadow: 0 4px 20px rgba(182, 251, 111, 0.4);
}

.header-cta .btn-primary:hover,
.mobile-menu-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(182, 251, 111, 0.5);
}

.header-cta .btn-secondary,
.mobile-menu-cta .btn-secondary {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.header-cta .btn-secondary:hover,
.mobile-menu-cta .btn-secondary:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    border-color: #1a1a1a;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.header.scrolled {
    height: 76px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled .logo img {
    height: 60px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B6FB6F;
    transition: width 0.3s ease;
}

.nav-links a:hover { color: #000000; }
.nav-links a:hover::after { width: 100%; }

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta .btn {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 10px;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.mobile-menu-links a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-links a:hover {
    background: #f3f4f6;
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
}

/* Tablet breakpoint */
@media (max-width: 968px) {
    .header {
        height: 72px;
        padding: 10px 0;
    }
    .header.scrolled {
        height: 60px;
        padding: 6px 0;
    }
    .logo img {
        height: 52px;
    }
    .header.scrolled .logo img {
        height: 44px;
    }
    .nav-links {
        gap: 24px;
    }
    .nav-links a {
        font-size: 14px;
    }
    .header-cta .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .header {
        height: 64px;
        padding: 8px 0;
    }
    .header.scrolled {
        height: 56px;
        padding: 4px 0;
    }
    .logo img {
        height: 44px;
    }
    .header.scrolled .logo img {
        height: 36px;
    }
    .nav-links, .header-cta {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .header {
        height: 56px;
        padding: 6px 0;
    }
    .header.scrolled {
        height: 48px;
        padding: 4px 0;
    }
    .logo img {
        height: 36px;
    }
    .header.scrolled .logo img {
        height: 32px;
    }
}
