@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

@theme {
    --font-sans: 'Barlow', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Anton', ui-sans-serif, system-ui, sans-serif;

    --color-brand-yellow: #f5c918;
    --color-brand-red: #d60910;
    --color-ink: #14150f;
    --color-white: #ffffff;
    --color-band-grey: #f4f4f1;
    --color-hero-grey: #3a3a3a;
    --color-border: #e2e2dd;
    --color-input-border: #949490;
    --color-muted: #56574f;

    --color-status-success: #1f7a3d;
    --color-status-success-bg: #e6f4ea;
    --color-status-warning: #8a5a00;
    --color-status-warning-bg: #fbf1dd;
    --color-status-danger: #d60910;
    --color-status-danger-bg: #fdeaea;
    --color-status-info: #15607a;
    --color-status-info-bg: #e4f2f7;

    --color-muted-border: #b2b4a9;

    --radius-input: 4px;
    --radius-button: 8px;
    --radius-card: 8px;
    --radius-card-lg: 14px;
    --radius-pill: 999px;

    --text-display-1: 64px;
    --text-display-2: 48px;
    --text-display-3: 36px;
    --text-display-4: 28px;
}

@layer base {
    body {
        font-family: var(--font-sans);
        color: var(--color-ink);
        background: var(--color-white);
        font-size: 16px;
        line-height: 25px;
    }

    h1, h2, h3, h4,
    .font-display {
        font-family: var(--font-display);
        text-transform: uppercase;
        letter-spacing: 0.01em;
        line-height: 1.05;
    }
}

@layer components {
.label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.section-rule {
    display: block;
    width: 200px;
    height: 4px;
    background: var(--color-brand-yellow);
    margin-top: 8px;
}

.section-rule--sm {
    width: 160px;
}

.section-rule--xs {
    width: 64px;
}

@media (max-width: 767px) {
    .section-rule {
        width: 120px;
    }

    .section-rule--sm {
        width: 120px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: var(--radius-button);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-brand-yellow);
    color: var(--color-ink);
}

.btn-primary:hover {
    background: #e0b70e;
}

.btn-dark {
    background: var(--color-ink);
    color: var(--color-white);
}

.btn-dark:hover {
    background: #000000;
}

.btn-outline {
    background: transparent;
    color: var(--color-ink);
    border: 2px solid var(--color-ink);
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

.input,
.textarea,
.select {
    border: 2px solid var(--color-input-border);
    border-radius: var(--radius-input);
    padding: 10px 12px;
    min-height: 44px;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
}

.notice-strip {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.notice-strip__badge {
    flex-shrink: 0;
    background: var(--color-white);
    color: var(--color-brand-red);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 16px;
}

.notice-strip__viewport {
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 auto;
}

.notice-strip__track {
    display: inline-flex;
    animation: notice-scroll 30s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .notice-strip__track {
        animation: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@keyframes notice-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.nav-toggle {
    min-width: 44px;
    padding: 8px;
}

.primary-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
    z-index: 20;
}

.primary-nav a {
    padding: 12px 0;
    white-space: nowrap;
}

.primary-nav[data-open="true"] {
    display: flex;
}

header > div:first-child {
    position: relative;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        display: flex;
        flex-direction: row;
        gap: 24px;
        position: static;
        border-bottom: none;
        padding: 0;
    }
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    white-space: nowrap;
}

.primary-nav a.is-active,
.nav-dropdown__trigger.is-active {
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--color-brand-yellow);
}

.nav-dropdown__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 4px 16px;
}

.nav-dropdown__menu[hidden] {
    display: none;
}

.nav-dropdown__menu a {
    padding: 8px 0;
    white-space: nowrap;
}

.nav-dropdown__trigger:focus-visible,
.primary-nav a:focus-visible,
.nav-dropdown__menu a:focus-visible {
    outline: 2px solid var(--color-brand-red);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .nav-dropdown__menu {
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        min-width: 200px;
        margin-top: 8px;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-card);
        padding: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 30;
    }

    .nav-dropdown__menu a {
        padding: 8px 12px;
        border-radius: var(--radius-input);
    }

    .nav-dropdown__menu a:hover,
    .nav-dropdown__menu a:focus-visible {
        background: var(--color-band-grey);
    }
}

.placeholder-block {
    background: var(--color-status-warning-bg);
    color: var(--color-status-warning);
    border: 1px dashed var(--color-status-warning);
    border-radius: var(--radius-card);
    padding: 16px;
    font-size: 14px;
}

/* Left-border colour notice, used for "we deliver here", the alternative-day
   offer, the council permit warning, and the informational dashboard notes. */
.notice {
    border-left: 4px solid;
    border-radius: var(--radius-input);
    padding: 16px;
}

.notice__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.notice__body {
    font-size: 14px;
    line-height: 21px;
    color: var(--color-ink);
    margin-top: 4px;
}

.notice--success {
    background: var(--color-status-success-bg);
    border-color: var(--color-status-success);
}

.notice--success .notice__title {
    color: var(--color-status-success);
}

.notice--warning {
    background: var(--color-status-warning-bg);
    border-color: var(--color-status-warning);
}

.notice--warning .notice__title {
    color: var(--color-status-warning);
}

.notice--danger {
    background: var(--color-status-danger-bg);
    border-color: var(--color-status-danger);
}

.notice--danger .notice__title {
    color: var(--color-status-danger);
}

.notice--info {
    background: var(--color-status-info-bg);
    border-color: var(--color-status-info);
}

.notice--info .notice__title {
    color: var(--color-status-info);
}

.notice--info-compact {
    background: var(--color-status-info-bg);
    border-left: 4px solid var(--color-status-info);
    border-radius: var(--radius-input);
    padding: 12px 16px;
    font-size: 13px;
    line-height: 19px;
}

/* Hero / notice rotator dot indicators. */
.rotator-dot {
    height: 6px;
    width: 12px;
    border-radius: var(--radius-pill);
    background: var(--color-muted-border);
    display: inline-block;
}

.rotator-dot.is-active {
    width: 28px;
    background: var(--color-brand-yellow);
}

.rotator-dot--warning.is-active {
    width: 20px;
    background: var(--color-status-warning);
}

/* Mascot speech bubble, used throughout the booking flow. */
.speech-bubble {
    position: relative;
    background: var(--color-brand-yellow);
    border-radius: var(--radius-card-lg);
    padding: 14px 18px;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-ink);
    max-width: 420px;
}

/* Booking flow step indicator. */
.step-circle {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-circle--current {
    background: var(--color-brand-yellow);
    color: var(--color-ink);
}

.step-circle--done {
    background: var(--color-ink);
    color: var(--color-white);
}

.step-circle--upcoming {
    background: var(--color-white);
    color: var(--color-muted);
    border: 2px solid var(--color-border);
    box-sizing: border-box;
}

/* Booking flow date-picker calendar grid. 44px tap target on a phone; the
   reference artboard is drawn at desktop width, so 40px only applies from
   the md breakpoint up. */
.calendar-day {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    background: var(--color-white);
    color: var(--color-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .calendar-day {
        width: 40px;
        height: 40px;
    }
}

.calendar-day--empty {
    visibility: hidden;
    cursor: default;
}

.calendar-day--disabled {
    color: var(--color-muted-border);
    cursor: not-allowed;
}

.calendar-day--selected {
    border: 2px solid var(--color-ink);
    background: var(--color-brand-yellow);
    color: var(--color-ink);
}

.calendar-day--suggested {
    border: 2px solid var(--color-status-info);
    background: var(--color-status-info-bg);
}

/* Dashboard sidebar links. */
.dashboard-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-input);
    color: rgba(255, 255, 255, 0.75);
}

.dashboard-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.dashboard-nav-link--active {
    background: var(--color-brand-yellow);
    color: var(--color-ink);
    font-weight: 600;
}

.dashboard-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

/* Fixed black total bar on a phone-width booking flow. */
.mobile-total-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
    .mascot-hero-video {
        display: none !important;
    }

    .mascot-hero-poster {
        display: block !important;
    }

    .mascot-hero-sound {
        display: none !important;
    }
}

.mascot-hero-sound {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: rgba(20, 21, 15, 0.65);
    color: var(--color-white);
    border: none;
    cursor: pointer;
}

.mascot-hero-sound:hover {
    background: rgba(20, 21, 15, 0.85);
}

.mascot-hero-sound:focus-visible {
    outline: 2px solid var(--color-brand-yellow);
    outline-offset: 2px;
}

.mascot-footer img {
    filter:
        drop-shadow(1px 0 0 var(--color-brand-yellow))
        drop-shadow(-1px 0 0 var(--color-brand-yellow))
        drop-shadow(0 1px 0 var(--color-brand-yellow))
        drop-shadow(0 -1px 0 var(--color-brand-yellow))
        drop-shadow(0.7px 0.7px 0 var(--color-brand-yellow))
        drop-shadow(-0.7px 0.7px 0 var(--color-brand-yellow))
        drop-shadow(0.7px -0.7px 0 var(--color-brand-yellow))
        drop-shadow(-0.7px -0.7px 0 var(--color-brand-yellow));
}
} /* @layer components */
