/* Theme Name: Casa Branca Beach Club
Version: 1.1.0
Requires PHP: 7.4
Text Domain: casa-branca
*/
:root {
    --paper: #faf7ef;
    --ink: #343b2e;
    --olive: #596343;
    --clay: #ab6547;
    --sand: #ece4d4
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.6 Arial, sans-serif
}

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

button,
input,
select {
    font: inherit
}

button,
a,
input {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: default;
    opacity: .45
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 4px
}

.wrap {
    width: min(1240px, 90%);
    margin: auto
}

header {
    background: var(--paper);
    border-bottom: 1px solid #ddd5c4
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    gap: 25px
}

.brand {
    font: 29px Georgia, serif;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.2
}

.brand small {
    display: block;
    font: 9px Arial;
    letter-spacing: 4px;
    margin-top: 8px
}

nav {
    display: flex;
    gap: 32px;
    align-items: center
}

nav a {
    font-size: 13px
}

.button,
button.primary {
    border: 1px solid var(--olive);
    padding: 13px 25px;
    background: var(--olive);
    color: white;
    display: inline-block;
    border-radius: 2px
}

.outline {
    background: transparent;
    color: var(--ink)
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 10px;
    font-weight: bold
}

.hero {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
    color: white;
    background: linear-gradient(90deg, #182b29aa, #182b2910), url('https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&w=2000&q=85') center 58%/cover
}

.hero h1 {
    font: normal clamp(55px, 6.8vw, 98px)/1.04 Georgia;
    max-width: 750px;
    margin: 25px 0
}

.hero p {
    max-width: 430px;
    color: #fffbe9
}

.hero .button {
    background: var(--paper);
    color: var(--ink);
    border: 0;
    margin-top: 25px
}

.herofoot {
    position: absolute;
    bottom: 25px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 3px
}

.ribbon {
    text-align: center;
    padding: 24px;
    border-bottom: 1px solid #ddd5c4;
    letter-spacing: 3px;
    font-size: 10px
}

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 95px 0;
    align-items: center
}

h2 {
    font: normal clamp(36px, 4vw, 58px)/1.12 Georgia;
    margin: 16px 0 25px
}

.intro p {
    color: #717565
}

.intro img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 180px 180px 0 0
}

.textlink {
    display: inline-block;
    border-bottom: 1px solid;
    padding: 8px 0;
    margin-top: 15px
}

.section {
    padding: 65px 0
}

.section.sand {
    background: var(--sand)
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
    gap: 20px
}

.sectionhead h2 {
    margin-bottom: 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px
}

.card {
    min-width: 0
}

.card img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    background: var(--sand)
}

.card h3 {
    font: normal 25px Georgia;
    margin: 15px 0 8px
}

.card p {
    color: #747566;
    font-size: 13px
}

.cardfoot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px
}

.add {
    border: 1px solid #c6cbb9;
    background: transparent;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 22px
}

.page-title {
    text-align: center;
    padding: 65px 0 30px
}

.page-title h1 {
    font: normal clamp(45px, 6vw, 76px) Georgia;
    margin: 10px 0
}

.page-title p {
    color: #777b6a
}

.tools {
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 5;
    padding: 15px 0;
    border-block: 1px solid #ddd5c4
}

.search {
    width: 100%;
    border: 1px solid #d7d4c6;
    background: #fffdf8;
    padding: 14px 18px;
    margin-bottom: 15px
}

.filters {
    display: flex;
    gap: 9px;
    overflow: auto;
    padding: 3px 0
}

.filters button {
    white-space: nowrap;
    border: 1px solid #d6d7c8;
    border-radius: 30px;
    padding: 9px 18px;
    background: transparent;
    color: var(--ink)
}

.filters button.active {
    background: var(--olive);
    color: white;
    border-color: var(--olive)
}

.menugrid {
    padding: 35px 0 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 25px
}

.menugrid .card {
    background: #fffdf8;
    padding-bottom: 20px;
    border: 1px solid #e8e3d6
}

.menugrid .cardbody {
    padding: 0 20px
}

.note {
    font-size: 12px;
    color: #797b6b
}

.selection {
    position: fixed;
    bottom: 22px;
    right: 25px;
    z-index: 9;
    box-shadow: 0 5px 25px #0002
}

.selection button {
    border: 0;
    background: var(--olive);
    color: white;
    padding: 18px 25px;
    border-radius: 4px
}

dialog {
    border: 0;
    background: var(--paper);
    color: var(--ink);
    width: min(540px, 94vw);
    max-height: 85vh;
    padding: 30px;
    box-shadow: 0 15px 80px #0004
}

dialog::backdrop {
    background: #1f2a2277
}

dialog .close {
    float: right;
    border: 0;
    background: transparent;
    font-size: 25px
}

.cartrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #ddd
}

.cartrow button {
    background: transparent;
    border: 1px solid #bbb;
    padding: 4px 12px
}

.total {
    font: 25px Georgia;
    display: flex;
    justify-content: space-between;
    margin: 25px 0
}

.empty {
    padding: 45px;
    text-align: center;
    grid-column: 1/-1
}

.story {
    max-width: 760px;
    margin: 60px auto;
    padding: 0 20px
}

.story p {
    font-size: 18px;
    line-height: 1.9
}

footer {
    padding: 60px 0 30px;
    background: #e9e3d5
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 30px
}

footer small {
    font-size: 11px
}

.footerbottom {
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #cecaba;
    font-size: 11px
}

#status {
    font-size: 12px;
    min-height: 22px
}

.skip {
    position: absolute;
    left: -9999px
}

.skip:focus {
    left: 20px;
    top: 10px;
    z-index: 100;
    background: white;
    padding: 12px
}

@media(max-width:760px) {
    header .wrap {
        min-height: 100px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 17px;
        padding: 20px 0
    }

    nav {
        gap: 22px
    }

    nav .button {
        padding: 8px 14px
    }

    .brand {
        font-size: 25px
    }

    .hero {
        min-height: 560px
    }

    .hero h1 {
        font-size: 58px
    }

    .herofoot {
        font-size: 8px
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0
    }

    .intro img {
        height: 330px
    }

    .grid,
    .menugrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 14px
    }

    .card h3 {
        font-size: 21px
    }

    .cardfoot {
        font-size: 13px
    }

    .menugrid .cardbody {
        padding: 0 12px
    }

    .sectionhead {
        align-items: start;
        flex-direction: column
    }

    .section {
        padding: 45px 0
    }

    footer .wrap {
        flex-direction: column
    }

    .selection {
        right: 15px;
        bottom: 15px
    }

    .page-title {
        padding: 40px 0 20px
    }
}

@media(max-width:390px) {
    .menugrid {
        grid-template-columns: 1fr
    }
}

/* Centered company logo and return-to-top control */
header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    min-height: 160px;
    gap: 20px
}

header .brand {
    justify-self: start;
    font-size: 25px
}

header nav {
    justify-self: end;
    gap: 24px
}

.header-logo {
    display: block;
    width: 180px;
    height: 160px;
    overflow: hidden;
    position: relative
}

.header-logo img {
    display: block;
    position: absolute;
    width: 180px;
    height: 180px;
    max-width: none;
    top: -10px;
    left: 0;
    object-fit: contain
}

.back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 8;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #c8c3b5;
    background: var(--paper);
    color: var(--olive);
    box-shadow: 0 4px 18px #0002;
    font-size: 26px;
    line-height: 1
}

.back-to-top[hidden] {
    display: none
}

.back-to-top:hover {
    background: var(--olive);
    color: white
}

@media(max-width:1000px) {
    header .brand {
        font-size: 20px
    }

    header nav {
        gap: 15px
    }

    header nav .button {
        padding: 10px 14px
    }
}

@media(max-width:760px) {
    header .wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 20px
    }

    header .brand {
        display: none
    }

    .header-logo {
        justify-self: center;
        width: 180px;
        height: 145px
    }

    .header-logo img {
        top: -15px
    }

    header nav {
        justify-self: center;
        gap: 24px
    }

    .back-to-top {
        left: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px
    }
}

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