@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/*
Public website: home, specials and the employment application.

Standalone on purpose. The admin keeps the older component library (main.css /
admin.css); its global form rules would fight the layout here.
*/

:root {
    --navy: #122c64;
    --navy-deep: #0a1a3d;
    --ink: #0b0f1a;
    --yellow: #e8e44a;
    --yellow-soft: rgba(232, 228, 74, 0.45);
    --green: #4cd964;
    --paper: #fbfaf7;
    --paper-line: #e6e3da;
    --text: #23232a;
    --text-muted: #6b6b76;
    --white: #fff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --header-h: 76px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base --- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Poppins, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
fieldset,
legend {
    padding: 0;
    margin: 0;
}

ol,
ul {
    list-style: none;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

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

/* --- Fixed full-page photo ---
   A fixed pseudo-element rather than background-attachment: fixed, which iOS
   ignores. The photo never scrolls, so short or long pages never run out of it. */

body::before,
body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
}

body::before {
    background: #37404a url("../images/burger.jpg") center 70% / cover no-repeat;
}

body::after {
    background:
        linear-gradient(180deg, rgba(8, 12, 24, 0.82) 0%, rgba(8, 12, 24, 0.55) 45%, rgba(8, 12, 24, 0.8) 100%);
}

/* Content pages sit text-heavy cards on the photo, so it's pushed further back */
body.page-content::after {
    background:
        linear-gradient(180deg, rgba(8, 12, 24, 0.9) 0%, rgba(8, 12, 24, 0.72) 50%, rgba(8, 12, 24, 0.9) 100%);
}

/* --- Header --- */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    display: flex;
    gap: 24px;
    align-items: center;
    height: var(--header-h);
    padding: 0 var(--gutter);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(10, 16, 32, 0.82);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-logo {
    flex: 0 0 auto;
    margin-right: auto;
}

.site-logo img {
    width: 150px;
    height: auto;
}

/* "Open 24 Hours" sign with a live-looking dot */
.open-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.open-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.open-dot::after {
    position: absolute;
    inset: 0;
    content: "";
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    from {
        opacity: 0.7;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(3);
    }
}

/* --- Desktop nav: stops on a rail line --- */

.rail {
    --stop-w: 116px;

    position: relative;
    display: flex;
}

/* Stops are evenly spaced, so the track runs from the first dot's centre
   to the last one's: half a stop in from either end */
.rail li {
    width: var(--stop-w);
}

.rail::before {
    position: absolute;
    top: 6px;
    right: calc(var(--stop-w) / 2);
    left: calc(var(--stop-w) / 2);
    height: 2px;
    content: "";
    background: var(--yellow-soft);
}

.rail a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 0 0 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.rail-dot {
    position: relative;
    width: 14px;
    height: 14px;
    background: var(--ink);
    border: 2px solid var(--yellow);
    border-radius: 50%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}

.rail a:hover {
    color: var(--yellow);
}

.rail a:hover .rail-dot {
    background: var(--yellow);
    transform: scale(1.15);
}

/* You are here */
.rail a[aria-current="page"] {
    color: var(--yellow);
}

.rail a[aria-current="page"] .rail-dot {
    background: var(--yellow);
    box-shadow: 0 0 0 5px rgba(232, 228, 74, 0.2), 0 0 18px rgba(232, 228, 74, 0.6);
}

/* --- Mobile menu toggle --- */

.menu-toggle {
    display: none;
    gap: 10px;
    align-items: center;
    height: 44px;
    padding: 0 6px 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--white);
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.menu-toggle-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--yellow);
    border-radius: 50%;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    position: absolute;
    left: 9px;
    width: 14px;
    height: 2px;
    content: "";
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle-icon::before {
    top: 12px;
}

.menu-toggle-icon::after {
    top: 18px;
}

.menu-open .menu-toggle-icon::before,
.menu-open .menu-toggle-icon::after {
    top: 15px;
}

.menu-open .menu-toggle-icon::before {
    transform: rotate(45deg);
}

.menu-open .menu-toggle-icon::after {
    transform: rotate(-45deg);
}

/* --- Mobile menu: a departure board that wipes in from the toggle --- */

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    overflow-y: auto;
    visibility: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 228, 74, 0.12), transparent 45%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, var(--ink) 100%);
    clip-path: circle(0 at calc(100% - 44px) 38px);
    transition: clip-path 0.55s var(--ease), visibility 0s linear 0.55s;
}

.menu-open .site-menu {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 44px) 38px);
    transition: clip-path 0.6s var(--ease), visibility 0s;
}

.menu-open {
    overflow: hidden;
}

.menu-open .site-header {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.menu-heading {
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--yellow);
    text-transform: uppercase;
}

.menu-stops {
    position: relative;
}

/* Vertical track down the left of the stops */
.menu-stops::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 8px;
    width: 2px;
    content: "";
    background: var(--yellow-soft);
}

.menu-stops li {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.menu-open .menu-stops li {
    opacity: 1;
    transform: none;
}

.menu-open .menu-stops li:nth-child(1) {
    transition-delay: 0.15s;
}

.menu-open .menu-stops li:nth-child(2) {
    transition-delay: 0.22s;
}

.menu-open .menu-stops li:nth-child(3) {
    transition-delay: 0.29s;
}

.menu-stops a {
    display: grid;
    grid-template-columns: 18px auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    text-decoration: none;
}

.menu-stops a:focus-visible {
    border-radius: var(--radius-sm);
    outline-width: 2px;
    outline-offset: 2px;
}

.menu-stops .rail-dot {
    width: 18px;
    height: 18px;
    background: var(--navy-deep);
}

.menu-stop-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--yellow);
    font-variant-numeric: tabular-nums;
}

.menu-stop-label {
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.menu-stops a[aria-current="page"] .rail-dot {
    background: var(--yellow);
    box-shadow: 0 0 0 6px rgba(232, 228, 74, 0.2), 0 0 18px rgba(232, 228, 74, 0.6);
}

.menu-stops a[aria-current="page"] .menu-stop-label {
    color: var(--yellow);
}

.menu-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-top: 28px;
    margin-top: auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: transform 0.2s var(--ease), background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.2s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn--yellow {
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 10px 30px rgba(232, 228, 74, 0.25);
}

.btn--yellow:hover {
    box-shadow: 0 14px 34px rgba(232, 228, 74, 0.4);
}

.btn--ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white);
}

.btn--navy {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(18, 44, 100, 0.3);
}

.btn--navy:hover {
    background: #173a85;
}

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

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + clamp(40px, 12vh, 140px)) var(--gutter) 60px;
    text-align: center;
}

.hero-place {
    margin-bottom: 20px;
}

.hero-title {
    max-width: 14ch;
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center;
    margin-top: 24px;
    font-size: clamp(1.15rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--yellow);
}

/* Separator dots between services, dropped when the row wraps on phones */
.hero-services li + li::before {
    margin-right: 18px;
    content: "\2022";
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 40px;
}

/* --- Content pages --- */

.page {
    width: 100%;
    max-width: 1040px;
    padding: calc(var(--header-h) + 48px) var(--gutter) 64px;
    margin: 0 auto;
}

.page-head {
    margin-bottom: 36px;
}

.eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--yellow);
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
}

.page-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.page-lead {
    max-width: 600px;
    margin-top: 14px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
}

/* Paper panels that hold the actual content */
.panel {
    color: var(--text);
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Specials --- */

.specials {
    display: grid;
    gap: 28px;
}

.special {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    overflow: hidden;
}

/* Alternate the photo side so a long list doesn't read as a spreadsheet */
.special:nth-child(even) {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.special:nth-child(even) .special-image {
    order: 2;
}

.special-image {
    position: relative;
    min-height: 280px;
}

.special-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-content {
    padding: clamp(24px, 4vw, 40px);
}

.special-title {
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}

.special-title::after {
    display: block;
    width: 44px;
    height: 4px;
    margin-top: 12px;
    content: "";
    background: var(--yellow);
    border-radius: 2px;
}

.special.special--no-image {
    grid-template-columns: 1fr;
}

.specials-empty {
    padding: 48px 32px;
    text-align: center;
}

.specials-empty p + p {
    margin-top: 8px;
    color: var(--text-muted);
}

.specials-empty .btn {
    margin-top: 24px;
}

/* Staff-authored description markup from the admin editor */

.special-body {
    line-height: 1.7;
}

.special-body > * + * {
    margin-top: 0.9em;
}

.special-body h2,
.special-body h3,
.special-body h4 {
    margin-top: 1.2em;
    line-height: 1.3;
    color: var(--navy);
}

.special-body h2 {
    font-size: 1.35rem;
}

.special-body h3 {
    font-size: 1.15rem;
}

.special-body h4 {
    font-size: 1.05rem;
}

.special-body ul,
.special-body ol {
    padding-left: 1.4em;
}

.special-body ul {
    list-style: disc outside;
}

.special-body ol {
    list-style: decimal outside;
}

.special-body li + li {
    margin-top: 0.3em;
}

.special-body a {
    font-weight: 600;
    color: var(--navy);
}

.special-body blockquote {
    padding-left: 1em;
    font-style: italic;
    border-left: 3px solid var(--yellow);
}

/* --- Employment application --- */

.application {
    overflow: hidden;
}

.form-section {
    min-width: 0;
    padding: clamp(24px, 4vw, 40px);
    border: 0;
}

.form-section + .form-section {
    border-top: 1px solid var(--paper-line);
}

/* A floated legend drops the browser's "sit on the border" placement and lays
   out like any other block */
.form-section-title {
    float: left;
    width: 100%;
    padding: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
}

.form-section-title::before {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink);
    content: attr(data-step);
    background: var(--yellow);
    border-radius: 50%;
}

.form-section-title + * {
    clear: both;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field--wide {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.field-hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid #d9d6cc;
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.field input:hover,
.field textarea:hover {
    border-color: #b9b5a8;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--navy);
    outline: none;
    box-shadow: 0 0 0 4px rgba(18, 44, 100, 0.15);
}

/* Set by the form widget on fields the server rejected */
.field .error-field {
    border-color: #b3261e;
    box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12);
}

.form-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(24px, 4vw, 40px);
    background: #f2f0ea;
    border-top: 1px solid var(--paper-line);
}

.form-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Messages the form widget and the server drop above a form */
.error-message,
.success-message {
    padding: 14px 18px;
    margin: 0 0 24px;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius-sm);
}

.error-message {
    background: #9b2c24;
}

.success-message {
    background: #2b6e2a;
}

.error-list {
    padding-left: 1.2em;
    list-style: disc outside;
}

/* --- Success page --- */

.done {
    max-width: 560px;
    padding: clamp(32px, 6vw, 56px);
    text-align: center;
}

.done-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 50%;
}

.done h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
}

.done p {
    margin-top: 10px;
    color: var(--text-muted);
}

.done .btn {
    margin-top: 28px;
}

/* --- Footer --- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    justify-content: space-between;
    padding: 24px var(--gutter);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* The hero already carries the opening hours */
.page-home .site-header > .open-badge {
    display: none;
}

/* The home hero fills the screen, so its footer would only ever be scrolled to */
.page-home .site-footer {
    display: none;
}

/* --- Responsive --- */

@media (max-width: 860px) {
    .site-nav,
    .site-header > .open-badge {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-logo img {
        width: 130px;
    }
}

@media (min-width: 861px) {
    .site-menu {
        display: none;
    }
}

@media (max-width: 720px) {
    body::before {
        background-position: 22% 70%;
    }

    .special,
    .special:nth-child(even),
    .special--no-image {
        grid-template-columns: 1fr;
    }

    .special:nth-child(even) .special-image {
        order: 0;
    }

    .special-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 360px;
    }

    .hero-services {
        flex-direction: column;
        gap: 2px;
    }

    .hero-services li + li::before {
        content: none;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}
