:root {
    color-scheme: light;
    --ink: #142027;
    --muted: #5f6f78;
    --line: #dce5e8;
    --paper: #ffffff;
    --mist: #f3f7f7;
    --cyan: #0084c4;
    --cyan-soft: #e1f3f7;
    --red: #d7392f;
    --green: #0f766e;
    --shadow: 0 18px 42px rgba(20, 32, 39, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    padding: 12px clamp(18px, 5vw, 70px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.site-brand img {
    width: min(176px, 34vw);
    max-height: 64px;
    object-fit: contain;
}

.site-brand .brand-title {
    color: var(--cyan);
    font-size: 18px;
    font-weight: 900;
}

.site-brand .brand-title:hover {
    color: #006fa6;
}

.site-nav,
.hero-actions,
.contact-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav {
    color: var(--muted);
    font-size: 14px;
}

.site-nav a:hover,
.text-link:hover,
.site-footer a:hover {
    color: var(--cyan);
}

.home-hero,
.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 560px);
    align-items: center;
    gap: clamp(28px, 5vw, 68px);
    min-height: calc(100vh - 82px);
    padding: clamp(34px, 6vw, 82px) clamp(18px, 5vw, 70px);
    background:
        linear-gradient(135deg, rgba(0, 132, 196, .14), rgba(15, 118, 110, .08)),
        #edf5f5;
}

.home-hero {
    grid-template-columns: minmax(0, 900px);
    min-height: 560px;
    align-content: center;
}

.profile-hero {
    min-height: 560px;
    background:
        linear-gradient(135deg, rgba(215, 57, 47, .09), rgba(0, 132, 196, .13)),
        #f2f7f7;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: 0;
}

.home-hero h1 {
    max-width: 860px;
    font-size: clamp(34px, 5vw, 58px);
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.profile-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
article p,
dd {
    color: var(--muted);
}

.hero-copy p:not(.eyebrow),
.profile-copy p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    font-size: 18px;
}

.hero-actions,
.contact-row {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
}

.button.primary {
    background: var(--cyan);
    color: #fff;
}

.button.secondary {
    background: #fff;
    color: var(--cyan);
    border-color: var(--line);
}

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

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(20, 32, 39, .07);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.icon-link:hover {
    border-color: #a7dcea;
    box-shadow: 0 14px 28px rgba(0, 132, 196, .16);
    transform: translateY(-1px);
}

.icon-link img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.hero-photo,
.profile-photo {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #d8e5e7;
}

.profile-photo {
    width: 60%;
    justify-self: center;
    object-fit: contain;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.section {
    padding: clamp(36px, 5vw, 70px) clamp(18px, 5vw, 70px);
    border-top: 1px solid var(--line);
}

.section-head {
    max-width: 820px;
    margin-bottom: 24px;
}

.service-grid,
.installer-grid,
.brand-grid,
.specialty-grid,
.gallery-grid,
.profile-details {
    display: grid;
    gap: 16px;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.technology-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    max-width: 1120px;
    padding: clamp(18px, 3vw, 30px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(20, 32, 39, .06);
}

.technology-token {
    display: inline-block;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.technology-token.weight-1 {
    color: #6d7c84;
    font-size: 16px;
    font-weight: 700;
}

.technology-token.weight-2 {
    color: #566a73;
    font-size: 19px;
}

.technology-token.weight-3 {
    color: #315b67;
    font-size: 24px;
}

.technology-token.weight-4 {
    color: #0f766e;
    font-size: 30px;
}

.technology-token.weight-5 {
    color: var(--cyan);
    font-size: 38px;
}

.technology-token.weight-6 {
    color: var(--red);
    font-size: 48px;
}

.installer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.specialty-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid article,
.installer-card,
.brand-card,
.specialty-card,
.detail-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(20, 32, 39, .06);
}

.service-grid article,
.brand-card,
.specialty-card,
.detail-block {
    padding: 22px;
}

.brand-card {
    display: grid;
    align-content: space-between;
    min-height: 160px;
    text-align: center;
}

.brand-logo-box {
    display: grid;
    place-items: center;
    height: 90px;
    margin-bottom: 14px;
}

.brand-logo-box img {
    display: block;
    max-width: 120px;
    max-height: 74px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.2;
}

.installer-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    min-height: 138px;
    overflow: hidden;
}

.installer-card img {
    width: 110px;
    height: 100%;
    min-height: 138px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.installer-card div {
    padding: 18px;
}

.installer-card p,
.more-note {
    margin: 0 0 10px;
    color: var(--muted);
}

.text-link {
    color: var(--cyan);
    font-weight: 800;
}

dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 18px 0 0;
}

dt {
    color: var(--ink);
    font-weight: 800;
}

dd {
    margin: 0;
}

.advanced-public-grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.advanced-public-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px 24px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(20, 32, 39, .05);
}

.advanced-public-fieldset legend {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
}

.advanced-public-fieldset legend + * {
    clear: both;
}

.advanced-option-grid,
.advanced-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.advanced-value-grid {
    margin-top: 12px;
}

.advanced-option,
.advanced-value {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ccdbe1;
    border-radius: 8px;
    font-weight: 850;
    line-height: 1.25;
}

.advanced-option span {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2px solid var(--cyan);
    border-radius: 5px;
    background: var(--cyan);
    position: relative;
}

.advanced-option span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.advanced-value {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.advanced-value strong {
    font-size: 14px;
}

.advanced-value span {
    color: var(--muted);
    font-weight: 800;
}

.gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #d8e5e7;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-list a {
    padding: 10px 12px;
    background: var(--cyan-soft);
    color: var(--cyan);
    border: 1px solid #b8dfe8;
    border-radius: 8px;
    font-weight: 800;
}

.not-found {
    min-height: 60vh;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(18px, 5vw, 70px);
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff;
}

@media (max-width: 980px) {
    .home-hero,
    .profile-hero,
    .service-grid,
    .installer-grid,
    .brand-grid,
    .specialty-grid,
    .profile-details,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-hero,
    .profile-hero {
        min-height: auto;
    }

    .advanced-option-grid,
    .advanced-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero,
    .profile-hero,
    .service-grid,
    .installer-grid,
    .brand-grid,
    .specialty-grid,
    .profile-details,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 40px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    .installer-card {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .installer-card img {
        width: 94px;
    }

    dl {
        grid-template-columns: 1fr;
    }

    .advanced-option-grid,
    .advanced-value-grid {
        grid-template-columns: 1fr;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .specialty-grid {
        gap: 10px;
    }

    .specialty-card {
        padding: 14px 16px;
    }

    .specialty-card h3 {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .specialty-card p {
        margin: 0;
        font-size: 15px;
        line-height: 1.35;
    }

    .brand-card {
        min-height: 132px;
        padding: 16px 10px;
    }

    .brand-logo-box {
        height: 68px;
        margin-bottom: 10px;
    }

    .brand-logo-box img {
        max-width: 104px;
        max-height: 58px;
    }

    .advanced-public-fieldset {
        padding: 22px 14px 16px;
    }

    .site-footer {
        flex-direction: column;
    }

    .technology-token.weight-5 {
        font-size: 32px;
    }

    .technology-token.weight-6 {
        font-size: 38px;
    }
}
