/*
Theme Name: Carlos Team
Theme URI: https://carlos.team
Author: Carlos Team Praha
Description: Motorkářský spolek Carlos Team – Prague, Czech Republic
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: carlos-team
*/


html { scroll-behavior: smooth; overscroll-behavior-y: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* ── Header scroll state ── */
#site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
#site-header.scrolled { background: #FBD508; box-shadow: 0 1px 0 rgba(0,0,0,.07); }
#site-header.scrolled .nav-link { color: #1E1E1E !important; }
#site-header.scrolled .nav-link:hover { background: rgba(0,0,0,.08) !important; color: #000 !important; }
#site-header.scrolled #site-name { color: #1E1E1E !important; }
#site-header.scrolled #menu-toggle { color: #1E1E1E !important; }

/* Pages with a dark hero (home, galerie, o-nás, články): start transparent */
body.has-transparent-header #site-header:not(.scrolled) { background: transparent; }
body.has-transparent-header #site-header:not(.scrolled) .nav-link { color: #fff; }
body.has-transparent-header #site-header:not(.scrolled) #site-name { color: #fff; }
body.has-transparent-header #site-header:not(.scrolled) #menu-toggle { color: #fff; }

/* Other pages: always yellow */
body:not(.has-transparent-header) #site-header { background: #FBD508; box-shadow: 0 1px 0 rgba(0,0,0,.07); }
body:not(.has-transparent-header) #site-header .nav-link { color: #1E1E1E; }
body:not(.has-transparent-header) #site-header .nav-link:hover { background: rgba(0,0,0,.08); color: #000; }
body:not(.has-transparent-header) #site-header #site-name { color: #1E1E1E; }
body:not(.has-transparent-header) #site-header #menu-toggle { color: #1E1E1E; }

/* ── Post card hover ── */
.post-card { transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.10); }

/* ── Hero gradient overlay ── */
.hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}

/* ── Entry content typography ── */
.entry-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; color: #1E1E1E; }
.entry-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.75rem 0 .5rem; color: #1E1E1E; }
.entry-content p  { margin-bottom: 1.5rem; line-height: 1.8; color: #1E1E1E; font-size: 1.0625rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: .5rem; line-height: 1.75; color: #1E1E1E; }
.entry-content a  { color: #0671B9; text-decoration: underline; }
.entry-content a:hover { color: #E82C24; }
.entry-content blockquote {
  border-left: 3px solid #0671B9;
  padding: .75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6B7280;
  background: #f0f7ff;
  border-radius: 0 .75rem .75rem 0;
}
.entry-content img {
  max-width: 100%; height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
}
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { text-align: center; font-size: .875rem; color: #9CA3AF; margin-top: .5rem; }

/* ── Gallery grid ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #0671B9; border-radius: 3px; }

/* ── WP nav menu reset ── */
#primary-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
#primary-menu a { font-weight: 500; text-decoration: none; }
#primary-menu .current-menu-item > a { color: #0671B9 !important; }

/* ── Pagination ── */
.page-numbers { display: flex; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.page-numbers li a,
.page-numbers li span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border-radius: 9999px; border: 1px solid #e5e7eb; font-size: .875rem; font-weight: 500; color: #374151; text-decoration: none; transition: all .15s; }
.page-numbers li a:hover { border-color: #0671B9; color: #0671B9; }
.page-numbers li span.current { background: #0671B9; color: #fff; border-color: #0671B9; }
.page-numbers li a.prev,
.page-numbers li a.next { padding: 0 1rem; }

/* ── Contact form ── */
input:focus, textarea:focus { outline: none; }

/* ── Legal-info accordion (O nás) ── */
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-content.open { max-height: 800px; }
.accordion-icon { transition: transform .3s ease; }
.accordion-btn.open .accordion-icon { transform: rotate(180deg); }

/* ── Sticker bomb (Kdo jsme, homepage) ── */
.sb-zone {
  position: relative; width: 100%; min-height: 860px; overflow: visible;
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), var(--sb-bg);
  background-size: cover; background-position: center;
}
.sb-zone::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0,0,0,0); transition: background .3s ease;
}
.sb-zone:has(.sb-txt:hover)::before,
.sb-zone:has(.sb-txt:active)::before,
.sb-zone:has(.sb-txt:focus-visible)::before {
  background: rgba(0,0,0,.08);
}
.sb-txt { position: absolute; transition: transform .3s ease, filter .3s ease; }
.sb-txt:hover, .sb-txt:focus-visible {
  transform: translateY(-8px) scale(1.08) rotate(0deg) !important;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.28));
  z-index: 40 !important;
}
.sb-txt img { width: 100%; height: auto; display: block; transition: filter .3s ease; }
.sb-zone:has(.sb-txt:hover) .sb-txt:not(:hover) img,
.sb-zone:has(.sb-txt:active) .sb-txt:not(:active) img,
.sb-zone:has(.sb-txt:focus-visible) .sb-txt:not(:focus-visible) img {
  filter: brightness(0.85);
}
.sb-txt .overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 22% 16% 28%;
  text-align: center;
}
.sb-txt .overlay h3 {
  font-weight: 900; line-height: 1.15; color: #1E1E1E;
  font-size: clamp(13.94px, 2.31vw, 26.20px); margin-bottom: 4px;
}
.sb-txt .overlay p {
  color: #1E1E1E; line-height: 1.25;
  font-size: clamp(10.79px, 1.55vw, 18.49px); font-weight: 600;
}

@media (max-width: 767px) {
  .sb-zone { min-height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; }
  .sb-txt { position: static !important; width: 100% !important; transform: rotate(0deg) !important; }
  .sb-txt:hover, .sb-txt:active, .sb-txt:focus-visible { transform: scale(1.05) !important; }
  .sb-txt .overlay h3 { font-size: 14.64px; }
  .sb-txt .overlay p { font-size: 11.98px; }
}