/* ═══════════════════════════════════════════════════════════
   El-Couzina — Newspaper Theme
   Rebuilt from Sea Harvest screen.css extracted rules
   Font substitutions: Pressura Mono → Space Mono, Portrait → Playfair Display
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.42857143;
    color: #000;
    background: #FFFCF9;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: #26498d; }

/* ─── Site Wrapper (= #site-wrapper) ─────────────────── */
.IE-flex-fix {
    transition: background-color 0.3s linear;
}

#site-wrapper {
    padding: 1.5vw;
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transform-origin: center bottom;
    background: #FFFCF9 url('/assets/images/ricepaper.svg') repeat;
    background-size: 200px 200px;
    /* Fade-in on page load — JS adds .loaded */
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.995);
    transition: opacity 0.5s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback: if JS doesn't run within 100ms, show anyway */
html.no-fade #site-wrapper,
#site-wrapper.loaded {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* When JS loads, it briefly hides then fades in */
#site-wrapper.animate-in {
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}

#site-wrapper.loaded {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1, 1);
}

/* ─── Component System ───────────────────────────────── */
.component {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Rows that are also components must be row-direction */
.component.row {
    flex-direction: row;
    flex-wrap: wrap;
}

.component-header { flex: 0 1 auto; }
.component-body { flex: 1 0 0; height: auto; width: auto; }
.component-footer { flex: 0 1 auto; }

/* ─── Row (flexbox newspaper grid) ───────────────────── */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row--extend-bottom {
    padding-bottom: 5rem;
}

/* ─── 12-Column Grid ─────────────────────────────────── */
/* col-12 = mobile default (full width) */
@media screen and (max-width: 699px) {
    .col-12 { flex: 0 0 100%; max-width: 100%; width: 100%; }
}

@media screen and (min-width: 700px) {
    .col-sm-1 { flex: 0 0 8.333%; max-width: 8.333%; width: 8.333%; }
    .col-sm-2 { flex: 0 0 16.667%; max-width: 16.667%; width: 16.667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; width: 25%; }
    .col-sm-4 { flex: 0 0 33.333%; max-width: 33.333%; width: 33.333%; }
    .col-sm-5 { flex: 0 0 41.667%; max-width: 41.667%; width: 41.667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; width: 50%; }
    .col-sm-7 { flex: 0 0 58.333%; max-width: 58.333%; width: 58.333%; }
    .col-sm-8 { flex: 0 0 66.667%; max-width: 66.667%; width: 66.667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; width: 75%; }
    .col-sm-10 { flex: 0 0 83.333%; max-width: 83.333%; width: 83.333%; }
    .col-sm-11 { flex: 0 0 91.667%; max-width: 91.667%; width: 91.667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; width: 100%; }
}

/* ─── Card (the core newspaper cell) ─────────────────── */
.card {
    box-shadow: #231f20 0 0 0 1px, #231f20 0 0 0 1px inset;
    padding: 1.42857143rem;
}

@media screen and (min-width: 700px) {
    .card { padding: 1.42857143rem; }
    #site-wrapper { padding: 2.28571429rem; }
}

/* Box-shadow on header, inner, footer */
#site-header,
#site-inner,
footer {
    box-shadow: #231f20 0 0 0 1px, #231f20 0 0 0 1px inset;
}

/* ─── Card Special Border (dashed) ───────────────────── */
.card-special-border {
    position: relative;
    height: 100%;
    border: 2px dashed #231f20;
    padding: 1.42857143rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s;
}

@media screen and (min-width: 700px) {
    .card-special-border { padding: 2rem; }
}

/* Blue dashed border overlay on hover */
.card-special-border::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    border: 2px dashed #26498d;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover .card-special-border::after {
    opacity: 1;
}

/* ─── Typography ─────────────────────────────────────── */

/* .title = main headlines */
.title {
    text-transform: uppercase;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 0.85714286;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 3rem;
}

.title--masthead {
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 0.9;
}

.title--medium {
    font-size: clamp(2rem, 5vw, 3rem);
}

.title--ad {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    text-align: center;
}

/* .title-description = subtitle under headlines */
.title-description {
    font-size: 1rem;
    line-height: 1.71428571;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Space Mono', monospace;
    margin: 0;
}

/* .copy = body text */
.copy {
    font-family: 'Space Mono', monospace;
    font-size: 0.85714rem;
    line-height: 1.58333333;
}

.copy--card {
    font-size: 0.85714rem;
}

/* Multi-column copy */
.copy-col-2 { columns: 2; column-gap: 2.28571429rem; }

@media screen and (max-width: 699px) {
    .copy-col-sm-2 { columns: 1; }
}

@media screen and (min-width: 700px) {
    .copy-col-sm-2 { columns: 2; column-gap: 2.28571429rem; }
}

/* .section-heading */
.section-heading, .section-text {
    margin: 0;
    text-transform: uppercase;
}

.section-heading {
    font-weight: 700;
    font-size: 0.85714rem;
}

/* .article-number = "Read more on page X" */
.article-number {
    font-size: 0.85714rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

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

/* .date */
.date {
    font-family: 'Space Mono', monospace;
    font-size: 0.85714rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Header Banner ──────────────────────────────────── */
.header-banner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

a.header-logo,
.header-logo {
    box-shadow: #231f20 0 0 0 1px, #231f20 0 0 0 1px inset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex: 0 0 12%;
}

.header-logo .logo {
    width: 60px;
    max-width: 60px;
    max-height: 80px;
    height: auto;
}

.header-logo img {
    max-width: 60px;
    max-height: 80px;
}

a.header-banner-main,
.header-banner-main {
    box-shadow: #231f20 0 0 0 1px, #231f20 0 0 0 1px inset;
    flex: 0 0 70%;
    text-align: center;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
}

.header-banner-main:hover { color: #26498d; }

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 4px 0;
}

.site-description {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.header-location {
    box-shadow: #231f20 0 0 0 1px, #231f20 0 0 0 1px inset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    flex: 0 0 18%;
}

.header-location a {
    font-family: 'Space Mono', monospace;
    font-size: 0.78571rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    text-align: right;
}

/* ─── Navigation ─────────────────────────────────────── */
.nav-main ul.menu {
    display: flex;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-main ul.menu li {
    text-align: center;
    flex: 1;
    list-style: none;
    position: relative;
    box-shadow: 0 0 0 1px #231f20, inset 0 0 0 1px #231f20;
}

.nav-main ul.menu li a {
    font-size: 1rem;
    line-height: 1.333;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    display: block;
    padding: 16px 20px;
    margin: 0;
    position: relative;
    color: #000;
    overflow: hidden;
}

/* SVG hover indicator circle */
.nav-main ul.menu li a .hover-indicator {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    mix-blend-mode: multiply;
    pointer-events: none;
    overflow: hidden;
}

.nav-main ul.menu li a .hover-indicator > svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 95%;
    max-width: none;
}

.nav-main ul.menu li a .hover-indicator .hover-path {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 0.7s ease-out;
}

.nav-main ul.menu li a:hover .hover-indicator .hover-path {
    stroke-dashoffset: 0;
}

/* Remove the old background-color nav hover */
.nav-main ul.menu li a:hover {
    background: transparent;
    color: #000;
}

/* ─── Article Cards ──────────────────────────────────── */
a.card,
a.article--card {
    display: flex;
    color: inherit;
}

.article--card {
    display: flex;
    flex-direction: column;
}

.article--large .title--masthead {
    font-size: clamp(2.8rem, 7vw, 4.2rem);
}

/* ─── Images ─────────────────────────────────────────── */
.image {
    filter: brightness(100%) grayscale(100%) contrast(110%);
    transition: filter 0.3s;
}

a:hover .image,
.card:hover .image {
    filter: brightness(100%) grayscale(0) contrast(100%);
}

.card-thumb {
    margin: 10px auto;
    max-width: 85%;
    max-height: 220px;
    width: auto;
    object-fit: contain;
}

/* ─── Holiday Hours (inside card-special-border) ─────── */
.holiday-hours .tabs {
    display: flex;
    margin: 12px 0 8px;
}

.holiday-hours .tab {
    flex: 1;
    padding: 6px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.78571rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    border: 1px solid #231f20;
    background: transparent;
    color: #000;
    cursor: pointer;
}

.holiday-hours .tab.active {
    background: #231f20;
    color: #FFFCF9;
}

.holiday-hours .row {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Mono', monospace;
    font-size: 0.78571rem;
    padding: 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.holiday-hours .dots {
    flex: 1;
    border-bottom: 1px dotted #999;
    margin: 0 6px;
    position: relative;
    top: -3px;
}

.holiday-hours .hours { white-space: nowrap; }

/* ─── Get In Touch card ──────────────────────────────── */
.get-in-touch .line {
    margin-bottom: 10px;
}

.get-in-touch .section-heading {
    font-size: 0.78571rem;
    text-transform: uppercase;
    font-weight: 700;
}

.get-in-touch .section-text {
    font-size: 0.85714rem;
    text-transform: uppercase;
    margin: 0;
}

.get-in-touch .section-text a { font-weight: 400; }

/* ─── CTA / narrative section ────────────────────────── */
.card-main {
    display: flex;
    flex-direction: column;
}

.card-footer.card-thumb-container {
    display: none;
}

@media screen and (min-width: 700px) {
    .card-footer.card-thumb-container {
        display: block;
    }
    .card-thumb-mobile {
        display: none !important;
    }
}

@media screen and (max-width: 699px) {
    .card-thumb-mobile {
        display: block;
        float: right;
        width: 40%;
        margin: 0 0 10px 10px;
    }
}

/* ─── Floating Logo (bottom right of last column) ────── */
.logo-floating {
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.42857143rem;
}

@media screen and (min-width: 700px) {
    .logo-floating {
        display: flex;
    }
}

.logo-floating .logo-text-bottom {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
    line-height: 1;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    /* box-shadow already set above */
}

footer .nav-main ul.menu li a {
    padding: 12px 16px;
}

.footer-items {
    display: flex;
}

.footer-items .footer-item {
    box-shadow: 0 0 0 1px #231f20, inset 0 0 0 1px #231f20;
    text-align: center;
    display: block;
    padding: 14px 20px;
    font-size: 0.85714rem;
    line-height: 1;
    font-weight: 400;
    font-family: 'Space Mono', monospace;
}

.footer-copy { flex: 1; text-align: left; }
.footer-locs { flex: 1; text-align: right; text-transform: uppercase; }

/* ─── Button ─────────────────────────────────────────── */
.button {
    padding: 1.71428571rem 2.28571429rem;
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 0 0 1px #231f20, inset 0 0 0 1px #231f20;
    text-transform: uppercase;
    outline: none;
    text-align: center;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    background: transparent;
    color: #000;
    border: none;
    transition: background 0.15s, color 0.15s;
}

.button:hover {
    background: #231f20;
    color: #FFFCF9;
}

.button:active {
    transition: transform 0.1s;
    transform: translateY(1px);
}

/* ─── Forms ──────────────────────────────────────────── */
.nform-group { margin-bottom: 15px; }

.nform-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.78571rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 5px;
}

.nform-input,
.nform-select,
.nform-textarea {
    width: 100%;
    padding: 8px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85714rem;
    color: #000;
    background: #FFFCF9;
    border: 1px solid #231f20;
    outline: none;
}

.nform-input:focus,
.nform-select:focus,
.nform-textarea:focus {
    box-shadow: 0 0 0 2px rgba(38, 73, 141, 0.2);
}

.nform-textarea { min-height: 100px; resize: vertical; }

.nform-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23231F20' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.nform-row { display: flex; gap: 15px; }
.nform-row > * { flex: 1; }

/* ─── Menu Items ─────────────────────────────────────── */
.menu-item-row {
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}

.menu-item-row:last-child { border-bottom: none; }

.menu-item-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.85714rem;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-item-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.78571rem;
    color: #444;
    margin-top: 2px;
}

.menu-item-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    float: right;
    margin-top: -16px;
}

.menu-item-tags { margin-top: 4px; }

.menu-item-tags span {
    font-family: 'Space Mono', monospace;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f0f0f0;
    padding: 1px 6px;
    margin-right: 4px;
}

/* ─── Toast ──────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85714rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #231f20; color: #FFFCF9; }
.toast-error { background: #8B0000; color: #fff; }

/* ─── Visibility Helpers ─────────────────────────────── */
.hidden { display: none; }
.visible { display: block; }

@media screen and (min-width: 700px) {
    .hidden-sm { display: none !important; }
    .visible-sm { display: block !important; }
    .flex-sm { display: flex !important; }
}

@media screen and (max-width: 699px) {
    .visible-sm { display: none; }
    .flex-sm { display: none; }
}

/* ─── Honeypot ───────────────────────────────────────── */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ─── Mobile Responsive ──────────────────────────────── */
@media screen and (max-width: 699px) {
    .header-logo { width: 18%; }
    .header-location { width: 100%; flex-direction: row; justify-content: center; gap: 15px; }
    .header-location a { text-align: center; }

    .title--masthead { font-size: 2.2rem; }
    .title--medium { font-size: 1.6rem; }
    .title--ad { font-size: 1.3rem; }

    .nform-row { flex-direction: column; gap: 0; }

    .footer-items { flex-direction: column; }
    .footer-copy, .footer-locs { text-align: center; }

    .row--extend-bottom { padding-bottom: 0; }
}

/* ─── Utility ────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.uppercase { text-transform: uppercase; }
