/* main.css */

:root {
    --ink: #0B1F33;
    --surface: #F4F7FA;
    --accent: #0F9F6E;
    --accent-dark: #0B7A54;
    --line: #D5DEE8;
    /* Legacy aliases used across templates */
    --locksmith-orange: #0F9F6E;
    --locksmith-black: #0B1F33;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-dark);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(11, 31, 51, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    display: none;
    font-size: 0.875rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.show {
    display: block;
}

html {
    scroll-behavior: smooth;
    background-color: var(--surface);
}

body {
    background-color: var(--surface);
    color: var(--ink);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.brand-font {
    font-family: 'Montserrat', system-ui, sans-serif;
}

main {
    background-color: transparent;
}

img {
    loading: lazy;
}

@media (max-width: 767px) {
    section.home-hero-section {
        background-image: url('/assets/img/lock5.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: var(--ink) !important;
        position: relative !important;
        z-index: 0 !important;
    }
}

@media (min-width: 768px) {
    section.home-hero-section {
        background-image: none !important;
        background: linear-gradient(160deg, #0B1F33 0%, #132A42 50%, #0B1F33 100%) !important;
    }
}

html {
    visibility: hidden;
}

html.css-loaded {
    visibility: visible;
}

/* App chrome — brand + menu */
.app-header {
    background: #0B1F33;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-header__bar {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.app-header__icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
}

.app-header__name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header__menu-btn,
.app-header__close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.app-header__menu-btn:active {
    background: rgba(255, 255, 255, 0.14);
}

.app-header__sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(11, 31, 51, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.75rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

.app-header__sheet-inner {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 31, 51, 0.25);
    max-width: 28rem;
    margin: 0 auto;
}

.app-header__sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.app-header__close {
    background: var(--surface);
    color: var(--ink);
    font-size: 0.95rem;
}

.app-header__sheet-nav {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0;
}

.app-header__sheet-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.app-header__sheet-nav a:last-child {
    border-bottom: 0;
}

.app-header__sheet-nav i {
    color: #98A6B5;
    font-size: 0.8rem;
}

.app-header__sheet-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.75rem 1rem 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: var(--accent);
    color: #fff;
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
}

/* Bottom action dock — native app pattern */
.has-app-dock {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

/* Trust strip — light background friendly */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.trust-strip__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 1.75rem;
}

.trust-strip__tp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.trust-strip__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.trust-strip__brand-star {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00B67A;
    font-size: 1.15rem;
    line-height: 1;
}

.trust-strip__brand-star::before {
    content: "★";
}

.tp-stars {
    display: inline-flex;
    gap: 0.18rem;
}

.tp-stars span {
    width: 1.35rem;
    height: 1.35rem;
    background: #00B67A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.15rem;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
}

.tp-stars span::before {
    content: "★";
}

.trust-strip__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(11, 31, 51, 0.65);
}

.trust-strip__meta strong {
    color: var(--ink);
    font-weight: 650;
}

.trust-strip__check {
    height: 2rem;
    width: auto;
    mix-blend-mode: multiply;
}

.review-stars {
    display: inline-flex;
    gap: 0.15rem;
    margin-bottom: 0.65rem;
    color: #00B67A;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.review-stars span::before {
    content: "★";
}

.hero-areas__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    font-weight: 550;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

a.hero-areas__chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.app-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: #0B1F33;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-dock__btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.85rem;
    border-radius: 0.7rem;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.app-dock__btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.app-dock__btn:active {
    transform: scale(0.98);
}

.app-dock__btn--call {
    background: var(--accent);
    color: #fff;
}

.app-dock__btn--call:hover {
    background: var(--accent-dark);
}

.app-dock__btn--wa {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-dock__btn--wa:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-dock__btn--wa i {
    color: #25D366;
}

/* Shared content pages */
.page-shell {
    padding: 3.5rem 0 4rem;
    background: var(--surface);
}

.page-shell--white {
    background: #fff;
}

.page-prose {
    color: rgba(11, 31, 51, 0.75);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.page-prose h2 {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
}

.page-prose h3 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 650;
    margin: 1.25rem 0 0.5rem;
}

.page-prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.page-prose li {
    margin: 0.35rem 0;
}

.page-prose a {
    color: var(--accent);
    text-decoration: none;
}

.page-prose a:hover {
    text-decoration: underline;
}

.page-box {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
}

.page-note {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 0.65rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .app-header__bar {
        height: 3.25rem;
        padding: 0 1.5rem;
    }

    .app-header__name {
        font-size: 1rem;
    }

    .app-dock {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(26rem, calc(100% - 2rem));
        bottom: 1rem;
        border-radius: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
        box-shadow: 0 12px 36px rgba(11, 31, 51, 0.35);
    }

    .has-app-dock {
        padding-bottom: 6rem;
    }
}
