/* Design System for Quality Air HVAC Trust */
:root {
    --primary-blue: #0072CE;
    --primary-green: #8CC63F;
    --primary-red: #E31837;
    --dark-blue: #0054A6;
    --light-green: #D7DF23;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-800: #343a40;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background: var(--glass);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 120%;
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 114, 206, 0.3);
}

.btn-primary:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

/* Marquee Tips */
.tips-marquee {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.marquee-content span {
    padding: 0 4rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-blue);
    transition: var(--transition);
}

.service-card:nth-child(2) { border-top-color: var(--primary-green); }
.service-card:nth-child(3) { border-top-color: var(--primary-red); }

.service-card:hover {
    transform: translateY(-10px);
}

/* Sister Company Section */
.partner-section {
    background: var(--gray-100);
    padding: 80px 0;
    border-left: 10px solid var(--primary-red);
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.partner-logo {
    max-width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-image img { max-width: 100%; }
    .nav-links { display: none; }
}

/* Brands Marquee */
.brands-section {
    padding: 60px 0;
    background: #f8faff;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.brands-title {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.brands-title::before,
.brands-title::after {
    content: "";
    height: 1px;
    background: var(--gray-200);
    flex: 1;
    max-width: 200px;
}

.brands-container {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll-brands 30s linear infinite;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 2.2rem;
    white-space: nowrap;
}

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

/* WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.wa-button {
    width: 65px;
    height: 65px;
    background: #25D366; /* Using standard WA green for instant recognition */
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(18, 140, 126, 0.4);
    position: relative;
    transition: var(--transition);
}

.wa-button svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border: 3px solid white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-label {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.wa-widget:hover .wa-label {
    opacity: 1;
    transform: translateX(0);
}

.wa-widget:hover .wa-button {
    transform: scale(1.1) rotate(5deg);
}

/* Pulse Animation */
.wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

/* Show classes triggered by JS */
.wa-badge.show {
    opacity: 1;
    transform: scale(1);
}
