/*
Theme Name: Giga Chemical Theme
Description: Custom WordPress theme for Giga Chemical - pharmaceutical raw materials supplier
Version: 1.0
Author: Custom Theme
*/

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo:hover {
    color: #333;
}

.custom-logo-link {
    display: inline-block;
    max-width: 200px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Navigation Styles */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: #000;
    background-color: #f5f5f5;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Hero Section */
.hero-section {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f8f9fa;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    color: #000;
    font-size: 36px;
    margin-bottom: 20px;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    font-weight: bold;
}

.content-section h3 {
    color: #000;
    font-size: 28px;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.content-section h4 {
    color: #333;
    font-size: 22px;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #333;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* Cards Layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.card p {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

/* Contact Information */
.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}

.contact-info h3 {
    color: #000;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.contact-info strong {
    color: #000;
    font-weight: 600;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #000;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header */
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #e9ecef;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
        border-radius: 0;
        background: none !important;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    /* Mobile Hero */
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* Mobile Content */
    .main-content {
        padding: 40px 15px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .content-section h3 {
        font-size: 24px;
    }
    
    .content-section h4 {
        font-size: 20px;
    }
    
    .content-section p {
        font-size: 14px;
    }
    
    .content-section li {
        font-size: 14px;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .site-logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .content-section h4 {
        font-size: 18px;
    }
    
    .content-section p {
        font-size: 13px;
    }
    
    .content-section li {
        font-size: 13px;
    }
    
    .main-content {
        padding: 30px 10px;
    }
    
    .site-logo {
        font-size: 20px;
    }
    
    .header-container {
        padding: 12px 15px;
    }
}

@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 12px;
    }
    
    .content-section p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .content-section li {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section h3 {
        font-size: 18px;
    }
    
    .content-section h4 {
        font-size: 16px;
    }
    
    .main-content {
        padding: 20px 8px;
    }
    
    .card {
        padding: 15px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .header-container {
        padding: 10px 12px;
    }
    
    .site-logo {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle {
        display: none;
    }
    
    .hero-section {
        height: auto;
        background: none !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        color: #333;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .site-header {
        transition: none;
    }
    
    .card {
        transition: none;
    }
    
    .hamburger-line {
        transition: none;
    }
}

/* Focus styles for accessibility */
.menu-toggle:focus,
.main-navigation a:focus,
.site-logo:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Additional responsive container styles */
@media (min-width: 1400px) {
    .header-container,
    .hero-container,
    .main-content {
        max-width: 1400px;
    }
}

.site-header {
	background: #000;
}
.main-navigation a {
	color: #fff;	
}
@media (max-width: 480px) {
  .hero-section {
    height: 250px;
  }
  .main-navigation a {
	color: #000;
   }
   .main-navigation a {
	color: #000;	
    }
}
@media (max-width: 768px) {
  .hero-section {
    height: 250px;
  }
  .main-navigation a {
	color: #000;
   }
   .main-navigation a {
	color: #000;	
    }
}

.hamburger-line {
	width: 25px;
	height: 3px;
	background-color: #fff;
	margin: 3px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

