:root {
    --ink: #17212d;
    --muted: #626a74;
    --line: #e7e1da;
    --soft: #f7f4f0;
    --paper: #ffffff;
    --warm: #a56436;
    --warm-dark: #7a4424;
    --night: #101c28;
    --night-2: #162434;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    min-height: 118px;
    padding: 24px clamp(36px, 6vw, 78px);
    background: #fff;
    box-shadow: 0 8px 28px rgba(23, 33, 45, 0.05);
}

.brand {
    display: inline-flex;
}

.brand-logo {
    display: block;
    width: min(345px, 43vw);
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: clamp(20px, 3vw, 44px);
    color: #202a36;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    padding: 12px 0;
    text-decoration: none;
}

.site-nav a.active::after,
.site-nav a:hover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 3px;
    background: var(--warm);
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.quote-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.quote-button {
    color: #fff;
    background: var(--warm);
    box-shadow: 0 14px 30px rgba(165, 100, 54, 0.28);
}

.utility-menu {
    position: relative;
}

.menu-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(16, 28, 40, 0.18);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--night);
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
    border-color: var(--warm);
}

.utility-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    min-width: 168px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(23, 33, 45, 0.14);
}

.utility-menu-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--night);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.utility-menu-panel a:hover {
    background: var(--soft);
}

.button.dark {
    border: 1px solid var(--night);
    color: #fff;
    background: var(--night);
}

.button.outline {
    border: 1px solid var(--warm);
    color: var(--warm-dark);
    background: #fff;
}

.button.warm {
    border: 1px solid var(--warm);
    color: #fff;
    background: var(--warm);
}

.button.outline-light {
    border: 1px solid rgba(255, 255, 255, 0.68);
    color: #fff;
    background: transparent;
}

.hero {
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
    min-height: 585px;
    overflow: hidden;
    background: #fff;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(52px, 7vw, 96px) clamp(36px, 6vw, 78px);
}

.hero h1 {
    margin: 0 0 26px;
    font-size: clamp(54px, 6vw, 86px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1 span {
    color: #795033;
}

.hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(19px, 1.7vw, 24px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 42px;
}

.hero-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 585px;
    transform: skewX(-16deg);
    transform-origin: bottom left;
    margin-right: -120px;
    border-left: 6px solid #fff;
}

.media-panel {
    min-height: 100%;
    transform: skewX(16deg) scale(1.16);
    background-position: center;
    background-size: cover;
}

.software-photo {
    background-image:
        linear-gradient(rgba(16, 28, 40, 0.2), rgba(16, 28, 40, 0.2)),
        url("hero-software.png");
}

.wood-photo {
    border-left: 6px solid #fff;
    background-image:
        linear-gradient(rgba(58, 28, 12, 0.05), rgba(58, 28, 12, 0.05)),
        url("hero-woodwork.png");
}

.split-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 64px clamp(42px, 8vw, 132px);
    border-top: 1px solid var(--line);
    background: #fff;
}

.split-services article {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 28px;
    min-height: 210px;
    align-items: start;
    padding: 10px clamp(30px, 5vw, 68px);
}

.split-services article + article {
    border-left: 1px solid var(--line);
}

.round-icon,
.solution-icon,
.quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 50%;
    font-weight: 900;
}

.round-icon {
    width: 86px;
    height: 86px;
    font-size: 30px;
}

.code-icon {
    color: #fff;
    background: radial-gradient(circle at 30% 25%, #223241, var(--night));
    box-shadow: 0 18px 34px rgba(16, 28, 40, 0.22);
}

.wood-icon {
    color: #fff;
    background: radial-gradient(circle at 30% 25%, #bd7b45, var(--warm-dark));
    font-size: 42px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--warm-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

h2,
h3,
p {
    margin-top: 0;
}

.split-services h2 {
    max-width: 390px;
    margin-bottom: 14px;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.06;
}

.split-services p:not(.eyebrow) {
    max-width: 410px;
    color: var(--muted);
}

.split-services a {
    display: inline-flex;
    gap: 10px;
    margin-top: 18px;
    color: var(--warm-dark);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.solutions {
    padding: 68px clamp(42px, 8vw, 132px) 78px;
    background: #faf8f5;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
}

.section-heading p {
    margin-bottom: 52px;
    color: var(--muted);
    font-size: 17px;
}

.section-heading h2::after,
.craft-band h2::after {
    content: "";
    display: block;
    width: 62px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--warm);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px;
    margin-bottom: 52px;
}

.solution-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    color: var(--night);
    background: #f0ece7;
    font-size: 42px;
}

.solution-grid h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.solution-grid p {
    max-width: 240px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

.center-button {
    margin: 0 auto;
}

.craft-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 58px;
    align-items: center;
    padding: 58px clamp(42px, 14vw, 220px);
    background: #fff;
}

.craft-band > div:first-child {
    padding-right: 58px;
    border-right: 1px solid var(--line);
}

.craft-band h2 {
    max-width: 470px;
    margin-bottom: 20px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.08;
}

.craft-band h2::after {
    margin-right: auto;
    margin-left: 0;
}

.craft-band p {
    max-width: 560px;
    color: var(--muted);
}

.logo-showcase {
    display: flex;
    justify-content: center;
}

.logo-showcase img {
    width: min(410px, 100%);
}

.quote-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 34px clamp(42px, 9vw, 152px);
    color: #fff;
    background: linear-gradient(135deg, #0d1a26, #142536);
}

.quote-icon {
    width: 78px;
    height: 78px;
    border: 2px solid var(--warm);
    color: #fff;
    font-size: 30px;
}

.quote-strip h2 {
    margin: 0 0 3px;
    font-size: 30px;
}

.quote-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
}

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.contact-form-section {
    padding: 46px clamp(42px, 9vw, 152px);
    background: #f7f4f0;
}

.contact-form-section:not([hidden]) {
    display: block;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    padding: 26px;
    border: 1px solid var(--line);
    background: #fff;
}

.contact-form label {
    display: grid;
    gap: 7px;
}

.contact-form label:nth-child(4),
.contact-form .form-status {
    grid-column: 1 / -1;
}

.contact-form span {
    color: var(--warm-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d6c8b8;
    border-radius: 3px;
    padding: 12px;
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.form-status {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

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

.form-status.success {
    color: var(--warm-dark);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, 0.6fr));
    gap: 48px;
    padding: 54px clamp(42px, 9vw, 152px) 42px;
    color: rgba(255, 255, 255, 0.78);
    background: radial-gradient(circle at top left, #1b3044, #0e1924 58%);
}

.footer-brand img {
    width: min(270px, 100%);
    padding: 10px;
    background: #fff;
}

.site-footer h3 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    text-decoration: none;
}

.copyright {
    grid-column: 1 / -1;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 1120px) {
    .site-header,
    .hero,
    .split-services,
    .craft-band,
    .quote-strip,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .quote-button {
        width: fit-content;
    }

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        min-height: 420px;
        margin: 0;
    }

    .split-services article + article,
    .craft-band > div:first-child {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }

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

    .quote-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .site-header,
    .hero-copy,
    .split-services,
    .solutions,
    .craft-band,
    .quote-strip,
    .contact-form-section,
    .site-footer {
        padding-right: 22px;
        padding-left: 22px;
    }

    .brand-logo {
        width: min(290px, 86vw);
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-media,
    .solution-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .hero-media {
        transform: none;
        border-left: 0;
    }

    .media-panel {
        min-height: 260px;
        transform: none;
    }

    .wood-photo {
        border-left: 0;
        border-top: 6px solid #fff;
    }

    .split-services article {
        grid-template-columns: 1fr;
        padding: 22px 0;
    }
}
