/* assets/styles.css */
:root {
    --brand: #AB495A;
    --brand-2: #8F3B4A;

    --bg: #f6f7fb;
    --text: #0f172a;
    --muted: #556070;
    --card: rgba(255, 255, 255, .96);
    --line: rgba(15, 23, 42, .12);
    --shadow: 0 14px 36px rgba(15, 23, 42, .12);

    --radius: 16px;
    --radius2: 24px;
    --max: 1320px;

    --h: #0b1222;
}

html[data-theme="dark"] {
    --bg: #0b0c10;
    --text: #eef1f7;
    --muted: #9aa3b2;
    --card: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .12);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --h: #eef1f7;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    line-height: 1.7;
    color: var(--text);
    background: radial-gradient(900px 500px at 15% -5%, rgba(171, 73, 90, .12), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(171, 73, 90, .08), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(0, 0, 0, .04), transparent 55%),
    var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

.h1 {
    color: var(--h);
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.08;
    margin: 14px 0 10px;
    letter-spacing: -.03em
}

.h2 {
    color: var(--h);
    font-size: clamp(22px, 2.8vw, 32px);
    margin: 0 0 10px;
    letter-spacing: -.02em
}

.h3 {
    color: var(--h);
    font-size: 19px;
    margin: 0 0 8px;
    letter-spacing: -.01em
}

.muted {
    color: var(--muted)
}

.tiny {
    font-size: 13px
}

.sep {
    height: 1px;
    background: var(--line);
    margin: 18px 0
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.card-inner {
    padding: 22px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #c15b6f);
    box-shadow: 0 12px 24px rgba(171, 73, 90, .22);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--brand-2), #b94e63)
}

.btn-ghost {
    background: color-mix(in srgb, var(--bg) 85%, #fff);
    border: 1px solid var(--line);
    color: var(--h);
}

html[data-theme="dark"] .btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: var(--text)
}

.btn-ghost:hover {
    background: color-mix(in srgb, var(--bg) 75%, #fff)
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

html[data-theme="dark"] .badge {
    background: rgba(255, 255, 255, .06)
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    border-bottom: 1px solid var(--line);
    isolation: isolate; /* prevents weird transparency layering */
}

.header-wrap {
    padding: 14px 0 10px
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: radial-gradient(18px 18px at 30% 30%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(135deg, var(--brand), #c15b6f);
    box-shadow: 0 12px 26px rgba(171, 73, 90, .25);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 1000;
    letter-spacing: -.02em;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.brand-title {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 1000;
    color: var(--h);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

/* === Better header icons (fixed + premium) === */
.iconAction {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, rgba(171, 73, 90, .25));
    background: radial-gradient(120px 48px at 30% 20%, rgba(171, 73, 90, .14), transparent 55%),
    color-mix(in srgb, var(--bg) 88%, #fff);
    color: var(--h);

    display: inline-grid;
    place-items: center;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    box-shadow: 0 16px 40px rgba(15, 23, 42, .10),
    0 0 0 4px rgba(171, 73, 90, .06);

    transition: transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    filter .18s ease;
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .iconAction {
    background: radial-gradient(120px 48px at 30% 20%, rgba(171, 73, 90, .18), transparent 55%),
    rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .24),
    0 0 0 4px rgba(171, 73, 90, .08);
}

.iconAction::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(22px 22px at 30% 25%, rgba(255, 255, 255, .65), transparent 60%);
    opacity: .55;
    pointer-events: none;
}

.iconAction:hover {
    transform: translateY(-1px);
    border-color: rgba(171, 73, 90, .48);
    box-shadow: 0 22px 60px rgba(171, 73, 90, .16),
    0 16px 40px rgba(15, 23, 42, .10),
    0 0 0 6px rgba(171, 73, 90, .10);
    filter: saturate(1.05);
}

.iconAction:active {
    transform: translateY(1px)
}

.iconAction:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(171, 73, 90, .18),
    0 0 0 8px rgba(171, 73, 90, .10),
    0 16px 40px rgba(15, 23, 42, .10);
}

.iconGlyph {
    font-size: 30px;
    line-height: 1;
    transform: translateY(1px);
}

/* Desktop nav */
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.nav a {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
    font-weight: 900;
    color: var(--h);
    transition: .18s ease;
}

html[data-theme="dark"] .nav a {
    background: rgba(255, 255, 255, .05);
    color: var(--text)
}

.nav a:hover {
    border-color: rgba(171, 73, 90, .35);
    background: rgba(171, 73, 90, .08);
    transform: translateY(-1px);
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

/* Burger / icon button */
.iconBtn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

html[data-theme="dark"] .iconBtn {
    background: rgba(255, 255, 255, .06);
    color: var(--text)
}

.burger {
    display: none
}

.burgerLines {
    width: 18px;
    height: 12px;
    position: relative;
    display: block
}

.burgerLines::before, .burgerLines::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--h) 85%, var(--muted));
}

.burgerLines::before {
    top: 0
}

.burgerLines::after {
    bottom: 0
}

/* === Mobile overlay: FIX transparency + stacking === */
.sheetBackdrop {
    position: fixed;
    inset: 0;
    z-index: 999; /* above header */
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html[data-theme="dark"] .sheetBackdrop {
    background: rgba(0, 0, 0, .52);
}

.mobileSheet {
    position: fixed;
    z-index: 1000; /* above backdrop */
    left: 12px;
    right: 12px;
    top: calc(env(safe-area-inset-top) + 12px);
    max-width: 560px;
    margin: 0 auto;

    border-radius: 22px;
    background: #ffffff; /* force solid (no transparency bug) */
    color: var(--text);

    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 34px 120px rgba(0, 0, 0, .28);

    padding: 14px;

    /* animation */
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
}

html[data-theme="dark"] .mobileSheet {
    background: #11131a; /* solid dark */
    border-color: rgba(255, 255, 255, .12);
}

.mobileSheet.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.sheetHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.sheetBrand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.sheetLogo {
    width: 44px;
    height: 44px;
    border-radius: 14px
}

.sheetTitle {
    font-weight: 1000;
    color: var(--h);
    font-size: 18px;
    line-height: 1.1
}

.sheetSub {
    font-size: 13px;
    margin-top: 2px
}

.sheetNav {
    display: grid;
    gap: 10px;
    padding: 12px 0
}

.sheetNav a {
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, #fff);
    font-weight: 950;
    color: var(--h);
}

html[data-theme="dark"] .sheetNav a {
    background: rgba(255, 255, 255, .06);
    color: var(--text)
}

.sheetActions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.sheetActions .btn-primary {
    grid-column: 1 / -1
}

.sheetNote {
    margin-top: 10px
}

.hide-sm {
    display: inline-flex
}

/* Hero */
.hero {
    padding: 36px 0 20px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 18px;
    align-items: stretch
}

.lead {
    font-size: 17px;
    margin: 0;
    max-width: 64ch
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(171, 73, 90, .10);
    border: 1px solid rgba(171, 73, 90, .22);
    color: var(--h);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .01em;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.stat {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
}

html[data-theme="dark"] .stat {
    background: rgba(255, 255, 255, .06)
}

.stat b {
    font-size: 22px
}

.stat small {
    display: block;
    color: var(--muted);
    margin-top: 6px
}

/* Sections */
.section {
    padding: 30px 0
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px
}

.desc {
    max-width: 62ch;
    margin: 0
}

/* Services */
.services-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr)
}

.svc {
    grid-column: span 6
}

.svc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.svc-block {
    margin-top: 10px
}

.svc-title {
    margin: 0;
    font-size: 14px;
    font-weight: 1000;
    color: var(--h);
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(171, 73, 90, .08);
    border: 1px solid rgba(171, 73, 90, .18);
}

.checklist {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: color-mix(in srgb, var(--text) 92%, var(--muted))
}

.checklist li::before {
    content: "✓";
    font-weight: 1000;
    color: color-mix(in srgb, var(--brand) 88%, var(--text));
    margin-top: 1px;
    flex: 0 0 auto;
}

.svc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.step {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
}

html[data-theme="dark"] .step {
    background: rgba(255, 255, 255, .06)
}

.num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(171, 73, 90, .14);
    border: 1px solid rgba(171, 73, 90, .22);
    font-weight: 1000;
    margin-bottom: 10px;
    color: var(--h);
}

/* CTA */
.cta {
    padding: 22px;
    border-radius: var(--radius2);
    border: 1px solid rgba(171, 73, 90, .20);
    background: radial-gradient(900px 220px at 10% 10%, rgba(171, 73, 90, .10), transparent 60%),
    radial-gradient(900px 220px at 90% 90%, rgba(171, 73, 90, .08), transparent 60%),
    rgba(255, 255, 255, .88);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

html[data-theme="dark"] .cta {
    background: radial-gradient(900px 220px at 10% 10%, rgba(171, 73, 90, .14), transparent 60%),
    radial-gradient(900px 220px at 90% 90%, rgba(171, 73, 90, .10), transparent 60%),
    rgba(255, 255, 255, .06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* Value / Contact / FAQ / Footer */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px
}

.form .full {
    grid-column: 1 / -1
}

label {
    display: block;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--h)
}

input, select, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--h);
    outline: none;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

textarea {
    min-height: 110px;
    resize: vertical
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(171, 73, 90, .55);
    box-shadow: 0 0 0 4px rgba(171, 73, 90, .14);
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

details {
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
    border-radius: 14px;
    padding: 14px 14px;
}

html[data-theme="dark"] details {
    background: rgba(255, 255, 255, .06)
}

details + details {
    margin-top: 12px
}

summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--h)
}

details p {
    margin: 10px 0 0;
    color: var(--muted)
}

.footer {
    padding: 26px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: start
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px
}

.footer-title {
    font-weight: 1000;
    color: var(--h)
}

/* Back to Top */
.toTop {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 60;

    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 85%, rgba(171, 73, 90, .25));
    background: radial-gradient(200px 60px at 20% 15%, rgba(171, 73, 90, .14), transparent 55%),
    color-mix(in srgb, var(--bg) 88%, #fff);
    backdrop-filter: blur(10px);

    display: grid;
    place-items: center;
    cursor: pointer;

    box-shadow: 0 18px 45px rgba(0, 0, 0, .14),
    0 0 0 4px rgba(171, 73, 90, .06);

    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

html[data-theme="dark"] .toTop {
    background: radial-gradient(200px 60px at 20% 15%, rgba(171, 73, 90, .18), transparent 55%),
    rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28),
    0 0 0 4px rgba(171, 73, 90, .08);
}

.toTop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.toTop:hover {
    border-color: rgba(171, 73, 90, .45);
    box-shadow: 0 22px 60px rgba(171, 73, 90, .16),
    0 18px 45px rgba(0, 0, 0, .14),
    0 0 0 4px rgba(171, 73, 90, .10);
}

.toTop:active {
    transform: translateY(2px)
}

.toTop__ring {
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    background: conic-gradient(
            var(--brand) calc(var(--p, 0) * 1%),
            rgba(15, 23, 42, .12) 0
    );
    padding: 2px;
}

html[data-theme="dark"] .toTop__ring {
    background: conic-gradient(
            var(--brand) calc(var(--p, 0) * 1%),
            rgba(255, 255, 255, .14) 0
    );
}

.toTop__ring::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, #fff);
    border: 1px solid color-mix(in srgb, var(--line) 70%, rgba(171, 73, 90, .18));
}

html[data-theme="dark"] .toTop__ring::before {
    background: rgba(20, 22, 28, .70);
    border-color: rgba(255, 255, 255, .12);
}

.toTop__icon {
    position: relative;
    color: var(--h);
    display: grid;
    place-items: center
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns:1fr
    }

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

    .svc {
        grid-column: auto
    }

    .value-grid {
        grid-template-columns: 1fr
    }

    .steps {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 860px) {
    .header-bottom {
        display: none
    }

    .burger {
        display: inline-grid
    }

    .hide-sm {
        display: none
    }

    .brand-sub {
        display: none
    }
}

@media (max-width: 520px) {
    .logo {
        width: 46px;
        height: 46px;
        border-radius: 14px
    }

    .brand-title {
        font-size: 18px
    }

    .header-actions {
        gap: 8px
    }

    .btn {
        padding: 12px 14px
    }

    .stats {
        grid-template-columns:1fr
    }

    .sheetActions {
        grid-template-columns:1fr
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .toTop, .btn, .iconAction, .nav a, .mobileSheet {
        transition: none !important
    }
}

.iconAction {
    justify-content: center;
}

/* Add to assets/styles.css */
.navLink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.navIco {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 86%, #fff);
    color: color-mix(in srgb, var(--brand) 75%, var(--h));
}

html[data-theme="dark"] .navIco {
    background: rgba(255, 255, 255, .06);
    color: #ffd6de;
}
