/* Public website layout (index.html, privacy.html). */

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

.container.narrow {
    max-width: 760px;
}

@media (min-width: 720px) {
    .container {
        padding: 0 24px;
    }
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--brand);
    color: var(--text-on-brand);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 12px;
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: 1.2rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--text-primary);
}

.brand img {
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:not(.btn):hover {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav:not(.site-nav-static) {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 20px;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

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

    .site-nav:not(.site-nav-static) a:not(.btn) {
        padding: 10px 4px;
    }

    .site-nav:not(.site-nav-static) .btn {
        margin-top: 8px;
    }

    .site-nav:not(.site-nav-static) .theme-toggle {
        align-self: flex-start;
        margin-top: 8px;
    }

    .site-nav-static {
        gap: 12px;
    }
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--brand-soft) 100%);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 8px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.hero-logo {
    order: -1;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    letter-spacing: -0.01em;
}

.hero-intro {
    max-width: 34em;
    margin: 0 0 28px;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    background: var(--bg-surface);
    border-color: var(--brand);
    color: var(--brand);
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1.05fr 1fr;
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .hero-logo {
        order: 0;
        max-width: 560px;
    }
}

.config-warning {
    margin-top: 24px;
    padding: 16px 20px;
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    color: var(--text-primary);
    background: var(--bg-surface);
}

/* ---------- Sections ---------- */

.section {
    padding: 72px 0;
    scroll-margin-top: 64px;
}

.section-alt {
    background: var(--bg-surface-alt);
}

.section-head {
    max-width: 640px;
    margin-bottom: 36px;
}

.section-head p:last-child {
    color: var(--text-secondary);
    margin: 0;
}

.loading,
.empty,
.error {
    color: var(--text-muted);
    margin: 0;
}

.error {
    color: var(--danger);
}

@media (max-width: 600px) {
    .section {
        padding: 52px 0;
    }
}

/* ---------- Services ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top: 4px solid var(--brand);
    box-shadow: var(--shadow-sm);
}

.service-number {
    display: block;
    margin-bottom: 10px;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.service-card p {
    margin: 0;
    color: var(--text-secondary);
}

/* ---------- Projects ---------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.project-cover {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface-alt);
    overflow: hidden;
}

.project-cover img,
.project-cover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-card:hover .project-cover img,
.project-card:hover .project-cover video {
    transform: scale(1.04);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--brand-soft) 25%, transparent 25%) 0 0 / 24px 24px,
        var(--bg-surface-alt);
}

.media-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-body {
    padding: 16px 20px 20px;
}

.project-body h3 {
    margin-bottom: 4px;
}

.project-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ---------- Project dialog / gallery ---------- */

.project-dialog {
    width: min(1040px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.project-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

#project-dialog-content {
    padding: 20px;
}

@media (min-width: 720px) {
    #project-dialog-content {
        padding: 28px 32px 32px;
    }
}

.dialog-head {
    padding-right: 48px;
    margin-bottom: 16px;
}

.dialog-head h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.dialog-close:hover {
    background: var(--border);
}

.dialog-description {
    margin: 20px 0 0;
    color: var(--text-secondary);
}

.gallery-main {
    position: relative;
}

.gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-stage img,
.gallery-stage video {
    width: 100%;
    max-height: 64vh;
    object-fit: contain;
}

.gallery-stage .empty {
    color: #b3bdb4;
    padding: 40px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.85);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.gallery-caption {
    margin: 0;
}

.gallery-counter {
    flex: none;
    color: var(--text-muted);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex: none;
    width: 76px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: #111;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--brand);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
}

/* ---------- Prices ---------- */

.price-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 400px) {
    .price-groups {
        grid-template-columns: 1fr;
    }
}

.price-group {
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-strong);
}

.price-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.price-desc {
    flex: 1 1 11em;
    color: var(--text-secondary);
}

.price-amount {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.price-note {
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- About ---------- */

.prose {
    font-size: 1.08rem;
    color: var(--text-secondary);
}

.prose h1 {
    color: var(--text-primary);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.prose h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-top: 32px;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 56px;
    }
}

.contact-intro > p {
    color: var(--text-secondary);
}

.contact-details {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.contact-details a {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-form {
    padding: 24px;
}

@media (min-width: 720px) {
    .contact-form {
        padding: 32px;
    }
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 16px;
}

@media (min-width: 600px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* ---------- Reviews ---------- */

.reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: none;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.review-average {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.review-summary-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.review-summary .stars {
    font-size: 1.3rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 400px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.review-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.review-head .stars {
    font-size: 1.15rem;
}

.review-text {
    flex: 1;
    margin: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.review-text::before {
    content: '\201C';
    display: block;
    height: 0.6em;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 2.6rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-author {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.review-more {
    display: flex;
    margin: 24px auto 0;
}

/* Write-a-review form, opened with the summary button */
.review-form-wrap {
    margin-top: 32px;
}

.review-form-wrap > summary {
    list-style: none;
}

.review-form-wrap > summary::-webkit-details-marker {
    display: none;
}

.review-form-wrap[open] > summary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.review-form {
    max-width: 760px;
    margin-top: 20px;
    padding: 24px;
}

@media (min-width: 720px) {
    .review-form {
        padding: 32px;
    }
}

.review-policy {
    margin: 0 0 20px;
    font-size: 0.92rem;
}

.star-input {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.star-input legend {
    padding: 0;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Inputs are in order 5..1 and shown reversed, so "~ label" lights up lower stars. */
.star-options {
    display: inline-flex;
    flex-direction: row-reverse;
    align-self: flex-start;
    gap: 2px;
}

.star-options input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.star-options label {
    font-size: 2.2rem;
    line-height: 1;
    padding: 2px;
    color: var(--border-strong);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-options label:hover,
.star-options label:hover ~ label,
.star-options input:checked ~ label {
    color: #e0a526;
}

.star-options label:hover {
    transform: scale(1.12);
}

.star-options input:focus-visible + label {
    outline: 3px solid var(--brand-glow);
    outline-offset: 2px;
    border-radius: 4px;
}


/* ---------- Photos with a quote request ---------- */

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

input[type="file"] {
    cursor: pointer;
}

.photo-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.photo-picks:empty {
    display: none;
}

.photo-pick {
    position: relative;
    width: 92px;
}

.photo-pick img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.photo-pick-name {
    display: block;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-pick-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}


/* ---------- Price calculator ---------- */

.calculator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    border-top: 4px solid var(--brand);
}

@media (min-width: 820px) {
    .calculator {
        grid-template-columns: 1.1fr 1fr;
        gap: 40px;
        padding: 32px;
    }
}

.calculator h3 {
    margin-bottom: 4px;
}

.calculator-input > p {
    margin: 0 0 20px;
}

.calculator-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--brand-soft);
}

.calculator-label {
    margin: 0;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calculator-total {
    margin: 4px 0 2px;
    color: var(--text-primary);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.calculator-detail {
    min-height: 1.6em;
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.calculator-note {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.calculator-result .btn {
    margin-top: auto;
}

/* Honeypot: hidden from people, visible to simple spam bots. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 40px 0;
    background: var(--bg-surface-alt);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.site-footer strong {
    color: var(--text-primary);
}

.footer-inner {
    display: grid;
    gap: 16px;
}

@media (min-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .copyright {
        grid-column: 1 / -1;
    }
}

.footer-details {
    margin: 4px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer a {
    color: var(--brand);
}

.site-footer a:hover {
    color: var(--brand-hover);
}

.copyright {
    margin: 0;
    color: var(--text-muted);
}

/* ---------- WhatsApp button ---------- */

.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 22px 10px 16px;
    border-radius: 999px;
    background: #0f8040;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.whatsapp-button:hover {
    background: #0b6a34;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Moved out of the way while a form is used or the contact block is visible. */
.whatsapp-button.is-tucked {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

@media (max-width: 600px) {
    .whatsapp-button {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-label {
        display: none;
    }

    /* Room under the footer so the button never hides the last links. */
    body.has-whatsapp .site-footer {
        padding-bottom: 96px;
    }
}
