/* =========================================================
   HEROFAUCET - PREMIUM GREEN RED WHITE THEME
   Consolidated CSS | Responsive | Duplicate-free
========================================================= */

/* 1. ROOT VARIABLES */

:root {
    --hf-green: #159957;
    --hf-dark: #087443;
    --hf-deep: #064d30;
    --hf-green-light: #e9f8f0;
    --hf-green-soft: #f5fcf8;

    --hf-red: #b42332;
    --hf-red-dark: #8f1725;
    --hf-red-light: #fcebed;

    --hf-white: #ffffff;
    --hf-bg: #f7fbf8;
    --hf-text: #183b2c;
    --hf-muted: #607568;
    --hf-border: #dceee3;

    --hf-shadow: 0 6px 22px rgba(6, 77, 48, .07);
    --hf-radius: 15px;
    --hf-transition: .25s ease;
}

/* 2. GLOBAL */

html {
    scroll-behavior: smooth;
}

body {
    color: var(--hf-text);
    background: var(--hf-white);
    font-family: inherit;
    overflow-x: hidden;
}

section {
    position: relative;
}

.container {
    width: 100%;
    max-width: 1240px;
}

img {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(180, 35, 50, .35);
    outline-offset: 3px;
}

button {
    font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   3. HERO SECTION
========================================================= */

.hero {
    padding: 35px 0;
    background:
        radial-gradient(circle at 85% 20%, #d9f6e5 0, transparent 30%),
        linear-gradient(135deg, #fff 45%, #f0faf4 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--hf-border);
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 45px;
}

.hero-text {
    min-width: 0;
}

.hero-text h1 {
    color: var(--hf-deep);
    font-size: clamp(34px, 4.5vw, 57px);
    line-height: 1.16;
    font-weight: 850;
    letter-spacing: -1.5px;
    margin: 0 0 20px;
}

.hero-text h1 strong,
.hero-text h1 .highlight {
    color: var(--hf-red);
}

.hero-text > p {
    max-width: 600px;
    color: var(--hf-muted);
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 28px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 30px;
}

.hero-btns .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: var(--hf-transition);
}

.hero-btns .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #20b46c, #087443);
    border: 1px solid var(--hf-green);
    box-shadow: 0 7px 18px rgba(21, 153, 87, .2);
}

.hero-btns .btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--hf-red), var(--hf-red-dark));
    border-color: var(--hf-red);
    transform: translateY(-3px);
}

.hero-btns .btn-outline {
    color: var(--hf-dark);
    background: #fff;
    border: 1px solid var(--hf-green);
}

.hero-btns .btn-outline:hover {
    color: #fff;
    background: var(--hf-red);
    border-color: var(--hf-red);
    transform: translateY(-3px);
}

.hero-image {
    min-width: 0;
    position: relative;
    text-align: center;
}

.hero-image > img {
    width: 100%;
    max-width: 540px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 25px rgba(21, 153, 87, .12));
    animation: hfFloat 5s ease-in-out infinite;
}

@keyframes hfFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

.hero-banner-ad {
    width: 100%;
    margin-top: 20px;
}

.hero-ad-box {
    max-width: 100%;
    overflow: hidden;
}

/* =========================================================
   4. HERO STATISTICS
========================================================= */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--hf-border);
    border-radius: 13px;
    box-shadow: 0 5px 17px rgba(21, 153, 87, .055);
    transition: var(--hf-transition);
}

.hero-stat:hover {
    transform: translateY(-4px);
    border-color: var(--hf-green);
    box-shadow: var(--hf-shadow);
}

.hero-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    color: var(--hf-green);
    background: var(--hf-green-light);
    border-radius: 11px;
    font-size: 18px;
}

.hero-stat strong {
    display: block;
    color: var(--hf-dark);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hero-stat span {
    display: block;
    color: var(--hf-muted);
    font-size: 11px;
    font-weight: 650;
}

/* =========================================================
   5. COMMON SECTION SPACING
========================================================= */

#features,
#payments,
.hf-faq-section,
.hf-latest-blog {
    padding: 38px 0;
}

#features {
    background: var(--hf-bg);
}

#payments,
.hf-latest-blog {
    background: #fff;
}

/* =========================================================
   6. COMMON OLD TITLE
========================================================= */

.title {
    max-width: 100%;
    margin: 0 0 23px;
    text-align: left;
}

.title h2 {
    color: var(--hf-deep);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}

.title h2 i {
    color: var(--hf-red);
    margin-right: 8px;
}

.title p {
    max-width: 850px;
    color: var(--hf-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* =========================================================
   7. UNIVERSAL SECTION HEADING
========================================================= */

.hf-faq-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    margin: 0 0 25px;
    text-align: left;
}

.hf-faq-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    color: #fff;
    background: linear-gradient(145deg, var(--hf-green), var(--hf-deep));
    border-radius: 21px;
    font-size: 35px;
    box-shadow: 0 9px 23px rgba(21, 153, 87, .19);
}

.hf-faq-heading-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.hf-section-kicker {
    display: inline-block;
    color: var(--hf-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 7px;
}

.hf-faq-heading-text h2 {
    color: var(--hf-deep);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.6px;
    margin: 0 0 9px;
}

.hf-faq-heading-text p {
    color: var(--hf-muted);
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
}

.hf-faq-heading-text p i {
    color: var(--hf-red);
    margin-right: 4px;
}

/* =========================================================
   8. FEATURES GRID
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 210px;
    padding: 24px 18px;
    background: #fff;
    border: 1px solid var(--hf-border);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(6, 77, 48, .05);
    overflow: hidden;
    transition: var(--hf-transition);
}

.feature-box::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hf-green), var(--hf-red));
    transition: .3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: #a8dec0;
    box-shadow: 0 12px 28px rgba(6, 77, 48, .10);
}

.feature-box:hover::after {
    width: 100%;
}

.feature-box > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    margin-bottom: 17px;
    border-radius: 18px;
    background: var(--hf-green-light);
    color: var(--hf-green);
    font-size: 34px;
    transition: var(--hf-transition);
}

.feature-box:hover > i {
    color: #fff;
    background: var(--hf-red);
    transform: scale(1.06);
}

.feature-box h4 {
    color: var(--hf-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    margin: 0 0 9px;
}

.feature-box p {
    color: var(--hf-muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   9. PAYMENT TABLE
========================================================= */

.payment-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--hf-border);
    border-radius: 15px;
    box-shadow: var(--hf-shadow);
}

.payment-wrap table,
#payments table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin: 0;
}

.payment-wrap thead,
#payments table thead {
    background: linear-gradient(110deg, var(--hf-dark), var(--hf-green));
}

.payment-wrap th,
#payments table th {
    padding: 15px 17px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
}

.payment-wrap td,
#payments table td {
    padding: 13px 17px;
    color: var(--hf-text);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #edf4ef;
    vertical-align: middle;
}

.payment-wrap tbody tr {
    transition: .2s ease;
}

.payment-wrap tbody tr:hover {
    background: var(--hf-green-soft);
}

.payment-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.payment-wrap td img {
    width: 25px;
    height: 25px;
    margin-left: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.payment-wrap .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    color: var(--hf-dark);
    background: var(--hf-green-light);
    border: 1px solid #bce9cc;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 750;
}

/* =========================================================
   10. FAQ SECTION
========================================================= */

.hf-faq-section {
    background: linear-gradient(180deg, #f5fcf8 0%, #fff 100%);
    overflow: hidden;
}

.hf-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.hf-faq-item {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--hf-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(6, 77, 48, .045);
    transition: var(--hf-transition);
}

.hf-faq-item:hover,
.hf-faq-item.active {
    border-color: #a8dec0;
    box-shadow: 0 8px 23px rgba(6, 77, 48, .08);
}

.hf-faq-question {
    width: 100%;
    min-height: 73px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: #fff;
    color: var(--hf-text);
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    cursor: pointer;
}

.hf-faq-question-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hf-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--hf-green);
    background: var(--hf-green-light);
    border-radius: 12px;
    font-size: 18px;
    transition: var(--hf-transition);
}

.hf-faq-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    color: var(--hf-dark);
    background: var(--hf-green-soft);
    border-radius: 50%;
    font-size: 12px;
    transition: var(--hf-transition);
}

.hf-faq-item.active .hf-faq-question {
    color: var(--hf-red-dark);
}

.hf-faq-item.active .hf-faq-icon {
    color: #fff;
    background: var(--hf-red);
}

.hf-faq-item.active .hf-faq-toggle {
    color: #fff;
    background: var(--hf-red);
    transform: rotate(45deg);
}

/* FAQ answer */

.hf-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.hf-faq-answer p {
    min-height: 0;
    overflow: hidden;
    padding: 0 18px;
    margin: 0;
    color: var(--hf-muted);
    font-size: 13px;
    line-height: 1.8;
    transition: padding .3s ease;
}

.hf-faq-item.active .hf-faq-answer {
    grid-template-rows: 1fr;
}

.hf-faq-item.active .hf-faq-answer p {
    padding: 0 18px 18px 72px;
}

/* =========================================================
   11. BLOG SECTION
========================================================= */

.hf-blog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.hf-blog-heading .hf-faq-heading {
    flex: 1;
    margin: 0;
}

.hf-blog-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--hf-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hf-blog-heading h2 {
    color: var(--hf-deep);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
}

.hf-blog-heading p {
    color: var(--hf-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.hf-blog-view-all,
.hf-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hf-dark);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: var(--hf-transition);
}

.hf-blog-view-all {
    flex-shrink: 0;
    padding: 11px 16px;
    background: var(--hf-green-light);
    border: 1px solid var(--hf-border);
    border-radius: 9px;
}

.hf-blog-view-all:hover {
    color: #fff;
    background: var(--hf-red);
    border-color: var(--hf-red);
}

.hf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hf-blog-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--hf-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(21, 153, 87, .05);
    transition: var(--hf-transition);
}

.hf-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(21, 153, 87, .11);
}

.hf-blog-image-link {
    display: block;
    height: 210px;
    overflow: hidden;
    background: var(--hf-green-light);
}

.hf-blog-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.hf-blog-card:hover .hf-blog-image {
    transform: scale(1.05);
}

.hf-blog-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--hf-green);
    font-size: 45px;
}

.hf-blog-card-body {
    padding: 20px;
}

.hf-blog-date {
    margin-bottom: 11px;
    color: var(--hf-red);
    font-size: 11px;
    font-weight: 750;
}

.hf-blog-card h3 {
    margin: 0 0 11px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.hf-blog-card h3 a {
    color: var(--hf-dark);
    text-decoration: none;
}

.hf-blog-card h3 a:hover {
    color: var(--hf-red);
}

.hf-blog-card-body > p {
    color: var(--hf-muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 12px;
}

.hf-blog-read {
    margin-top: 5px;
}

.hf-blog-read:hover {
    color: var(--hf-red);
    gap: 13px;
}

/* =========================================================
   12. NAVBAR AND FOOTER ACCENTS
========================================================= */

.premium-navbar::after {
    background: linear-gradient(
        90deg,
        var(--hf-green),
        #20b46c,
        var(--hf-red),
        #20b46c,
        var(--hf-green)
    );
}

.premium-brand,
.footer-logo-link {
    border-color: var(--hf-red);
}

.footer-heading {
    border-bottom-color: var(--hf-red);
}

.footer-pro {
    border-image: linear-gradient(
        90deg,
        var(--hf-green),
        #20b46c,
        var(--hf-red),
        #20b46c,
        var(--hf-green)
    ) 1;
}

.premium-login:hover {
    color: var(--hf-red);
    border-color: var(--hf-red);
    background: var(--hf-red-light);
}

/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 991px) {

    .hero-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 767px) {

    .hero {
        padding: 35px 0 30px;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(29px, 7vw, 36px);
        letter-spacing: -.8px;
    }

    .hero-text > p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 22px;
    }

    .hero-btns {
        justify-content: center;
        gap: 10px;
        margin-bottom: 22px;
    }

    .hero-btns .btn {
        padding: 12px 17px;
        font-size: 13px;
    }

    .hero-image > img {
        max-width: 400px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 22px;
    }

    .hero-stat {
        padding: 11px 9px;
        gap: 8px;
    }

    .hero-stat-icon {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .hero-stat strong {
        font-size: 15px;
    }

    .hero-stat span {
        font-size: 10px;
        line-height: 1.35;
    }

    /* Section spacing */

    #features,
    #payments,
    .hf-faq-section,
    .hf-latest-blog {
        padding: 27px 0;
    }

    /* Common heading mobile */

    .hf-faq-heading {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 19px;
    }

    .hf-faq-heading-icon {
        flex: 0 0 58px;
        width: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 26px;
    }

    .hf-section-kicker {
        font-size: 9px;
        letter-spacing: 1.1px;
        margin-bottom: 4px;
    }

    .hf-faq-heading-text h2 {
        font-size: clamp(18px, 4.5vw, 23px);
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .hf-faq-heading-text p {
        font-size: 12px;
        line-height: 1.6;
    }

    /* Features */

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .feature-box {
        min-height: 185px;
        padding: 18px 12px;
    }

    .feature-box > i {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 29px;
    margin-bottom: 13px;
    }

    .feature-box h4 {
        font-size: 14px;
    }

    .feature-box p {
        font-size: 11.5px;
        line-height: 1.65;
    }

    /* Payment */

    .payment-wrap th,
    .payment-wrap td {
        padding: 12px;
    }

    /* FAQ */

    .hf-faq-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .hf-faq-question {
        min-height: 65px;
        padding: 11px 12px;
        font-size: 13px;
    }

    .hf-faq-question-left {
        gap: 10px;
    }

    .hf-faq-icon {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
        font-size: 16px;
    }

    .hf-faq-toggle {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .hf-faq-item.active .hf-faq-answer p {
        padding: 0 14px 15px 59px;
        font-size: 12px;
    }

    /* Blog */

    .hf-blog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 18px;
    }

    .hf-blog-heading .hf-faq-heading {
        width: 100%;
    }

    .hf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hf-blog-image-link {
        height: 160px;
    }

    .hf-blog-card-body {
        padding: 14px;
    }

    .hf-blog-card h3 {
        font-size: 14px;
    }

    .hf-blog-card-body > p {
        font-size: 12px;
    }

    .hf-blog-view-all {
        padding: 10px 14px;
        font-size: 12px;
    }

}

/* =========================================================
   15. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stat {
        padding: 9px 6px;
        gap: 6px;
    }

    .hero-stat-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .hero-stat strong {
        font-size: 13px;
    }

    .hero-stat span {
        font-size: 9px;
    }

    .hf-faq-heading {
        gap: 9px;
    }

    .hf-faq-heading-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .hf-faq-heading-text h2 {
        font-size: 18px;
    }

    .hf-section-kicker {
        font-size: 8px;
        letter-spacing: .8px;
    }

    .hf-faq-heading-text p {
        font-size: 11px;
    }

    .feature-box {
        min-height: 175px;
        padding: 15px 9px;
    }

    .feature-box h4 {
        font-size: 13px;
    }

    .feature-box p {
        font-size: 11px;
    }

    .hf-blog-grid {
        grid-template-columns: 1fr;
    }

    .hf-blog-image-link {
        height: 190px;
    }

    .hf-faq-question {
        font-size: 12px;
    }

}