/* ==========================================
   PromoBay.site - Main Stylesheet
   Mobile-first responsive design
   ========================================== */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ==========================================
   Layout Components
   ========================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main {
    flex: 1;
    padding-top: 80px; /* Account for fixed header */
}

/* ==========================================
   Header Styles
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 1rem;
}

/* Logo Styles */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.logo-text {
    color: #1f2937;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #1f2937;
    transition: all 0.3s ease;
}

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

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

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

/* Navigation Styles */
.nav {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover,
.nav-link:focus {
    background: #f3f4f6;
    color: #2563eb;
}

.nav-link.active {
    background: #2563eb;
    color: #ffffff;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================
   Button Styles
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1;
    min-height: 44px; /* Touch target size */
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Product Grid
   ========================================== */

.products-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Product Card Styles */
.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.product-icon {
    width: 48px;
    height: 48px;
    color: #2563eb;
    margin: 0 auto 1rem;
    display: block;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1.5rem;
}

.product-category {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   Content Pages
   ========================================== */

.content-section {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.content-text {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #374151;
}

.content-list {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-list li {
    margin-bottom: 0.5rem;
}

/* ==========================================
   Thank You Page
   ========================================== */

.thank-you {
    text-align: center;
    padding: 3rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    color: #059669;
    margin: 0 auto 2rem;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.thank-you-message {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================
   Footer Styles
   ========================================== */

.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-text {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #ffffff;
}

/* Contact Info Styles */
.contact-info {
    text-align: left;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.contact-link,
.contact-text {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.copyright {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-style: italic;
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav {
        display: block !important;
        position: static;
        background: none;
        border: none;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    
    .footer-section:first-child {
        text-align: left;
    }
    
    .contact-info {
        text-align: left;
    }
}

/* ==========================================
   Responsive Design - Desktop
   ========================================== */

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .product-icon {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   Animations and Interactions
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus,
.contact-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none !important;
    }
    
    .main {
        padding-top: 0 !important;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}