/* ==========================================================================
   U Krakena – site styles
   Colours come from the logo (octopus teal #307078, sign mustard #E0A838),
   deepened for backgrounds. Replaces base.css, utilities.css, buttons.css,
   header.css, footer.css and responsive.css. Component and page styles in
   css/components and css/pages still load after this file.
   ========================================================================== */

/* --- Fonts (self-hosted, SIL Open Font License, see assets/fonts) --- */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../assets/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/figtree-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens --- */
:root {
    --abyss: #0a1d24;        /* page background */
    --sea: #0f2f39;          /* alternate sections, footer */
    --sea-raised: #163e49;   /* cards, header */
    --line: #2a5862;         /* borders and dividers */
    --teal: #307078;         /* logo teal */
    --mustard: #e0a838;      /* logo mustard: main actions, highlights */
    --mustard-dark: #c8922a; /* hover */
    --foam: #ecf3f2;         /* text */
    --mist: #a2bec2;         /* secondary text */
    --danger: #f08a6c;

    --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
    --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius: 12px;
    --radius-small: 8px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --container-width: 1140px;
    --header-height: 72px;
    --phone-bar-height: 64px;

    /* Older names still used by css/components and css/pages */
    --background-color: var(--abyss);
    --surface-color: var(--sea-raised);
    --light-color: var(--foam);
    --dark-color: var(--foam);
    --primary-color: var(--mustard);
    --primary-color-dark: var(--mustard-dark);
    --secondary-color: var(--mist);
    --border-color: var(--line);
    --tertiary-accent: var(--mist);
    --theme-background: var(--abyss);
    --theme-text-primary: var(--foam);
    --theme-accent-primary: var(--teal);
    --theme-accent-secondary: var(--mist);
    --theme-accent-tertiary: var(--mist);
    --font-family: var(--font-body);
    --border-radius: var(--radius);
    --border-radius-small: var(--radius-small);
    --border-radius-medium: var(--radius);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* --- Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    background-color: var(--abyss);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--foam);
    background-color: var(--abyss);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--mustard);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--foam);
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--mustard);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
.h3 { font-size: 1.3rem; font-weight: 700; }
p { margin-bottom: 1rem; }
ul { list-style: none; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -0.2em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10001;
    background: var(--mustard);
    color: var(--abyss);
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--radius-small);
}

.skip-link:focus {
    top: 12px;
    text-decoration: none;
}

/* --- Layout utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Alternating section backgrounds on content pages */
main > .page-content-section:nth-child(odd) { background-color: var(--abyss); }
main > .page-content-section:nth-child(even) { background-color: var(--sea); }

.bg-light { background-color: var(--sea); }
.text-center { text-align: center; }
.img-responsive { max-width: 100%; height: auto; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.hidden { display: none !important; }

.page-title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-footer { margin-top: 2rem; }

.grid-full-width-item {
    grid-column: 1 / -1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mustard);
    margin-bottom: 0.6rem;
}

/* Page header used at the top of every subpage */
.page-header {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    background:
        radial-gradient(110% 120% at 85% 0%, rgba(224, 168, 56, 0.12), transparent 55%),
        linear-gradient(180deg, var(--sea) 0%, var(--abyss) 100%);
    border-bottom: 1px solid var(--line);
}

.page-header h1 { margin-bottom: 0.5rem; }

.not-found .hero-actions { margin-top: 1.5rem; }

.page-header p {
    max-width: 62ch;
    color: var(--mist);
    font-size: 1.08rem;
    margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    background-color: var(--mustard);
    color: var(--abyss);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    background-color: var(--mustard-dark);
    color: var(--abyss);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foam);
    border-color: var(--line);
}

.btn-ghost:hover {
    background-color: var(--sea-raised);
    color: var(--foam);
    border-color: var(--mist);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
    .btn:hover { transform: translateY(-1px); }
}

/* --- Chips --- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chips li,
.chip {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--foam);
    border: 1px solid var(--line);
    background: rgba(10, 29, 36, 0.5);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 47, 57, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.brand {
    flex: none;
    display: block;
}

.brand img {
    height: 48px;
    width: auto;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 1.4rem;
}

.site-nav a {
    display: block;
    color: var(--mist);
    font-weight: 600;
    padding: 0.4rem 0;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
    color: var(--foam);
    box-shadow: inset 0 -2px 0 var(--line);
}

.site-nav a[aria-current="page"] {
    color: var(--foam);
    box-shadow: inset 0 -2px 0 var(--mustard);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
}

.lang-switch a,
.lang-switch span {
    padding: 0.25rem 0.55rem;
    color: var(--mist);
    text-decoration: none;
}

.lang-switch [aria-current="true"] {
    background: var(--mustard);
    color: var(--abyss);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: transparent;
    color: var(--foam);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: var(--sea);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open { display: block; }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px));
    }

    .site-nav a {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--line);
        box-shadow: none;
        font-size: 1.05rem;
    }

    .site-nav li:last-child a { border-bottom: 0; }

    .site-nav a[aria-current="page"] {
        color: var(--mustard);
        box-shadow: none;
    }
}

@media (max-width: 767px) {
    :root { --header-height: 60px; }
    .brand img { height: 40px; }
    .header-actions .btn-book { display: none; }
}

/* --- Booking dialog --- */
.booking-dialog {
    margin: auto;
    width: min(440px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--sea);
    color: var(--foam);
    box-shadow: var(--shadow);
}

.booking-dialog::backdrop {
    background: rgba(5, 15, 19, 0.7);
}

.booking-dialog-inner {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem;
}

.booking-dialog h2 {
    font-size: 1.5rem;
    margin: 0;
    padding-right: 2.5rem;
}

.booking-dialog p {
    color: var(--mist);
    margin: 0 0 0.25rem;
}

.booking-dialog .btn {
    justify-content: flex-start;
    width: 100%;
    padding: 0.9rem 1rem;
    text-align: left;
}

.booking-dialog .btn small {
    margin-left: auto;
    font-weight: 500;
    opacity: 0.8;
}

.booking-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--foam);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .booking-dialog {
        margin: auto 0 0;
        width: 100%;
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        border-width: 1px 0 0;
    }

    .booking-dialog-inner {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* --- Phone action bar --- */
.phone-bar {
    display: none;
}

@media (max-width: 767px) {
    body { padding-bottom: calc(var(--phone-bar-height) + env(safe-area-inset-bottom, 0px)); }

    .phone-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: var(--sea-raised);
        border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .phone-bar a,
    .phone-bar button {
        min-height: var(--phone-bar-height);
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 2px;
        font: 600 0.78rem var(--font-body);
        color: var(--foam);
        background: none;
        border: 0;
        text-decoration: none;
        cursor: pointer;
    }

    .phone-bar > * + * { border-left: 1px solid var(--line); }
    .phone-bar .icon { width: 22px; height: 22px; color: var(--mustard); }
}

/* --- Opening hours --- */
.hours {
    display: grid;
    gap: 0.15rem;
    font-size: 0.95rem;
}

.hours div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px dotted var(--line);
}

.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--foam); }
.hours dd { color: var(--mist); font-variant-numeric: tabular-nums; text-align: right; }
.hours .is-today dt,
.hours .is-today dd { color: var(--mustard); font-weight: 700; }

.special-days {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.special-days li {
    font-size: 0.88rem;
    color: var(--mustard);
    border: 1px solid var(--mustard);
    border-radius: var(--radius-small);
    padding: 0.45rem 0.7rem;
}

/* --- Map card --- */
.map-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sea-raised);
}

.map-card > a { display: block; }

.map-card img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.map-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.map-card-credit {
    font-size: 0.75rem;
    color: var(--mist);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--sea);
    border-top: 1px solid var(--line);
    color: var(--foam);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.footer-grid h2 {
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    color: var(--foam);
}

.footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--mist);
    max-width: 34ch;
}

.footer-links li + li { margin-top: 0.45rem; }

.footer-links a,
.footer-contact a {
    color: var(--mist);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--foam);
}

.footer-contact li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--mist);
}

.footer-contact li + li { margin-top: 0.6rem; }
.footer-contact .icon { color: var(--mustard); margin-top: 0.2em; }

.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--foam);
}

.social-links a:hover {
    border-color: var(--mustard);
    color: var(--mustard);
    text-decoration: none;
}

.footer-legal {
    border-top: 1px solid var(--line);
    background: var(--abyss);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--mist);
}

.footer-legal p { margin: 0; }
.footer-legal p + p { margin-top: 0.35rem; }
.footer-legal a { color: var(--mist); text-decoration: underline; }
.footer-legal a:hover { color: var(--foam); }

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Section building blocks --- */
.section-alt { background-color: var(--sea); }

.section-head {
    max-width: 62ch;
    margin-bottom: 2rem;
}

.section-head h2 { margin-bottom: 0.4rem; }
.section-head p { color: var(--mist); margin: 0; }

/* Photo beside text; .split-reverse puts the photo on the right */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.split-reverse .split-media { order: 2; }

.split-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.split-copy p { color: var(--foam); }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 1.75rem; }
    .split-reverse .split-media { order: 0; }
}

/* Box around the opening hours (home, contact) */
.hours-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--sea-raised);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hours-card h3 { margin-bottom: 0.75rem; }

/* Beers on tap */
.tap-list {
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--abyss);
    overflow: hidden;
}

.tap-list h3 {
    font-size: 1.05rem;
    margin: 0;
    padding: 0.8rem 1rem;
    background: var(--sea-raised);
    border-bottom: 1px solid var(--line);
}

.tap-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem 1rem;
    padding: 0.75rem 1rem;
}

.tap-list li + li { border-top: 1px solid var(--line); }
.tap-name { font-weight: 700; }
.tap-name small { font-weight: 500; color: var(--mist); margin-left: 0.35rem; }

.tap-prices {
    display: flex;
    gap: 0.9rem;
    color: var(--mist);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- Prose (privacy page and other long text) --- */
.prose {
    max-width: 70ch;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 2.25rem;
}

.prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.prose li + li { margin-top: 0.35rem; }
.prose p,
.prose li { color: var(--foam); }

/* --- Smaller screens --- */
@media (max-width: 767px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
    }

    .hero-section { padding: 4rem 0; min-height: 300px; }
}
