﻿:root {
    --bg: #0d0d12;
    --bg-2: #12121a;
    --purple: #7d3fc6;
    --purple-2: #a06cff;
    --silver: #cfd2d6;
    --muted: #9aa0a6;
    --card: #161625;
    --ring: #2a2a3d;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
    background: radial-gradient(1200px 600px at 20% 0%, #1a1222 0%, var(--bg) 55%) fixed;
    color: var(--silver);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.container {
    width: min(1100px,92%);
    margin-inline: auto
}

/* HEADER + NAV */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(6px);
    /* replaced color-mix with a widely-supported rgba */
    background: rgba(13, 13, 18, 0.85);
    border-bottom: 1px solid var(--ring)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: inherit
}

    .brand img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        box-shadow: 0 0 0 2px #000 inset,0 0 18px rgba(125,63,198,.35)
    }

    .brand span {
        font-weight: 700;
        letter-spacing: .2px
    }

/* base nav links */
nav a {
    color: var(--silver);
    text-decoration: none;
    margin-left: 1rem;
    padding: .4rem .7rem;
    border-radius: .6rem;
    border: 1px solid transparent
}

    nav a:hover {
        border-color: var(--ring);
        background: rgba(255,255,255,.03)
    }

/* make primary nav flex by default (desktop) */
.site-nav {
    display: flex;
    align-items: center;
}

/* HERO + CONTENT */
.hero {
    padding: 6rem 0 4rem;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center
}

    .hero h1 {
        font-size: clamp(2rem,2.8vw + 1rem,3.25rem);
        line-height: 1.15;
        margin: 0 0 .6rem
    }

    .hero p {
        color: var(--muted);
        margin: 0 0 1.5rem
    }

.cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

.btn {
    cursor: pointer;
    border-radius: .9rem;
    border: 1px solid var(--ring);
    background: #1a1526;
    color: white;
    padding: .8rem 1rem;
    font-weight: 600
}

    .btn.secondary {
        background: transparent;
        color: var(--silver)
    }

.chip {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 1rem;
    border: 1px solid var(--ring);
    background: rgba(125,63,198,.08);
    color: var(--purple-2);
    font-size: .9rem;
    margin-bottom: .8rem
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 1.2rem;
    padding: 1.2rem
}

    .hero-card img {
        width: 100%;
        height: auto;
        border-radius: .8rem
    }

section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--ring)
}

h2 {
    font-size: clamp(1.6rem,1.6vw + .9rem,2.2rem);
    margin: 0 0 1rem
}

.lead {
    color: var(--muted);
    margin: 0 0 1.5rem
}

.grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.card {
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 1rem;
    padding: 1rem
}

    .card h3 {
        margin: .2rem 0 .3rem;
        font-size: 1.1rem
    }

    .card p {
        margin: 0;
        color: var(--muted)
    }

.split {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
    align-items: start
}

ul.tight > li {
    margin: .25rem 0
}

.badge {
    display: inline-block;
    border: 1px solid var(--ring);
    padding: .15rem .5rem;
    border-radius: .5rem;
    background: rgba(255,255,255,.04);
    margin: .2rem .25rem .2rem 0
}

form {
    display: grid;
    gap: .75rem;
    max-width: 720px
}

label {
    font-size: .95rem;
    color: var(--silver)
}

input, textarea {
    width: 100%;
    padding: .8rem .9rem;
    border-radius: .7rem;
    border: 1px solid var(--ring);
    background: #0f0f18;
    color: var(--silver)
}

textarea {
    min-height: 140px;
    resize: vertical
}

.notice {
    font-size: .9rem;
    color: var(--muted)
}

footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--ring);
    color: var(--muted);
    text-align: center
}

.accent {
    color: var(--purple-2)
}

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr
    }

    .grid {
        grid-template-columns: 1fr
    }

    .split {
        grid-template-columns: 1fr
    }
}

/* --- Contact Add-ons Layout --- */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*background: #f8f8f8;*/
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    transition: background 0.15s ease;
    line-height: 1.4;
}

    .addon-item:hover {
        background: #0d0d12;
    }

    .addon-item input[type="checkbox"] {
        appearance: none; /* removes default large box */
        width: 1rem;
        height: 1rem;
        border: 2px solid #666;
        border-radius: 3px;
        margin-right: 0.5rem;
        position: relative;
        top: 0;
        cursor: pointer;
    }

        .addon-item input[type="checkbox"]:checked {
            background-color: var(--purple);
            border-color: var(--purple);
        }

            /* TWEAKED: smaller, well-aligned check */
            .addon-item input[type="checkbox"]:checked::after {
                content: "✔";
                color: white;
                font-size: 1.5rem; /* was 1.5rem */
                position: absolute;
                top: -5px; /* was -5px */
                left: 5px;
            }

.addon-name {
    flex: 1;
    margin-right: 0.5rem;
    font-weight: 500;
}

.addon-price {
    white-space: nowrap;
}

/* ============================
   Themed controls & tooltips
   ============================ */

/* helper */
.text-muted {
    color: var(--muted);
}

/* Focus ring for all form controls */
input:focus, textarea:focus, select.form-control:focus {
    border-color: var(--purple-2);
    box-shadow: 0 0 0 3px rgba(160,108,255,.25);
    outline: none;
}

/* Themed primary button (used on Contact submit) */
.btn-primary {
    appearance: none;
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .7rem 1.1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(125,63,198,.25);
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}

    .btn-primary:hover {
        background: #6937b9;
        box-shadow: 0 10px 18px rgba(125,63,198,.28);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:focus-visible {
        outline: 2px solid var(--purple-2);
        outline-offset: 2px;
    }

/* Themed select with custom arrow (keeps native control) */
select.form-control {
    appearance: none;
    background: #0f0f18;
    border: 1px solid var(--ring);
    color: var(--silver);
    border-radius: .7rem;
    padding: .8rem .9rem;
    /* custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%237d3fc6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 18px;
    padding-right: 2.1rem; /* room for arrow on desktop */
}

/* Data-tooltip: lightweight, styled tooltip for dark theme */
[data-tooltip] {
    position: relative;
}

    [data-tooltip]:hover::after,
    [data-tooltip]:focus::after {
        content: attr(data-tooltip);
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        z-index: 30;
        background: #23212b;
        color: #ffffff;
        padding: .55rem .65rem;
        border-radius: 10px;
        font-size: .92rem;
        line-height: 1.25;
        min-width: 220px;
        max-width: clamp(220px, 50vw, 460px);
        box-shadow: 0 10px 24px rgba(0,0,0,.25);
        white-space: normal;
    }

    [data-tooltip]:hover::before,
    [data-tooltip]:focus::before {
        content: "";
        position: absolute;
        top: calc(100% + 2px);
        left: 14px;
        border: 8px solid transparent;
        border-bottom-color: #23212b;
        z-index: 31;
    }

/* Small “i” helper icon next to labels */
.tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: .4rem;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--ring);
    color: var(--purple);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    user-select: none;
}

/* ============================
   Hamburger + Mobile tweaks
   ============================ */

/* hamburger button (desktop: hidden) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    border: 1px solid var(--ring);
    background: rgba(15,15,24,.9);
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 2px;
    height: 18px;
    background: var(--silver);
    margin: 0 3px;
    border-radius: 999px;
}

@media (max-width: 768px) {

    /* allow dropdown under header row */
    .nav {
        position: relative;
    }

    /* show hamburger on mobile */
    .nav-toggle {
        display: inline-flex;
    }

    /* hide nav links by default on mobile, make them a dropdown */
    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        margin-top: .35rem;
        display: none; /* default hidden */
        flex-direction: column;
        background: var(--bg-2);
        border-radius: .9rem;
        border: 1px solid var(--ring);
        padding: .5rem;
    }

        .site-nav a {
            margin: 0;
            padding: .7rem 0.9rem;
            border-radius: .6rem;
        }

            .site-nav a:hover {
                background: rgba(255,255,255,.04);
            }

        /* when JS adds is-open, show the menu */
        .site-nav.is-open {
            display: flex;
        }

    /* Contact select: prevent overflow on small screens */
    select.form-control {
        padding-right: 0.0rem; /* override 2.1rem on mobile */
        background-position: right .6rem center;
    }
}

/* Services grid (desktop) */
.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responsive layout for mobile/tablet */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr; /* stack cards nicely */
    }
}

.hp-field-wrapper {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
    pointer-events: none;
}
