/* =============================================
   PRO-AIR USA — PROFESSIONAL CORPORATE DESIGN SYSTEM
   ============================================= */

:root {
    --primary:       #0056b3; /* Professional Corporate Blue */
    --primary-dim:   rgba(0, 86, 179, 0.08);
    --primary-line:  rgba(0, 86, 179, 0.2);
    --accent:        #003366; /* Deep Navy Blue */
    --bg:            #ffffff; /* Clean White */
    --bg-section:    #f8f9fa; /* Light Gray for alternating sections */
    --bg-card:       #ffffff;
    --border:        rgba(0, 0, 0, 0.08);
    --border-hover:  rgba(0, 86, 179, 0.15);
    --text:          #333333; /* Dark Gray for text */
    --text-muted:    #555555;
    --text-light:    #111111; /* Almost black for headings */
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --transition:    0.3s var(--ease);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* ---- Typography ---- */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-light);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-light) 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Scroll Progress ---- */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ---- Navigation ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

nav.scrolled {
    padding: 14px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.logo img {
    height: 38px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition);
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 4px; /* More conservative square-ish corners */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 6px 14px rgba(0, 86, 179, 0.3);
    color: #ffffff;
}

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

.btn-outline:hover {
    background: var(--primary-dim);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Hero ---- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Professional faint watermark effect */
    filter: grayscale(100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 24px;
    animation: fadeUp 0.9s var(--ease) both;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeUp 1.1s var(--ease) both;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeUp 1.3s var(--ease) both;
}

/* ---- Stats ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.stat-item {
    background: var(--bg-section);
    padding: 60px 5%;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---- Sections ---- */
section {
    padding: 100px 5%;
    max-width: 1200px; /* A bit narrower for corporate reading width */
    margin: 0 auto;
    background: var(--bg);
}

section:nth-of-type(even) {
    background: var(--bg-section);
    max-width: 100%;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
    color: var(--accent);
}

.section-title .accent-bar {
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- Cards (Services) ---- */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.service-card {
    background: var(--bg-card);
    padding: 32px 24px;
    position: relative;
    cursor: default;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--accent);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card i.fas,
.service-card i.fab {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* ---- About / Split Layout ---- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--accent);
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-list i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    flex-shrink: 0;
}

.map-box {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* ---- Products ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--border-hover);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f4f4f4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--accent);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid var(--primary-line);
}

/* ---- Certifications ---- */
.tooltip { position: relative; }

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: normal;
    width: 240px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ---- Cart Icon ---- */
.cart-nav { margin-left: 12px; }

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: color var(--transition);
    font-size: 1.1rem;
}

.cart-icon:hover { color: var(--primary); }

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ---- Cart Sidebar ---- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    z-index: 2000;
    background: var(--bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.cart-sidebar.active { right: 0; }

.cart-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}

.cart-header h3 {
    font-size: 1.1rem;
    color: var(--accent);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition);
}

.close-cart:hover { color: var(--primary); }

.cart-items {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.item-details { flex-grow: 1; }

.item-details h4 {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-controls button {
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.item-controls button:hover { 
    background: var(--primary); 
    color: #fff;
    border-color: var(--primary);
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-section);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-muted);
}

.cart-total span:last-child {
    color: var(--accent);
    font-weight: 700;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 80px;
}

/* ---- Floating Action Button (RFQ) ---- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    border-radius: 30px; /* Pill shape for professional look */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1000;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.floating-btn i { font-size: 1.2rem; }

.floating-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

/* ---- Footer ---- */
footer {
    padding: 50px 5%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.2rem;
    transition: color var(--transition);
}

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

/* ---- Reveal Animation ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Utilities ---- */
.w-100 { width: 100%; }

/* ---- Location Tabs ---- */
.location-tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 50px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .contact-container { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    nav { padding: 16px 5%; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.4rem; }
    section { padding: 80px 5%; }
    .section-title h2 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .cart-sidebar { width: 100%; right: -100%; }
    .floating-btn span { display: none; }
    .floating-btn { padding: 15px; border-radius: 50%; bottom: 20px; right: 20px; width: 56px; height: 56px; justify-content: center; }
    .floating-btn i { margin: 0; font-size: 1.4rem; }
}

/* ---- System Builder Wizard ---- */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
}

.wizard-progress .step {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.wizard-progress .step.active {
    color: var(--primary);
}

.wizard-step {
    animation: fadeUp 0.4s var(--ease) both;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.wizard-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-line);
    transform: translateY(-2px);
}

.wizard-btn strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.wizard-btn small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---- Custom Modal ---- */
.custom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s var(--ease) both;
}
.custom-modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeUp 0.3s var(--ease) both;
}
.custom-modal .modal-body {
    margin: 20px 0 30px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
