/* ===================================
   Dhiraj Chemicals Website - Main CSS
   Mobile-first responsive design
   =================================== */

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: light only; /* Enforce light theme */
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================== */

:root {
    /* Colors are now defined in color-schemes.css for better organization */
    /* Legacy shadow variable for compatibility */
    --shadow: var(--color-shadow-light);
    
    /* Typography */
    --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Spacing */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Breakpoints (for reference in media queries) */
    --mobile: 320px;
    --tablet: 768px;
    --desktop: 1024px;
    --max-width: 1200px;
}

/* ===================================
   TYPOGRAPHY SYSTEM
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-light {
    color: var(--text-light);
}

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

.text-mono {
    font-family: var(--font-mono);
}

/* ===================================
   LAYOUT & GRID SYSTEM
   =================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-1 {
    flex: 1;
}

/* CSS Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* ===================================
   COMPONENT CLASSES
   =================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-interactive-primary);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background-color: var(--color-interactive-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-interactive-secondary);
    color: var(--color-text-inverse);
}

.btn-secondary:hover {
    background-color: var(--color-interactive-secondary-hover);
}

.btn-accent {
    background-color: var(--color-interactive-accent);
    color: var(--color-text-inverse);
}

.btn-accent:hover {
    background-color: var(--color-interactive-accent-hover);
}

.btn-outline {
    border: 2px solid var(--color-interactive-primary);
    color: var(--color-interactive-primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--color-interactive-primary);
    color: var(--color-text-inverse);
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--space-6);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--space-4);
}

.card-body {
    margin-bottom: var(--space-4);
}

.card-footer {
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
}

/* Sections */
.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-20) 0;
}

/* ===================================
   NAVIGATION COMPONENT
   =================================== */

.navbar {
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-4);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-logo a:hover .logo-image {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(30, 58, 138, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 1px;
}

.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-logo a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mobile Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(30, 58, 138, 0.1);
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--primary);
}

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

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Utility Classes */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ===================================
   HOME/ABOUT PAGE SECTIONS
   =================================== */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-interactive-primary-hover) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-16) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-text-inverse);
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-text-inverse);
    opacity: 0.9;
}

.hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    color: var(--color-text-inverse);
    opacity: 0.8;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.hero-cta .btn-primary {
    background-color: var(--color-interactive-accent);
    border: 2px solid var(--color-interactive-accent);
}

.hero-cta .btn-primary:hover {
    background-color: var(--color-interactive-accent-hover);
    border-color: var(--color-interactive-accent-hover);
    transform: translateY(-2px);
}

.hero-cta .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-text-inverse);
    color: var(--color-text-inverse);
    opacity: 0.8;
}

.hero-cta .btn-secondary:hover {
    background-color: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
    color: var(--color-brand-primary);
    opacity: 1;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: var(--space-20) 0;
    background-color: var(--bg-primary);
}

.about-content h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--primary);
    font-size: var(--text-3xl);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about-text p {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.highlight-item {
    text-align: center;
    padding: var(--space-6);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.highlight-item h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.highlight-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--text-light) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-lg);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

/* Service Areas Section */
.service-areas {
    padding: var(--space-20) 0;
    background-color: var(--bg-secondary);
}

.service-areas h2 {
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--primary);
    font-size: var(--text-3xl);
}

.section-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.service-card {
    background-color: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    margin-bottom: var(--space-6);
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.service-card h3 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.service-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Certifications Section */
.certifications {
    padding: var(--space-20) 0;
    background-color: var(--bg-primary);
}

.certifications h2 {
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--primary);
    font-size: var(--text-3xl);
}

.certifications .section-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.certifications-slider-container {
    overflow: hidden;
    padding: var(--space-4) 0;
}

.certifications-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.certification-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.certification-logo img {
    max-height: 80px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1) contrast(1.1);
}

.certification-logo:hover {
    transform: scale(1.1);
}

.certification-logo:hover img {
    filter: brightness(1.1) contrast(1.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-tertiary) 100%);
    color: var(--text-primary);
    padding: 0;
    margin-top: var(--space-20);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    padding: var(--space-12) var(--space-4);
}

/* Footer Sections */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section h3 {
    color: var(--primary);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-section h4 {
    color: var(--primary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    font-weight: 600;
    position: relative;
    padding-bottom: var(--space-2);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: var(--space-4);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-section ul li a:hover::before {
    transform: translateX(4px);
}

/* Footer Certifications */
.footer-certifications {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
    display: none;
}

.cert-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Contact Items */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.footer-contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-6) var(--space-4);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s ease;
    padding: var(--space-1) var(--space-2);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.footer-bottom-links .separator {
    color: var(--border);
    font-size: var(--text-sm);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: left;
        padding: var(--space-8) var(--space-6);
    }
    
    .footer-section {
        padding-bottom: var(--space-4);
        border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-section p {
        font-size: var(--text-sm);
        line-height: 1.5;
    }
    
    .footer-certifications {
        justify-content: flex-start;
        margin-top: var(--space-2);
    }
    
    .cert-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .footer-contact-item {
        justify-content: flex-start;
        margin-bottom: var(--space-2);
        font-size: var(--text-sm);
    }
    
    .footer-contact-item span:not(.footer-icon) {
        line-height: 1.4;
    }
    
    .footer-icon {
        font-size: 1rem;
        width: 20px;
    }
    
    .footer-bottom {
        padding: var(--space-4) var(--space-4);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .footer-bottom-links {
        font-size: 0.65rem;
        display: flex;
        flex-direction: row;
        gap: 2px;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .footer-bottom-links .separator {
        display: inline;
        color: var(--text-light);
        font-size: 0.55rem;
        padding: 0 1px;
        opacity: 0.5;
    }
    
    .footer-bottom-links a {
        padding: 0 2px;
        white-space: nowrap;
        font-size: 0.65rem;
    }
    
    .footer-section ul li {
        margin-bottom: var(--space-1);
    }
    
    .footer-section ul li a {
        padding-left: var(--space-3);
        font-size: var(--text-sm);
        color: var(--text-secondary);
        display: inline-block;
    }
    
    .footer-section ul li a::before {
        content: '•';
        left: 0;
        color: var(--accent);
        font-weight: bold;
    }
    
    .footer-section ul li a:hover::before {
        transform: none;
    }
}
/* ======
=============================
   RESPONSIVE MEDIA QUERIES
   Mobile-first approach
   =================================== */

/* Mobile Styles (320px - 767px) - Base styles above */

/* Mobile Navigation Styles */
@media (max-width: 767px) {
    .nav-container {
        padding: var(--space-4);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        padding: var(--space-4) var(--space-4) var(--space-6);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-4) var(--space-3);
        margin: var(--space-1) 0;
        text-align: center;
        border-radius: var(--radius);
        font-size: var(--text-lg);
    }
    
    .nav-link:hover {
        background-color: rgba(30, 58, 138, 0.1);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-image {
        height: 32px;
        max-width: 150px;
    }
    
    /* Mobile-specific adjustments */
    .section {
        padding: var(--space-12) 0;
    }
    
    .card {
        padding: var(--space-4);
    }
    
    /* Certifications slider - horizontal scroll on mobile */
    .certifications-slider {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-2);
        gap: var(--space-6);
        flex-wrap: nowrap;
    }
    
    .certification-logo {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
    
    .certification-logo img {
        max-height: 60px;
        max-width: 100px;
    }
    
    /* Hide scrollbar but keep functionality */
    .certifications-slider::-webkit-scrollbar {
        display: none;
    }
    
    /* Service grid - 1 column on mobile */
    .service-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Hero Section - Mobile */
    .hero {
        padding: var(--space-16) 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* About Section - Mobile */
    .about {
        padding: var(--space-16) 0;
    }
    
    .about-content h2 {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-8);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .about-text p {
        font-size: var(--text-base);
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .highlight-item {
        padding: var(--space-4);
    }
    
    .highlight-item h3 {
        font-size: var(--text-xl);
    }
    
    .image-placeholder {
        height: 200px;
        font-size: var(--text-base);
    }
    
    /* Service Areas - Mobile */
    .service-areas {
        padding: var(--space-16) 0;
    }
    
    .service-areas h2 {
        font-size: var(--text-2xl);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .service-card h3 {
        font-size: var(--text-xl);
    }
    
    .icon-placeholder {
        font-size: 2.5rem;
    }
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) {
    /* Navigation for tablet */
    .nav-container {
        padding: var(--space-5) var(--space-6);
    }
    
    .nav-menu {
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        flex-direction: row;
        gap: var(--space-6);
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-link {
        font-size: var(--text-base);
        padding: var(--space-2) var(--space-3);
        margin: 0;
        text-align: left;
        width: auto;
    }
    
    .nav-link:hover {
        transform: translateY(-1px);
    }
    
    .nav-link.active::after {
        display: block;
    }
    
    .logo-image {
        height: 36px;
        max-width: 180px;
    }
    
    :root {
        --text-4xl: 2.5rem;    /* 40px */
        --text-5xl: 3.5rem;    /* 56px */
    }
    
    .container {
        padding: 0 var(--space-6);
    }
    
    /* Typography adjustments */
    h1 {
        font-size: var(--text-5xl);
    }
    
    /* Spacing adjustments */
    .section {
        padding: var(--space-20) 0;
    }
    
    /* Certifications - restore center alignment on tablet */
    .certifications-slider {
        justify-content: center;
        overflow-x: visible;
        gap: var(--space-8);
        flex-wrap: wrap;
    }
    
    .certification-logo img {
        max-height: 70px;
        max-width: 110px;
    }
    
    /* Hero Section - Tablet */
    .hero h1 {
        font-size: var(--text-5xl);
    }
    
    .hero-cta {
        flex-wrap: nowrap;
    }
    
    /* About Section - Tablet */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
    
    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
    
    /* Service Areas - Tablet - 4 columns */
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
}

/* Desktop Styles (1024px and above) */
@media (min-width: 1024px) {
    :root {
        --text-4xl: 3rem;      /* 48px */
        --text-5xl: 4rem;      /* 64px */
    }
    
    .container {
        padding: 0 var(--space-8);
    }
    
    /* Typography adjustments */
    h1 {
        font-size: var(--text-5xl);
    }
    
    /* Navigation for desktop */
    .nav-container {
        padding: var(--space-6) var(--space-8);
    }
    
    .nav-menu {
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        flex-direction: row;
        gap: var(--space-8);
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-link {
        font-size: var(--text-base);
        padding: var(--space-2) var(--space-3);
        margin: 0;
        text-align: left;
        width: auto;
    }
    
    .nav-link:hover {
        transform: translateY(-1px);
    }
    
    .nav-link.active::after {
        display: block;
    }
    
    .logo-image {
        height: 44px;
        max-width: 220px;
    }
    
    /* Hover effects for desktop */
    .card:hover {
        transform: translateY(-4px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    /* Larger sections on desktop */
    .section {
        padding: var(--space-20) 0;
    }
    
    .section-lg {
        padding: 6rem 0;
    }
    
    /* Certifications - full size on desktop */
    .certifications-slider {
        gap: var(--space-10);
    }
    
    .certification-logo img {
        max-height: 180px;
        max-width: 150px;
    }
    
    /* Hero Section - Desktop */
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: var(--text-5xl);
    }
    
    .hero-description {
        font-size: var(--text-xl);
    }
    
    /* About Section - Desktop */
    .about-grid {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-20);
    }
    
    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
    
    /* Service Areas - Desktop - 4 columns */
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
    
    .service-card {
        padding: var(--space-10);
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-resolution displays */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .nav-toggle,
    .btn {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
/* 
===================================
   PRODUCTS PAGE STYLES
   =================================== */

/* Products Section */
.products {
    background-color: var(--bg-primary);
}

.products-intro {
    text-align: center;
    margin-bottom: var(--space-12);
}

.products-intro .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
}

/* Product Card Component */
.product-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px; /* Add space when scrolling to anchor */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.05), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Product Header */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.product-header h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: var(--space-4);
}

.product-purity {
    background: linear-gradient(135deg, var(--color-brand-accent) 0%, var(--color-interactive-accent-hover) 100%);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: none;
}

.product-purity::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover .product-purity::before {
    left: 100%;
}

/* Product Summary */
.product-summary {
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.product-summary p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Product Toggle Button */
.product-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.product-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-toggle:hover::before {
    left: 100%;
}

.product-toggle:hover {
    background-color: var(--color-interactive-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.product-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-toggle:active {
    transform: translateY(0);
}

.toggle-icon {
    font-size: var(--text-xl);
    font-weight: 700;
    transition: transform 0.3s ease;
    margin-left: var(--space-2);
}

.product-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.product-toggle[aria-expanded="true"] {
    background-color: var(--accent);
}

.product-toggle[aria-expanded="true"]:hover {
    background-color: var(--color-interactive-accent);
}

/* Product Details (Expandable Section) */
.product-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.product-details.expanded {
    max-height: 800px;
    opacity: 1;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.product-details > div {
    margin-bottom: var(--space-6);
}

.product-details > div:last-child {
    margin-bottom: 0;
}

.product-details h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
}

.product-details h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background-color: var(--accent);
    margin-right: var(--space-3);
    border-radius: 2px;
}

.product-specs ul,
.product-applications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li,
.product-applications li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    font-size: var(--text-base);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.product-specs li:last-child,
.product-applications li:last-child {
    border-bottom: none;
}

.product-specs li::before {
    content: '⚙️';
    margin-right: var(--space-3);
    font-size: var(--text-sm);
}

.product-applications li::before {
    content: '✓';
    margin-right: var(--space-3);
    color: var(--accent);
    font-weight: 700;
    font-size: var(--text-base);
}

.product-specs strong {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 120px;
}

/* Responsive Design for Products */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-10);
        align-items: start;
    }
    
    .product-card {
        padding: var(--space-10);
    }
    
    .product-header h3 {
        font-size: var(--text-2xl);
    }
    
    .product-details.expanded {
        max-height: 600px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12);
        align-items: start;
    }
    
    .product-card {
        padding: var(--space-12);
    }
    
    .product-header h3 {
        font-size: var(--text-3xl);
    }
    
    .product-summary p {
        font-size: var(--text-lg);
    }
    
    .product-toggle {
        font-size: var(--text-lg);
        padding: var(--space-5) var(--space-8);
    }
    
    .product-details.expanded {
        max-height: 700px;
    }
    
    .product-specs strong {
        min-width: 140px;
    }
}

/* Mobile-specific adjustments for products */
@media (max-width: 767px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .product-header h3 {
        margin-right: 0;
        font-size: var(--text-xl);
    }
    
    .product-purity {
        align-self: flex-start;
    }
    
    .product-card {
        padding: var(--space-6);
    }
    
    .product-toggle {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-5);
    }
    
    .product-details.expanded {
        max-height: 450px;
    }
    
    .product-specs strong {
        min-width: 100px;
        font-size: var(--text-sm);
    }
    
    .product-specs li,
    .product-applications li {
        font-size: var(--text-sm);
        padding: var(--space-3) 0;
    }
}

/* Focus states for accessibility */
.product-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--text-primary);
    }
    
    .product-toggle {
        border: 2px solid var(--bg-secondary);
    }
    
    .product-purity {
        border: 1px solid var(--text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-toggle,
    .product-details,
    .toggle-icon {
        transition: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-toggle:hover {
        transform: none;
    }
}/* ==
=================================
   CONTACT PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-interactive-primary-hover) 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: white;
}

.page-header p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    background-color: var(--bg-primary);
    padding: var(--space-16) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-form h2 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-size: var(--text-base);
}

.contact-form-element {
    width: 100%;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-base);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-input.error {
    border-color: var(--color-semantic-error);
    background-color: var(--color-semantic-error-bg);
}

.form-input.error:focus {
    border-color: var(--color-semantic-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Valid input state */
.form-input.valid {
    border-color: var(--color-semantic-success);
    background-color: var(--color-semantic-success-bg);
}

.form-input.valid:focus {
    border-color: var(--color-semantic-success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.form-input::placeholder {
    color: var(--text-light);
    font-size: var(--text-sm);
}

/* Error Messages */
.error-message {
    color: var(--color-semantic-error);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    font-weight: 500;
    min-height: 1.2em;
    display: block;
    line-height: 1.4;
    animation: slideDown 0.3s ease-out;
}

.error-message:empty {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-loading {
    color: white;
    font-weight: 600;
}

.btn-loading.hidden {
    display: none;
}

.btn-text.hidden {
    display: none;
}

/* Success Message */
.form-success {
    background-color: var(--color-semantic-success-bg);
    border: 2px solid #16a34a;
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-top: var(--space-4);
    color: var(--color-semantic-success);
    font-weight: 500;
    animation: slideInUp 0.3s ease-out;
}

.form-success p {
    margin-bottom: 0;
    color: inherit;
}

/* Form validation animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Information */
.contact-info {
    background-color: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-size: var(--text-base);
}

.contact-details {
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.12);
    border-color: var(--primary);
    background-color: var(--bg-primary);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-interactive-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
}

.contact-item .contact-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    margin-bottom: var(--space-2);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.contact-content p {
    margin: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.6;
    word-wrap: break-word;
    font-weight: 500;
}

.contact-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-content a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-note {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-style: normal;
    margin: 0;
    margin-top: auto;
    display: inline-block;
    line-height: 1.5;
    padding: var(--space-1) var(--space-3);
    background-color: rgba(30, 58, 138, 0.05);
    border-radius: var(--radius);
    font-weight: 400;
    align-self: flex-start;
}

/* Business Information */
.business-info {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.business-info h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.business-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-details li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-base);
    color: var(--text-primary);
}

.business-details li:last-child {
    border-bottom: none;
}

.business-details strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   CONTACT PAGE RESPONSIVE STYLES
   =================================== */

/* Tablet Styles */
@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
    
    .contact-form,
    .contact-info {
        padding: var(--space-10);
    }
    
    .page-header h1 {
        font-size: var(--text-5xl);
    }
    
    .page-header p {
        font-size: var(--text-xl);
    }
    
    .btn-submit {
        width: auto;
        min-width: 200px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-12);
    }
    
    .contact-form,
    .contact-info {
        padding: var(--space-12);
    }
    
    .contact-form h2,
    .contact-info h2 {
        font-size: var(--text-3xl);
    }
    
    .form-description,
    .contact-description {
        font-size: var(--text-lg);
    }
    
    .contact-item {
        padding: var(--space-6);
    }
    
    .contact-item:hover {
        transform: translateX(8px);
        box-shadow: var(--shadow);
    }
    
    .business-info {
        padding: var(--space-8);
    }
}

/* Mobile Styles for Contact */
@media (max-width: 767px) {
    .page-header {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .page-header h1 {
        font-size: var(--text-3xl);
    }
    
    .page-header p {
        font-size: var(--text-base);
    }
    
    .contact-content {
        gap: var(--space-8);
    }
    
    .contact-form,
    .contact-info {
        padding: var(--space-6);
    }
    
    .contact-form h2,
    .contact-info h2 {
        font-size: var(--text-xl);
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-3);
    }
    
    .btn-submit {
        padding: var(--space-4);
        font-size: var(--text-base);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
        align-items: center;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }
    
    .contact-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(30, 58, 138, 0.1);
    }
    
    .contact-icon {
        margin: 0 auto;
        margin-bottom: var(--space-3);
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    
    .contact-item .contact-content {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .contact-content h3 {
        margin: 0;
        margin-bottom: var(--space-2);
    }
    
    .contact-content p {
        margin: 0;
        margin-bottom: var(--space-3);
    }
    
    .contact-note {
        margin-top: auto;
        padding: var(--space-1) var(--space-2);
        font-size: 0.875rem;
        align-self: center;
    }
    
    .business-info {
        padding: var(--space-4);
    }
    
    .business-details li {
        padding: var(--space-3) 0;
        text-align: left;
    }
}

/* Focus styles for accessibility */
.form-input:focus,
.btn-submit:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-form,
    .contact-info {
        border: 2px solid var(--text-primary);
    }
    
    .form-input {
        border-width: 2px;
    }
    
    .contact-item {
        border: 1px solid var(--text-secondary);
    }
}