/* ==========================================================================
   FlipUp — brand styles (layered on top of Bootstrap 5)
   Brand: Blue #0a44c2 ("Flip")  +  Orange #fc7300 ("Up")
   ========================================================================== */

:root {
    --fu-blue: #0a44c2;
    --fu-blue-dark: #082f86;
    --fu-blue-soft: #eaf0ff;
    --fu-orange: #fc7300;
    --fu-orange-dark: #d96100;
    --fu-orange-soft: #fff1e3;
    --fu-ink: #1f2937;
    --fu-muted: #6b7280;
    --fu-bg: #f6f8fc;

    --bs-primary: #0a44c2;
    --bs-primary-rgb: 10, 68, 194;
    --bs-link-color: #0a44c2;
    --bs-link-hover-color: #082f86;
    --bs-body-color: #1f2937;
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #fff;
    color: var(--fu-ink);
}

/* --- Buttons -------------------------------------------------------------- */
.btn-primary {
    --bs-btn-bg: var(--fu-blue);
    --bs-btn-border-color: var(--fu-blue);
    --bs-btn-hover-bg: var(--fu-blue-dark);
    --bs-btn-hover-border-color: var(--fu-blue-dark);
    --bs-btn-active-bg: var(--fu-blue-dark);
    --bs-btn-active-border-color: var(--fu-blue-dark);
    --bs-btn-disabled-bg: var(--fu-blue);
    --bs-btn-disabled-border-color: var(--fu-blue);
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--fu-orange);
    --bs-btn-border-color: var(--fu-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--fu-orange-dark);
    --bs-btn-hover-border-color: var(--fu-orange-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--fu-orange-dark);
    color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--fu-blue);
    --bs-btn-border-color: var(--fu-blue);
    --bs-btn-hover-bg: var(--fu-blue);
    --bs-btn-hover-border-color: var(--fu-blue);
    --bs-btn-active-bg: var(--fu-blue);
}

.btn { border-radius: .6rem; font-weight: 600; }
.btn-lg { padding: .75rem 1.6rem; }

.text-accent { color: var(--fu-orange) !important; }
.text-brand { color: var(--fu-blue) !important; }
.bg-brand-soft { background-color: var(--fu-blue-soft) !important; }
.bg-accent-soft { background-color: var(--fu-orange-soft) !important; }

/* --- Navbar --------------------------------------------------------------- */
.navbar { background: #fff; box-shadow: 0 2px 14px rgba(16, 30, 54, .06); }
.navbar-brand img { height: 38px; width: auto; }
.navbar .nav-link { font-weight: 600; color: var(--fu-ink); }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--fu-blue); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(1200px 400px at 100% -10%, rgba(252, 115, 0, .12), transparent 60%),
        linear-gradient(135deg, var(--fu-blue) 0%, var(--fu-blue-dark) 100%);
    color: #fff;
    border-radius: 0 0 2rem 2rem;
}
.hero h1 { font-weight: 800; line-height: 1.1; }
.hero .lead { color: rgba(255, 255, 255, .9); }
.hero-stat strong { font-size: 1.6rem; }

/* --- Section helpers ------------------------------------------------------ */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-weight: 800; }
.section-subtitle { color: var(--fu-muted); max-width: 640px; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
    font-weight: 700; color: var(--fu-orange);
}

/* --- Cards ---------------------------------------------------------------- */
.card { border: 1px solid #eef1f6; border-radius: 1rem; transition: transform .18s ease, box-shadow .18s ease; }
.service-card { height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 30, 54, .10); }
.service-card .icon-badge {
    width: 56px; height: 56px; border-radius: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fu-blue-soft); color: var(--fu-blue); font-size: 1.6rem;
}
.service-card.cleaning .icon-badge { background: var(--fu-orange-soft); color: var(--fu-orange); }
.price-tag { font-weight: 800; color: var(--fu-blue); }

.feature-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fu-blue-soft); color: var(--fu-blue); font-size: 1.7rem;
}

.step-number {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fu-orange); color: #fff; font-weight: 800;
}

/* --- Category pill filter ------------------------------------------------- */
.pill-filter .btn { border-radius: 2rem; padding-inline: 1.1rem; }
.pill-filter .pill-count {
    font-size: .75em; font-weight: 700; opacity: .7; margin-inline-start: .15rem;
}

/* --- Blog ----------------------------------------------------------------- */
.blog-card { display: block; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 30, 54, .12); }
.blog-card .blog-card-media {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--fu-blue-soft);
    display: flex; align-items: center; justify-content: center;
}
.blog-card .blog-card-media img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card .blog-card-media .icon-badge {
    width: 60px; height: 60px; border-radius: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--fu-blue); font-size: 1.7rem;
}
.blog-card .card-title { color: var(--fu-ink); line-height: 1.3; }
.blog-card:hover .card-title { color: var(--fu-blue); }
.blog-featured .card-title,
.blog-featured h3 { color: var(--fu-ink); }

.blog-cat-badge {
    background: var(--fu-blue-soft); color: var(--fu-blue);
    font-weight: 600; border-radius: 2rem; padding: .35em .8em;
}

.blog-clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Testimonials --------------------------------------------------------- */
.testimonial-card { background: var(--fu-bg); border: none; }
.stars { color: #ffb400; }
.avatar-circle {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--fu-blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--fu-orange) 0%, var(--fu-orange-dark) 100%);
    color: #fff; border-radius: 1.5rem;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: #0b1220; color: #c7cedb; }
.site-footer a { color: #c7cedb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 700; letter-spacing: .03em; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08);
}
.footer-social a:hover { background: var(--fu-orange); }

/* --- Forms ---------------------------------------------------------------- */
.form-control, .form-select { border-radius: .6rem; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--fu-blue); box-shadow: 0 0 0 .2rem rgba(10, 68, 194, .15);
}
.auth-card { max-width: 460px; }

/* --- Services tree (nav mega-menu + mobile accordion) --------------------- */
.mega-menu { min-width: 540px; padding: 1rem 1.25rem; border-radius: 1rem; }
.mega-grid { display: flex; gap: 1.5rem; }
.mega-grid > div { flex: 1; }

.nav-tree { list-style: none; padding-left: 0; margin: 0; }
.tree-cat {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 700; color: var(--fu-ink); padding: .5rem .25rem; text-decoration: none;
}
.tree-cat i:first-child { color: var(--fu-blue); }
.service-card.cleaning .icon-badge,
.tree-cat.cleaning i:first-child { color: var(--fu-orange); }

.tree-children { list-style: none; margin: 0 0 .5rem; padding-left: .85rem; border-inline-start: 1.5px solid #e7ebf3; }
.tree-children li { position: relative; }
.tree-children li > a {
    display: block; padding: .45rem .25rem .45rem 1rem; color: var(--fu-muted);
    text-decoration: none; border-radius: .4rem; font-size: .92rem;
}
/* connector line/dot for each leaf */
.tree-children li > a::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 50%;
    width: .7rem; height: 1.5px; background: #e7ebf3;
}
.tree-children li > a:hover { background: var(--fu-blue-soft); color: var(--fu-blue); }
.tree-children li > a.tree-all { color: var(--fu-blue); font-weight: 600; }

/* --- Mobile offcanvas nav ------------------------------------------------- */
.navbar .offcanvas { max-width: 86vw; }
@media (max-width: 991.98px) {
    .navbar-nav .nav-link { padding: .65rem .25rem; border-bottom: 1px solid #f1f3f8; }
    .mega-menu { min-width: 100%; padding: .25rem 0; box-shadow: none; border: none; }
    .mega-grid { flex-direction: column; gap: 0; }
}

/* --- Mobile sticky booking CTA (service detail) --------------------------- */
.mobile-book-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1030;
    background: #fff; box-shadow: 0 -4px 18px rgba(16,30,54,.12);
    padding: .6rem .9rem; display: none;
}
@media (max-width: 991.98px) { .mobile-book-bar { display: block; } }

/* --- Booking wizard ------------------------------------------------------- */
.wizard-topbar .card-body { padding: 1.1rem 1.4rem; }

/* Progress stepper */
.wizard-progress { display: flex; align-items: center; }
.wp-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 0 0 auto; }
.wp-dot {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid #e3e8f0; color: var(--fu-muted);
    font-weight: 700; transition: all .2s ease;
}
.wp-check { display: none; font-size: 1.05rem; }
.wp-label { font-size: .78rem; font-weight: 600; color: var(--fu-muted); white-space: nowrap; }
.wp-line { flex: 1 1 auto; height: 3px; background: #e3e8f0; margin: 0 .5rem 1.5rem; border-radius: 2px; transition: background .2s ease; }
.wp-line.is-done { background: #12b886; }
.wp-item.is-active .wp-dot { background: var(--fu-blue); border-color: var(--fu-blue); color: #fff; }
.wp-item.is-active .wp-label { color: var(--fu-blue); }
.wp-item.is-done .wp-dot { background: #12b886; border-color: #12b886; color: #fff; }
.wp-item.is-done .wp-num { display: none; }
.wp-item.is-done .wp-check { display: inline; }
.wp-item.is-done .wp-label { color: #12b886; }

/* Selectable service cards */
.option-card {
    position: relative; width: 100%; text-align: center; cursor: pointer;
    background: #fff; border: 2px solid #e9edf4; border-radius: 1rem;
    padding: 1.25rem .75rem; display: flex; flex-direction: column; align-items: center; gap: .35rem;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.option-card:hover { border-color: var(--fu-blue); transform: translateY(-2px); }
.option-card .opt-icon { font-size: 1.9rem; color: var(--fu-blue); }
.option-card .opt-title { font-weight: 700; color: var(--fu-ink); }
.option-card .opt-sub { font-size: .85rem; color: var(--fu-muted); }
.option-card .opt-check {
    position: absolute; top: .6rem; inset-inline-end: .6rem;
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #dce2ec; background: #fff; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .75rem;
}
.option-card.selected { border-color: var(--fu-blue); background: var(--fu-blue-soft); }
.option-card.selected .opt-check { background: var(--fu-blue); border-color: var(--fu-blue); }

/* Hours / workers / time pills */
.option-pill {
    width: 100%; cursor: pointer; color: var(--fu-ink); font-weight: 600;
    background: var(--fu-bg); border: 2px solid transparent; border-radius: .8rem;
    padding: .7rem .5rem; display: flex; flex-direction: column; align-items: center; line-height: 1.15;
    transition: all .15s ease;
}
.option-pill .op-num { font-size: 1.25rem; font-weight: 800; }
.option-pill .op-lbl { font-size: .75rem; color: var(--fu-muted); font-weight: 500; }
.option-pill:hover { border-color: var(--fu-blue); }
.option-pill.selected { background: var(--fu-blue); border-color: var(--fu-blue); color: #fff; }
.option-pill.selected .op-lbl { color: rgba(255, 255, 255, .85); }
.time-option { justify-content: center; padding: .85rem; }

/* Materials rows */
.option-row {
    display: flex; align-items: center; gap: 1rem; width: 100%; text-align: start; cursor: pointer;
    background: #fff; border: 2px solid #e9edf4; border-radius: 1rem; padding: 1rem 1.15rem;
    transition: border-color .15s ease, background .15s ease;
}
.option-row:hover { border-color: var(--fu-blue); }
.option-row .or-icon { width: 44px; height: 44px; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: 0 0 auto; }
.option-row .or-text { flex: 1 1 auto; display: flex; flex-direction: column; }
.option-row .or-title { font-weight: 700; }
.option-row .or-sub { font-size: .85rem; color: var(--fu-muted); }
.option-row .or-check { color: #dce2ec; font-size: 1.4rem; flex: 0 0 auto; }
.option-row.selected { border-color: var(--fu-blue); background: var(--fu-blue-soft); }
.option-row.selected .or-check { color: var(--fu-blue); }

/* Mini calendar */
.wizard-calendar { border: 1px solid #e9edf4; border-radius: 1rem; padding: 1rem; }
.wc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.wc-title { font-weight: 700; }
.wc-nav { width: 34px; height: 34px; border-radius: 50%; border: none; background: #f0f3f9; color: var(--fu-ink); display: inline-flex; align-items: center; justify-content: center; }
.wc-nav:hover:not(:disabled) { background: var(--fu-blue-soft); color: var(--fu-blue); }
.wc-nav:disabled, .wc-nav.is-disabled { opacity: .35; cursor: not-allowed; }
.wc-weekdays, .wc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.wc-wd { text-align: center; font-size: .72rem; font-weight: 700; color: var(--fu-muted); text-transform: uppercase; padding: .25rem 0; }
.wc-day {
    aspect-ratio: 1 / 1; border: none; background: transparent; border-radius: .6rem;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--fu-ink);
    cursor: pointer; transition: background .12s ease, color .12s ease;
}
.wc-day:hover:not(.is-disabled):not(.wc-blank) { background: var(--fu-blue-soft); }
.wc-day.is-disabled { color: #cfd6e2; cursor: not-allowed; text-decoration: line-through; }
.wc-day.wc-blank { cursor: default; }
.wc-day.selected { background: var(--fu-blue); color: #fff; }

/* Live summary */
.booking-summary { position: sticky; top: 1rem; }
.summary-list .summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.summary-list dt { font-weight: 500; color: var(--fu-muted); margin: 0; }
.summary-list dd { font-weight: 700; color: var(--fu-ink); margin: 0; text-align: end; }

/* Invalid-advance nudge */
@keyframes wizardShake { 10%, 90% { transform: translateX(-1px); } 30%, 70% { transform: translateX(3px); } 50% { transform: translateX(-4px); } }
.wizard-shake { animation: wizardShake .4s ease; }

/* --- Misc ----------------------------------------------------------------- */
.page-header { background: var(--fu-blue-soft); }
img { max-width: 100%; height: auto; }

/* Larger tap targets & comfortable spacing on phones */
@media (max-width: 575.98px) {
    .hero { border-radius: 0 0 1.25rem 1.25rem; }
    .hero .display-4 { font-size: 1.9rem; }
    .section { padding: 2.5rem 0; }
    .section-sm { padding: 2rem 0; }
    .display-4 { font-size: 2rem; }
    .btn-lg { padding: .8rem 1.3rem; font-size: 1rem; }
    .hero-stat { flex-wrap: wrap; gap: 1rem !important; }
    .cta-band { padding: 2rem 1.25rem !important; }
    .card-body { padding: 1.1rem; }
    /* keep content clear of the sticky book bar */
    body.has-book-bar { padding-bottom: 76px; }

    /* Booking wizard on phones */
    .wp-dot { width: 30px; height: 30px; font-size: .8rem; }
    .wp-label { font-size: .62rem; }
    .wp-line { margin: 0 .2rem 1.25rem; }
    .booking-summary { position: static; }
    .option-card { padding: 1rem .5rem; }
    .option-card .opt-sub { font-size: .78rem; }
    .wizard-card .card-body { padding: 1.25rem; }
}
