/* ========================================
   CleanerVision — styles.css
   Teal & Modern responsive theme
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --teal:        #0d9488;
    --teal-dark:   #0f766e;
    --teal-light:  #14b8a6;
    --teal-bg:     #f0fdfa;
    --dark:        #1e293b;
    --gray-700:    #334155;
    --gray-500:    #64748b;
    --gray-300:    #cbd5e1;
    --gray-100:    #f1f5f9;
    --white:       #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body:    'Open Sans', sans-serif;
    --shadow:      0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg:   0 8px 30px rgba(0, 0, 0, 0.12);
    --radius:      12px;
    --nav-height:  70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--teal-dark);
}

ul {
    list-style: none;
}

/* ---------- Utility ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    text-align: center;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--teal-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
}

.nav-brand:hover {
    color: var(--teal-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--teal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--teal);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--teal-dark);
    color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger open state */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #5eead4 100%);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.75) 0%, rgba(20, 184, 166, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem 0;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--teal-dark);
    font-size: 1.15rem;
}

.hero .btn-primary:hover {
    background: var(--gray-100);
    color: var(--teal-dark);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ---------- SERVICES (Cards) ---------- */
.services {
    background: var(--gray-100);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 2rem 2rem 2.5rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-bg);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--teal);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--gray-500);
}

/* ---------- ABOUT ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-traits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-icon-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--teal-bg);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--teal);
}

.about-icon-block i {
    font-size: 1.5rem;
    color: var(--teal);
}

.about-icon-block span {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

/* ---------- WHY CHOOSE US ---------- */
.why-us {
    background: var(--teal-bg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
    display: block;
}

.trust-item h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background: var(--white);
}

.testimonial-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--teal-dark);
    font-size: 0.95rem;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--gray-100);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    transition: border-color 0.25s, box-shadow 0.25s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    padding: 1rem 0;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-info h3:not(:first-child) {
    margin-top: 2rem;
}

.contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.contact-info li i {
    color: var(--teal);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-info li a {
    color: var(--gray-700);
}

.contact-info li a:hover {
    color: var(--teal);
}

/* Form success message */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 3rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-brand h3 i {
    color: var(--teal-light);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--teal-light);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: background 0.25s, color 0.25s;
}

.social-icons a:hover {
    background: var(--teal);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- ANIMATIONS (fade-in on scroll) ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        background: var(--white);
        padding: 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.05rem;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-visual {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-icon-block {
        flex: 1 1 140px;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--teal);
    }

    .card-img {
        height: 180px;
    }

    .about-img {
        max-height: 280px;
    }

    .about-traits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .btn-lg {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 160px;
    }

    .about-img {
        max-height: 220px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .fade-in {
        transition: none;
    }
}
