/* ================================================
   CLEARFLOW PLUMBING — Service Business Design
   Inspired by Buckeye Heating style
   ================================================ */

:root {
    /* Blue / Red / Green palette */
    --blue-dark: #003d7a;
    --blue-primary: #0060bf;
    --blue-light: #e8f1fa;
    --blue-bg: #edf3f8;

    --red-primary: #cc1b1b;
    --red-dark: #a31515;
    --red-light: #fee2e2;

    --green-primary: #5b9a1a;
    --green-bright: #7dba2f;
    --green-light: #97c23b;
    --green-bg: #6aad22;

    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --text-dark: #1a1a2e;
    --text-body: #444;
    --text-light: #666;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 70px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ================================================
   RESET
   ================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    background: var(--blue-dark);
    padding: 8px 0;
    display: none;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    padding: 4px 10px;
    transition: color 0.2s;
}

.top-bar-links a:hover {
    color: white;
}

.top-bar-links .divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

.top-bar-ctas {
    display: flex;
    gap: 8px;
}

.top-cta {
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-transform: uppercase;
}

.top-cta-red {
    background: var(--red-primary);
    color: white;
}

.top-cta-red:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

/* ================================================
   MAIN NAV
   ================================================ */
.nav {
    background: var(--blue-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    opacity: 0.7;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.phone-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .phone-number {
        font-size: 1.1rem;
    }
}

/* Mobile menu button */
.nav-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

@media (min-width: 768px) {
    .nav-menu-btn {
        display: none;
    }
}

.nav-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-menu-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    padding: 14px 16px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-phone {
    margin-top: 16px;
    text-align: center;
}

/* ================================================
   SERVICE BAR (Green nav)
   ================================================ */
.service-bar {
    background: var(--green-light);
    border-bottom: 3px solid var(--green-primary);
    display: none;
}

@media (min-width: 768px) {
    .service-bar {
        display: block;
    }
}

.service-bar-links {
    display: flex;
    justify-content: center;
}

.service-bar-link {
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
    transition: all 0.2s;
    position: relative;
}

.service-bar-link:hover {
    background: rgba(0, 0, 0, 0.08);
}

.service-bar-link.active {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--blue-primary);
    margin-bottom: -3px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-red {
    background: var(--red-primary);
    color: white;
    box-shadow: 0 3px 12px rgba(204, 27, 27, 0.3);
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 27, 27, 0.4);
}

.btn-blue {
    background: var(--blue-primary);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 96, 191, 0.3);
}

.btn-blue:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 96, 191, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
}

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        height: 500px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-title-box {
    background: rgba(0, 60, 120, 0.85);
    backdrop-filter: blur(8px);
    padding: 40px 64px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-title-box h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: white;
    margin-bottom: 4px;
}

.hero-title-box p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ================================================
   COUPON BANNER
   ================================================ */
.coupon-banner {
    padding: 60px 0;
    background: var(--gray-50);
}

.coupon-inner {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .coupon-inner {
        grid-template-columns: 1.2fr 1fr;
    }
}

.coupon-left h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.coupon-left>p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Checklist */
.checklist {
    display: grid;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--blue-primary);
    font-weight: 500;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: var(--green-bright);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Coupon card */
.coupon-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--red-primary);
}

.coupon-header {
    background: var(--red-primary);
    color: white;
    text-align: center;
    padding: 14px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coupon-body {
    padding: 32px 24px;
    text-align: center;
}

.coupon-amount {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--blue-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.coupon-desc {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.coupon-code {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
    padding: 8px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.coupon-image {
    margin-top: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
    padding: 72px 0;
}

.section-light {
    background: var(--blue-bg);
}

.section-white {
    background: var(--white);
}

.section-blue {
    background: var(--blue-primary);
}

.section-green {
    background: var(--green-bg);
}

.section-dark {
    background: var(--gray-900);
    color: white;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title-white {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 900;
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

.section-text {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 800px;
}

/* Features list */
.features-list {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.feature-item .check-icon {
    margin-top: 4px;
}

/* ================================================
   EMERGENCY CTA
   ================================================ */
.emergency-cta {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
    padding: 40px 0;
}

.emergency-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .emergency-inner {
        text-align: left;
        justify-content: flex-start;
    }
}

.emergency-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.emergency-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.emergency-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
    .emergency-inner .btn {
        margin-left: auto;
    }
}

/* ================================================
   ACCORDION
   ================================================ */
.accordion {
    max-width: 800px;
}

.accordion-item {
    border-bottom: 2px solid var(--blue-light);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--blue-primary);
}

.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    background: var(--blue-primary);
    color: white;
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.open .accordion-body {
    max-height: 300px;
    padding-bottom: 20px;
}

.accordion-body p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.8;
    padding: 0 4px;
}

/* ================================================
   GUARANTEES
   ================================================ */
.guarantees-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.guarantee-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.guarantee-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.guarantee-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.guarantee-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.guarantee-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ================================================
   REVIEWS
   ================================================ */
.reviews-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.review-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.review-card p {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
}

/* ================================================
   ABOUT / TEAM
   ================================================ */
.about-layout {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr 1.1fr;
    }
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trust-badge {
    text-align: center;
    padding: 20px 12px;
    background: var(--blue-bg);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.badge-icon {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue-primary);
    margin-bottom: 4px;
}

.trust-badge span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-layout {
    display: grid;
    gap: 48px;
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.contact-detail svg {
    color: var(--green-bright);
    flex-shrink: 0;
}

.service-area-list h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 8px;
}

.service-area-list p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Contact form */
.contact-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s;
    outline: none;
    margin-bottom: 12px;
}

.form-input::placeholder {
    color: var(--gray-500);
}

.form-input:focus {
    border-color: var(--blue-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 96, 191, 0.1);
}

select.form-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236c757d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select.form-input option {
    color: var(--text-dark);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: 4px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--gray-800);
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-logo-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.footer-logo-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.08em;
}

.footer-logo-tag {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--green-bright);
}

.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-links-group a {
    display: block;
    font-size: 0.82rem;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: var(--green-bright);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   REVEAL ANIMATION
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
    .section {
        padding: 48px 0;
    }

    .hero-title-box {
        padding: 28px 32px;
    }

    .coupon-amount {
        font-size: 2.2rem;
    }

    .trust-badges {
        gap: 10px;
    }

    .guarantees-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}