@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Staatliches&display=swap");

:root {
    --bg: #f6f2ee;
    --paper: #fcfcfc;
    --ink: #131313;
    --brand: #703420;
    --space: 48px;
    --round: 16px;
    --rounder: 888px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --tint: rgba(0, 0, 0, 0.5);
    --gutter: clamp(12px, 2vw, 24px);
    --wrapper: min(1200px, 94vw);
    --fade: all 0.2s ease;
}

::selection {
    background: var(--brand);
    color: var(--paper);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font:
        18px/1.5 "Hanken Grotesk",
        sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--fade);
    text-underline-offset: 8px;
}

/*a[href]:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}*/

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-family: "Staatliches", sans-serif;
    font-size: clamp(56px, 10vw, 96px);
    line-height: 1;
}

h2 {
    font-size: clamp(22px, 3.2vw, 32px);
    margin-bottom: 10px;
}

fieldset {
    border: none;
    padding: 0;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 84px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--round) var(--round);
    color: var(--ink);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(10px, 3vw, 26px);
    box-shadow: var(--shadow);
    overflow: visible;
    z-index: 8;
}

header > a {
    display: inline-flex;
    align-items: center;
}

header > a img {
    height: 120px;
    transform: translateY(44px);
}

header > nav[aria-label="primary"] {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

header nav[aria-label="primary"] > label[for="nav-toggle"] {
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--tint);
    border-radius: var(--rounder);
    cursor: pointer;
    user-select: none;
}

header nav[aria-label="primary"] > label[for="nav-toggle"] a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

header nav[aria-label="primary"] ul {
    margin: 0;
    padding: 10px;
    display: none;
    gap: 12px;
    list-style: none;
}

#nav-toggle:checked + label + ul {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    min-width: min(92vw, 520px);
    display: grid;
    background: var(--paper);
    border-radius: var(--round);
    box-shadow: var(--shadow);
}

header nav[aria-label="primary"] ul > li {
    position: relative;
}

header nav[aria-label="primary"] ul > li > a,
header nav[aria-label="primary"] ul > li > label {
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

header nav[aria-label="primary"] ul > li > a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

header nav[aria-label="primary"] ul > li > ul {
    margin: 6px 0 0 14px;
    padding: 10px;
    display: none;
    gap: 12px;
    background: var(--paper);
    border-radius: 12px;
    box-shadow: var(--shadow);
    list-style: none;
}

header > nav[aria-label="cta"] {
    display: none;
}

header nav[aria-label="cta"] a[href$="#contact"],
header nav[aria-label="cta"] a[href^="tel:"] {
    padding: 10px 16px;
    display: inline-block;
    border: 1px solid var(--tint);
    border-radius: var(--rounder);
    font-weight: 600;
    text-decoration: none;
    transition: var(--fade);
}

header nav[aria-label="cta"] a:first-of-type {
    background: #fff;
    color: #000;
}

header nav[aria-label="cta"] a:last-of-type {
    background: #111;
    color: #fff;
}

#nav-toggle:checked + label + ul > li > input[type="checkbox"]:checked ~ ul {
    display: grid;
}

section[aria-label="hero"] {
    padding: 32px;
    min-height: 100vh;
    background: var(--bg);
    display: grid;
    align-content: end;
    gap: 12px;
}

section[aria-label="hero"] h1,
section[aria-label="hero"] p {
    color: var(--paper);
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
}

section[aria-label="hero"] p {
    margin: 0 0 14px;
    max-width: 60ch;
}

section[aria-label="hero"] nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

section[aria-label="hero"] a {
    padding: 12px 18px;
    border-radius: var(--rounder);
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    border: 1px solid var(--tint);
    text-decoration: none;
    transition: var(--fade);
}

section[aria-label="hero"] a:last-child {
    background: var(--ink);
    color: var(--paper);
}

section[aria-label="hero"] a:hover,
header nav[aria-label="cta"] a:hover {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: var(--paper);
}

section[aria-label="content"] {
    margin: var(--space) auto;
    width: var(--wrapper);
}

/*section[aria-label="content"] div {
    display: inline-block;
    vertical-align: middle;
}

section[aria-label="content"] div:first-of-type {
    width: 70%;
}

section[aria-label="content"] div:last-of-type {
    width: 20%;
    float: right;
    vertical-align: middle;
}

section[aria-label="content"] div img {
    max-width: 300px;
}*/

section[aria-label="content"] p {
    color: var(--ink);
}

section[aria-label="content"] ul {
    padding: 0 12px;
    list-style-type: "» ";
}

section[aria-label="services-grid"] {
    margin: var(--space) auto;
    width: var(--wrapper);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
    align-items: stretch;
}

section[aria-label="services-grid"] > a {
    flex: 1 1 300px;
    display: flex;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tint);
    border-radius: var(--round);
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: var(--fade);
}

section[aria-label="services-grid"] > a:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

section[aria-label="services-grid"] > a > figure {
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
}

section[aria-label="services-grid"] div {
    padding: 16px;
}

section[aria-label="services-grid"] img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

section[aria-label="services-grid"] p {
    margin: 10px 0;
}

section[aria-label="services-grid"] figcaption {
    font-weight: 600;
    margin-top: auto;
}

section[aria-label="services-grid"] ul {
    margin: 0;
    padding: 0 12px;
    list-style-type: "» ";
}

section[aria-label="gallery"] {
    width: var(--wrapper);
    margin: var(--space) auto;
    display: grid;
    gap: 12px;
    position: relative;
}

section[aria-label="gallery"] > div {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90%;
    overflow: hidden;
    gap: 12px;
}

section[aria-label="gallery"] figure {
    margin: 0;
    border-radius: var(--round);
    overflow: hidden;
    border: 1px solid var(--tint);
    background: var(--paper);
}

section[aria-label="gallery"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    cursor: zoom-in;
}

section[aria-label="gallery"] button[aria-label="Previous"],
section[aria-label="gallery"] button[aria-label="Next"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--rounder);
    border: 1px solid var(--tint);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

section[aria-label="gallery"] button[aria-label="Previous"] {
    left: -12px;
}

section[aria-label="gallery"] button[aria-label="Next"] {
    right: -12px;
}

dialog[aria-label="lightbox"] {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: transparent;
    border: none;
}

dialog[aria-label="lightbox"]::backdrop {
    background: var(--tint);
}

dialog[aria-label="lightbox"] figure {
    margin: 0;
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
}
dialog[aria-label="lightbox"] img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: block;
}
dialog[aria-label="lightbox"] button[aria-label="Close"],
dialog[aria-label="lightbox"] button[aria-label="Previous"],
dialog[aria-label="lightbox"] button[aria-label="Next"] {
    position: fixed;
    width: 44px;
    height: 44px;
    border-radius: var(--rounder);
    border: 1px solid var(--tint);
    background: var(--tint);
    color: var(--paper);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 888;
}
dialog[aria-label="lightbox"] button[aria-label="Close"] {
    top: 16px;
    right: 18px;
    font-size: 20px;
}
dialog[aria-label="lightbox"] button[aria-label="Previous"] {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}
dialog[aria-label="lightbox"] button[aria-label="Next"] {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

section[aria-label="reviews-carousel"] {
    width: var(--wrapper);
    margin: var(--space) auto;
    display: grid;
    gap: 12px;
    position: relative;
}

section[aria-label="reviews-carousel"] > div {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90%;
    overflow: hidden;
    gap: 12px;
}

section[aria-label="reviews-carousel"] article {
    padding: 18px;
    background: var(--paper);
    border-radius: var(--round);
    border: 1px solid var(--tint);
}

section[aria-label="reviews-carousel"] h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

section[aria-label="reviews-carousel"] time {
    font-size: 12px;
    color: var(--ink);
}

section[aria-label="reviews-carousel"] .stars {
    color: #ffe000;
    letter-spacing: 1px;
}

section[aria-label="reviews-carousel"] button[aria-label="Previous"],
section[aria-label="reviews-carousel"] button[aria-label="Next"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--rounder);
    border: 1px solid var(--tint);
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    cursor: pointer;
}

section[aria-label="reviews-carousel"] button[aria-label="Previous"] {
    left: -12px;
}

section[aria-label="reviews-carousel"] button[aria-label="Next"] {
    right: -12px;
}

section[aria-label="contact"] {
    padding-top: var(--space);
    width: 100%;
    background: var(--paper);
    border-top: 1px solid var(--tint);
}

section[aria-label="contact"] article {
    margin: 0 auto;
    width: var(--wrapper);
}

section[aria-label="contact"] div {
    margin: 0 auto;
    padding: var(--space) 0;
    width: var(--wrapper);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--gutter);
}

section[aria-label="contact"] div form {
    max-width: 700px;
    display: grid;
    gap: 12px;
    flex: 1;
}

section[aria-label="contact"] div > aside {
    margin-top: 34px;
    display: grid;
    align-content: start;
    gap: 12px;
    flex: 1;
}

section[aria-label="contact"] div > aside > section {
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--tint);
    border-radius: var(--round);
    box-shadow: var(--shadow);
}

section[aria-label="contact"] div > aside h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

section[aria-label="contact"] div > aside p,
section[aria-label="contact"] div > aside a {
    color: var(--ink);
    text-decoration: none;
}

section[aria-label="contact"] div form fieldset label {
    display: grid;
    gap: 12px;
}

section[aria-label="contact"] div form fieldset input,
section[aria-label="contact"] div form fieldset textarea {
    padding: 10px;
    width: 100%;
    background: var(--paper);
    border-radius: var(--round);
    border: 1px solid var(--tint);
    box-shadow: var(--shadow);
    font: inherit;
    color: var(--ink);
}

section[aria-label="contact"] div form fieldset textarea {
    min-height: 140px;
    resize: vertical;
}

section[aria-label="contact"] div form fieldset input:focus-visible,
section[aria-label="contact"] div form fieldset textarea:focus-visible {
    outline: 2px solid var(--tint);
    outline-offset: 2px;
}

section[aria-label="contact"] div form fieldset button[type="submit"] {
    padding: 10px 16px;
    background: var(--paper);
    border: 1px solid var(--tint);
    border-radius: var(--rounder);
    font:
        16px/1.45 "Hanken Grotesk",
        sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    transition: var(--fade);
}

section[aria-label="contact"] div form fieldset button[type="submit"]:hover {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: var(--paper);
}

footer {
    background: var(--bg);
    border-top: 1px solid var(--tint);
}

footer > section {
    margin: 0 auto;
    padding: var(--space) 0;
    width: var(--wrapper);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--gutter);
}

footer img {
    height: 80px;
}

footer h4 {
    margin: 0 0 6px;
}

footer p,
footer a,
footer address {
    font-style: normal;
    color: var(--ink);
}

footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

footer nav ul {
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

footer small {
    padding: 20px;
    display: block;
    border-top: 1px solid var(--tint);
    text-align: center;
    color: var(--ink);
}

@media (max-width: 800px) {
    footer > section {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    header > nav[aria-label="primary"] {
        justify-content: center;
    }

    header nav[aria-label="primary"] > label[for="nav-toggle"] {
        display: none;
    }

    header nav[aria-label="primary"] ul {
        padding: 0;
        position: static;
        background: transparent;
        box-shadow: none;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    header nav[aria-label="primary"] ul > li > ul {
        margin: 0;
        padding: 10px;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 220px;
        background: var(--paper);
        border-radius: var(--round);
        box-shadow: var(--shadow);
        display: none;
        gap: 12px;
    }

    header nav[aria-label="primary"] ul > li:hover > ul {
        display: grid;
    }

    header > nav[aria-label="cta"] {
        display: inline-flex;
        gap: 12px;
    }

    header nav[aria-label="primary"] ul a[data-cta] {
        display: none;
    }

    header nav[aria-label="primary"] ul > li > input[type="checkbox"] {
        display: none;
    }

    section[aria-label="contact"] div {
        flex-direction: row;
    }

    section[aria-label="gallery"] > div {
        grid-auto-columns: 32%;
    }

    section[aria-label="reviews-carousel"] > div {
        grid-auto-columns: 32%;
    }
}

@media (max-width: 1200px) {
    /*section[aria-label="content"] div {
        display: block;
    }

    section[aria-label="content"] div:first-of-type {
        width: auto;
    }

    section[aria-label="content"] div:last-of-type {
        margin-top: var(--space);
        width: auto;
        float: none;
    }*/

    section[aria-label="contact"] div form {
        max-width: 100%;
    }
}
