:root {
    /* EKE Smart Systems – BRAND.md palette */
    --color-primary-navy: #0b1f3b;
    --color-brand-blue: #007bff;
    --color-electric-blue: #00d2ff;
    --color-light-blue: #b3e5ff;
    --color-slate-dark: #1e293b;
    --color-light-gray: #e5eaf2;
    --color-white: #ffffff;

    /* Semantic aliases used by the existing components */
    --blue: var(--color-brand-blue);
    --blue-dark: var(--color-primary-navy);
    --graphite: var(--color-primary-navy);
    --graphite-black: var(--color-primary-navy);
    --dark-grey: var(--color-slate-dark);
    --white: var(--color-white);
    --light-grey: var(--color-light-gray);
    --text: var(--color-slate-dark);
    --text-muted: #526074;
    --line: var(--color-light-gray);
    --header-height: 78px;
    --content-width: 1240px;
    --radius: 10px;
    --shadow: 0 16px 40px rgba(17, 20, 24, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--graphite);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    font-weight: 700;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

p {
    margin-bottom: 1rem;
}

:focus-visible {
    outline: 3px solid var(--color-electric-blue);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--blue);
    border-radius: 6px;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 3rem), var(--content-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    color: var(--white);
    background: rgba(11, 31, 59, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    transition: box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
    background: rgba(11, 31, 59, 0.985);
    border-bottom-color: rgba(0, 210, 255, 0.28);
    box-shadow: 0 12px 34px rgba(4, 14, 31, 0.3);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-logo,
.footer-brand-logo {
    display: inline-block;
    flex-shrink: 0;
}

.brand-logo picture {
    display: block;
}

.brand-logo img {
    width: auto;
    height: 52px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1.45vw, 1.35rem);
}

.primary-navigation > a:not(.button) {
    position: relative;
    color: var(--color-light-gray);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.primary-navigation > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 2px;
    content: "";
    background: var(--color-electric-blue);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.primary-navigation > a:not(.button):hover,
.primary-navigation > a:not(.button):focus-visible {
    color: var(--white);
}

.primary-navigation > a:not(.button):hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
    color: var(--color-primary-navy);
    background: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    transform: translateY(-2px);
}

.button-small {
    min-height: 42px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
}

.button-secondary {
    color: var(--white);
    background: transparent;
    border-color: var(--color-light-blue);
}

.button-secondary:hover {
    color: var(--white);
    background: rgba(0, 123, 255, 0.16);
    border-color: var(--color-electric-blue);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.section {
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-muted {
    background: var(--light-grey);
}

.section-dark {
    color: var(--color-light-gray);
    background: var(--graphite);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark .eyebrow {
    color: var(--color-light-blue);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding-block: clamp(5rem, 8.5vw, 7.5rem) clamp(6rem, 10vw, 9rem);
    overflow: hidden;
    background-color: var(--color-primary-navy);
    background-image:
        linear-gradient(90deg, rgba(5, 18, 39, 0.97) 0%, rgba(5, 18, 39, 0.91) 38%, rgba(5, 18, 39, 0.58) 62%, rgba(5, 18, 39, 0.14) 100%),
        url("images/hero/hero-desktop.png");
    background-repeat: no-repeat;
    background-position: center, 85% 20%;
    background-size: cover;
}

.hero-grid,
.split-layout,
.smart-home-grid,
.quote-grid,
.contact-layout,
.reviews-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-grid {
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
}

.hero-content {
    max-width: 760px;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.hero-content h1 {
    max-width: 760px;
    margin-bottom: 1.35rem;
    font-size: clamp(2.7rem, 4.65vw, 4rem);
    letter-spacing: -0.035em;
}

.hero-content > p:not(.eyebrow, .hero-lead) {
    max-width: 660px;
    color: var(--color-light-gray);
}

.hero-lead,
.section-lead {
    color: var(--white);
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    font-weight: 500;
    line-height: 1.65;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--color-light-blue);
}

.hero .eyebrow span {
    color: var(--color-electric-blue);
}

.smart-home-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--dark-grey);
    border-radius: var(--radius);
}

.smart-home-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-dark .section-media img {
    opacity: 0.72;
}

.trust-strip {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 4.5vw, 3.75rem) 0;
    background: var(--light-grey);
}

.trust-strip .container {
    width: min(calc(100% - 4rem), 1120px);
}

.trust-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(17, 20, 24, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(11, 31, 59, 0.08);
}

.trust-grid > div {
    position: relative;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.65rem 1.75rem;
    border-right: 1px solid var(--line);
}

.trust-grid > div::before {
    position: absolute;
    top: 0;
    left: 1.75rem;
    width: 42px;
    height: 3px;
    content: "";
    background: var(--color-brand-blue);
}

.trust-grid strong {
    color: var(--graphite);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.trust-grid span {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

#rolunk {
    padding-top: clamp(5.5rem, 9vw, 8rem);
}

.section-copy {
    max-width: 680px;
}

.section-copy > p:not(.eyebrow, .role, .form-note),
.section-heading > p:last-child {
    color: var(--text-muted);
}

.section-dark .section-copy > p:not(.eyebrow, .section-lead, .form-note) {
    color: var(--color-light-gray);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-media {
    min-width: 0;
    min-height: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.about-portrait {
    width: 100%;
    max-width: 520px;
    margin: 0;
    justify-self: end;
    overflow: hidden;
    background: var(--color-primary-navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
}

.about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.about-portrait figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--color-light-gray);
    font-size: 0.875rem;
}

.about-portrait strong {
    color: var(--white);
    font-size: 1.125rem;
}

.roland-story .section-copy {
    max-width: 860px;
}

.roland-story .roland-experience {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    color: var(--color-primary-navy);
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--color-light-blue);
    border-radius: 6px;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
}

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

.service-card {
    position: relative;
    min-height: 340px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    border-color: rgba(0, 123, 255, 0.45);
    box-shadow: 0 16px 34px rgba(11, 31, 59, 0.1);
    transform: translateY(-3px);
}

.service-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin-bottom: 1.6rem;
    background: rgba(179, 229, 255, 0.22);
    border: 1px solid rgba(0, 123, 255, 0.12);
    border-radius: 10px;
}

.service-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.service-card p {
    color: var(--text-muted);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--color-brand-blue);
    font-size: 0.88rem;
    font-weight: 600;
}

.service-link span {
    transition: transform 180ms ease;
}

.service-link:hover span,
.service-link:focus-visible span {
    transform: translateX(3px);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.feature-list span {
    padding: 0.9rem 1rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.role {
    margin-bottom: 0.25rem;
    color: var(--blue);
    font-weight: 700;
}

.roland-company {
    color: var(--text-muted);
    font-weight: 600;
}

blockquote {
    margin: 2rem 0 0;
    padding: 1.25rem 0 1.25rem 1.5rem;
    color: var(--graphite);
    font-size: 1.15rem;
    font-weight: 600;
    border-left: 3px solid var(--blue);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
    border-color: var(--color-light-blue);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.project-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
}

.project-location {
    margin-bottom: 0.5rem;
    color: var(--color-brand-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.project-card h3 {
    font-size: 1.22rem;
    overflow-wrap: anywhere;
}

.project-card-content > h3:first-child {
    margin-top: 1.7rem;
}

.project-card-content > p:not(.project-location) {
    color: var(--text-muted);
}

.project-gallery-button {
    min-height: 44px;
    margin-top: auto;
    padding: 0;
    color: var(--color-brand-blue);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.project-gallery-button:hover {
    color: var(--color-primary-navy);
}

.gallery-modal {
    width: min(1100px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    color: var(--white);
    background: var(--color-primary-navy);
    border: 1px solid var(--color-slate-dark);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.gallery-modal::backdrop {
    background: rgba(5, 18, 39, 0.82);
}

.gallery-modal-panel {
    height: min(850px, calc(100dvh - 2rem - 2px));
    display: flex;
    flex-direction: column;
}

.gallery-modal-header,
.gallery-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.gallery-modal-header h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.4rem);
}

.gallery-close,
.gallery-control {
    min-height: 44px;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
}

.gallery-close {
    width: 44px;
    flex: 0 0 auto;
    font-size: 1.7rem;
    line-height: 1;
}

.gallery-control {
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
}

.gallery-close:hover,
.gallery-control:hover {
    border-color: var(--color-electric-blue);
    color: var(--color-light-blue);
}

.gallery-control[hidden] {
    display: none;
}

.gallery-stage {
    position: relative;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    background: var(--color-slate-dark);
}

.gallery-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-modal-footer.is-single {
    justify-content: center;
}

#gallery-count {
    color: var(--color-light-gray);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.reviews-layout {
    align-items: stretch;
}

.empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--light-grey);
    border: 1px dashed var(--text-muted);
    border-radius: var(--radius);
}

.empty-state strong {
    margin-bottom: 0.75rem;
    color: var(--graphite);
    font-size: 1.15rem;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.career-active {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.career-main > p,
.career-application > p,
.career-detail p,
.career-inactive p {
    color: var(--text-muted);
}

.career-main h3 {
    color: var(--color-primary-navy);
}

.career-application {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.career-deadline {
    font-weight: 700;
}

.career-position {
    margin: 1.5rem 0;
}

.career-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(11, 31, 59, 0.06);
}

.career-form input[type="file"] {
    min-width: 0;
    max-width: 100%;
    padding: 0.55rem;
    cursor: pointer;
}

.career-form input[type="file"]::file-selector-button {
    min-height: 38px;
    margin-right: 0.75rem;
    padding: 0.55rem 0.75rem;
    color: var(--white);
    font-weight: 700;
    background: var(--blue);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.field-help,
.required-note,
.optional-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.field-help {
    margin: -0.35rem 0 1.25rem;
}

.required-note {
    margin: -0.75rem 0 1rem;
}

.honeypot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.career-form-status {
    min-height: 1.7em;
    margin: 1rem 0 0;
    color: var(--blue-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

.career-form-status.is-error {
    color: #9b1c1c;
}

.career-success {
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--color-light-blue);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}

.career-success h3 {
    margin-bottom: 0.75rem;
}

.career-success p {
    margin-bottom: 0;
}

.career-form[hidden],
.career-success[hidden] {
    display: none;
}

.career-signoff {
    margin-top: 2rem;
    margin-bottom: 0;
}

.career-signoff strong {
    color: var(--color-primary-navy);
}

.career-details,
.career-inactive {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(11, 31, 59, 0.06);
}

.career-detail + .career-detail {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.career-detail h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.career-detail p {
    margin-bottom: 0.75rem;
}

.career-detail ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.career-detail li + li {
    margin-top: 0.5rem;
}

.career-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.career-badges span {
    padding: 0.35rem 0.7rem;
    color: var(--color-primary-navy);
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--color-light-blue);
    border-radius: 6px;
}

.career-inactive {
    max-width: 760px;
}

.career-inactive h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.career-inactive p {
    margin-bottom: 0;
}

.career-active[hidden],
.career-inactive[hidden],
.career-deadline[hidden],
[data-career-deadline-note][hidden] {
    display: none;
}

.quote-grid {
    align-items: start;
}

.quote-form {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text);
    background: var(--white);
    border-radius: var(--radius);
}

.quote-form input[type="file"] {
    min-width: 0;
    max-width: 100%;
    padding: 0.55rem;
    cursor: pointer;
}

.quote-form input[type="file"]::file-selector-button {
    min-height: 38px;
    margin-right: 0.75rem;
    padding: 0.55rem 0.75rem;
    color: var(--white);
    font-weight: 700;
    background: var(--blue);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.quote-file-help {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.quote-form[hidden],
.quote-success[hidden] {
    display: none;
}

.quote-success {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text);
    background: var(--white);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}

.quote-success p:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--graphite);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--color-light-gray);
    border-radius: 6px;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    outline: 2px solid rgba(0, 210, 255, 0.22);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--blue);
}

.privacy-link {
    color: var(--color-brand-blue);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.15em;
}

.privacy-link:hover {
    color: #005fc7;
}

.privacy-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.site-footer .privacy-link {
    color: var(--color-electric-blue);
}

.site-footer .privacy-link:hover {
    color: var(--color-light-blue);
}

.form-note {
    padding-left: 1rem;
    color: var(--color-light-gray);
    font-size: 0.875rem;
    border-left: 2px solid var(--blue);
}

.form-status {
    min-height: 1.7em;
    margin: 1rem 0 0;
    color: var(--blue-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

.form-status.is-error {
    color: #9b1c1c;
}

.contact-details {
    padding: 0;
    border-top: 1px solid var(--line);
}

.contact-details > div {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-details dt {
    color: var(--text-muted);
}

.contact-details dd {
    color: var(--graphite);
    font-weight: 700;
}

.contact-reveal-button {
    min-height: 44px;
}

.contact-value-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--color-brand-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
    transition: color 180ms ease;
}

.contact-value-link:hover,
.contact-value-link:focus-visible {
    color: var(--color-primary-navy);
}

.site-footer {
    padding: 4rem 0 1.5rem;
    color: var(--color-light-gray);
    background: var(--graphite);
}

.footer-brand-logo img {
    width: auto;
    height: 64px;
    object-fit: contain;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-grid > div:first-child p {
    max-width: 460px;
    margin: 1.25rem 0 0;
}

.footer-grid nav,
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-grid nav a:hover,
.footer-bottom a:hover {
    color: var(--white);
}

.footer-legal {
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .primary-navigation {
        gap: 0.75rem;
    }

    .primary-navigation > a:not(.button) {
        font-size: 0.8rem;
    }

    .primary-navigation .button {
        padding-inline: 0.9rem;
    }
}

@media (max-width: 1100px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: min(calc(100% - 2rem), var(--content-width));
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        max-height: calc(100vh - var(--header-height));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background: var(--graphite);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .primary-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .primary-navigation > a:not(.button) {
        padding: 0.9rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .primary-navigation > a:not(.button)::after {
        display: none;
    }

    .primary-navigation .button {
        margin-top: 1rem;
    }

    .hero-grid,
    .split-layout,
    .smart-home-grid,
    .quote-grid,
    .contact-layout,
    .reviews-layout {
        grid-template-columns: 1fr;
    }

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

    .hero {
        min-height: auto;
    }

    .section-media {
        min-height: 0;
        max-height: 560px;
    }

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

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

    .about-portrait {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1.3fr 0.7fr;
    }

    .footer-legal {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .career-active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100svh - var(--header-height));
        background-image:
            linear-gradient(180deg, rgba(5, 18, 39, 0.97) 0%, rgba(5, 18, 39, 0.91) 48%, rgba(5, 18, 39, 0.72) 72%, rgba(5, 18, 39, 0.5) 100%),
            url("images/hero/hero-mobile.png");
        background-position: center, right bottom;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.5rem), var(--content-width));
    }

    .brand-logo img {
        height: 48px;
    }

    .section {
        padding-block: 4rem;
    }

    .hero {
        padding-block: 3.75rem 5.25rem;
    }

    .trust-strip {
        padding-block: 1.75rem;
    }

    .trust-strip .container {
        width: min(calc(100% - 2rem), var(--content-width));
    }

    .hero-grid {
        gap: 2.75rem;
    }

    .hero-content h1 {
        font-size: clamp(2.25rem, 10.5vw, 2.6rem);
        line-height: 1.12;
    }

    .button-group,
    .button-group .button {
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 8px;
    }

    #rolunk {
        padding-top: 4.5rem;
    }

    .trust-grid > div {
        min-height: 112px;
        padding: 1.125rem;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .trust-grid > div:nth-child(even) {
        border-right: 0;
    }

    .trust-grid > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .trust-grid > div::before {
        left: 1.25rem;
        width: 32px;
    }

    .card-grid-three,
    .project-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 300px;
    }

    .gallery-modal-header,
    .gallery-modal-footer {
        padding: 0.75rem;
    }

    .gallery-modal-footer {
        gap: 0.5rem;
    }

    .gallery-control {
        padding-inline: 0.5rem;
        font-size: 0.75rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .section-media {
        aspect-ratio: 4 / 3;
    }

    .quote-form {
        padding: 1.25rem;
    }

    .contact-details > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .footer-legal {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div {
        min-height: 94px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-grid > div:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .trust-grid > div:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Cookie consent */
.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1900;
    padding: 1rem;
    background: rgba(5, 18, 39, 0.98);
    border-top: 1px solid rgba(0, 210, 255, 0.35);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.cookie-banner-inner {
    width: min(100%, var(--content-width));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-copy {
    max-width: 760px;
    color: var(--color-light-gray);
}

.cookie-banner-copy h2 {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1.25rem;
}

.cookie-banner-copy p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-banner-copy a,
.footer-cookie-settings {
    color: var(--color-electric-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cookie-banner-actions,
.cookie-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cookie-button {
    min-width: 132px;
}

.footer-cookie-settings {
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cookie-dialog {
    width: min(680px, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.cookie-dialog::backdrop {
    background: rgba(5, 18, 39, 0.78);
}

.cookie-dialog-panel {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.cookie-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-dialog-header h2 {
    margin-bottom: 0.75rem;
}

.cookie-dialog-close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    color: var(--color-primary-navy);
    font-size: 1.65rem;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.cookie-preference-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.cookie-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.cookie-preference-required {
    background: var(--light-grey);
    cursor: default;
}

.cookie-preference span {
    display: grid;
    gap: 0.25rem;
}

.cookie-preference strong {
    color: var(--color-primary-navy);
}

.cookie-preference small {
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-preference input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.cookie-dialog-actions {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .cookie-banner-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-actions,
    .cookie-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-banner-actions .button,
    .cookie-dialog-actions .button {
        width: 100%;
    }

    .cookie-preference {
        align-items: flex-start;
    }
}


/* Legal pages */
.legal-page {
    max-width: 900px;
}

.legal-page > h1 {
    margin-bottom: 0.75rem;
}

.legal-section {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.legal-section h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-details {
    margin: 1.25rem 0 0;
    border-top: 1px solid var(--line);
}

.legal-details > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.legal-details dt {
    color: var(--text-muted);
    font-weight: 600;
}

.legal-details dd {
    color: var(--graphite);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.legal-notice {
    padding: 1.5rem;
    background: var(--light-grey);
    border: 1px solid var(--color-light-blue);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}

.legal-notice .legal-details {
    margin-bottom: 0;
}

.legal-back {
    margin-top: 3rem;
}

@media (max-width: 640px) {
    .legal-details > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}


/* Cookie dialog secondary action contrast fix */
.cookie-dialog-actions .button-secondary {
    color: var(--color-brand-blue);
    background: var(--white);
    border-color: var(--color-brand-blue);
}

.cookie-dialog-actions .button-secondary:hover,
.cookie-dialog-actions .button-secondary:focus-visible {
    color: var(--white);
    background: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
}
