/* Explain: Component styles for site elements, including nav, panels, cards, and forms. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.95), rgba(250, 249, 246, 0.78));
    backdrop-filter: blur(18px);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    flex-direction: column;
    min-height: 100dvh;
    overflow-y: auto;
    background: var(--background-color);
}

.nav-overlay.is-open {
    display: flex;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-color);
    content: "";
}

.tech-panel {
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: linear-gradient(150deg, rgba(250, 249, 246, 0.95), rgba(241, 244, 235, 0.78));
    box-shadow: var(--shadow-soft);
}

.frame-tech {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.9rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.frame-tech::after {
    position: absolute;
    inset: 0.9rem;
    border: 1px solid rgba(250, 249, 246, 0.5);
    border-radius: 1.35rem;
    content: "";
    pointer-events: none;
}

.hero-rotate {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-rotate-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease;
}

.hero-rotate-img.is-active {
    opacity: 1;
}

.service-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.8);
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 24px 60px rgba(31, 46, 35, 0.1);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 0.9rem;
    background: var(--sage-soft);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.spec-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding: 0.75rem 0;
    font-size: 0.92rem;
}

.spec-item:last-child {
    border-bottom: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.82);
    padding: 0.35rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.step-card {
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.8);
    padding: 1.6rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: var(--primary-color);
    color: var(--background-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: rgba(250, 249, 246, 0.72);
    padding: 0.9rem 1rem;
}

.contact-line i {
    margin-top: 0.35rem;
    color: var(--accent-color);
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.88rem;
}

.form-status.success {
    color: #3A5A40;
    font-weight: 600;
}

.form-status.error {
    color: #9B4A3D;
    font-weight: 600;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: rgba(250, 249, 246, 0.8);
    padding: 1.05rem 1.25rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    color: var(--text-color);
    font-weight: 600;
}

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

.faq-item summary i {
    color: var(--accent-color);
    transition: transform 250ms ease;
}

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

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.job-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: linear-gradient(150deg, rgba(250, 249, 246, 0.95), rgba(241, 244, 235, 0.82));
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.job-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 24px 60px rgba(31, 46, 35, 0.1);
}

@media (min-width: 640px) {
    .job-card {
        padding: 2rem;
    }
}

.qr-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed var(--glass-border);
    border-radius: 1.4rem;
    background:
        repeating-conic-gradient(rgba(88, 129, 87, 0.07) 0% 25%, transparent 0% 50%) 50% / 20px 20px,
        rgba(250, 249, 246, 0.6);
    padding: 1rem;
}

.qr-preview img {
    width: 100%;
    height: 100%;
    border-radius: 0.9rem;
    background: #ffffff;
    object-fit: contain;
}

.qr-preview-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    border: 1px dashed var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: border-color 300ms ease, background 300ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
    border-color: var(--accent-color);
    background: var(--sage-soft);
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-icon {
    color: var(--primary-color);
    font-size: 1.7rem;
}

.upload-title {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.upload-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.55rem 0.85rem;
}

.upload-file-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.upload-file-name {
    overflow-wrap: anywhere;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.upload-file-size {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.upload-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: color 300ms ease, border-color 300ms ease;
}

.upload-remove:hover {
    border-color: #9B4A3D;
    color: #9B4A3D;
}

.biz-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 30rem);
    margin-inline: auto;
    border-radius: 1.35rem;
    padding: 1.6rem;
    background:
        radial-gradient(circle at 88% 8%, rgba(192, 207, 178, 0.24), transparent 12rem),
        linear-gradient(145deg, #37513E, var(--primary-color) 55%, #2C4334);
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.24);
}

.biz-card-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    height: 7.5rem;
    flex: 0 0 auto;
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 0.5rem;
}

.biz-card-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.biz-card-qr-note {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

@media print {
    .site-header,
    footer,
    #qr-builder,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    #business-card {
        padding: 0;
    }

    .biz-card {
        width: 100%;
        box-shadow: none;
        break-inside: avoid;
    }
}