:root {
    --page-bg: #070b18;
    --text: #f0f0f0;
    --muted-text: #d8d8ff;
    --link: #a8c2ff;
    --surface: rgba(12, 18, 38, 0.92);
    --surface-border: rgba(255, 255, 255, 0.08);
    --heading: #dce1ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.6;
}

body.lightbox-open {
    overflow: hidden;
}

header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    display: block;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

nav a:hover,
.inline-link:hover {
    color: #97b5ff;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 28px;
}

.hero {
    text-align: center;
    padding: 64px 20px 44px;
    background-image:
        radial-gradient(circle at top, rgba(115, 152, 255, 0.16), transparent 45%),
        linear-gradient(180deg, rgba(7, 11, 24, 0.95) 0%, rgba(7, 11, 24, 0.65) 40%, rgba(7, 11, 24, 0.95) 100%),
        url('../assets/images/NGC 7380.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 18px;
    margin-bottom: 24px;
}

.hero h2 {
    font-size: 2.8rem;
    margin: 0 0 15px;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 12px;
    font-size: 1.05rem;
    color: #d8d8ff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.8rem 1.3rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #7aa1ff, #a743ff);
    color: #ffffff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f4f6ff;
}

section {
    margin-bottom: 24px;
    padding: 12px 0;
}

section h3,
.social-card h4 {
    font-size: 1.75rem;
    margin: 0 0 12px;
    color: var(--heading);
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading p,
.about p,
.contact p,
.social-card p,
.service-card p,
.service-card li,
.service-feature,
.service-summary,
.legal-intro,
.legal-section p,
.legal-update,
.legal-details dd {
    color: var(--muted-text);
}

.contact {
    padding: 24px;
    border: 1px solid rgba(150, 173, 255, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 29, 50, 0.9), rgba(11, 19, 35, 0.92));
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field-trap {
    display: none;
}

.form-field label {
    color: #edf3ff;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    color: var(--text);
    background: rgba(4, 8, 20, 0.72);
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid rgba(151, 181, 255, 0.7);
    outline-offset: 2px;
}

.contact-form .button {
    justify-self: center;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.about {
    background: rgba(12, 18, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 20px 16px;
    margin-top: 8px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: center;
}

.about-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-content h3 {
    margin: 0 0 10px;
}

.about-content p {
    margin: 0;
    line-height: 1.75;
}

.about-media {
    display: flex;
    justify-content: center;
}

.about-media img {
    width: 100%;
    max-width: 420px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    display: block;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.gallery-item {
    cursor: pointer;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(151, 181, 255, 0.5);
    box-shadow: 0 12px 30px rgba(80, 110, 220, 0.18);
    outline: none;
}

.card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.card-body {
    padding: 18px;
}

.card-body p {
    margin: 0;
    color: #c8cddc;
}

.social-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 29, 50, 0.9), rgba(11, 19, 35, 0.92));
    border: 1px solid rgba(150, 173, 255, 0.22);
}

.social-card-content {
    display: flex;
    flex-direction: column;
    max-width: 700px;
}

.social-card h4 {
    margin: 0 0 12px;
}

.social-card p {
    margin: 0;
}

.social-card .button {
    flex-shrink: 0;
    text-align: center;
}

.kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #9fc3ff;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.inline-link,
footer a {
    color: var(--link);
    text-decoration: none;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 22px;
}

.service-card h4 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: #edf3ff;
}

.price-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(122, 161, 255, 0.12);
    border: 1px solid rgba(122, 161, 255, 0.25);
    color: #b6caff;
    font-weight: 700;
}

.service-card ul {
    padding-left: 20px;
    margin: 16px 0 0;
}

.service-card li + li {
    margin-top: 8px;
}

.service-summary {
    max-width: 820px;
    margin-bottom: 16px;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    z-index: 2147483647;
    padding: 24px;
    overflow-y: auto;
}

.lightbox.is-visible {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: min(92vw, 1000px);
    max-height: calc(100vh - 48px);
    overflow: visible;
    position: relative;
}

.lightbox-media {
    position: relative;
    display: inline-block;
}

.lightbox img {
    max-width: min(90vw, 900px);
    max-height: 72vh;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    background: #080d1a;
    display: block;
}

.lightbox-panel {
    width: min(100%, 620px);
    max-height: none;
    overflow-y: visible;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(13, 20, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.2s ease;
}

.lightbox.is-portrait .lightbox img {
    max-width: min(80vw, 560px);
    max-height: 75vh;
}

.lightbox-title {
    margin: 0 0 12px;
    color: #eef3ff;
    font-size: 1.2rem;
    text-align: center;
}

.lightbox-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    border: 1px solid rgba(161, 184, 255, 0.2);
    border-radius: 999px;
    background: rgba(122, 161, 255, 0.06);
    color: #dfe9ff;
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin: 0 auto 4px;
    text-align: center;
    align-self: center;
}

.lightbox-caption-wrapper {
    margin-top: 12px;
}

.lightbox-caption {
    margin: 0;
    color: #eef3ff;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    text-align: center;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9da3b5;
}

footer a:hover,
footer a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.legal-page {
    max-width: 820px;
}

.legal-page section {
    padding-top: 40px;
}

.legal-page h2 {
    margin: 0 0 10px;
    color: #edf3ff;
    font-size: 2.4rem;
}

.legal-section {
    margin-top: 26px;
}

.legal-section h3 {
    margin-bottom: 10px;
}

.legal-section p {
    margin-top: 0;
}

.legal-details {
    margin: 18px 0 0;
}

.legal-details div {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) 1.3fr;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-details dt {
    color: #aebeff;
    font-weight: 700;
}

.legal-details dd {
    margin: 0;
}

.legal-update {
    margin-top: 42px;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        gap: 14px;
        padding: 18px 20px;
    }

    nav {
        justify-content: center;
    }

    .hero {
        padding-top: 56px;
    }

    .hero h2 {
        font-size: 2.1rem;
    }

    .social-card {
        flex-direction: column;
        align-items: stretch;
    }

    .social-card .button {
        align-self: center;
    }

    .about {
        padding: 18px 16px 16px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-media img {
        height: 240px;
    }

    .contact {
        padding: 20px 16px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form .button {
        justify-self: stretch;
    }

    .legal-page h2 {
        font-size: 2rem;
    }

    .legal-details div {
        display: block;
    }

    .legal-details dt {
        margin-bottom: 4px;
    }
}
