* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #03060b 0%, #090d16 100%);
    color: #e7e2f3;
    text-align: center;
}


.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}


header {
    background: linear-gradient(135deg, #080a11 0%, #181d31 100%);
    border-bottom: 1px solid #4c3d7a;
}

header .container {
    text-align: center;
}

header h1,
header p,
.site-heading,
h2 {
    margin-bottom: 5px;
    color: #9d8cff;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.35),
        0 0 10px rgba(157, 140, 255, 0.25);
}

header h1 {
    font-size: 48px;
    text-align: center;
}

h2 {
    font-size: 28px;
}

header p {
    margin: 0;
    color: #c9c9c9;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: none;
    text-align: center;
}

.tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 8px;
}

.tab-button {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #c9c9c9;
    background: #0f1422;
    color: #e7e2f3;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tab-button:hover,
.tab-button:focus-visible {
    background: #0e111d;
    border-color: #868686;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #1d2a4b 0%, #4b2e83 100%);
    color: #f4f0ff;
    font-weight: 700;
    border-color: #868686;
}

.tab-button {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9c9c9;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: none;
}

.tab-button {
    font-size: 14px;
}

.hero {
    text-align: center;
    padding: 24px 0;
}


.hero h2 {
    font-size: clamp(28px, 4vw, 32px);
}

main .site-heading {
    font-size: 28px;
}

main .page-content h2,
.about h2 {
    margin-top: 0;
}

main .page-content p:first-of-type {
    max-width: 760px;
    margin: 0 auto 30px;
}

.service-category {
    margin: 0 0 16px;
}

main .page-content h2 + .cards,
.about h2 + .cards {
    margin-top: 16px;
}

.service-category.secondary {
    margin-top: 32px;
}


button {
    font-family: inherit;
    margin-top: 20px;
    padding: 12px 42px;
    background: linear-gradient(135deg, #1d2a4b 0%, #4b2e83 100%);
    color: #f4f0ff;
    border: 1px solid #c9c9c9;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

button:hover,
button:focus-visible {
    background: #0e111d;
    border-color: #868686;
    transform: translateY(-2px);
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    width: 100%;
    padding: 32px 28px;
    background: #0f1422;
    border: 1px solid #c9c9c9;
    box-shadow: inset 0 0 0 1px rgba(157, 140, 255, 0.18);
    border-radius: 12px;
}

.card h3 {
    margin: 0 0 16px;
    color: #b7afd3;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(157, 140, 255, 0.2);
}

.contact-card {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #e7e2f3;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #615b75;
    border-radius: 6px;
    background: #090d16;
    color: #e7e2f3;
    font: inherit;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 2px solid #9d8cff;
    outline-offset: 2px;
}

.form-field.full-width,
.contact-form .form-note,
.contact-form button {
    grid-column: 1 / -1;
}

.contact-form .form-note {
    margin: 0;
    color: #c9c9c9;
    text-align: left;
}

.contact-form button {
    justify-self: center;
    margin-top: 0;
}

@media (max-width: 600px) {
    .form-field.full-width,
    .contact-form .form-note,
    .contact-form button {
        grid-column: auto;
    }
}


.about {
    background: #0a0d14;
    border-top: 1px solid #3f2d68;
}


footer {
    text-align: center;
    border-top: 1px solid #4c3d7a;
    padding-bottom: 20px;
}

.footer-owner {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #8f7bd9;
    letter-spacing: 0.04em;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Ensure hidden elements stay hidden even when component styles set display. */
[hidden] {
    display: none !important;
}

css
/* Residential page */

.residential-hero .container {
    max-width: 850px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.residential-hero .eyebrow {
    color: #9d8cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.residential-hero h2 {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.25;
    margin: 0 auto 18px;
}

.residential-hero .container > p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 auto 24px;
    color: #c9c9c9;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 13px 26px;
    border: 1px solid #c9c9c9;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d2a4b 0%, #4b2e83 100%);
    color: #f4f0ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
    background: #0e111d;
    transform: translateY(-2px);
}

.residential-services > .container {
    padding-top: 35px;
    padding-bottom: 45px;
}

.residential-services h2 {
    margin-bottom: 8px;
}

.section-intro {
    margin: 0 auto 28px;
    color: #c9c9c9;
    line-height: 1.6;
}

/* Responsive service card grid */

.residential-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    text-align: left;
}

.residential-cards .card {
    width: 100%;
    min-width: 0;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.residential-cards .card:hover {
    transform: translateY(-4px);
    border-color: #9d8cff;
}

.residential-cards .card h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.residential-cards .card p {
    margin: 0;
    color: #c9c9c9;
    font-size: 14px;
    line-height: 1.65;
}

.residential-cards .card .card-details {
    margin-top: auto;
    padding-top: 18px;
    color: #9d8cff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.residential-approach {
    background: #0a0d14;
    border-top: 1px solid #3f2d68;
    border-bottom: 1px solid #3f2d68;
}

.residential-approach .container {
    max-width: 850px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.residential-approach p,
.residential-cta p {
    max-width: 700px;
    margin: 12px auto 0;
    color: #c9c9c9;
    line-height: 1.7;
}

.residential-cta .container {
    padding-top: 35px;
    padding-bottom: 45px;
}

.residential-cta h2 {
    margin-top: 0;
}

.residential-cta .cta-button {
    margin-top: 24px;
}

/* Tablet */

@media (max-width: 900px) {
    .residential-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 600px) {
    .residential-hero .container {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .residential-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .residential-cards .card {
        padding: 24px 20px;
    }

    .residential-services > .container {
        padding-top: 25px;
        padding-bottom: 30px;
    }

    .residential-approach .container,
    .residential-cta .container {
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .cta-button {
        max-width: 100%;
        padding: 12px 20px;
    }
}
/* Homepage layout */

.home-hero .container {
    max-width: 900px;
    padding-top: 32px;
    padding-bottom: 16px;
}

.home-hero {
    padding: 0;
}

.home-hero .eyebrow {
    color: #9d8cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
}

.home-hero h2 {
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.2;
    margin: 0 auto 20px;
}

.home-hero .container > p:not(.eyebrow) {
    max-width: 700px;
    margin: 0 auto 16px;
    color: #c9c9c9;
    line-height: 1.8;
}

.home-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.home-actions .cta-button {
    display: inline-block;
    padding: 13px 24px;
    border: 1px solid #c9c9c9;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d2a4b 0%, #4b2e83 100%);
    color: #f4f0ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-actions .cta-button:hover,
.home-actions .cta-button:focus-visible {
    background: #0e111d;
    transform: translateY(-2px);
}

.home-actions .secondary-button {
    background: #0f1422;
}

.home-solutions .container {
    padding-top: 14px;
    padding-bottom: 45px;
}

.home-solutions h2 {
    margin-bottom: 8px;
}

.section-intro {
    color: #c9c9c9;
    line-height: 1.6;
    margin: 0 auto 28px;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    text-align: left;
}

.home-cards .card {
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-cards .card:hover {
    transform: translateY(-4px);
    border-color: #9d8cff;
}

.home-cards .card h3 {
    font-size: 19px;
    line-height: 1.4;
}

.home-cards .card p {
    color: #c9c9c9;
    line-height: 1.7;
}

.home-cards .card .card-details {
    color: #9d8cff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.card-link {
    margin-top: auto;
    padding-top: 16px;
    color: #b7a9ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
    color: #f4f0ff;
    text-decoration: underline;
}

.home-approach {
    background: #0a0d14;
    border-top: 1px solid #3f2d68;
    border-bottom: 1px solid #3f2d68;
}

.home-approach .container {
    max-width: 850px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.home-approach p,
.home-cta p {
    max-width: 700px;
    margin: 12px auto 0;
    color: #c9c9c9;
    line-height: 1.8;
}

.home-cta .container {
    padding-top: 25px;
    padding-bottom: 40px;
}

.home-cta h2 {
    margin-top: 0;
}

.home-cta .cta-button {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .home-hero .container {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .home-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .home-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-cards .card {
        padding: 24px 20px;
    }

    .home-solutions .container {
        padding-top: 12px;
        padding-bottom: 30px;
    }

    .home-approach .container,
    .home-cta .container {
        padding-top: 28px;
        padding-bottom: 30px;
    }
}