/* site.css - the intro page (qrya.es/). Same look as the old HTML5 UP "Spectral" page:
   a dark photo banner, then teal, slate and purple bands with uppercase headings.
   Mobile first; no JavaScript. Brand colours match base.css. */

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-800.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

:root {
    --site-slate: #2e3842;
    --site-slate-dark: #242c34;
    --site-teal: #21b2a6;
    --site-purple: #505393;
    --site-white: #ffffff;
    --site-text-light: rgba(255, 255, 255, 0.85);
    --site-text-dark: #4e5a66;
    --site-line-light: rgba(255, 255, 255, 0.3);
    --site-gap: 1.25rem;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body.site {
    margin: 0;
    background: var(--site-slate);
    color: var(--site-text-light);
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

.site h1,
.site h2,
.site h3 {
    margin: 0 0 1rem;
    color: var(--site-white);
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.site h2 {
    font-size: 1.25rem;
}

.site h3 {
    font-size: 0.9375rem;
    letter-spacing: 0.15em;
}

.site a {
    color: inherit;
}

/* ---------- Header: logo, languages, log in ---------- */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem var(--site-gap);
}

.site-header-logo img {
    display: block;
    height: 40px;
    width: auto;
}

.site-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
}

.site-header-link {
    font-weight: 600;
    text-decoration: none;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-switcher a,
.lang-switcher-current {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.6rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.lang-switcher-current {
    background: rgba(255, 255, 255, 0.15);
    color: var(--site-white);
}

/* Languages as names, or as codes (ES EN) on phones so the header stays on one line */
.lang-code {
    display: none;
}

@media (max-width: 599px) {
    .lang-switcher .lang-name {
        display: none;
    }

    .lang-switcher .lang-code {
        display: inline;
    }
}

/* Narrow phones: no "Create account" in the header - the big "Create my free menu" button is just below */
@media (max-width: 459px) {
    .site-header-nav .site-header-signup {
        display: none;
    }
}

/* ---------- Buttons ---------- */

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.75rem;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-button-primary {
    border-color: var(--site-teal);
    background: var(--site-teal);
    color: var(--site-white) !important;
}

.site-button-primary:hover {
    background: #26c5b8;
}

.site-button-small {
    min-height: 40px;
    padding: 0 1rem;
    letter-spacing: 0.1em;
}

.site-button-wide {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
}

/* ---------- Banner: full screen photo, darkened ---------- */

.site-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem var(--site-gap) 5rem;
    background:
        linear-gradient(rgba(46, 56, 66, 0.82), rgba(46, 56, 66, 0.82)),
        url("../images/site/banner.jpg") center / cover;
    text-align: center;
}

.site-banner-inner {
    max-width: 40rem;
}

.site-banner-logo {
    display: block;
    width: 200px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 1.5rem;
}

/* The banner title between two lines, as on the old page */
.site-banner h1 {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.6rem 0;
    border-top: 2px solid var(--site-white);
    border-bottom: 2px solid var(--site-white);
    font-size: 1.375rem;
}

.site-banner p {
    margin: 0 0 0.5rem;
}

.site-banner .site-button {
    margin-top: 1.5rem;
}

.site-banner-more {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 1.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

/* the little arrow under "Learn more" */
.site-banner-more::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
}

/* ---------- Coloured bands ---------- */

.site-section {
    padding: 4rem var(--site-gap);
    text-align: center;
}

.site-inner {
    max-width: 60rem;
    margin: 0 auto;
}

.site-lead {
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.site-teal {
    background: var(--site-teal);
    color: var(--site-white);
}

.site-purple {
    background: var(--site-purple);
}

.site-white {
    background: var(--site-white);
    color: var(--site-text-dark);
}

.site-white h2 {
    color: var(--site-slate);
}

.site-icon {
    width: 2.25rem;
    height: 2.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* "You're in control": three big icons in outlined diamonds */
.site-big-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-big-icons li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

.site-big-icons .site-icon {
    box-sizing: content-box;
    padding: 1.4rem;
    border: 2px solid var(--site-white);
    border-radius: 6px;
    transform: rotate(45deg);
}

.site-big-icons .site-icon * {
    transform: rotate(-45deg);
    transform-origin: 12px 12px;
}

/* ---------- Spotlights: photo + text, alternating on wide screens ---------- */

.site-spotlights {
    background: var(--site-slate);
}

.site-spotlight {
    display: flex;
    flex-direction: column;
}

.site-spotlight img {
    display: block;
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.site-spotlight-text {
    padding: 2.5rem var(--site-gap);
}

.site-spotlight:nth-child(2) {
    background: var(--site-slate-dark);
}

/* ---------- Steps: five small features ---------- */

.site-steps {
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.site-steps li {
    position: relative;
    padding-left: 4rem;
}

.site-steps .site-icon {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: content-box;
    padding: 0.6rem;
    border: 2px solid var(--site-line-light);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
}

.site-steps p {
    margin: 0;
}

.site-cta {
    max-width: 30rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 2.5rem var(--site-gap);
    background: var(--site-slate-dark);
    font-size: 0.8125rem;
    text-align: center;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- Larger screens ---------- */

@media (min-width: 48rem) {
    :root {
        --site-gap: 2.5rem;
    }

    .site h2 {
        font-size: 1.5rem;
    }

    .site-banner h1 {
        font-size: 2rem;
    }

    .site-spotlight {
        flex-direction: row;
        align-items: stretch;
    }

    .site-spotlight:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* the slanted photo edge of the old page */
    .site-spotlight img {
        width: 40%;
        height: auto;
        min-height: 20rem;
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    }

    .site-spotlight:nth-child(even) img {
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    }

    .site-spotlight-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 60%;
        padding: 3rem 4rem;
    }

    .site-steps {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 4rem;
    }
}
