/*
Theme Name: CoolCare
Author: Rifzan Rafi
Description: Custom Elementor & WooCommerce theme with Dark/Light mode.
Version: 1.0.1
Text Domain: coolcare
*/

/* --- 1. VARIABLES & RESET (From your HTML) --- */
:root {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --bg-glass-card: rgba(15, 23, 42, 0.8);
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.4);
    --secondary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: 1px solid rgba(255, 255, 255, 0.08);
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    --hero-overlay: radial-gradient(circle at 100% 0%, #1e1b4b 0%, transparent 40%);
}

body.light-mode {
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-card: rgba(255, 255, 255, 0.9);
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.2);
    --secondary: #4f46e5;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: 1px solid rgba(0, 0, 0, 0.08);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.08);
    --hero-overlay: radial-gradient(circle at 100% 0%, #e0f2fe 0%, transparent 40%);
}

* {
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 2. UTILITIES --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

/* Buttons */
.cool-btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.4s;
    background: var(--text-main);
    color: var(--bg-body);
    font-size: 1rem;
}

.cool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.cool-btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.cool-btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* --- 3. HEADER STYLES --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: var(--border);
    display: block;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.logo-box {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e293b;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: var(--primary);
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

input:checked+.slider {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

input:checked+.slider:before {
    transform: translateX(28px);
    background-color: #fff;
}

.icon-sun {
    color: #f59e0b;
    font-size: 14px;
}

.icon-moon {
    color: #f8fafc;
    opacity: 0.5;
    font-size: 14px;
}

/* --- 4. HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-overlay);
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
    background: var(--bg-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.float-card {
    position: absolute;
    padding: 1rem 1.5rem;
    background: var(--bg-glass-card);
    backdrop-filter: blur(15px);
    border: var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    animation: float 6s ease-in-out infinite;
}

.fc-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

.ac-model {
    width: 80%;
    height: 180px;
    background: #fff;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 100px var(--primary-glow);
    border: 1px solid #e2e8f0;
}

.ac-vent {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: #cbd5e1;
    border-radius: 0 0 20px 20px;
}

/* --- 5. SLIDER & WOOCOMMERCE --- */
.slider-wrap {
    position: relative;
    padding: 0 60px;
}

.product-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 3rem;
    scroll-snap-type: x mandatory;
}

.product-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 320px;
    background: var(--bg-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    scroll-snap-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.arrow-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 0 20px var(--primary-glow);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Woo Overrides */
.woocommerce ul.products li.product {
    background: var(--bg-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem !important;
}

.woocommerce ul.products li.product .price {
    color: var(--primary);
    font-weight: 700;
}

.woocommerce a.button {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
}

/* --- 6. BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.bento-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.bento-lg {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card), var(--primary-glow));
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border: var(--border);
}

/* --- 7. EXPERTISE --- */
.pro-services-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.pro-services-list li span {
    color: var(--primary);
    font-weight: bold;
}

.visual-box-lg {
    height: 100%;
    min-height: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box-lg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg, transparent, var(--primary-glow));
    animation: spin 10s linear infinite;
    opacity: 0.3;
}

/* --- 8. REASONS & TEAM --- */
.reason-card {
    background: var(--bg-glass-card);
    border: var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: 0.3s;
}

.reason-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border);
    text-align: center;
    padding-bottom: 1.5rem;
    transition: 0.3s;
}

.team-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.team-img {
    height: 250px;
    background: var(--bg-body);
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
}

.team-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50% 50% 0 0;
    opacity: 0.5;
}

/* --- 9. FAQ & FOOTER --- */
.faq-item {
    background: var(--bg-card);
    border-bottom: var(--border);
    padding: 1.5rem;
    cursor: pointer;
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

footer {
    border-top: var(--border);
    padding: 5rem 0;
    margin-top: 5rem;
    background: #000;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-copy {
    text-align: center;
    padding-top: 3rem;
    color: #94a3b8;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {

    .grid-2,
    .bento-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}