:root {
    --spa-ink: #0b1f2a;
    --spa-teal: #0e7c7b;
    --spa-teal-d: #0a5d5c;
    --spa-amber: #e8a317;
    --spa-amber-d: #c7860b;
    --spa-mist: #f5f7f7;
    --spa-body: #4a5a61;
    --spa-line: #dce4e5;

    /* Re-point Bootstrap's theme tokens at the SPA palette */
    --bs-primary-rgb: 14, 124, 123;
    --bs-link-color: var(--spa-teal-d);
    --bs-link-hover-color: var(--spa-ink);
    --bs-body-color: var(--spa-body);
    --bs-border-color: var(--spa-line);
}

body {
    color: var(--spa-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3,
.navbar-brand,
.lead-display {
    color: var(--spa-ink);
    letter-spacing: -0.01em;
}

/* utility label */
.eyebrow {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--spa-teal);
}
.eyebrow.on-dark {
    color: var(--spa-amber);
}

/* ---- Navbar ---- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}
.navbar-brand {
    font-weight: 600;
    font-size: 1.15rem;
}
.navbar-brand .bi {
    color: var(--spa-amber);
}
.nav-link {
    font-weight: 500;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background: var(--spa-ink);
    color: #eaf1f1;
    overflow: hidden;
}
.hero h1 {
    color: #fff;
}
.hero .lead {
    color: rgba(234, 241, 241, 0.9);
}
.hero-curve {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.85;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-curve path.trace {
    fill: none;
    stroke: var(--spa-amber);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: draw 2.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    filter: drop-shadow(0 0 14px rgba(232, 163, 23, 0.35));
}
.hero-curve path.grid {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
    fill: none;
}
.hero-curve .peak {
    fill: var(--spa-amber);
    opacity: 0;
    animation: pop 0.5s ease 2.6s forwards;
}
.hero-curve .peak-label {
    fill: rgba(234, 241, 241, 0.88);
    font: 500 13px sans-serif;
    opacity: 0;
    animation: pop 0.5s ease 2.8s forwards;
}
@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes pop {
    to {
        opacity: 1;
    }
}

.btn-amber {
    background: var(--spa-amber);
    border: 1px solid var(--spa-amber);
    color: var(--spa-ink);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}
.btn-amber:hover,
.btn-amber:focus-visible {
    background: var(--spa-amber-d);
    border-color: var(--spa-amber-d);
    color: var(--spa-ink);
}
.btn-amber:active {
    background: var(--spa-amber-d);
    border-color: var(--spa-amber-d);
    color: var(--spa-ink);
}

/* Secondary hero button keeps a quiet dark outline and picks up the amber accent on hover */
.hero .btn-outline-light {
    border-color: rgba(234, 241, 241, 0.6);
    color: #eaf1f1;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}
.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus-visible {
    background: transparent;
    border-color: var(--spa-amber);
    color: var(--spa-amber);
}

/* ---- Sections ---- */
.section {
    padding: 6rem 0;
}
.section--mist {
    background: var(--spa-mist);
}
.section-head {
    max-width: 46rem;
}

/* ---- Service tiles ---- */
.svc {
    background: #fff;
    border: 1px solid var(--spa-line);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}
.svc:hover {
    border-color: var(--spa-teal);
    transform: translateY(-3px);
}
.svc .bi {
    font-size: 1.6rem;
    color: var(--spa-teal);
}
.svc-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.6rem;
    background: rgba(14, 124, 123, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.svc h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.svc ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}
.svc li {
    margin-bottom: 0.4rem;
    font-size: 0.94rem;
}
.svc p {
    font-size: 0.94rem;
}

/* ---- Profile ---- */
.profile {
    background: #fff;
    border: 1px solid var(--spa-line);
    border-radius: 1rem;
    overflow: hidden;
}
.profile-photo {
    width: min(100%, 320px);
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    /* background: var(--spa-mist); */
    border: 1px solid var(--spa-line);
}
.profile-side {
    background: var(--spa-ink);
}
.cred {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}
.cred .bi {
    color: var(--spa-amber);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}
.cred span {
    color: #eaf1f1;
    font-size: 0.95rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--spa-ink);
    color: #b7c7c9;
    padding: 4rem 0 2rem;
}
.site-footer h5,
.site-footer h6 {
    color: #fff;
}
.site-footer a {
    color: #b7c7c9;
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--spa-amber);
}
.site-footer .bi {
    color: var(--spa-amber);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--spa-amber);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .section {
        padding: 4rem 0;
    }
    .display-3 {
        font-size: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-curve path.trace {
        animation: none;
        stroke-dashoffset: 0;
    }
    .hero-curve .peak,
    .hero-curve .peak-label {
        animation: none;
        opacity: 1;
    }
    .btn-amber,
    .svc {
        transition: none;
    }
}

@media (max-width: 767px) {
    .btn-email {
        font-size: 1em;
    }
    .hero-btn-group {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .hero-btn-group .btn {
        margin-right: 0 !important;
    }
}
