/* Global Resets, Typography & Core Layouts for Arham Chemical */

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headers);
    font-weight: 700;
    color: var(--color-primary-navy);
    line-height: 1.25;
}

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header .subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-red);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

.section-header p {
    color: var(--color-text-muted);
}

/* Header Top Info Bar */
.top-bar {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    display: none;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item a:hover {
    color: var(--color-accent-blue);
}

/* Sticky Main Navigation */
header.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

header.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

/* Logo Design Layout */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .logo-wrapper {
        gap: 0.5rem;
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-family-headers);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary-navy);
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.15rem;
    }
}

.logo-text span {
    color: var(--color-accent-red);
}

/* Navigation Menu */
.nav-menu {
    display: none;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2.25rem;
    }
    
    .nav-link {
        font-family: var(--font-family-headers);
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--color-text-dark);
        position: relative;
        padding: 0.5rem 0;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent-red);
        transition: var(--transition-fast);
    }
    
    .nav-link:hover {
        color: var(--color-accent-red);
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .nav-link.active {
        color: var(--color-accent-red);
    }
    
    .nav-link.active::after {
        width: 100%;
    }
}

/* Header Button */
.header-actions {
    display: none;
}

@media (min-width: 992px) {
    .header-actions {
        display: block;
    }
}

/* Mobile Navigation Hamburger */
.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.burger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-navy);
    display: block;
    margin: 6px 0;
    transition: var(--transition-normal);
}

/* Mobile Slideout Panel */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-panel.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-family: var(--font-family-headers);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary-navy);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.mobile-nav-link.active {
    color: var(--color-accent-red);
    border-bottom-color: var(--color-accent-red);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 44, 89, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 1040;
    transition: var(--transition-normal);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger Transformations when open */
.mobile-nav-toggle.open .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-accent-red);
}

.mobile-nav-toggle.open .burger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-accent-red);
}

/* Footer Section */
footer.site-footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 4.5rem 0 2rem;
    color: var(--color-text-dark);
}

.footer-top {
    margin-bottom: 3.5rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 1.25rem 0 1.5rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent-red);
}

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

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent-blue);
    padding-left: 4px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact-info i {
    color: var(--color-accent-blue);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.footer-contact-info a:hover {
    color: var(--color-accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .footer-bottom-links {
        margin-top: 1rem;
    }
}
