/* ============================================================
   FilterMaster — home.css
   Page-specific styles for index.php
   ============================================================ */


/* ─── Section title shared style ────────────────────────────── */
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--white);
}
.badge-wrap { margin-bottom: 0; }
.section-link-row {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap .2s ease, opacity .2s ease;
}
.section-all-link:hover { gap: 0.7rem; opacity: 1; }
.section-alt { background: var(--bg2); }

/* ─── Hero background photo ──────────────────────────────────── */
.hero-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
}
.hero-bg-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(247,243,238,0.55) 0%,
        rgba(247,243,238,0.75) 60%,
        rgba(247,243,238,0.95) 100%
    );
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
    text-align: center;
}

/* Glow blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.22;
    z-index: 0;
}
.hero-blob-blue {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 65%);
    animation: blobDrift 14s ease-in-out infinite alternate;
}
.hero-blob-cyan {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
    animation: blobDrift 10s ease-in-out infinite alternate-reverse;
}
@keyframes blobDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ─── CSS-only water drop particles ─────────────────────────── */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

/* Generate varied sizes, positions, durations for 18 particles */
.particle-1  { width:8px;  height:11px; left:5%;  background:rgba(0,229,255,.35); animation-duration:12s; animation-delay:0s;    bottom:-20px; }
.particle-2  { width:5px;  height:7px;  left:12%; background:rgba(14,165,233,.3); animation-duration:9s;  animation-delay:1.2s;  bottom:-20px; }
.particle-3  { width:10px; height:14px; left:20%; background:rgba(0,229,255,.25); animation-duration:15s; animation-delay:2.5s;  bottom:-20px; }
.particle-4  { width:6px;  height:8px;  left:28%; background:rgba(14,165,233,.4); animation-duration:11s; animation-delay:0.8s;  bottom:-20px; }
.particle-5  { width:12px; height:16px; left:35%; background:rgba(0,229,255,.2);  animation-duration:13s; animation-delay:3.1s;  bottom:-20px; }
.particle-6  { width:4px;  height:6px;  left:43%; background:rgba(56,189,248,.45);animation-duration:8s;  animation-delay:1.7s;  bottom:-20px; }
.particle-7  { width:9px;  height:12px; left:50%; background:rgba(0,229,255,.3);  animation-duration:16s; animation-delay:0.3s;  bottom:-20px; }
.particle-8  { width:7px;  height:9px;  left:57%; background:rgba(14,165,233,.35);animation-duration:10s; animation-delay:2.0s;  bottom:-20px; }
.particle-9  { width:5px;  height:7px;  left:63%; background:rgba(0,229,255,.4);  animation-duration:14s; animation-delay:4.0s;  bottom:-20px; }
.particle-10 { width:11px; height:15px; left:70%; background:rgba(14,165,233,.25);animation-duration:11s; animation-delay:1.5s;  bottom:-20px; }
.particle-11 { width:6px;  height:8px;  left:77%; background:rgba(0,229,255,.3);  animation-duration:9s;  animation-delay:3.4s;  bottom:-20px; }
.particle-12 { width:8px;  height:11px; left:83%; background:rgba(56,189,248,.35);animation-duration:13s; animation-delay:0.6s;  bottom:-20px; }
.particle-13 { width:4px;  height:6px;  left:88%; background:rgba(0,229,255,.45); animation-duration:7s;  animation-delay:2.8s;  bottom:-20px; }
.particle-14 { width:10px; height:13px; left:93%; background:rgba(14,165,233,.3); animation-duration:12s; animation-delay:1.1s;  bottom:-20px; }
.particle-15 { width:6px;  height:8px;  left:8%;  background:rgba(0,229,255,.25); animation-duration:10s; animation-delay:5.0s;  bottom:-20px; }
.particle-16 { width:9px;  height:12px; left:24%; background:rgba(56,189,248,.4); animation-duration:14s; animation-delay:3.8s;  bottom:-20px; }
.particle-17 { width:5px;  height:7px;  left:47%; background:rgba(14,165,233,.35);animation-duration:8s;  animation-delay:2.3s;  bottom:-20px; }
.particle-18 { width:7px;  height:10px; left:68%; background:rgba(0,229,255,.3);  animation-duration:11s; animation-delay:4.5s;  bottom:-20px; }

@keyframes particleFloat {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
    5%   { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ─── Hero content ───────────────────────────────────────────── */
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 820px;
    margin-inline: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--orange-light, #fef0e7);
    border: 1px solid rgba(244,124,60,0.25);
    border-radius: 24px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--orange-dark, #d9621e);
    letter-spacing: 0.03em;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--text, #0d1117);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}

/* Scroll arrow */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--muted);
    cursor: pointer;
}
.hero-scroll-arrow {
    animation: bounceY 1.8s ease-in-out infinite;
}
@keyframes bounceY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ============================================================
   2. TRUST BAR
   ============================================================ */
.trust-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border2);
    border-bottom: 1px solid var(--border2);
    padding: 1.5rem 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.75rem;
}
.trust-icon {
    width: 36px;
    height: 36px;
    color: var(--cyan);
    flex-shrink: 0;
}
.trust-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.trust-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.3;
}

/* ============================================================
   3. ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-body p {
    color: var(--muted);
    font-size: 0.975rem;
    line-height: 1.8;
}
.about-body strong { color: var(--white); font-weight: 600; }
.about-body em     { color: var(--cyan); font-style: normal; }

/* Right visual */
.about-visual { display: flex; justify-content: center; }
.about-img-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(135deg, rgba(14,165,233,.12) 0%, rgba(0,229,255,.06) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-drop {
    width: 55%;
    filter: drop-shadow(0 0 30px rgba(0,229,255,.35));
    animation: dropFloat 6s ease-in-out infinite;
}
@keyframes dropFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
.about-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,229,255,.15);
    pointer-events: none;
}
.about-ring-1 { width: 80%;  height: 80%;  top: 10%; left: 10%; }
.about-ring-2 { width: 95%;  height: 95%;  top: 2.5%; left: 2.5%; border-color: rgba(0,229,255,.07); }

/* Stat chips */
.about-stat-chip {
    position: absolute;
    background: rgba(7,18,32,.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.about-stat-1 { bottom: 1.5rem; left: -1.25rem; }
.about-stat-2 { top: 1.5rem; right: -1.25rem; }
.about-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.about-stat-text {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ============================================================
   4. SERVICES
   ============================================================ */
.services-grid { margin-top: 1rem; }

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}
.service-icon {
    font-size: 2.2rem;
    line-height: 1;
}
.service-price {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
}
.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}
.service-desc {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.7;
    flex: 1;
}
.service-btn { margin-top: auto; align-self: flex-start; }

/* Featured card */
.service-card-featured {
    border-color: rgba(0,229,255,.3);
    background: linear-gradient(160deg, rgba(14,165,233,.09) 0%, rgba(0,229,255,.04) 100%);
    box-shadow: 0 0 40px rgba(0,229,255,.08);
}
.service-featured-tag {
    position: absolute;
    top: -12px;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   5. HOW IT WORKS
   ============================================================ */
.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    margin-top: 1rem;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: var(--bg);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0,229,255,.3);
    flex-shrink: 0;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0,229,255,.07);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 1.1rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* Connecting line between steps */
.step-line {
    flex: 0 0 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,229,255,.4), rgba(14,165,233,.4));
    align-self: flex-start;
    margin-top: 24px; /* vertically centered with step-num */
    position: relative;
    z-index: 0;
}
.step-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(0,229,255,.5);
    border-right: 2px solid rgba(0,229,255,.5);
    transform: rotate(45deg);
}

/* ============================================================
   6. CALCULATOR BANNER
   ============================================================ */
.calc-banner {
    position: relative;
    background: linear-gradient(135deg,
        rgba(14,165,233,.12) 0%,
        rgba(0,229,255,.08) 50%,
        rgba(14,165,233,.06) 100%
    );
    border-top: 1px solid rgba(0,229,255,.15);
    border-bottom: 1px solid rgba(0,229,255,.15);
    padding: 5rem 1.5rem;
    overflow: hidden;
    text-align: center;
}
.calc-banner-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse at center, rgba(0,229,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.calc-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.calc-banner-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--white);
}
.calc-banner-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
}
.calc-banner-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.calc-banner-note {
    font-size: 0.8rem;
    color: var(--muted2);
    font-weight: 500;
}

/* ============================================================
   7. BLOG
   ============================================================ */
.blog-grid { margin-top: 1rem; }

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color var(--transition), transform var(--transition);
}
.blog-cat-badge { display: flex; }

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}
.blog-title a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}
.blog-title a:hover { color: var(--cyan); opacity: 1; }

.blog-excerpt {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: gap .2s ease, opacity .2s ease;
}
.blog-readmore:hover { gap: 0.65rem; opacity: 1; }

/* ============================================================
   8. TESTIMONIALS
   ============================================================ */
.testi-grid { margin-top: 1rem; }

.testi-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding: 1.75rem;
}
.testi-quote {
    font-size: 4.5rem;
    line-height: 0.7;
    color: var(--cyan);
    font-family: Georgia, serif;
    opacity: 0.5;
    position: absolute;
    top: 1.1rem;
    left: 1.5rem;
    pointer-events: none;
    user-select: none;
}
.testi-stars {
    display: flex;
    gap: 2px;
    margin-top: 1.5rem;
}
.testi-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.75;
    font-style: normal;
    flex: 1;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border2);
}
.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testi-name  { font-size: 0.9rem;  font-weight: 600; color: var(--white); }
.testi-city  { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   9. FINAL CTA
   ============================================================ */
.final-cta {
    position: relative;
    background: var(--bg2);
    border-top: 1px solid var(--border2);
    padding: 6rem 1.5rem;
    text-align: center;
    overflow: hidden;
}
.final-cta-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.14;
}
.final-cta-blob-l {
    width: 500px; height: 500px;
    left: -200px; top: -100px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
}
.final-cta-blob-r {
    width: 400px; height: 400px;
    right: -150px; bottom: -100px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}
.final-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.final-cta-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--white);
}
.final-cta-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
}
.final-cta-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============================================================
   MOBILE — 768px
   ============================================================ */
@media (max-width: 768px) {

    /* Hero */
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    /* Trust bar */
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .trust-item  { padding: 0.5rem; gap: 0.6rem; }
    .trust-icon  { width: 28px; height: 28px; }
    .trust-num   { font-size: 1.15rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { order: -1; }
    .about-img-card { max-width: 280px; }
    .about-stat-1 { left: -0.5rem; }
    .about-stat-2 { right: -0.5rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* Steps */
    .steps-row { flex-direction: column; align-items: center; gap: 0; }
    .step { padding: 0 1rem 2rem; max-width: 340px; }
    .step-line {
        width: 2px;
        height: 40px;
        flex: 0;
        background: linear-gradient(180deg, rgba(0,229,255,.4), rgba(14,165,233,.4));
        margin: 0;
        align-self: center;
    }
    .step-line::after {
        right: -4px;
        top: auto;
        bottom: -5px;
        transform: rotate(135deg);
    }

    /* Calc banner */
    .calc-banner { padding: 3.5rem 1.25rem; }
    .calc-banner-title { font-size: 1.7rem; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }

    /* Testimonials */
    .testi-grid { grid-template-columns: 1fr; }

    /* Final CTA */
    .final-cta-btns { flex-direction: column; align-items: stretch; }
    .final-cta-btns .btn { width: 100%; justify-content: center; }
    .final-cta { padding: 4rem 1.25rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
