*, ::before, ::after { box-sizing: border-box; }

body {
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header a { text-decoration: none; }

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header--nav-only .container {
    justify-content: center;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-left: auto;
}

.site-header--nav-only .site-nav {
    margin-left: 0;
    justify-content: center;
}

.logo {
    flex-shrink: 0;
    color: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.logo-img {
    display: block;
    max-height: 40px;
    width: auto;
}

.site-main { min-height: 60vh; }

/* Footer layout & site settings */
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-col { flex: 1 1 180px; min-width: 0; }

.footer-brand { flex: 1 1 260px; }

.footer-copy {
    margin: 0 0 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 1 auto;
}

.footer-social__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
    justify-content: flex-end;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: none;
    background: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.footer-social .social-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer-social .social-link--no-url {
    cursor: default;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.footer-social .social-link--no-url:hover {
    transform: none;
    color: rgba(255, 255, 255, 0.45);
}

.social-link__icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

.footer-social .social-link svg,
.footer-social .social-link svg path,
.footer-social .social-link svg circle {
    fill: currentColor;
}

@media (max-width: 640px) {
    .footer-social {
        align-items: flex-start;
        flex: 1 1 100%;
    }

    .footer-social__icons {
        justify-content: flex-start;
    }
}

/* Shared block fallbacks (editor preview & no-theme) */
.blk-section { width: 100%; }
.blk-container { margin: 0 auto; }
.blk-hero { position: relative; }
.blk-hero__inner { position: relative; z-index: 1; }
.blk-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blk-hero-subtitle { margin: 0.75rem 0 1.5rem; }
.blk-btn { display: inline-block; margin-top: 0.5rem; text-decoration: none; }
.blk-post-grid { display: grid; gap: 1rem; }
.blk-post-card a { text-decoration: none; color: inherit; }
.blk-image img { max-width: 100%; height: auto; }
.blk-post-content pre { overflow-x: auto; }

.blk-contact-form {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.blk-contact-form__title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
}
.blk-contact-form__desc {
    margin: 0 0 1.5rem;
    color: #64748b;
    line-height: 1.7;
    font-size: 0.975rem;
}
.blk-contact-form__desc p {
    margin: 0;
}
.blk-contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    max-width: 520px;
}
.blk-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    width: 100%;
}
.blk-contact-form__field span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}
.blk-contact-form__field input,
.blk-contact-form__field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    line-height: 1.5;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blk-contact-form__field input:focus,
.blk-contact-form__field textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.blk-contact-form__field textarea {
    resize: vertical;
    min-height: 140px;
}
.blk-contact-form__submit {
    align-self: flex-start;
    margin-top: 0.25rem;
    cursor: pointer;
    border: none;
    font: inherit;
}
.blk-contact-form__status {
    margin: 0;
    font-size: 0.9375rem;
}
.blk-contact-form__status--ok { color: #15803d; }
.blk-contact-form__status--err { color: #b91c1c; }

.blk-contact-info {
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.625rem;
}
.blk-contact-info__item {
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}
.blk-contact-info__item strong {
    font-weight: 600;
    margin-right: 0.35rem;
}
.blk-contact-info__item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
