/* ===========================================================
   Bognár László — szobrászművész / bútorrestaurátor
   Design tokens
   =========================================================== */
:root{
  --ink:        #2E2A22;   /* warm dark brown-black body text */
  --stone:      #ECE6D8;   /* warm stone / plaster background */
  --stone-2:    #F6F2E9;   /* lighter card surface */
  --charcoal:   #1D1B16;   /* bronze-black, hero / dark sections */
  --charcoal-2: #262319;
  --bronze:     #8A5A32;   /* walnut / bronze accent */
  --bronze-dark:#6E4526;
  --verdigris:  #5C6B4F;   /* oxidised bronze green, secondary accent */
  --line:       rgba(46,42,34,0.14);
  --line-dark:  rgba(236,230,216,0.16);
  --shadow:     0 18px 40px rgba(29,27,22,0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Work Sans", "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3{ font-size: clamp(1.25rem, 2vw, 1.55rem); }
p{ margin: 0 0 1em; max-width: 62ch; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section{ padding: clamp(56px, 9vw, 112px) 0; }

.eyebrow{
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--bronze-dark);
  font-weight: 600;
  margin: 0 0 0.9em;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration:none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{
  background: var(--bronze);
  color: var(--stone-2);
}
.btn-primary:hover{ background: var(--bronze-dark); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover{ background: rgba(0,0,0,0.06); }

/* ---------------- Focus visibility ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  padding: 20px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; }
.site-header.solid{
  /* Fully opaque background, no backdrop-filter/filter here: those properties
     create a new containing block for position:fixed descendants in Chrome/Safari,
     which would trap the fixed mobile nav-links drawer inside this short header
     box instead of letting it fill the viewport. */
  background: var(--stone);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.brand{
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration:none;
  color: var(--stone-2);
  letter-spacing: -0.01em;
}
.site-header.solid .brand{ color: var(--ink); }
.brand small{ display:block; font-family: var(--sans); font-weight: 500; font-size: 0.9rem; opacity:.8; margin-top:2px; }

.nav-links{
  display:flex;
  gap: clamp(14px, 2vw, 28px);
  list-style:none;
  margin:0; padding:0;
  font-size: 0.92rem;
}
.nav-links a{
  text-decoration:none;
  color: var(--stone-2);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-header.solid .nav-links a{ color: var(--ink); }
.nav-links a:hover{ border-color: currentColor; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  color: var(--ink);
  padding: 6px;
  position: relative;
  z-index: 600; /* stay above the fixed .nav-links drawer so it remains clickable to close */
}
.site-header.solid .nav-toggle{ color: var(--ink); }
/* While the mobile drawer is open, the toggle sits on top of the dark charcoal
   panel regardless of scroll position, so force it back to a light color. */
.nav-toggle[aria-expanded="true"]{ color: var(--ink); }

@media (max-width: 860px){
  .nav-links{
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--stone-2);
    color: var(--ink);
    flex-direction: column;
    padding: 96px 32px 32px;
    gap: 22px;
    font-size: 1.05rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ color: var(--ink); }
  .nav-toggle{ display:block; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex;
  align-items:flex-end;
  color: var(--stone-2);
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
}
.hero-media img{
  width:100%; height:100%; object-fit: cover;
  object-position: center 30%;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(20,18,13,0.32) 0%, rgba(20,18,13,0.18) 32%, rgba(18,16,12,0.86) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding-bottom: clamp(48px, 8vw, 96px);
  padding-top: 140px;
  max-width: 720px;
  opacity:0;
  transform: translateY(18px);
  animation: heroIn 1s cubic-bezier(.2,.8,.2,1) 0.15s forwards;
}
@keyframes heroIn{ to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){
  .hero-content{ opacity:1; transform:none; animation:none; }
}
.hero-content .eyebrow{ color: #D8CCB4; }
.hero h1{
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  margin-bottom: 0.28em;
}
.hero p.lead{
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: #E9E3D4;
  max-width: 46ch;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 1.4em; }
.hero-actions .btn-ghost{ color:#F2EEE3; border-color: rgba(242,238,227,0.55); }
.hero-actions .btn-ghost:hover{ background: rgba(242,238,227,0.12); }

/* ===========================================================
   About / dual craft
   =========================================================== */
.about{ background: var(--stone); }
.about-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items:center;
}
.about-portrait{
  position:relative;
}
.about-portrait img{
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.about-portrait .frame-tag{
  position:absolute;
  bottom:-18px; left:-18px;
  background: var(--bronze);
  color: var(--stone-2);
  font-family: var(--serif);
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.about-text h2{ max-width: 14ch; }
.craft-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 1.6em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.craft-split h4{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bronze-dark);
  margin-bottom: 0.5em;
}
.craft-split p{ font-size: 0.95rem; }

@media (max-width: 780px){
  .about-grid{ grid-template-columns: 1fr; }
  .craft-split{ grid-template-columns: 1fr; gap: 20px; }
  .about-portrait{ max-width: 420px; margin: 0 auto; }
}

/* ---------------- Pull quote (About) ---------------- */
.pull-quote{
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.3em;
  border-left: 3px solid var(--bronze);
}
.pull-quote p{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4em;
}
.pull-quote cite{
  display:block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--bronze-dark);
  font-weight: 600;
}

/* ===========================================================
   Career / Életút és elismerés
   =========================================================== */
.career{ background: var(--stone-2); border-top: 1px solid var(--line); }
.career-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 2em;
}
.career h3{ margin-bottom: 0.7em; }

.plain-list{ list-style:none; margin:0; padding:0; }
.plain-list li{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  display:flex; gap:12px;
}
.plain-list li:last-child{ border-bottom:none; }
.plain-list .y{
  flex: 0 0 auto;
  min-width: 84px;
  font-weight: 700;
  color: var(--bronze-dark);
  font-size: 0.86rem;
}

.chip-list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.chip-list li{
  font-size: 0.84rem;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 14px;
}

@media (max-width: 780px){
  .career-grid{ grid-template-columns: 1fr; gap: 30px; }
}

/* ---------------- Archive (details/summary) ---------------- */
.archive-block{ margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); display:flex; flex-direction:column; gap:12px; }
details.archive{
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
  background: var(--stone);
}
details.archive summary{
  cursor:pointer;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight:600;
  padding: 6px 0;
  list-style: none;
}
details.archive summary::-webkit-details-marker{ display:none; }
details.archive summary::before{
  content: '+ ';
  color: var(--bronze);
  font-weight:700;
}
details.archive[open] summary::before{ content: '– '; }
.cv-list{
  list-style:none; margin: 10px 0 6px; padding:0;
  columns: 2;
  column-gap: 32px;
}
.cv-list li{
  break-inside: avoid;
  font-size: 0.86rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  display:flex; gap:10px;
}
.cv-list .y{
  flex: 0 0 auto;
  min-width: 64px;
  font-weight:700;
  color: var(--bronze-dark);
  font-size: 0.78rem;
}
@media (max-width: 640px){
  .cv-list{ columns: 1; }
}

/* ===========================================================
   Gallery / carousels
   =========================================================== */
.works{ background: var(--stone-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.tab-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.tab-btn{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 30px;
  cursor:pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn.active{
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--stone-2);
}
.tab-btn:not(.active):hover{ border-color: var(--bronze); color: var(--bronze-dark); }

.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.carousel-wrap{ position:relative; }
.carousel{
  display:flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--bronze) transparent;
}
.carousel::-webkit-scrollbar{ height: 6px; }
.carousel::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 6px; }

.card{
  flex: 0 0 auto;
  width: min(280px, 72vw);
  scroll-snap-align: start;
  background: var(--stone);
  border-radius: 6px;
  overflow:hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb{ aspect-ratio: 4/5; overflow:hidden; background:#ded6c2; }
.card .thumb img{ width:100%; height:100%; object-fit: cover; }
.card .cap{ padding: 12px 14px 15px; }
.card .cap .t{ font-family: var(--serif); font-size: 1.02rem; }
.card .cap .s{ font-size: 0.8rem; color: var(--bronze-dark); margin-top:2px; }

.carousel-nav{
  display:flex; gap:10px; margin-top: 6px; justify-content:flex-end;
}
.carousel-nav button{
  width: 42px; height:42px;
  border-radius:50%;
  border: 1px solid var(--line);
  background: var(--stone);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, border-color .2s ease;
}
.carousel-nav button:hover{ border-color: var(--bronze); }
.carousel-nav svg{ width:18px; height:18px; stroke: var(--ink); }

/* ===========================================================
   Lightbox
   =========================================================== */
.lightbox{
  position: fixed; inset:0; z-index: 1000;
  background: rgba(15,13,10,0.94);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
  padding: 24px;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width: min(920px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-cap{
  position:absolute; left:0; right:0; bottom: 26px;
  text-align:center; color:#EFE9DB; font-family: var(--serif); font-size:1.05rem;
}
.lb-close, .lb-prev, .lb-next{
  position:absolute;
  background: rgba(236,230,216,0.1);
  border: 1px solid rgba(236,230,216,0.3);
  color:#EFE9DB;
  width:46px; height:46px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.lb-close{ top:22px; right:22px; }
.lb-prev{ left:22px; top:50%; transform:translateY(-50%); }
.lb-next{ right:22px; top:50%; transform:translateY(-50%); }
.lb-close svg, .lb-prev svg, .lb-next svg{ width:20px; height:20px; stroke:#EFE9DB; }
@media (max-width:640px){
  .lb-prev{ left:8px; } .lb-next{ right:8px; }
  .lb-close{ top:10px; right:10px; }
}

/* ===========================================================
   Visit / gallery in Felsőörs
   =========================================================== */
.visit{ background: var(--charcoal); color: var(--stone-2); }
.visit .eyebrow{ color:#CBB98D; }
.visit-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px,5vw,64px);
  align-items:start;
}
.visit-photos{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:12px;
}
.visit-photos img{ border-radius:5px; aspect-ratio: 4/3; object-fit:cover; }
.visit-photos .tall{ grid-row: span 2; aspect-ratio: 4/6.4; }

.info-card{
  background: rgba(236,230,216,0.06);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 28px 30px;
}
.info-row{ display:flex; gap:14px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.info-row:last-child{ border-bottom:none; }
.info-row .k{ width: 110px; flex: 0 0 auto; font-weight:600; color:#CBB98D; font-size:0.88rem; }
.info-row .v a{ text-decoration:none; }
.info-row .v a:hover{ text-decoration:underline; }
.map-embed{
  margin-top: 22px;
  border-radius: 8px;
  overflow:hidden;
  border: 1px solid var(--line-dark);
}
.map-embed iframe{ width:100%; height: 280px; border:0; display:block; filter: grayscale(0.15) contrast(1.05); }

@media (max-width: 860px){
  .visit-grid{ grid-template-columns:1fr; }
}

/* ===========================================================
   News / events
   =========================================================== */
.news{ background: var(--stone); }
.news-toggle{ display:flex; gap:10px; margin-bottom: 34px; }
.news-toggle button{
  font-family: var(--serif);
  font-size: 1.05rem;
  background:none; border:none;
  padding: 6px 0;
  margin-right: 30px;
  cursor:pointer;
  color: rgba(46,42,34,0.45);
  border-bottom: 2px solid transparent;
}
.news-toggle button.active{ color: var(--ink); border-color: var(--bronze); }

.news-panel{ display:none; }
.news-panel.active{ display:block; }

.timeline{ position:relative; padding-left: 26px; }
.timeline::before{
  content:""; position:absolute; left:5px; top:6px; bottom:6px; width:1px;
  background: var(--line);
}
.tl-item{ position:relative; padding-bottom: 34px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:""; position:absolute; left:-26px; top:6px; width:11px; height:11px;
  border-radius:50%; background: var(--bronze); border: 2px solid var(--stone);
  box-shadow: 0 0 0 1px var(--bronze);
}
.tl-item .date{ font-size:0.82rem; color: var(--bronze-dark); font-weight:600; margin-bottom:4px; }
.tl-item h4{ font-family: var(--serif); font-size:1.18rem; margin: 0 0 6px; }
.tl-item .place{ font-size:0.9rem; color: rgba(46,42,34,0.7); margin-bottom:10px; }
.tl-item .shot{ display:flex; gap:12px; flex-wrap:wrap; }
.tl-item .shot img{ width:120px; height:88px; object-fit:cover; border-radius:4px; cursor:zoom-in; }

.press-row{
  display:flex; gap:16px; flex-wrap:wrap; margin-top: 40px; padding-top: 30px; border-top:1px solid var(--line);
}
.press-item{ width: 150px; text-align:center; }
.press-item img{ border-radius:4px; margin-bottom:8px; cursor:zoom-in; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.press-item span{ font-size:0.8rem; color: rgba(46,42,34,0.7); }

.upcoming-card{
  background: var(--stone-2);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: clamp(28px,4vw,44px);
  text-align:left;
  max-width: 560px;
}
.upcoming-card h4{ font-family: var(--serif); font-size:1.3rem; margin-bottom:10px; }
.upcoming-card p{ margin-bottom: 1.2em; }

/* ===========================================================
   Contact
   =========================================================== */
.contact{ background: var(--stone-2); }
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,64px);
}
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size:0.86rem; font-weight:600; margin-bottom:6px; }
.field input, .field textarea{
  width:100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid rgba(46,42,34,0.28);
  background: var(--stone);
  color: var(--ink);
  resize: vertical;
}
.field textarea{ min-height: 130px; }
.form-note{ font-size:0.82rem; color: rgba(46,42,34,0.6); margin-top: 10px; }
.form-success{
  display:none;
  background: rgba(92,107,79,0.14);
  border: 1px solid var(--verdigris);
  color: var(--verdigris);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-success.show{ display:block; }

.contact-side .info-card{
  background: var(--stone);
  border-color: var(--line);
  color: var(--ink);
}
.contact-side .info-row{ border-color: var(--line); }
.contact-side .info-row .k{ color: var(--bronze-dark); }
.contact-side .map-embed{ border-color: var(--line); }

@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer{
  background: var(--charcoal);
  color: rgba(236,230,216,0.75);
  padding: 40px 0;
  font-size: 0.88rem;
}
.footer-row{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
}
.footer-row .brand{ font-size: 1rem; }
