/* ==================================================
   GLOBAL RESET
================================================== */

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


/* ==================================================
   ROOT VARIABLES
================================================== */

:root {
    --bg: #090b0f;
    --ink: #eef0ed;
    --muted: #a7aca7;
    --gold: #c9a962;
    --gold2: #ebce87;
    --line: rgba(255, 255, 255, .13);
    --glass: rgba(18, 23, 30, .38);
    --glass2: rgba(255, 255, 255, .075);
    --wa: #29a71a;
    --danger: #ff9b8f;

    /* Motion tokens — critically damped by default (Apple: damping 1.0),
       reserved for CSS approximations of spring easing. Real springs
       (interruptible, velocity-aware) live in JS for the estimate modal. */
    --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-press: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 10%, rgba(201, 169, 98, .12), transparent 29%),
        radial-gradient(circle at 83% 76%, rgba(105, 143, 171, .13), transparent 32%),
        linear-gradient(130deg, rgba(255, 255, 255, .025), transparent 43%);
}

nav,
main,
footer {
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4 {
    font-family: Syne, sans-serif;
    line-height: 1.1;
    margin: 0;
}

p {
    margin: 0;
}

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

em {
    font-style: normal;
    color: var(--gold2);
}


/* ==================================================
   NAVIGATION
================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem max(1.5rem, calc((100vw - 1200px)/2));
    background: rgba(7, 9, 12, .40);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-bottom: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
        border-color 320ms ease,
        box-shadow 320ms ease,
        background-color 320ms ease;
}

/* Scroll-edge material — the divider only appears once there's content
   to separate from, instead of a permanent hard line (materials & depth). */
nav.nav-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 9, 12, .62);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.logo {
    font: 800 1.35rem Syne, sans-serif;
    letter-spacing: -.04em;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: .87rem;
}

.nav-links a:hover {
    color: #fff;
}

.nav-actions {
    display: flex;
    gap: .7rem;
    align-items: center;
}

.portal,
.quote {
    font-size: .84rem;
    font-weight: 600;
    padding: .55rem 1rem;
    border-radius: .6rem;
    transition: .2s;
}

.portal {
    border: 1px solid var(--line);
    color: #fff;
}

.portal:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.quote,
.button {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #101217;
    box-shadow: 0 8px 24px rgba(201, 169, 98, .16);
}

.quote:hover,
.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}


/* ==================================================
   GLOBAL CONTAINERS
================================================== */

.container {
    width: min(1200px, calc(100% - 3rem));
    margin: auto;
}


/* ==================================================
   HERO
================================================== */

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8.2rem 0 5rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(0.5rem, 4vw, 5rem);
    letter-spacing: -.055em;
    max-width: 1050px;
}

.hero-copy {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.03rem, 2vw, 1.24rem);
    margin: 1.55rem 0 2rem;
}

.actions {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .55rem;
    border-radius: 999px;
    padding: .95rem 1.55rem;
    font-size: .96rem;
    font-weight: 700;
    transition:
        transform 220ms var(--ease-settle),
        filter 220ms ease,
        box-shadow 220ms ease,
        background-color 220ms ease;
}

/* Response: feedback lands the instant you press, not on release */
.button:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-press);
}

.button.ghost {
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
    color: #fff;
    border: 1px solid var(--line);
}

.hero-note {
    margin-top: 1.35rem;
    color: var(--muted);
    font-size: .84rem;
    max-width: 480px;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    color: var(--muted);
    font-size: .76rem;
    letter-spacing: .08em;
    display: flex;
    gap: .7rem;
    align-items: center;
}

.hero-scroll::before {
    content: '';
    width: 42px;
    height: 1px;
    background: var(--muted);
}


/* ==================================================
   STATS
================================================== */

.stats {
    border-block: 1px solid var(--line);
    background: rgba(13, 17, 22, .30);
    backdrop-filter: blur(18px);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.8rem 0;
}

.stat {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.stat:last-child {
    border: 0;
}

.stat strong {
    font: 800 clamp(1.65rem, 3vw, 2.45rem) Syne, sans-serif;
    color: var(--gold2);
    display: block;
    letter-spacing: -.05em;
}

.stat span {
    font-size: .84rem;
    color: var(--muted);
}


/* ==================================================
   SECTIONS
================================================== */

section {
    padding: 7rem 0;
}

.label {
    color: var(--gold2);
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    display: block;
    margin-bottom: .9rem;
}

.title {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    letter-spacing: -.055em;
    max-width: 780px;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 650px;
    margin: 1.25rem 0 3rem;
}


/* ==================================================
   GRIDS
================================================== */

.grid {
    display: grid;
    gap: 1.25rem;
}

.services {
    grid-template-columns: repeat(2, 1fr);
}


/* ==================================================
   GLASS CARDS
================================================== */

.glass {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, .105),
            rgba(255, 255, 255, .025) 60%);
    border: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .11),
        0 20px 65px rgba(0, 0, 0, .16);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, .13),
            transparent 24%,
            transparent 72%,
            rgba(255, 255, 255, .035));
}

.card {
    padding: 2.2rem;
    border-radius: 1.35rem;
    transition:
        transform 260ms var(--ease-settle),
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.card>* {
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 30px 85px rgba(0, 0, 0, .34);
}

.card:active {
    transform: translateY(-6px) scale(0.985);
    transition: transform 100ms var(--ease-press);
}

.card.featured {
    background: linear-gradient(135deg,
            rgba(201, 169, 98, .20),
            rgba(255, 255, 255, .04) 62%,
            rgba(201, 169, 98, .06));
    border-color: rgba(201, 169, 98, .45);
}

.icon {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: .6rem;
}

.card p {
    color: var(--muted);
    font-size: .94rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.35rem;
}

.tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold2);
    border: 1px solid rgba(201, 169, 98, .3);
    padding: .24rem .6rem;
    border-radius: 999px;
    background: rgba(201, 169, 98, .08);
}


/* ==================================================
   PROCESS
================================================== */

.process-wrap {
    border-radius: 1.5rem;
}

.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.step {
    padding: 2.25rem 1.55rem;
    border-right: 1px solid rgba(255, 255, 255, .09);
    transition: .25s;
}

.step:last-child {
    border: 0;
}

.step:hover {
    background: rgba(201, 169, 98, .08);
}

.number {
    font: 800 3.35rem Syne, sans-serif;
    color: rgba(201, 169, 98, .24);
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: .55rem;
}

.step p {
    font-size: .87rem;
    color: var(--muted);
}


/* ==================================================
   PRICING
================================================== */

.pricing {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.price-card {
    border-radius: 1.4rem;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 220ms var(--ease-settle), box-shadow 220ms ease;
}

.price-card:active {
    transform: scale(0.985);
    transition: transform 100ms var(--ease-press);
}

.price-card.featured {
    transform: translateY(-.65rem);
    border-color: rgba(201, 169, 98, .55);
    background: linear-gradient(135deg,
            rgba(201, 169, 98, .21),
            rgba(255, 255, 255, .04) 65%);
}

/* Preserve the featured card's static lift while still pressing */
.price-card.featured:active {
    transform: translateY(-.65rem) scale(0.985);
    transition: transform 100ms var(--ease-press);
}

.badge {
    align-self: flex-start;
    color: #151719;
    background: var(--gold2);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28rem .65rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.plan {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    font-weight: 700;
}

.price {
    font: 800 3rem Syne, sans-serif;
    letter-spacing: -.06em;
    margin: .65rem 0 .15rem;
}

.sub {
    color: var(--muted);
    font-size: .85rem;
}

.monthly {
    padding: .85rem 1rem;
    margin: 1.25rem 0;
    border: 1px solid rgba(201, 169, 98, .27);
    border-radius: .75rem;
    background: rgba(201, 169, 98, .08);
    color: var(--gold2);
    font-size: .86rem;
}

.monthly small {
    display: block;
    color: var(--muted);
    margin-top: .1rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.7rem;
}

.features li {
    padding: .44rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: .9rem;
}

.features li::before {
    content: '✓';
    color: var(--gold2);
    font-weight: 800;
    margin-right: .65rem;
}

.price-card .button {
    margin-top: auto;
}


/* ==================================================
   FREE WEBSITE ESTIMATE
================================================== */

.estimate-section {
    position: relative;
}

.estimate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    gap: 1.25rem;
    align-items: stretch;
}

.estimate-form,
.estimate-result {
    border-radius: 1.4rem;
    padding: 2.25rem;
}

.estimate-form {
    min-width: 0;
}

.estimate-result {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background:
        linear-gradient(145deg,
            rgba(201, 169, 98, .16),
            rgba(255, 255, 255, .035) 58%),
        rgba(15, 19, 25, .48);
    border-color: rgba(201, 169, 98, .35);
}

.estimate-form h3,
.estimate-result h3 {
    font-size: 1.35rem;
    margin-bottom: .55rem;
}

.estimate-intro {
    color: var(--muted);
    font-size: .91rem;
    margin-bottom: 1.7rem;
}

.estimate-fields {
    display: grid;
    gap: 1.25rem;
}

.estimate-field {
    display: grid;
    gap: .55rem;
}

.estimate-field label {
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
}

.estimate-field select {
    width: 100%;
    min-height: 52px;
    padding: .8rem 2.7rem .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: .8rem;
    background-color: rgba(7, 10, 14, .72);
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold2) 50%),
        linear-gradient(135deg, var(--gold2) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) 22px,
        calc(100% - 13px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition:
        border-color .2s,
        box-shadow .2s,
        background-color .2s;
}

.estimate-field select:hover {
    border-color: rgba(201, 169, 98, .45);
}

.estimate-field select:focus {
    border-color: var(--gold2);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, .12);
}

.estimate-field select:invalid {
    color: var(--muted);
}

.estimate-field select option {
    background: #10141a;
    color: var(--ink);
}

.estimate-field select option[value=""] {
    color: var(--muted);
}

/* --------------------------------------------------
   ADDITIONAL REQUIREMENTS CHECKBOXES
-------------------------------------------------- */

.estimate-checkboxes {
    display: grid;
    gap: .6rem;
}

.estimate-checkbox {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .9rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: .8rem;
    background-color: rgba(7, 10, 14, .55);
    cursor: pointer;
    font-size: .88rem;
    color: var(--ink);
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        transform 150ms var(--ease-settle);
}

.estimate-checkbox:hover {
    border-color: rgba(201, 169, 98, .45);
}

.estimate-checkbox:active {
    transform: scale(0.98);
    transition: transform 100ms var(--ease-press);
}

.estimate-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--gold2);
    cursor: pointer;
}

.estimate-checkbox input[type="checkbox"]:checked ~ span {
    color: var(--gold2);
}

.estimate-checkbox:has(input:checked) {
    border-color: rgba(201, 169, 98, .55);
    background-color: rgba(201, 169, 98, .1);
}

.estimate-validation {
    min-height: 1.3rem;
    margin-top: 1rem;
    color: var(--danger);
    font-size: .82rem;
    line-height: 1.5;
}

.estimate-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.estimate-status {
    flex: 0 0 auto;
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 169, 98, .28);
    background: rgba(201, 169, 98, .08);
    color: var(--gold2);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.estimate-placeholder {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
    padding: 1rem;
}

.estimate-placeholder strong {
    display: block;
    color: var(--ink);
    font-family: Syne, sans-serif;
    font-size: 1.15rem;
    margin-bottom: .55rem;
}

.estimate-details {
    display: none;
    flex: 1;
    flex-direction: column;
}

.estimate-details.active {
    display: flex;
    animation: estimateFade .3s ease;
}

@keyframes estimateFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estimate-business {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.35rem;
}

.estimate-business strong {
    color: var(--ink);
}

.estimate-prices {
    display: grid;
    gap: .75rem;
}

.estimate-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
}

.estimate-price-row span {
    color: var(--muted);
    font-size: .82rem;
}

.estimate-price-row strong {
    color: var(--gold2);
    font: 800 1.15rem Syne, sans-serif;
    text-align: right;
}

.estimate-package {
    margin-top: .75rem;
    padding: 1rem 1.05rem;
    border-radius: .8rem;
    background: rgba(201, 169, 98, .09);
    border: 1px solid rgba(201, 169, 98, .25);
}

.estimate-package-label {
    color: var(--muted);
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: .2rem;
}

.estimate-package-name {
    color: var(--gold2);
    font: 800 1.35rem Syne, sans-serif;
}

.estimate-extra {
    margin-top: .75rem;
    color: var(--muted);
    font-size: .82rem;
}

.estimate-extra strong {
    color: var(--ink);
}

.estimate-custom {
    display: none;
    margin-top: .9rem;
    padding: 1rem 1.05rem;
    border-radius: .8rem;
    border: 1px solid rgba(201, 169, 98, .4);
    background: rgba(201, 169, 98, .10);
}

.estimate-custom.active {
    display: block;
}

.estimate-custom strong {
    display: block;
    color: var(--gold2);
    font-family: Syne, sans-serif;
    font-size: 1rem;
    margin-bottom: .3rem;
}

.estimate-custom p {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.estimate-next {
    margin-top: auto;
    padding-top: 1.5rem;
}

.estimate-next-copy {
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: .8rem;
}

.estimate-whatsapp {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    min-height: 52px;
    padding: .8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--wa);
    color: #fff;
    font: 700 .92rem 'DM Sans', sans-serif;
    cursor: pointer;
    transition:
        transform .2s,
        filter .2s,
        box-shadow .2s;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .12);
}

.estimate-whatsapp:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 35px rgba(37, 211, 102, .18);
}

.estimate-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, .28);
    outline-offset: 3px;
}

.estimate-whatsapp[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}

.estimate-note {
    text-align: center;
    color: var(--muted);
    font-size: .7rem;
    margin-top: .65rem;
}


/* ==================================================
   CASE STUDY
================================================== */

.case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.meta {
    display: grid;
    gap: .65rem;
    margin: 1.5rem 0;
}

.meta div {
    color: var(--muted);
    font-size: .93rem;
}

.meta div::before {
    content: '';
    display: inline-block;
    width: .45rem;
    height: .45rem;
    background: var(--gold2);
    border-radius: 50%;
    margin-right: .65rem;
}

.quote-box {
    margin-top: 1.4rem;
    border: 1px solid rgba(201, 169, 98, .27);
    background: rgba(201, 169, 98, .08);
    border-radius: .9rem;
    padding: 1.1rem 1.25rem;
    font-style: italic;
}

.live {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--gold2);
    font-weight: 700;
    font-size: .9rem;
}


/* ==================================================
   MOCK BROWSER
================================================== */

.browser {
    border-radius: 1.1rem;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.browserbar {
    display: flex;
    gap: .45rem;
    align-items: center;
    padding: .8rem 1rem;
    background: rgba(4, 6, 9, .48);
    border-bottom: 1px solid var(--line);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}

.url {
    margin-left: .35rem;
    flex: 1;
    min-width: 0;
    border-radius: .4rem;
    background: rgba(255, 255, 255, .07);
    padding: .3rem .6rem;
    color: var(--muted);
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==================================================
   LIVE NURS WEBSITE PREVIEW
================================================== */

/*
   The preview is based on the real website's
   1440 × 900 desktop viewport.

   The aspect ratio is maintained automatically:
   900 / 1440 = 0.625

   This means the browser preview always
   corresponds to the width of its container
   regardless of screen/device size.
*/

.browsercontent {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 900;
    height: auto;
    min-height: 0;
    display: block;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(145deg, #121a22, #080a0e);
    isolation: isolate;
}

.browsercontent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
            transparent 28%,
            rgba(201, 169, 98, .16) 50%,
            transparent 72%);
    animation: sheen 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.browsercontent iframe {
    position: absolute;
    top: 0;
    left: 0;

    width: 1440px;
    height: 900px;

    border: 0;
    display: block;

    /*
       JavaScript controls the scale.
       CSS keeps the iframe anchored
       to the top-left of the proportional
       browser viewport.
    */

    transform-origin: top left;
}


/* ==================================================
   REVIEWS
================================================== */

.reviews {
    grid-template-columns: repeat(1, 1fr);
}

.stars {
    color: var(--gold2);
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.review q {
    display: block;
    font-style: italic;
    line-height: 1.75;
}

.author {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 169, 98, .17);
    color: var(--gold2);
    font: 800 .9rem Syne, sans-serif;
}

.author small {
    color: var(--muted);
    display: block;
}


/* ==================================================
   WHY WEBVISIBLE
================================================== */

.why {
    grid-template-columns: repeat(3, 1fr);
}

.why .card {
    text-align: center;
}

.why .icon {
    font-size: 1.7rem;
}


/* ==================================================
   CTA
================================================== */

.cta {
    text-align: center;
    padding: 8rem 0;
}

.cta .title {
    margin: auto;
}

.cta p {
    color: var(--muted);
    margin: 1.2rem auto 2rem;
    max-width: 540px;
}

.cta small {
    display: block;
    color: var(--muted);
    margin-top: 1rem;
}


/* ==================================================
   FOOTER
================================================== */

footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 9, 12, .42);
    backdrop-filter: blur(22px);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--muted);
    max-width: 420px;
    margin: 1rem 0 1.35rem;
}

.footer-title {
    font: 700 .78rem Syne, sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
    color: var(--muted);
    font-size: .9rem;
}

.footer-list a:hover {
    color: var(--gold2);
}

.bottom {
    border-top: 1px solid var(--line);
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: .83rem;
}


/* ==================================================
   REVEAL ANIMATION
================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .6s ease,
        transform .7s var(--ease-settle);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* ==================================================
   SHEEN
================================================== */

@keyframes sheen {

    0%,
    35% {
        transform: translateX(-110%);
    }

    65%,
    100% {
        transform: translateX(110%);
    }
}


/* ==================================================
   TABLET
================================================== */

@media(max-width: 900px) {

    .nav-links {
        display: none;
    }

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

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

    .step:nth-child(2) {
        border-right: 0;
    }

    .step:nth-child(-n+4) {
        border-bottom: 1px solid rgba(255, 255, 255, .09);
    }

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

    .price-card.featured {
        transform: none;
    }

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

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

    .case {
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr;
    }

    .estimate-shell {
        grid-template-columns: 1fr;
    }

    .estimate-result {
        min-height: 0;
    }

    /*
       IMPORTANT:
       No fixed browser height here.
       The aspect-ratio on .browsercontent
       controls the height automatically.
    */
    .browsercontent {
        aspect-ratio: 1440 / 900;
        height: auto;
    }
}


/* ==================================================
   MOBILE
================================================== */

@media(max-width: 600px) {

    nav {
        padding: .85rem 1rem;
    }

    .portal {
        display: none;
    }

    .quote {
        padding: .52rem .75rem;
        font-size: .75rem;
    }

    .container {
        width: min(100% - 2rem, 1200px);
    }

    .hero {
        padding-top: 7rem;
    }

    .stats .container {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem 0;
        gap: 1rem;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding-bottom: 1rem;
    }

    .stat:nth-child(n+3) {
        padding-top: .3rem;
    }

    .stat strong {
        font-size: 1.55rem;
    }

    section {
        padding: 5rem 0;
    }

    .card {
        padding: 1.65rem;
    }

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

    .step,
    .step:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
    }

    .step:last-child {
        border-bottom: 0;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bottom {
        display: grid;
    }

    .hero-scroll {
        display: none;
    }

    .estimate-form,
    .estimate-result {
        padding: 1.5rem;
        border-radius: 1.15rem;
    }

    .estimate-result-header {
        flex-direction: column;
        gap: .7rem;
    }

    .estimate-placeholder {
        min-height: 220px;
    }

    .estimate-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .estimate-price-row strong {
        text-align: left;
    }

    /*
       The mock browser now follows the exact
       1440:900 aspect ratio on mobile too.
    */
    .browsercontent {
        aspect-ratio: 1440 / 900;
        height: auto;
    }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .estimate-details.active {
        animation: none;
    }
}


/* ==================================================
   FREE WEBSITE ESTIMATE MODAL
================================================== */

.estimate-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.estimate-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.estimate-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, .78);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.estimate-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: min(92svh, 900px);
    overflow-y: auto;
    border: 1px solid rgba(201, 169, 98, .35);
    border-radius: 1.5rem;
    background:
        linear-gradient(145deg,
            rgba(201, 169, 98, .09),
            rgba(255, 255, 255, .025) 45%),
        rgba(9, 11, 15, .96);
    box-shadow:
        0 35px 120px rgba(0, 0, 0, .65),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    /* Baseline matches the JS spring's closed value (progress 0) so there's
       no flash before the script attaches. JS drives transform/opacity/
       filter directly per frame from here — interruptible, and always
       animated from the current on-screen value, never restarted at 0. */
    transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
    transform: translateY(24px) scale(.92);
    opacity: 0;
    filter: blur(6px);
    will-change: transform, opacity, filter;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 98, .5) transparent;
}

/* Drag handle for the mobile bottom sheet — 1:1 tracked, rubber-banded,
   and released with velocity-projected momentum (see script.js). */
.estimate-modal-handle {
    display: none;
    width: 44px;
    height: 5px;
    margin: .7rem auto -.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    touch-action: none;
    cursor: grab;
}

.estimate-modal-handle:active {
    cursor: grabbing;
}

@media (max-width: 600px) {
    .estimate-modal-handle {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estimate-modal-handle {
        display: none;
    }
}

.estimate-modal-close {
    position: sticky;
    top: 1rem;
    float: right;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 1rem 1rem -42px 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(7, 9, 12, .72);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
    backdrop-filter: blur(14px);
}

.estimate-modal-close:hover {
    color: var(--gold2);
    border-color: rgba(201, 169, 98, .55);
    transform: rotate(4deg) scale(1.04);
}

.estimate-modal-close:focus-visible {
    outline: 3px solid rgba(201, 169, 98, .28);
    outline-offset: 3px;
}

.estimate-modal .estimate-section {
    padding: 2.75rem;
}

.estimate-modal .estimate-section>.container {
    width: 100%;
}

.estimate-modal .estimate-section>.container>.label,
.estimate-modal .estimate-section>.container>.title,
.estimate-modal .estimate-section>.container>.lead {
    max-width: 760px;
}

.estimate-modal .estimate-shell {
    margin-top: 1rem;
}

.estimate-modal .reveal {
    opacity: 1;
    transform: none;
}

body.estimate-modal-open {
    overflow: hidden;
}


/* ==================================================
   FLOATING WHATSAPP BUTTON
================================================== */

.floating-whatsapp {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 950;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow:
        0 14px 40px rgba(37, 211, 102, .28),
        0 8px 30px rgba(0, 0, 0, .35);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
    animation: whatsappFloat 3.5s ease-in-out infinite;
}

.floating-whatsapp:hover,
.floating-whatsapp:active {
    /* A running keyframe animation always wins over a transform transition,
       so pause the idle float while the user is actually interacting —
       otherwise hover/press feedback is invisible mid-cycle. */
    animation-play-state: paused;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.06);
    filter: brightness(1.05);
    box-shadow:
        0 18px 48px rgba(37, 211, 102, .35),
        0 10px 35px rgba(0, 0, 0, .4);
}

.floating-whatsapp:active {
    transform: translateY(-2px) scale(0.94);
    transition: transform 100ms var(--ease-press);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, .35);
    outline-offset: 4px;
}

.floating-whatsapp-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

@keyframes whatsappFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* ==================================================
   MOBILE MODAL + WHATSAPP
================================================== */

@media(max-width: 600px) {

    .estimate-modal {
        padding: .65rem;
        align-items: end;
    }

    .estimate-modal-dialog {
        width: 100%;
        max-height: 94svh;
        border-radius: 1.25rem 1.25rem .85rem .85rem;
    }

    .estimate-modal .estimate-section {
        padding: 2rem 1rem 1.25rem;
    }

    .estimate-modal .estimate-section>.container>.title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .estimate-modal-close {
        margin: .75rem .75rem -42px 0;
    }

    .floating-whatsapp {
        right: 1rem;
        bottom: 1rem;
        width: 56px;
        height: 56px;
    }

    .floating-whatsapp-icon {
        width: 52px;
        height: 52px;
    }
}


/* ==================================================
   REDUCED TRANSPARENCY
   Frostier/solid materials instead of dropping the
   effect entirely — same hierarchy, less see-through.
================================================== */

@media (prefers-reduced-transparency: reduce) {

    nav,
    footer,
    .glass,
    .estimate-modal-dialog {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    nav {
        background: #0c0e12;
    }

    footer {
        background: #0c0e12;
    }

    .glass {
        background: #12151b;
    }

    .estimate-modal-dialog {
        background: #0c0e12;
    }

    .estimate-modal-backdrop {
        background: rgba(3, 5, 8, .92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}


/* ==================================================
   HIGHER CONTRAST
================================================== */

@media (prefers-contrast: more) {

    .glass,
    .card,
    .price-card,
    .estimate-checkbox,
    .estimate-modal-dialog {
        border-color: rgba(255, 255, 255, .4);
        background-color: rgba(15, 17, 22, .92);
    }

    .tag,
    .badge,
    .estimate-status {
        border-width: 2px;
    }
}


/* ==================================================
   FINAL REDUCED MOTION
================================================== */

@media(prefers-reduced-motion: reduce) {

    .estimate-modal,
    .estimate-modal-dialog,
    .floating-whatsapp {
        transition: none;
        animation: none;
    }

    .button:active,
    .card:active,
    .price-card:active,
    .price-card.featured:active,
    .estimate-checkbox:active {
        transition: none;
    }
}
