/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    flex: 1;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ecf0f1;
}

.company-subtitle {
    font-size: 0.9rem;
    color: #bdc3c7;
    font-weight: 300;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: #3498db;
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section with Integrated Search */
.hero-section {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1f4e79 100%);
    color: white;
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Hero Search Integration */
.hero-search-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    margin: 3rem auto 2rem;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-search-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.hero-search-header {
    margin-bottom: 2rem;
}

.hero-search-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-search-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
}

.hero-search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 16px;
    padding: 0.4rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-search-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 1.2rem;
    font-size: 1.1rem;
    color: #7f8c8d;
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border-radius: 12px;
    background: transparent;
    color: #2c3e50;
    font-weight: 500;
}

.hero-search-input::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.hero-search-input:focus {
    background: rgba(52, 152, 219, 0.02);
}

.hero-search-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.8rem;
    cursor: pointer;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.hero-search-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.search-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.search-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hero-search-button:hover .search-arrow {
    transform: translateX(3px);
}

/* Popular Searches */
.popular-searches {
    margin-bottom: 2rem;
}

.popular-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.popular-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.popular-pill {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.popular-pill:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Search Features */
.search-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: white;
    color: #2980b9;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-button.primary:hover {
    background: #ecf0f1;
}

.cta-button.secondary:hover {
    background: white;
    color: #2980b9;
}

/* Section Styles */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Company Information */
.company-info {
    padding: 4rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-card.availability {
    background: linear-gradient(135deg, #fff4e6, #fff);
    border-left: 5px solid #f39c12;
}

.info-card.address {
    background: linear-gradient(135deg, #ffeef0, #fff);
    border-left: 5px solid #e74c3c;
}

.info-card.contact {
    background: linear-gradient(135deg, #e8f8f0, #fff);
    border-left: 5px solid #27ae60;
}

.company-name-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.location {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.phone-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #2ecc71;
    text-decoration: underline;
}

address {
    font-style: normal;
    line-height: 1.8;
    color: #555;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.products-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.products-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.products-intro strong {
    color: #2c3e50;
    font-weight: 700;
}

/* Search Container */
.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    background: transparent;
}

.search-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.search-button:hover {
    transform: scale(1.1);
}

/* Specialties Navigation */
.specialties-nav {
    margin-bottom: 3rem;
}

.specialty-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.specialty-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.specialty-tab:hover,
.specialty-tab.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Product Categories */
.product-category {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 1.5rem 2rem;
    margin: 0;
    text-align: center;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    padding: 2rem;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.products-table thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.products-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.products-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.products-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.products-table tbody tr:nth-child(even):hover {
    background-color: #f1f3f4;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.contact-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin: 0.25rem 0;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-contact a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #5dade2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide desktop navigation, show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        background: rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 80%;
        max-width: 250px;
        text-align: center;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    /* Info grid */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Products intro */
    .products-intro {
        padding: 1.5rem;
    }
    
    .products-intro p {
        font-size: 1rem;
    }
    
    /* Hero search responsive */
    .hero-search-wrapper {
        padding: 2rem 1.5rem;
        margin: 2rem auto 1.5rem;
    }
    
    .hero-search-title {
        font-size: 1.5rem;
    }
    
    .hero-search-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-search-container {
        flex-direction: column;
        padding: 0.5rem;
        max-width: 100%;
    }
    
    .search-input-wrapper {
        margin-bottom: 0.8rem;
    }
    
    .hero-search-input {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
        font-size: 0.95rem;
    }
    
    .search-icon-left {
        left: 1rem;
    }
    
    .hero-search-button {
        padding: 1rem 1.5rem;
        justify-content: center;
        border-radius: 12px;
    }
    
    .popular-pills {
        gap: 0.6rem;
    }
    
    .popular-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .search-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    /* Specialty tabs */
    .specialty-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .specialty-tab {
        width: 200px;
        text-align: center;
    }
    
    /* Table responsive */
    .table-container {
        padding: 1rem;
    }
    
    .products-table {
        font-size: 0.85rem;
    }
    
    .products-table thead {
        display: none;
    }
    
    .products-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .products-table td {
        display: block;
        text-align: left;
        border: none;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 110px;
    }
    
    .products-table td::before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        top: 0.5rem;
        font-weight: 700;
        color: #2c3e50;
        width: 100px;
        text-transform: uppercase;
        font-size: 0.8rem;
    }
    
    /* Contact section */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Hero search small screens */
    .hero-search-wrapper {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto 1rem;
    }
    
    .hero-search-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .hero-search-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-search-container {
        padding: 0.4rem;
    }
    
    .hero-search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon-left {
        left: 0.8rem;
        font-size: 1rem;
    }
    
    .hero-search-button {
        padding: 0.8rem 1.2rem;
    }
    
    .search-text {
        font-size: 0.85rem;
    }
    
    .popular-pills {
        gap: 0.4rem;
    }
    
    .popular-pill {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .search-features {
        gap: 0.8rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .products-table td {
        padding-left: 90px;
        font-size: 0.8rem;
    }
    
    .products-table td::before {
        width: 80px;
        font-size: 0.75rem;
    }
}

/* Animation classes for JavaScript */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Print styles */
@media print {
    .header, .hero-section, .search-container, .specialties-nav, .footer {
        display: none;
    }
    
    .products-section {
        padding: 0;
    }
    
    .product-category {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .products-table {
        font-size: 0.8rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.5rem;
    }
}
