/*
Theme Name: Mealhub
Theme URI: https://techpartner.dk/
Author: Techpartner
Author URI: https://techpartner.dk/
Description: Et moderne og responsivt restauranttema udviklet til Menukortet-pluginet. Indeholder forside, menukortsektion, kontaktoplysninger, åbningstider og WordPress Customizer-indstillinger.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mealhub
*/

:root {
    --mealhub-primary: #17251c;
    --mealhub-accent: #e69a2a;
    --mealhub-cream: #f7f1e7;
    --mealhub-surface: #ffffff;
    --mealhub-text: #20241f;
    --mealhub-muted: #68706a;
    --mealhub-border: rgba(23, 37, 28, .12);
    --mealhub-radius: 22px;
    --mealhub-shadow: 0 20px 55px rgba(23, 37, 28, .10);
    --mealhub-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--mealhub-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--mealhub-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mealhub-accent); }
button, input, textarea, select { font: inherit; }

.mealhub-container { width: min(calc(100% - 40px), var(--mealhub-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 12px 16px; margin: 8px; background: #fff; z-index: 100000; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--mealhub-border);
    backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.mealhub-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 13px; min-width: 0; }
.custom-logo-link { display: flex; }
.custom-logo { max-height: 54px; width: auto; }
.mealhub-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mealhub-accent); color: #fff; font-size: 23px; text-decoration: none; }
.site-title { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1; }
.site-title a { color: var(--mealhub-primary); text-decoration: none; }
.site-description { margin: 5px 0 0; color: var(--mealhub-muted); font-size: .76rem; line-height: 1.2; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; color: var(--mealhub-primary); font-size: .92rem; font-weight: 750; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--mealhub-accent); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--mealhub-primary); font-size: 1.55rem; cursor: pointer; }
.mealhub-header-cta, .mealhub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--mealhub-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(230,154,42,.23);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mealhub-header-cta:hover, .mealhub-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(230,154,42,.30); }
.mealhub-button-secondary { background: transparent; border: 1px solid rgba(255,255,255,.5); box-shadow: none; }

.mealhub-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--mealhub-primary);
    color: #fff;
}
.mealhub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,30,20,.97) 0%, rgba(16,30,20,.78) 48%, rgba(16,30,20,.25) 100%); z-index: 1; }
.mealhub-hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mealhub-hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 50%, transparent 0, rgba(0,0,0,.18) 70%); }
.mealhub-hero-content { position: relative; z-index: 2; max-width: 720px; padding: 110px 0; }
.mealhub-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #f7c978; font-size: .82rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.mealhub-kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.mealhub-hero h1 { max-width: 760px; margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .98; letter-spacing: -.045em; }
.mealhub-hero p { max-width: 630px; margin: 0 0 35px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.mealhub-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.mealhub-highlights { position: relative; z-index: 5; margin-top: -58px; }
.mealhub-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: var(--mealhub-radius); background: #fff; box-shadow: var(--mealhub-shadow); }
.mealhub-highlight { display: flex; align-items: center; gap: 18px; padding: 28px; border-right: 1px solid var(--mealhub-border); }
.mealhub-highlight:last-child { border-right: 0; }
.mealhub-highlight-icon { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; background: var(--mealhub-cream); font-size: 1.35rem; }
.mealhub-highlight strong { display: block; color: var(--mealhub-primary); font-size: 1rem; }
.mealhub-highlight span { display: block; color: var(--mealhub-muted); font-size: .88rem; line-height: 1.45; }

.mealhub-section { padding: 105px 0; }
.mealhub-section-soft { background: var(--mealhub-cream); }
.mealhub-section-heading { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.mealhub-section-heading .mealhub-kicker { justify-content: center; color: var(--mealhub-accent); }
.mealhub-section-heading h2 { margin: 0 0 16px; color: var(--mealhub-primary); font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.mealhub-section-heading p { margin: 0; color: var(--mealhub-muted); }

.mealhub-menu-shell { padding: 34px; border-radius: 30px; background: #fff; box-shadow: var(--mealhub-shadow); }
.mealhub-menu-shell .menukortet-wrap { --menukortet-primary: var(--mealhub-primary) !important; --menukortet-accent: var(--mealhub-accent) !important; }
.mealhub-menu-shell .menukortet-filter { background: var(--mealhub-cream); border-color: transparent; }
.mealhub-menu-shell .menukortet-filter.is-active { background: var(--mealhub-primary); }
.mealhub-menu-shell .menukortet-card { border: 0; box-shadow: 0 12px 35px rgba(23,37,28,.09); }
.mealhub-menu-shell .menukortet-category-header { border-left: 0; padding-left: 0; text-align: center; }
.mealhub-menu-shell .menukortet-category-header h2 { font-family: Georgia, serif; }

.mealhub-about-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 72px; align-items: center; }
.mealhub-about-image { position: relative; }
.mealhub-about-image img, .mealhub-image-placeholder { width: 100%; min-height: 540px; object-fit: cover; border-radius: 30px; box-shadow: var(--mealhub-shadow); }
.mealhub-image-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #ddd0bd, #efe4d3); color: rgba(23,37,28,.5); font-size: 5rem; }
.mealhub-about-badge { position: absolute; right: -24px; bottom: 38px; width: 145px; height: 145px; display: grid; place-items: center; padding: 20px; border-radius: 50%; background: var(--mealhub-accent); color: #fff; text-align: center; font-weight: 850; line-height: 1.25; box-shadow: 0 18px 35px rgba(230,154,42,.3); }
.mealhub-about-content h2 { margin: 8px 0 22px; color: var(--mealhub-primary); font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.06; }
.mealhub-about-content p { color: var(--mealhub-muted); }
.mealhub-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 25px; margin: 28px 0 34px; padding: 0; list-style: none; }
.mealhub-checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 9px; border-radius: 50%; background: rgba(230,154,42,.14); color: var(--mealhub-accent); font-weight: 900; }

.mealhub-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; }
.mealhub-contact-card { padding: 42px; border-radius: 28px; background: var(--mealhub-primary); color: #fff; box-shadow: var(--mealhub-shadow); }
.mealhub-contact-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 2.6rem; line-height: 1.05; }
.mealhub-contact-card p { color: rgba(255,255,255,.73); }
.mealhub-contact-list { display: grid; gap: 20px; margin-top: 32px; }
.mealhub-contact-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.mealhub-contact-item-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.10); }
.mealhub-contact-item strong { display: block; color: #f7c978; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.mealhub-contact-item a, .mealhub-contact-item span { color: #fff; text-decoration: none; }
.mealhub-hours { padding: 42px; border: 1px solid var(--mealhub-border); border-radius: 28px; background: #fff; box-shadow: var(--mealhub-shadow); }
.mealhub-hours h3 { margin: 0 0 25px; color: var(--mealhub-primary); font-family: Georgia, serif; font-size: 2rem; }
.mealhub-hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px dashed var(--mealhub-border); }
.mealhub-hours-row:last-child { border-bottom: 0; }
.mealhub-hours-row span:last-child { font-weight: 800; color: var(--mealhub-primary); }

.site-main { min-height: 60vh; }
.mealhub-content-area { padding: 85px 0; }
.mealhub-page-header { padding: 90px 0; background: var(--mealhub-primary); color: #fff; text-align: center; }
.mealhub-page-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1; }
.mealhub-page-header p { max-width: 700px; margin: 18px auto 0; color: rgba(255,255,255,.72); }
.entry-content > * { max-width: 840px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { color: var(--mealhub-primary); font-family: Georgia, serif; line-height: 1.15; }
.entry-content img { border-radius: 18px; }
.mealhub-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mealhub-post-card { overflow: hidden; border: 1px solid var(--mealhub-border); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(23,37,28,.07); }
.mealhub-post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mealhub-post-card-content { padding: 25px; }
.mealhub-post-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.15; }
.mealhub-post-card h2 a { text-decoration: none; }
.mealhub-meta { color: var(--mealhub-muted); font-size: .82rem; }

.site-footer { padding: 75px 0 25px; background: #101b14; color: rgba(255,255,255,.72); }
.mealhub-footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .85fr; gap: 60px; padding-bottom: 45px; }
.site-footer h3 { margin: 0 0 17px; color: #fff; font-family: Georgia, serif; font-size: 1.35rem; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #f7c978; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.mealhub-footer-brand { color: #fff; font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }
.mealhub-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

@media (max-width: 960px) {
    .admin-bar .site-header { top: 46px; }
    .menu-toggle { display: block; }
    .main-navigation { position: absolute; top: 82px; left: 0; right: 0; display: none; padding: 20px; background: #fff; border-bottom: 1px solid var(--mealhub-border); }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
    .main-navigation a { padding: 12px 5px; }
    .mealhub-header-cta { display: none; }
    .mealhub-highlight-grid, .mealhub-about-grid, .mealhub-contact-grid, .mealhub-footer-grid { grid-template-columns: 1fr; }
    .mealhub-highlight { border-right: 0; border-bottom: 1px solid var(--mealhub-border); }
    .mealhub-highlight:last-child { border-bottom: 0; }
    .mealhub-about-grid { gap: 45px; }
    .mealhub-about-badge { right: 20px; }
    .mealhub-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .mealhub-container { width: min(calc(100% - 28px), var(--mealhub-container)); }
    .site-description { display: none; }
    .mealhub-hero { min-height: 590px; }
    .mealhub-hero::before { background: rgba(16,30,20,.82); }
    .mealhub-hero-content { padding: 90px 0 105px; }
    .mealhub-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
    .mealhub-highlights { margin-top: -38px; }
    .mealhub-highlight { padding: 22px; }
    .mealhub-section { padding: 75px 0; }
    .mealhub-menu-shell { padding: 18px; border-radius: 22px; }
    .mealhub-about-image img, .mealhub-image-placeholder { min-height: 380px; }
    .mealhub-about-badge { width: 115px; height: 115px; font-size: .82rem; }
    .mealhub-checks { grid-template-columns: 1fr; }
    .mealhub-contact-card, .mealhub-hours { padding: 28px; }
    .mealhub-post-grid { grid-template-columns: 1fr; }
    .mealhub-footer-bottom { flex-direction: column; }
}
