/*
Theme Name: Comicgarden V4
Theme URI: https://cafe-comicgarden.dk/
Author: OpenAI
Description: WordPress-tema til Café Comicgarden med editerbar hero, editerbare layers, desktop-slider og menupaneler fra underside-sider.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: comicgarden
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

:root{
  --cg-bg:#f3efe7;
  --cg-paper:#f8f4ec;
  --cg-ink:#1f1d1b;
  --cg-green:#456c55;
  --cg-green-dark:#294a3a;
  --cg-gold:#b58b58;
  --cg-black:#111;
  --cg-line:rgba(17,17,17,.12);
  --cg-max:1200px;
  --cg-radius:24px;
  --cg-shadow:0 18px 45px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--cg-ink);
  background:
    radial-gradient(circle at top right, rgba(181,139,88,.10), transparent 30%),
    linear-gradient(180deg,#ebe4d8 0%, #f8f4ec 100%);
  font-family:'Roboto Condensed', system-ui, -apple-system, sans-serif;
  line-height:1.6;
}
h1,h2,h3,h4,h5,h6{
  font-family:'Roboto Condensed', system-ui, -apple-system, sans-serif;
  line-height:1.02;
  letter-spacing:.01em;
  margin-top:0;
  text-transform:uppercase;
}
p, li, a, small, span, div, input, textarea, button{
  font-family:'Roboto Condensed', system-ui, -apple-system, sans-serif;
}
a{color:var(--cg-green-dark);text-decoration:none}
a:hover{text-decoration:underline}
img{display:block;max-width:100%;height:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(248,244,236,.94);
  border-bottom:1px solid var(--cg-line);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}
.site-header__inner,
.site-footer__inner,
.section__inner,
.single-page__inner{
  width:min(calc(100% - 2rem), var(--cg-max));
  margin:0 auto;
}

.site-branding{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  padding:1rem 0;
}
.brand-lockup{
  display:flex;
  align-items:center;
  gap:1.2rem;
  min-width:0;
}
.brand-drawing{
  width:172px;
  height:172px;
  object-fit:contain;
  flex:0 0 auto;
}
.brand-wordmark{
  min-width:0;
}
.site-title{
  margin:0;
  font-size:1.65rem;
  letter-spacing:.12em;
  white-space:nowrap;
  line-height:.95;
}
.site-title a{color:var(--cg-ink);text-decoration:none}
.site-tagline{
  margin:.35rem 0 0;
  font-size:1rem;
  opacity:.78;
  text-transform:none;
}

.main-navigation ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:.35rem;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.main-navigation a{
  display:inline-block;
  padding:.65rem .9rem;
  border-radius:999px;
  color:var(--cg-ink);
  font-size:.95rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.main-navigation a:hover{
  background:rgba(69,108,85,.10);
  text-decoration:none;
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border:1px solid var(--cg-line);
  border-radius:12px;
  background:#fff;
  color:var(--cg-ink);
  cursor:pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after{
  display:block;
  width:20px;
  height:2px;
  background:currentColor;
  position:relative;
  content:'';
}
.nav-toggle__bar::before{position:absolute;top:-6px;left:0}
.nav-toggle__bar::after{position:absolute;top:6px;left:0}


.hero{
  position:relative;
  min-height:88vh;
  overflow:hidden;
  background:#d8d2c8;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(17,17,17,.58) 0%, rgba(17,17,17,.30) 44%, rgba(17,17,17,.14) 100%),
    url('assets/images/street-view.jpg') center/cover no-repeat;
  transform:scale(1.02);
}
.hero__inner{
  width:min(calc(100% - 2rem), var(--cg-max));
  margin:0 auto;
  position:relative;
  z-index:2;
  padding:7rem 0 5rem;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:2rem;
  align-items:center;
  min-height:88vh;
}
.hero__content{
  color:#fff;
  max-width:760px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.38rem .8rem;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  margin-bottom:1rem;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.hero h1{
  font-size:clamp(3rem, 7vw, 6.2rem);
  margin-bottom:1rem;
  color:#fff;
}
.hero p{
  font-size:1.15rem;
  max-width:60ch;
  margin:0 0 1rem;
  color:rgba(255,255,255,.94);
  text-transform:none;
}
.hero__actions{
  display:flex;
  gap:.9rem;
  flex-wrap:wrap;
  margin-top:1.8rem;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.95rem 1.25rem;
  min-height:48px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.button:hover{
  transform:translateY(-1px);
  text-decoration:none;
}
.button--primary{
  background:var(--cg-green);
  color:#fff;
}
.button--ghost{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.28);
  color:#fff;
}

.hero__stack{
  position:relative;
  min-height:520px;
}
.stack-card,
.menu-panel,
.info-card,
.gallery-card,
.content-card,
.event-card,
.photo-card{
  border-radius:var(--cg-radius);
  box-shadow:var(--cg-shadow);
  overflow:hidden;
}

.stack-card{
  position:absolute;
  width:min(100%, 400px);
  background:rgba(248,244,236,.96);
  color:var(--cg-ink);
  border:1px solid rgba(255,255,255,.4);
  transition:transform .6s ease, opacity .6s ease, filter .6s ease, box-shadow .6s ease;
}
.stack-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.stack-card__body{
  padding:1rem 1.1rem 1.15rem;
}
.stack-card__body h3{
  font-size:1.35rem;
  margin-bottom:.35rem;
}
.stack-card__body p{
  margin:0;
  text-transform:none;
}
.stack-card.is-pos-1{
  top:0;
  right:8px;
  transform:rotate(2deg) scale(1);
  z-index:3;
  opacity:1;
}
.stack-card.is-pos-2{
  top:120px;
  left:0;
  transform:rotate(-3deg) scale(.95);
  z-index:2;
  opacity:.97;
}
.stack-card.is-pos-3{
  top:250px;
  right:58px;
  transform:rotate(1.5deg) scale(.91);
  z-index:1;
  opacity:.9;
}

.section{
  padding:5rem 0;
  position:relative;
}
.section--paper{background:var(--cg-paper)}
.section--green{
  background:linear-gradient(180deg, rgba(69,108,85,.08), rgba(69,108,85,.03));
}
.section__intro{
  max-width:820px;
  margin-bottom:2rem;
}
.section__intro h2{
  font-size:clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom:.75rem;
}
.section__intro p{
  margin:0;
  font-size:1.06rem;
  text-transform:none;
}
.kicker{
  color:var(--cg-green);
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:700;
  margin-bottom:.6rem;
}

.split{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:1.5rem;
  align-items:start;
}
.content-card,
.info-card,
.event-card{
  background:#fff;
  border:1px solid var(--cg-line);
  padding:1.45rem;
}
.content-card p,
.info-card p,
.event-card p{
  text-transform:none;
}
.logo-badge{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1rem;
  border:1px dashed rgba(69,108,85,.35);
  border-radius:22px;
  background:rgba(69,108,85,.05);
  margin-top:1rem;
}
.logo-badge img{
  width:90px;
  height:90px;
  object-fit:contain;
  flex:0 0 auto;
}

.menu-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.25rem;
}
.menu-panel{
  background:#fff;
  border:1px solid var(--cg-line);
}
.menu-panel__head{
  padding:1.2rem 1.3rem .9rem;
  border-bottom:1px solid var(--cg-line);
  background:linear-gradient(180deg, rgba(69,108,85,.06), rgba(69,108,85,.01));
}
.menu-panel__head h3{
  margin:0;
  font-size:1.7rem;
}
.menu-panel__sub{
  margin-top:.25rem;
  font-size:.92rem;
  opacity:.7;
  text-transform:none;
}
.menu-panel__body{
  padding:1.15rem 1.3rem 1.35rem;
}
.menu-editor-content > *:first-child{margin-top:0}
.menu-editor-content > *:last-child{margin-bottom:0}
.menu-editor-content p{
  margin:.45rem 0;
  text-transform:none;
}
.menu-editor-content h1,
.menu-editor-content h2,
.menu-editor-content h3,
.menu-editor-content h4{
  margin:1rem 0 .65rem;
  font-size:1.2rem;
}
.menu-editor-content ul,
.menu-editor-content ol{
  margin:.25rem 0 1rem;
  padding-left:0;
  list-style:none;
}
.menu-editor-content li{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  padding:.55rem 0;
  border-bottom:1px dashed rgba(17,17,17,.10);
  text-transform:none;
}
.menu-editor-content li:last-child{border-bottom:none}
.menu-editor-content hr{
  border:none;
  border-top:1px solid var(--cg-line);
  margin:1rem 0;
}
.menu-help{
  margin-top:1rem;
  padding:1rem 1.1rem;
  border-radius:18px;
  background:rgba(181,139,88,.10);
  border-left:4px solid var(--cg-gold);
  text-transform:none;
}

.photo-grid,
.events-grid,
.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
.photo-card{
  position:relative;
  min-height:260px;
  background:#ddd;
}
.photo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.photo-card__caption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:1rem;
  color:#fff;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  font-size:.95rem;
}

.single-page{
  padding:3rem 0 4rem;
}
.single-page__inner .gallery-card,
.single-page__inner .content-card{
  background:#fff;
  border:1px solid var(--cg-line);
  padding:1.5rem;
}
.entry-content,
.page-template-template-menu .content-card{
  text-transform:none;
}
.entry-content h2,
.entry-content h3{
  margin-top:1.2rem;
}
.entry-content ul,
.entry-content ol{
  padding-left:1.2rem;
}
.entry-content img,
.wp-block-gallery img,
.wp-block-image img{
  border-radius:18px;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin-top:1.5rem;
}
.gallery-grid figure{
  margin:0;
  overflow:hidden;
  border-radius:22px;
  box-shadow:var(--cg-shadow);
}
.gallery-grid img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  transition:transform .25s ease;
}
.gallery-grid figure:hover img{
  transform:scale(1.03);
}

.site-footer{
  padding:2rem 0 3rem;
  background:#111;
  color:#f8f4ec;
}
.site-footer p{margin:.25rem 0}
.site-footer a{color:#f8f4ec}
.screen-reader-text{
  position:absolute;
  left:-9999px;
  width:1px;height:1px;
  overflow:hidden;
}

@media (max-width: 1100px){
  .site-title{white-space:normal}
}

@media (max-width: 1000px){
  .hero__inner,
  .split,
  .menu-grid,
  .photo-grid,
  .events-grid,
  .info-grid,
  .gallery-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 860px){
  .site-branding{
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
  }
  .brand-drawing{
    width:124px;
    height:124px;
  }
  .site-title{
    font-size:1.3rem;
    white-space:normal;
  }
  .site-tagline{
    font-size:.92rem;
  }
  .nav-toggle{
    display:inline-flex;
    margin-left:auto;
  }
  .main-navigation{
    width:100%;
    display:none;
    padding-top:.4rem;
  }
  .main-navigation.is-open{
    display:block;
  }
  .main-navigation ul{
    justify-content:flex-start;
    flex-direction:column;
    align-items:flex-start;
    gap:.15rem;
    padding:.5rem 0 0;
  }
  .main-navigation a{
    width:100%;
    padding:.8rem 0;
    border-radius:0;
  }
  .hero__inner,
  .split,
  .menu-grid,
  .photo-grid,
  .events-grid,
  .info-grid,
  .gallery-grid{
    grid-template-columns:1fr;
  }
  .hero__inner{
    padding:6rem 0 4rem;
    align-items:start;
  }
  .hero__stack{
    min-height:auto;
    display:flex;
    flex-direction:column;
    gap:1rem;
  }
  .stack-card{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    inset:auto !important;
    width:100%;
    transform:none !important;
    opacity:1 !important;
    z-index:auto !important;
  }
  .hero h1{
    font-size:clamp(2.6rem, 12vw, 4.3rem);
  }
}
