/* Explain: Reusable UI component styles, including hero and button styles. */
/* ===== Buttons ===== */
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    min-height: 50px;
    border-radius: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-solid:hover {
    transform: translateY(-2px);
}

.btn-call {
    background: var(--call-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(51, 59, 69, 0.22);
}

.btn-call:hover {
    background: var(--call-hover);
    color: #fff;
}

.btn-wa {
    background: var(--wa-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
    background: var(--wa-hover);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 var(--border-color);
}

.topbar {
    background: var(--primary-color);
    color: #eef1f4;
    font-size: 0.8rem;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1.25rem;
    padding-block: 0.5rem;
}

.topbar span,
.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #eef1f4;
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .brand-logo {
        height: 54px;
    }
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 1.1rem;
    }
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding-block: 0.35rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-call {
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
}

.hide-sm {
    display: none;
}

@media (min-width: 480px) {
    .hide-sm {
        display: inline;
    }
}

.nav-toggle,
.nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 0.7rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-size: 1.15rem;
    cursor: pointer;
}

.nav-toggle:hover,
.nav-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

/* ===== Mobile navigation ===== */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-head img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding-block: 0.75rem;
}

.mobile-nav-links a {
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.25rem;
    margin-top: auto;
}

.mobile-nav-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 1rem;
    line-height: 2;
}

body.nav-locked {
    overflow: hidden;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    color: #fff;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(35, 42, 50, 0.6) 0%, rgba(35, 42, 50, 0.78) 52%, rgba(35, 42, 50, 0.92) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-block: 4.5rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-inner {
        padding-block: 6.5rem;
        min-height: 620px;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-text {
    font-size: 1.02rem;
    line-height: 1.95;
    color: #e2e7ec;
    margin-bottom: 1.75rem;
}

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

/* ===== Inner page hero ===== */
.page-hero {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.page-hero-inner {
    max-width: 820px;
    padding-block: 2.5rem;
}

@media (min-width: 768px) {
    .page-hero-inner {
        padding-block: 3.5rem;
    }
}

.page-hero h1 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 2.25rem;
    }
}

.page-hero p {
    color: var(--text-muted);
    line-height: 1.95;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .hero-actions,
    .page-hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .hero-actions .btn-solid,
    .page-hero-actions .btn-solid,
    .cta-actions .btn-solid {
        width: 100%;
    }
}

/* ===== Cards ===== */
.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(31, 37, 43, 0.1);
    border-color: var(--accent-color);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    background: var(--surface-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.9;
    flex-grow: 1;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.link-more:hover {
    color: var(--call-color);
    text-decoration: underline;
}

/* ===== Steps ===== */
.step {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.6rem;
    height: 100%;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.step h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.step p {
    color: var(--text-muted);
    line-height: 1.85;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-note {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== CTA band ===== */
.cta-band {
    background: var(--primary-color);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.cta-band h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .cta-band h2 {
        font-size: 1.9rem;
    }
}

.cta-band p {
    color: #d7dde3;
    line-height: 1.95;
    max-width: 660px;
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ===== Content blocks ===== */
.prose h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: var(--text-color);
}

.prose p {
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.9;
    color: var(--text-color);
}

.feature-list i {
    color: var(--wa-color);
    margin-top: 0.35rem;
}

.note-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-inline-start: 4px solid var(--primary-color);
    border-radius: 0.7rem;
    padding: 1.1rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.info-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.6rem;
}

.info-panel h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

/* ===== FAQ ===== */
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--accent-color);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    transition: transform 0.25s ease;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.95;
}

/* ===== Contact ===== */
.contact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-block: 0.7rem;
    border-bottom: 1px dashed var(--border-color);
}

.contact-row:last-of-type {
    border-bottom: none;
}

.contact-row i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-top: 0.3rem;
}

.contact-row strong {
    display: block;
    font-weight: 700;
}

.contact-row span,
.contact-row a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-row a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-field {
    display: block;
    margin-bottom: 1rem;
}

.form-field > span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-status {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.8;
}

.form-status-ok {
    background: #e8f8ee;
    color: #12703c;
    border: 1px solid #b8e6cb;
}

.form-status-err {
    background: #fdecec;
    color: #9b1c1c;
    border: 1px solid #f3c2c2;
}

/* ===== Footer ===== */
.site-footer {
    background: #232a32;
    color: #c9d1d9;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.75rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1.2fr;
    }
}

.footer-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.9;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.footer-brand i {
    color: var(--accent-color);
}

.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.93rem;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.93rem;
    line-height: 1.9;
    margin-bottom: 0.6rem;
}

.footer-contact a {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1rem;
    font-size: 0.85rem;
    color: #9aa4af;
    text-align: center;
    line-height: 1.9;
}

/* ===== Floating contact widgets ===== */
.float-wa {
    position: fixed;
    left: 1rem;
    bottom: 1.25rem;
    z-index: 45;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.float-wa:hover {
    background: var(--wa-hover);
    color: #fff;
    transform: scale(1.06);
}

@media (max-width: 767px) {
    .float-wa {
        bottom: 4.9rem;
        left: 0.85rem;
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }
}

.bottom-bar {
    display: none;
}

@media (max-width: 767px) {
    .bottom-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 55;
        background: #fff;
        border-top: 1px solid var(--border-color);
    }

    .bb-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.5rem;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        min-height: 58px;
    }

    .bb-call {
        color: var(--primary-color);
    }

    .bb-wa {
        color: #12703c;
        background: #e8f8ee;
    }

    .bb-btn i {
        font-size: 1.05rem;
    }
}

/* ===== Gallery strip ===== */
.gallery-strip {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.9rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-strip::-webkit-scrollbar {
    height: 8px;
}

.gallery-strip::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 999px;
}

.gallery-strip::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 999px;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 280px;
    max-width: 75vw;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    overflow: hidden;
    background: var(--surface-color);
    cursor: pointer;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.06);
}

.gallery-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.6rem;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 24, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-stage {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}