/* Roadie's Got Wood public site.
   Palette and type follow the current brochure: dark orange page,
   maroon titles, orange accents, Arial, phone-first burger menu. */

:root {
    --light-orange: rgb(255, 210, 150);
    --logo-menu-top: 1vh;
    --logo-width: 8vh;
    --burger-width: 2.5vh;
    --menu-font-size: 19px;
    --menu-background: maroon;
    --title-color: maroon;
    /* Every clamp term is rem. A vw middle term stays the same
       physical size when Chrome zooms the page. */
    --title-font-size: clamp(2rem, 3rem, 4rem);
    --title-space-top: 7vh;
    --title-space-bottom: 1vh;
    --home-pics-space: 7vh;
    --img-home-pic-ref: 40vw;
    --text-font-family: Arial, Helvetica, sans-serif;
    --p-about-space: 2vh;
    --about-text-size: clamp(1.15rem, 1.45rem, 1.75rem);
    --services-text-size: clamp(1.1rem, 1.55rem, 2rem);
    --div-services-margin: 2vh 2vw 4vh 2vw;
    --contact-text-size: clamp(1.25rem, 1.45rem, 1.7rem);
    --div-contact-margin: 10vh auto 15vh auto;
    --footer-padding-top: 2vh;
    --footer-item-font-size: clamp(1.15rem, 1.33rem, 1.5rem);
}

html {
    height: 100%;
    color-scheme: light;
    background: darkorange;
}

.preview-strip {
    background: #ffe14a;
    color: black;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0.15rem 0.5rem;
}

body {
    margin: 0;
    min-height: max(100%, 600px);
    background: darkorange;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
}

header {
    position: relative;
    z-index: 20;
    /* No JS: the bar is as tall as the logo, then the menu follows in flow. */
    height: auto;
    padding: calc(var(--logo-menu-top) + max(var(--burger-width), var(--logo-width)) + 0.35rem) 0 0;
}

html.js header {
    height: var(--burger-width);
    padding: 0;
}

#img-logo {
    position: absolute;
    width: var(--logo-width);
    height: var(--logo-width);
    top: var(--logo-menu-top);
    left: 10px;
    margin-top: 0;
}

#burger {
    display: block;
    position: absolute;
    height: var(--burger-width);
    width: calc(var(--burger-width) * 4.2);
    top: var(--logo-menu-top);
    right: 3px;
    margin-right: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    user-select: none;
}

#burger-strips-container {
    width: var(--burger-width);
    height: var(--burger-width);
    float: left;
}

.burger-strip {
    display: block;
    width: calc(var(--burger-width) * 0.8);
    height: 20%;
    margin-top: 10%;
    margin-left: 10%;
    background: darkred;
}

#div-burger-text {
    color: maroon;
    width: fit-content;
    height: 100%;
    font-size: 1.15rem;
    line-height: var(--burger-width);
    text-align: center;
    float: right;
}

#burger:hover .burger-strip,
#burger.is-open:hover .burger-strip {
    background: yellow;
}

#burger:hover #div-burger-text,
#div-burger-text:hover {
    color: yellow;
}

#header:has(#menu:hover) .burger-strip {
    background: rgb(200, 50, 0);
}

#header:has(#menu:hover) #div-burger-text {
    color: rgb(200, 50, 0);
}

#menu {
    position: static;
    z-index: 30;
    margin: 0 0.75rem 0.75rem;
    padding-left: 0;
    width: auto;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    background: transparent;
}

html.js #menu {
    position: absolute;
    top: calc(var(--burger-width) + 4px);
    right: 3px;
    margin: 0;
    width: max-content;
    max-width: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#menu ul {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    background: var(--menu-background);
    border: 1px solid maroon;
}

html.js #menu ul {
    width: max-content;
    max-width: none;
}

#menu li {
    list-style-type: none;
    font-size: var(--menu-font-size);
    color: var(--light-orange);
}

#menu a {
    display: block;
    white-space: normal;
    padding: 0.65rem 1rem;
    min-height: 2.75rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

html.js #menu a {
    white-space: nowrap;
    padding: 10px 30px 10px 10px;
    min-height: 0;
}

#menu li:hover,
#menu a:hover {
    background: var(--light-orange);
    color: maroon;
}

.page {
    display: block;
}

.page-title {
    color: var(--title-color);
    text-align: center;
    font-size: var(--title-font-size);
    margin: 0;
    padding-top: var(--title-space-top);
    padding-bottom: 0;
}

#home-sub-title {
    text-align: center;
    margin: 0;
    padding: 0;
}

.home-sub-title {
    display: inline;
    color: var(--title-color);
    padding: 0;
    margin: 0;
    font-size: calc(var(--title-font-size) * 0.6);
    font-weight: 700;
}

#div-home-pics {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--home-pics-space);
    margin-bottom: var(--home-pics-space);
    margin-left: 1px;
}

#img-production {
    display: block;
    margin: 0 auto 5px auto;
    width: calc(var(--img-home-pic-ref) * 2.2);
}

#img-tall-tree {
    width: calc(var(--img-home-pic-ref) * 0.967);
    aspect-ratio: 4/5;
}

#img-stand {
    width: calc(var(--img-home-pic-ref) * 1.209);
    aspect-ratio: 1;
}

#p-about {
    margin: 5vw;
    margin-top: var(--p-about-space);
    margin-bottom: calc(var(--p-about-space) * 1.2);
    font-size: var(--about-text-size);
    font-family: var(--text-font-family);
}

#about-copy {
    margin: 5vw;
    margin-top: var(--p-about-space);
    margin-bottom: calc(var(--p-about-space) * 1.2);
    font-size: var(--about-text-size);
    font-family: var(--text-font-family);
}

#about-copy h2 {
    display: block;
    margin: 3vh 0;
    padding: 0;
    text-align: left;
    font-weight: 400;
    font-size: calc(var(--about-text-size) * 1.1);
}

#about-copy p {
    margin: 0;
}

#about-copy p + h2 {
    margin-top: calc(3vh + 1.2em);
}

#div-services {
    margin: var(--div-services-margin);
}

.div-services-container {
    display: block;
    padding: 0;
}

.div-services-child {
    display: inline-block;
    width: 49%;
    margin-top: 0;
    padding-top: 0;
    vertical-align: top;
}

#div-services-container2 {
    margin-top: 5vh;
}

h2, h3 {
    text-align: center;
    margin: 2vh 0;
    padding: 0 1vw;
    font-size: var(--services-text-size);
    font-weight: 600;
}

h3 {
    font-size: calc(var(--services-text-size) * 0.9);
}

#div-contact {
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: var(--div-contact-margin);
}

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

#a-email {
    overflow-wrap: anywhere;
}

#a-phone:hover,
#a-email:hover {
    color: darkblue;
}

/* Contact lines stay the old h4 size. The global h2 rule is for services. */
#div-contact h2 {
    margin: 0;
    padding: 1vh 0;
    text-align: left;
    font-size: var(--contact-text-size);
    font-weight: 600;
}

#div-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    width: auto;
    max-width: 100%;
    margin-top: 7vh;
    padding: 0;
}

#div-address {
    display: block;
    width: auto;
}

#div-google-map {
    display: block;
    position: relative;
    width: 16vh;
    min-width: 7.5rem;
    max-width: 10rem;
    aspect-ratio: 1;
    flex: 0 0 auto;
}

#a-google-map {
    display: block;
    height: 100%;
}

#img-google-map {
    display: block;
    position: static;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    border: 3px solid blue;
}

#img-google-map:hover {
    border: 3px solid yellow;
}

#div-gallery {
    margin: 5vh 0 10vh 0;
}

.div-img-gallery {
    height: fit-content;
    margin-bottom: 5vh;
    text-align: center;
}

.img-gallery {
    height: 60vw;
}

.span-img-gallery {
    display: block;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.2rem, 1.48rem, 1.75rem);
    color: maroon;
    padding: 2px 0 3px;
}

footer {
    background: maroon;
    padding-top: var(--footer-padding-top);
    padding-bottom: 35vh;
}

.footer-item {
    display: inline-block;
    width: 32vw;
    text-align: center;
    color: orange;
    font-size: var(--footer-item-font-size);
    text-decoration: none;
    cursor: pointer;
}

.footer-item:hover {
    color: var(--light-orange);
}

#request-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: maroon;
    z-index: 100;
}

#request-bar.htmx-request {
    width: 100%;
}

.img-missing {
    box-sizing: border-box;
    border: 3px dashed maroon;
    background: rgb(255, 210, 150);
    color: maroon;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 0.75rem;
    vertical-align: top;
    overflow: hidden;
}

#img-production.img-missing {
    display: flex;
    aspect-ratio: 4/3;
}

#img-tall-tree.img-missing,
#img-stand.img-missing,
.img-gallery.img-missing {
    display: inline-flex;
}

#img-google-map.img-missing {
    display: flex;
    position: static;
}

.img-missing-label {
    font-weight: 700;
}

.img-missing-file {
    font-size: 0.85rem;
    max-width: 28ch;
}

#burger:focus-visible,
#menu a:focus-visible,
.footer-item:focus-visible,
#a-email:focus-visible,
#a-phone:focus-visible,
#a-google-map:focus-visible {
    outline: 2px solid maroon;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #menu {
        transition: none;
    }
}

@media (min-aspect-ratio: 0.58) {
    :root {
        --burger-width: 2.75vh;
        --title-space-top: 4vh;
        --home-pics-space: 4vh;
        --p-about-space: 6vh;
        --footer-padding-top: 1vh;
    }

    #img-production {
        width: calc(var(--img-home-pic-ref) * 2.23);
    }

    #img-tall-tree {
        width: calc(var(--img-home-pic-ref) * 0.98);
    }

    #img-stand {
        width: calc(var(--img-home-pic-ref) * 1.225);
    }

    #div-gallery {
        margin-top: 10vh;
    }

    .img-gallery {
        height: 55vw;
    }
}

@media (min-aspect-ratio: 0.65) {
    :root {
        --burger-width: 3vh;
        --logo-width: 10vh;
        --title-space-top: 5vh;
        --home-pics-space: 5vh;
    }

    #img-production {
        width: calc(var(--img-home-pic-ref) * 1.8);
    }

    #img-tall-tree {
        width: calc(var(--img-home-pic-ref) * 0.79);
    }

    #img-stand {
        width: calc(var(--img-home-pic-ref) * 0.985);
    }

    .img-gallery {
        height: 50vw;
    }
}

@media (min-aspect-ratio: 0.80) {
    :root {
        --logo-width: 12vh;
        --title-space-top: 11vh;
        --home-pics-space: 14vh;
        --p-about-space: 8vh;
        --div-services-margin: 2vh 2vw 5vh 2vw;
        --div-contact-margin: 10vh auto 15vh 20vw;
    }

    #img-production {
        display: inline;
        width: var(--img-home-pic-ref);
        margin: 0;
        aspect-ratio: 4/3;
    }

    #img-production.img-missing {
        display: inline-flex;
    }

    #img-tall-tree {
        width: calc(var(--img-home-pic-ref) * 0.6);
    }

    #img-stand {
        width: calc(var(--img-home-pic-ref) * 0.75);
    }

    .img-gallery {
        height: 45vw;
    }
}

@media (min-aspect-ratio: 1.05) {
    :root {
        --logo-width: 15vh;
        --title-space-top: 9vh;
        --home-pics-space: 11vh;
    }

    .img-gallery {
        height: 35vw;
    }
}

@media (min-aspect-ratio: 1.5) {
    :root {
        --title-space-top: 5vh;
        --home-pics-space: 5vh;
    }

    .img-gallery {
        height: 30vw;
    }
}

@media (min-aspect-ratio: 2) {
    :root {
        --img-home-pic-ref: 35vw;
        --title-space-top: 3vh;
        --home-pics-space: 5vh;
    }

    .img-gallery {
        height: 25vw;
    }
}

@media (min-aspect-ratio: 2.2) {
    :root {
        --logo-width: 7vw;
        --title-space-top: 2vw;
        --home-pics-space: 2vw;
        --div-services-margin: 1vw 2vw 3vw 2vw;
        --p-about-space: 5vw;
    }

    h2, h3 {
        margin: 1vw 0;
    }
}

/* Booking request. Rem type, light-orange card, maroon labels.
   The cord block is hidden once JS has run, until Firewood is chosen. */
.book-card {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 36rem;
    margin: 1rem auto 2.5rem;
    padding: 1rem 1rem 1.25rem;
    background: #FFD296;
    color: black;
    font-size: 1.125rem;
    line-height: 1.4;
    overflow-wrap: break-word;
}

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

.book-form {
    margin: 0;
}

.book-form fieldset {
    margin: 0.75rem 0 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}

.book-form label,
.book-form legend {
    display: block;
    margin: 1rem 0 0.35rem;
    padding: 0;
    color: maroon;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: left;
}

.book-form label.choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 3rem;
    margin: 0 0 0.85rem;
    color: black;
    font-weight: 400;
}

.book-form .choice input {
    width: 1.5rem;
    height: 1.5rem;
    min-height: 1.5rem;
    margin: 0;
    accent-color: maroon;
}

.book-form input[type="text"],
.book-form input[type="tel"],
.book-form input[type="date"],
.book-form input[type="number"],
.book-form select,
.book-form textarea {
    display: block;
    width: 100%;
    margin: 0 0 0.25rem;
    padding: 0.6rem 0.75rem;
    border: 2px solid maroon;
    border-radius: 0;
    background: white;
    color: black;
    font: inherit;
    font-size: 1.125rem;
    line-height: 1.4;
    min-height: 3rem;
}

.book-form textarea {
    min-height: 6rem;
    resize: vertical;
}

.stepper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin: 0 0 0.35rem;
}

.stepper input {
    margin: 0;
    text-align: center;
}

.step {
    flex: 0 0 auto;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0 0.75rem;
    border: 3px solid maroon;
    background: maroon;
    color: #FFD296;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

html.js #qty-field {
    display: none;
}

html.js #qty-field.is-on {
    display: block;
}

.hint,
.estimate,
.quote-note,
.confirm-note {
    margin: 0.35rem 0 0.75rem;
    color: black;
    font-size: 1.125rem;
}

.quote-note {
    display: none;
}

.quote-note.is-shown,
#book-form:has(#service option:checked:not([value=""]):not([value="Firewood Delivery"])) .quote-note {
    display: block;
}

#book-form:has(#service option:checked:not([value=""]):not([value="Firewood Delivery"])) #qty-field .estimate {
    display: none;
}

.confirm-note {
    margin-top: 1rem;
    font-weight: 700;
}

.error-summary,
.field-error,
.area-stop {
    margin: 0 0 1rem;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border-left: 0.375rem solid maroon;
    background: #FFD296;
    color: black;
    font-size: 1.125rem;
}

.error-summary h2 {
    margin: 0 0 0.5rem;
    padding: 0;
    color: maroon;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
}

.error-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.error-summary a,
.area-stop a,
.book-phone {
    color: black;
}

.area-stop {
    display: none;
}

.area-stop.is-shown,
#book-form:has(#area-elsewhere:checked) .area-stop {
    display: block;
}

.book-phone {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.book-form .send,
a.book-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 32rem;
    min-height: 3rem;
    margin: 1rem auto 0;
    padding: 0.6rem 1rem;
    border: 3px solid maroon;
    background: maroon;
    color: #FFD296;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.book-form .send {
    max-width: none;
}

.book-cta-wrap {
    margin: 1.5rem 0 0;
    text-align: center;
}

.book-form .send:hover,
.book-form .step:hover,
a.book-cta:hover {
    background: #FFD296;
    color: maroon;
}

.book-form :focus-visible,
.book-cta:focus-visible,
.book-phone:focus-visible,
.error-summary a:focus-visible,
.area-stop a:focus-visible {
    outline: 3px solid maroon;
    outline-offset: 2px;
}

#after-area:disabled {
    opacity: 0.55;
}

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