/* ==========================================================================
   Hire a Local – site theme
   Builds on Bootstrap 5. Colours and radii are defined once as variables.
   ========================================================================== */

:root {
    --hl-primary: #0d9488;
    --hl-primary-dark: #0f766e;
    --hl-primary-soft: #ccfbf1;
    --hl-accent: #f59e0b;
    --hl-ink: #0f172a;
    --hl-body: #475569;
    --hl-muted: #94a3b8;
    --hl-line: #e2e8f0;
    --hl-surface: #ffffff;
    --hl-bg: #f8fafc;
    --hl-gradient: linear-gradient(135deg, #0d9488 0%, #0ea5e9 55%, #6366f1 100%);
    --hl-radius: 1rem;
    --hl-radius-lg: 1.5rem;
    --hl-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --hl-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --hl-shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);

    --bs-primary: var(--hl-primary);
    --bs-primary-rgb: 13, 148, 136;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--hl-body);
    --bs-link-color: var(--hl-primary-dark);
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: var(--hl-primary);
    --bs-border-radius: .75rem;
}

/* --- General --------------------------------------------------------------- */

body {
    font-family: var(--bs-body-font-family);
    color: var(--hl-body);
    background: var(--hl-surface);
    -webkit-font-smoothing: antialiased;
    padding-top: 72px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hl-ink);
    font-weight: 700;
    letter-spacing: -.02em;
}

.lead { color: var(--hl-body); font-weight: 400; }

.text-gradient {
    background: var(--hl-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-muted { background: var(--hl-bg); }

.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .75rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: var(--hl-primary-soft);
    color: var(--hl-primary-dark);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
    font-weight: 600;
    border-radius: .75rem;
    padding: .7rem 1.35rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-sm { padding: .4rem .9rem; border-radius: .6rem; }
.btn-lg { padding: .95rem 1.75rem; font-size: 1.05rem; }

.btn-primary {
    --bs-btn-bg: var(--hl-primary);
    --bs-btn-border-color: var(--hl-primary);
    --bs-btn-hover-bg: var(--hl-primary-dark);
    --bs-btn-hover-border-color: var(--hl-primary-dark);
    --bs-btn-active-bg: var(--hl-primary-dark);
    --bs-btn-active-border-color: var(--hl-primary-dark);
    box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(13, 148, 136, .7); }

.btn-outline-dark { --bs-btn-border-color: var(--hl-line); --bs-btn-color: var(--hl-ink); --bs-btn-hover-bg: var(--hl-ink); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--hl-ink); }
.btn-success { --bs-btn-bg: var(--hl-primary); --bs-btn-border-color: var(--hl-primary); --bs-btn-hover-bg: var(--hl-primary-dark); }

/* --- Navbar ---------------------------------------------------------------- */

.site-nav {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    min-height: 72px;
}
.site-nav .navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--hl-ink); letter-spacing: -.02em; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--hl-gradient);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--hl-shadow-sm);
}
.site-nav .nav-link { color: var(--hl-body); font-weight: 500; padding: .5rem .9rem !important; border-radius: .6rem; }
.site-nav .nav-link:hover { color: var(--hl-ink); background: var(--hl-bg); }
.site-nav .nav-item.active .nav-link { color: var(--hl-primary-dark); }

/* --- Hero ------------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; padding: 5rem 0 6rem; }
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: #5eead4; top: -180px; left: -120px; }
.hero::after { width: 480px; height: 480px; background: #a5b4fc; bottom: -220px; right: -100px; }

.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.2rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.5rem; font-size: .95rem; }
.hero-stats span { display: inline-flex; align-items: center; gap: .5rem; color: var(--hl-ink); font-weight: 500; }
.hero-stats i { color: var(--hl-primary); font-size: 1.15rem; }

.hero-visual { position: relative; }
.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--hl-radius-lg);
    box-shadow: var(--hl-shadow-lg);
}
.hero-visual .float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    padding: .9rem 1.1rem;
    display: flex; align-items: center; gap: .75rem;
    font-size: .9rem;
}
.hero-visual .float-card strong { display: block; color: var(--hl-ink); }
.hero-visual .float-card .icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--hl-primary-soft); color: var(--hl-primary-dark); font-size: 1.2rem;
}
.hero-visual .float-card.one { left: -1.5rem; bottom: 2.5rem; }
.hero-visual .float-card.two { right: -1rem; top: 2rem; }
@media (max-width: 991.98px) { .hero-visual .float-card { display: none; } }

/* --- Cards ----------------------------------------------------------------- */

.feature-card, .card {
    background: var(--hl-surface);
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card { padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.feature-card:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--hl-shadow); border-color: transparent; }
.feature-card .icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--hl-primary-soft); color: var(--hl-primary-dark);
    font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature-card p { margin-bottom: 1.25rem; }
.feature-card .card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.feature-card .price { font-weight: 600; color: var(--hl-ink); font-size: .95rem; }
.feature-card .link { font-weight: 600; text-decoration: none; }
.feature-card .link i { transition: transform .15s ease; }
.feature-card .link:hover i { transform: translateX(3px); }

.card { overflow: hidden; }
.card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }

/* --- Steps ----------------------------------------------------------------- */

.step { text-align: center; padding: 0 1rem; }
.step-number {
    width: 56px; height: 56px; margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--hl-gradient); color: #fff;
    font-weight: 700; font-size: 1.25rem;
    box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .8);
}
.step h3 { font-size: 1.15rem; }

/* --- Testimonials ---------------------------------------------------------- */

.testimonial { padding: 2rem; height: 100%; border-radius: var(--hl-radius); background: #fff; border: 1px solid var(--hl-line); }
.testimonial .stars { color: var(--hl-accent); margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial blockquote { color: var(--hl-ink); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
.testimonial .who { display: flex; align-items: center; gap: .75rem; }
.testimonial .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--hl-gradient); color: #fff; font-weight: 700;
}
.testimonial .who strong { color: var(--hl-ink); display: block; }
.testimonial .who small { color: var(--hl-muted); }

/* --- Call to action -------------------------------------------------------- */

.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--hl-radius-lg);
    background: var(--hl-gradient);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--hl-shadow-lg);
}
.cta-panel::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.25), transparent 40%),
                radial-gradient(circle at 85% 90%, rgba(255,255,255,.18), transparent 40%);
    pointer-events: none;
}
.cta-panel h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.cta-panel p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 36rem; margin: 0 auto 2rem; }
.cta-panel .btn { position: relative; z-index: 1; }

/* --- Inner page header (pages, posts, archive) ----------------------------- */

.page-header {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background: var(--hl-bg);
    border-bottom: 1px solid var(--hl-line);
    text-align: center;
}
.page-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -.03em; }
.page-header .lead { max-width: 42rem; margin: 1rem auto 0; }
.page-header.has-image { background-size: cover; background-position: center; border: 0; padding: 7rem 0 6rem; }
.page-header.has-image::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .55), rgba(15, 23, 42, .75));
}
.page-header.has-image .container { position: relative; }
.page-header.has-image h1, .page-header.has-image .lead, .page-header.has-image .post-meta,
.page-header.has-image .post-meta a { color: #fff; }

.post-meta { font-size: .9rem; color: var(--hl-muted); margin-top: .75rem; }
.post-meta span + span::before { content: "·"; margin: 0 .5rem; }

/* --- Content blocks -------------------------------------------------------- */

main .block { padding: 1.5rem 0; }
main .block:first-child { padding-top: 4rem; }
main .block:last-child { padding-bottom: 5rem; }
main .block img { max-width: 100%; height: auto; border-radius: var(--hl-radius); }
main .block .row > [class*="col"] { margin-bottom: 1rem; }
.block.html-block h2, .block.html-block h3 { margin-bottom: 1rem; }
.blockquote { border-left: 4px solid var(--hl-primary); padding: .5rem 0 .5rem 1.5rem; font-size: 1.3rem; color: var(--hl-ink); }

.gallery-block { border-radius: var(--hl-radius-lg); overflow: hidden; box-shadow: var(--hl-shadow); }
.gallery-block img { border-radius: 0 !important; }
.start-blocks .block:first-child { padding-top: 5rem; }
.start-blocks .block:last-child { padding-bottom: 5rem; }

.archive article { margin-bottom: 3rem; }
.archive article img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--hl-radius) !important; }

.pagination .page-link { border-radius: .6rem !important; margin: 0 .2rem; border: 0; color: var(--hl-ink); }
.pagination .active .page-link { background: var(--hl-primary); }

/* --- Forms ----------------------------------------------------------------- */

.form-control, .form-select {
    border-radius: .75rem;
    border-color: var(--hl-line);
    padding: .75rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--hl-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, .15);
}
.form-label { font-weight: 600; color: var(--hl-ink); font-size: .9rem; }

.form-panel {
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius-lg);
    box-shadow: var(--hl-shadow);
    padding: 2.5rem;
}
@media (max-width: 575.98px) { .form-panel { padding: 1.5rem; } }

.side-panel { border-radius: var(--hl-radius-lg); background: var(--hl-bg); padding: 2rem; }
.side-panel li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.side-panel li i { color: var(--hl-primary); font-size: 1.2rem; }

.success-panel { text-align: center; padding: 3.5rem 2rem; }
.success-panel .check {
    width: 72px; height: 72px; margin: 0 auto 1.5rem;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--hl-primary-soft); color: var(--hl-primary-dark); font-size: 2.2rem;
}

/* Hidden spam trap on public forms */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Comments -------------------------------------------------------------- */

.comments { padding-bottom: 4rem; }
.alert-comment { background: var(--hl-bg); border: 1px solid var(--hl-line); border-radius: var(--hl-radius-lg); padding: 2rem; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer { background: var(--hl-ink); color: #cbd5e1; padding: 4.5rem 0 2rem; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .navbar-brand { color: #fff; font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.site-footer .bottom { border-top: 1px solid rgba(148, 163, 184, .2); margin-top: 3rem; padding-top: 1.5rem; font-size: .875rem; color: var(--hl-muted); }

/* --- Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .fade-up { animation: fade-up .7s ease both; }
    .fade-up.delay-1 { animation-delay: .1s; }
    .fade-up.delay-2 { animation-delay: .2s; }
    @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
