/* Saltalk Virtual Kitchen static site. Breakpoints: mobile <= 767px, tablet 768-1279px, desktop >= 1280px. */

:root {
    --red: #b90618;
    --red-dark: #5b0b12;
    --text: #212127;
    --text-2: #5f5f6d;
    --text-3: #8d8d9a;
    --line: rgba(0, 0, 0, 0.08);
    --gray: #f7f7f7;
    --pink: #fbf4f4;
    --header-h: 88px;
    --section-gap: 120px;
}

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

html {
    /* Anchors stop a little below the fixed header, whatever its height at this width. */
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-top: var(--header-h);
    font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
    background: #fff;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
}

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

a {
    color: inherit;
}

.lead {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.text-link {
    color: var(--red);
    font-weight: 500;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 30;
    padding: 8px 16px;
    background: #fff;
    color: var(--red);
}

.skip-link:focus {
    top: 8px;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.container--narrow {
    max-width: 824px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid var(--red);
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--red);
    color: #fff;
}

.btn--secondary {
    background: #fff;
    color: var(--red);
}

.btn:hover {
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-row--center {
    justify-content: center;
}

/* ----------------------------------------------------------------- header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header__logo img {
    width: auto;
    height: 40px;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header__link {
    font-weight: 500;
    text-decoration: none;
}

.site-header__link:hover {
    color: var(--red);
}

.btn--header {
    padding: 12px 24px;
}

/* --------------------------------------------------------------- sections */

.section {
    padding: var(--section-gap) 0;
}

.section--gray {
    background: var(--gray);
}

.section--pink {
    background: var(--pink);
}

.section--page {
    padding-top: 72px;
}

.section--page h1 {
    margin-bottom: 24px;
}

.section--page h2 {
    margin: 56px 0 16px;
}

.section--page p + p {
    margin-top: 16px;
}

.section--message {
    text-align: center;
}

.section--message .btn-row {
    margin-top: 40px;
}

.section__title {
    margin-bottom: 48px;
}

.section__title--center {
    text-align: center;
}

.section__intro {
    max-width: 760px;
    margin: -24px auto 56px;
    color: var(--text-2);
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.section__more {
    margin-top: 32px;
    text-align: center;
}

/* ------------------------------------------------------------------- hero */

.hero {
    padding-top: 72px;
}

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

.hero__text {
    flex: 1;
}

.hero__text h1 {
    margin-bottom: 16px;
}

.hero__text .lead {
    margin-bottom: 40px;
}

.hero__img {
    flex: 0 1 658px;
    min-width: 0;
    border-radius: 40px;
    background: #ececec;
}

/* --------------------------------------------------------- who we work with */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.partner-card {
    text-align: center;
}

.partner-card img {
    width: 100%;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #ececec;
}

.partner-card h3 {
    margin-bottom: 4px;
    color: var(--red);
    font-weight: 700;
}

.partner-card__type {
    margin-bottom: 16px;
}

.partner-card__text {
    color: var(--text-2);
}

/* ------------------------------------------------------------ why saltalk */

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 80px;
    margin-bottom: 64px;
}

.stat {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.stat strong {
    display: block;
    color: var(--red);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 96px;
    margin-bottom: 64px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.feature .icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
}

.feature h3 {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------- compare */

.compare {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare th,
.compare td {
    padding: 40px 24px 40px 0;
    border-bottom: 2px solid var(--line);
    vertical-align: top;
}

.compare thead th {
    padding-top: 0;
    padding-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
}

.compare tbody th {
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

.compare__saltalk {
    width: 30%;
    color: var(--red-dark);
}

.compare__restaurant {
    width: 26%;
    color: var(--text-3);
}

.compare__value {
    display: block;
    margin-bottom: 4px;
    font-size: 56px;
    font-weight: 600;
    line-height: 64px;
    white-space: nowrap;
}

.compare__note {
    display: block;
    font-weight: 500;
}

.compare__footnote {
    margin: 24px 0 48px;
    color: var(--text-2);
    text-align: center;
}

/* ----------------------------------------------------------- how it works */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 0;
    list-style: none;
}

.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-2);
}

/* -------------------------------------------------------------- locations */

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

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.location-card__img {
    flex: 0 0 120px;
    width: 120px;
    border-radius: 8px;
    background: #ececec;
}

.location-card__name {
    margin-bottom: 4px;
}

.location-card__address {
    margin: 12px 0 4px;
    color: var(--text-2);
}

.tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--gray);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}

.tag--open {
    background: var(--pink);
    color: var(--red);
}

/* -------------------------------------------------------------------- faq */

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item__q {
    position: relative;
    padding: 20px 40px 20px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    list-style: none;
    cursor: pointer;
}

.faq-item__q::-webkit-details-marker {
    display: none;
}

.faq-item__q::after {
    content: "+";
    position: absolute;
    top: 18px;
    right: 4px;
    color: var(--red);
    font-size: 28px;
    font-weight: 400;
    line-height: 28px;
}

.faq-item[open] .faq-item__q::after {
    content: "\2212";
}

.faq-item__a {
    padding: 0 40px 20px 0;
    color: var(--text-2);
}

.faq-group {
    margin-top: 48px;
}

.section--page .faq-group__title {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 36px;
}

.cta-box {
    margin-top: 72px;
    padding: 48px 32px;
    border-radius: 12px;
    background: var(--pink);
    text-align: center;
}

.section--page .cta-box h2 {
    margin: 0 0 24px;
}

/* ------------------------------------------------------------------- tour */

.tour {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.tour__form {
    flex: 1;
    min-width: 0;
}

.tour__form .section__title {
    margin-bottom: 16px;
}

.tour__lead {
    margin-bottom: 32px;
    color: var(--text-2);
}

.tour__call {
    margin-top: 24px;
}

.tour__img {
    flex: 0 1 542px;
    min-width: 0;
    border-radius: 12px;
    background: #ececec;
}

/* ------------------------------------------------------------------ forms */

.lead-form {
    display: grid;
    gap: 16px;
}

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

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.field__optional {
    color: var(--text-3);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.field textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.field [aria-invalid="true"] {
    border-color: var(--red);
}

.field__error,
.lead-form__error {
    color: var(--red);
    font-size: 14px;
    line-height: 20px;
}

.field__error {
    margin-top: 4px;
}

.lead-form__error {
    padding: 12px 14px;
    border-radius: 6px;
    background: var(--pink);
}

.lead-form__submit {
    justify-self: start;
}

.lead-form__legal {
    color: var(--text-3);
    font-size: 14px;
    line-height: 20px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------ modal */

dialog:not([open]) {
    display: none;
}

.modal {
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: var(--text);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal__box {
    position: relative;
    padding: 32px;
}

.modal__title {
    margin-bottom: 8px;
    font-size: 28px;
}

.modal__lead {
    margin-bottom: 24px;
    color: var(--text-2);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal__close:hover {
    background: var(--gray);
}

/* ---------------------------------------------------------------- contact */

.contact {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    margin-top: 16px;
}

.section--page .contact__label {
    margin: 32px 0 4px;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section--page .contact__label:first-child {
    margin-top: 0;
}

.section--page .contact__form h2 {
    margin: 0 0 24px;
    font-size: 28px;
}

/* ------------------------------------------------------- about and legal */

.check-list {
    display: grid;
    gap: 12px;
    padding-left: 24px;
}

.check-list li::marker {
    color: var(--red);
}

.legal h2 {
    margin: 40px 0 12px;
    font-size: 24px;
    line-height: 32px;
}

.legal__updated {
    color: var(--text-3);
}

.legal a {
    color: var(--red);
}

/* ----------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.site-footer__logo {
    width: auto;
    height: 40px;
    margin-bottom: 16px;
}

.site-footer__brand p {
    max-width: 320px;
    color: var(--text-2);
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-2);
}

.site-footer__heading {
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 600;
}

.site-footer__col a {
    text-decoration: none;
}

.site-footer__col a:hover {
    color: var(--red);
}

.site-footer__bottom {
    padding-top: 24px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 14px;
}

/* ----------------------------------------------------------------- tablet */

@media (max-width: 1279px) {
    :root {
        --header-h: 80px;
        --section-gap: 96px;
    }

    .hero__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__img {
        flex: none;
        width: 100%;
        max-width: 658px;
        margin: 0 auto;
    }

    .card-grid {
        gap: 24px;
    }

    .feature-grid {
        gap: 48px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }

    .compare__value {
        font-size: 44px;
        line-height: 52px;
    }

    .tour__img {
        display: none;
    }

    .contact {
        gap: 40px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 767px) {
    :root {
        --header-h: 48px;
        --section-gap: 64px;
    }

    h1 {
        font-size: 30px;
        font-weight: 600;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .lead,
    .section__intro {
        font-size: 18px;
        line-height: 28px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header__logo img {
        height: 28px;
    }

    .site-header__nav {
        gap: 16px;
    }

    .site-header__link--kitchen {
        display: none;
    }

    .btn--header {
        padding: 8px 14px;
        font-size: 14px;
        line-height: 20px;
    }

    .section--page {
        padding-top: 40px;
    }

    .section--page h2 {
        margin-top: 40px;
    }

    .section__title {
        margin-bottom: 32px;
    }

    .section__intro {
        margin: -16px auto 32px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero .btn-row {
        flex-direction: column;
    }

    .hero__img {
        border-radius: 20px;
    }

    .card-grid,
    .feature-grid,
    .steps,
    .location-list,
    .lead-form__row,
    .contact,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        gap: 40px;
    }

    .feature-grid {
        gap: 32px;
    }

    .stat-row {
        gap: 24px 40px;
        margin-bottom: 40px;
    }

    .stat strong {
        font-size: 36px;
    }

    /* Comparison table: one item per block, the two values side by side with their column names. */
    .compare,
    .compare tbody,
    .compare tr,
    .compare th,
    .compare td {
        display: block;
    }

    .compare thead {
        display: none;
    }

    .compare tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
        padding: 24px 0;
        border-bottom: 2px solid var(--line);
    }

    .compare th,
    .compare td {
        width: auto;
        padding: 0;
        border: 0;
    }

    .compare tbody th {
        grid-column: 1 / -1;
        font-size: 20px;
    }

    .compare td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
        font-weight: 700;
    }

    .compare__value {
        font-size: 32px;
        line-height: 40px;
    }

    .compare__footnote {
        text-align: left;
    }

    .location-card {
        padding: 16px;
    }

    .faq-item__q {
        font-size: 16px;
        line-height: 24px;
    }

    .lead-form__submit {
        justify-self: stretch;
    }

    .cta-box {
        margin-top: 48px;
        padding: 32px 16px;
    }

    .cta-box .btn-row {
        flex-direction: column;
    }

    .modal {
        width: 100vw;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border-radius: 0;
    }

    .modal__box {
        padding: 16px;
    }

    .site-footer__grid {
        gap: 32px;
        padding-top: 48px;
    }
}
