/* ==========================================================================
   BroadBit Hungary – static site
   Modern, dependency-free, mobile-first stylesheet.
   Replaces the legacy NovelLite/Bootstrap-3 theme.
   ========================================================================== */

:root {
  --bb-red: #732E1E;
  --bb-red-dark: #5a2317;
  --bb-red-bright: #AB1902;
  --bb-text: #222222;
  --bb-muted: #5a5f63;
  --bb-border: #e2e6e9;
  --bb-soft: #f7f9fa;
  --bb-white: #ffffff;
  --bb-header-h: 68px;
  --bb-container: 1140px;
  --bb-radius: 10px;
  --bb-shadow: 0 2px 14px rgba(20, 20, 20, 0.08);
  --bb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bb-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bb-text);
  background: var(--bb-white);
  /* fixed-header offset (style fix: content used to hide under the navbar) */
  padding-top: var(--bb-header-h);
}
img { max-width: 100%; height: auto; }
video { max-width: 100%; height: auto; display: block; margin: 1.4em auto; }
a { color: var(--bb-red); text-decoration: none; }
a:hover, a:focus { color: var(--bb-red-bright); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--bb-border); margin: 2em 0; }
address { font-style: normal; }

.container {
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bb-red); color: #fff;
  padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--bb-header-h);
  /* deep brand gradient: darkest under the logo (white wordmark + red icon),
     lighter toward the menu (white text) */
  background: linear-gradient(90deg, #240c06 0%, #4a1a10 45%, #732E1E 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
  z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 100%;
}
.brand img { display: block; height: 40px; width: auto; }

.main-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 14px;
  font-weight: 600; color: var(--bb-text);
  border-radius: 6px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus {
  background: var(--bb-soft); color: var(--bb-red); text-decoration: none;
}
.main-nav > ul > li.active > a,
.main-nav > ul > li.has-active > a { color: var(--bb-red); }
.main-nav > ul > li.active > a::after {
  content: ""; display: block; height: 3px; background: var(--bb-red-bright);
  border-radius: 2px; margin-top: 2px;
}

.sub-nav {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 250px;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: 0 0 var(--bb-radius) var(--bb-radius);
  box-shadow: var(--bb-shadow);
  padding: 8px 0;
  list-style: none;
}
.sub-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 6px;
  color: var(--bb-muted);
}
.sub-toggle svg { display: block; transition: transform 0.2s ease; }
@media (min-width: 900px) {
  /* header sits on the dark brand gradient → light nav text */
  .main-nav > ul > li > a { color: #f5efec; }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a:focus { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .main-nav > ul > li.active > a,
  .main-nav > ul > li.has-active > a { color: #fff; }
  .main-nav > ul > li.active > a::after { background: #ff9d8a; }

  .main-nav li.has-sub:hover .sub-nav,
  .main-nav li.has-sub:focus-within .sub-nav { display: block; }
}
/* opened via keyboard focus (JS adds .kb-open) or chevron toggle */
.main-nav li.has-sub.kb-open > .sub-nav { display: block; }
.sub-nav li a {
  display: block; padding: 9px 18px; color: var(--bb-text); font-weight: 400;
}
.sub-nav li a:hover, .sub-nav li a:focus { background: var(--bb-soft); color: var(--bb-red); }
.sub-nav li.active > a { color: var(--bb-red); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0; border-radius: 2px;
}

/* ---------- hero slider (home) ---------- */
.hero {
  position: relative;
  min-height: 480px;
  background: var(--bb-red-dark);
  overflow: hidden;
}
.hero-slides { position: relative; min-height: 480px; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.9s ease;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(40,14,8,0.86) 0%, rgba(40,14,8,0.55) 55%, rgba(40,14,8,0.25) 100%);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-caption { position: relative; color: #fff; padding: 80px 20px; max-width: 720px; }
.hero-caption .hero-title { font-size: 2.5rem; margin-bottom: 0.4em; }
.hero-caption .hero-title a { color: #fff; }
.hero-caption .hero-title a:hover { text-decoration: none; color: #ffd9d2; }
.hero-caption p { font-size: 1.1rem; color: #f2e8e5; margin-bottom: 1.4em; }

.hero-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; gap: 10px; justify-content: center; z-index: 3;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: transparent;
  cursor: pointer; padding: 0;
}
.hero-dot.active { background: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-light { background: #fff; color: var(--bb-red); }
.btn-light:hover { background: #ffe9e4; color: var(--bb-red-dark); }
.btn-red { background: var(--bb-red); color: #fff; }
.btn-red:hover { background: var(--bb-red-bright); color: #fff; }

/* ---------- sections ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4em; }
.section-head h2 { font-size: 2rem; }
.section-sub { color: var(--bb-muted); font-size: 1.05rem; }

.services { padding: 72px 0; background: var(--bb-soft); }
.services-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
.service-card {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 28px 26px;
  box-shadow: var(--bb-shadow);
  display: flex; flex-direction: column;
}
.service-card h3 {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--bb-red-bright);
  display: inline-block;
}
.service-card h3 a { color: var(--bb-red); }
.service-card p { color: var(--bb-muted); margin-bottom: 0.8em; flex: 1; }
.service-more a { font-weight: 600; }

.latest-news { padding: 72px 0; }
.news-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.news-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--bb-shadow);
  display: flex; flex-direction: column;
}
.news-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bb-soft); }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-text { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { color: var(--bb-muted); font-size: 0.85rem; margin-bottom: 0.3em; }
.news-title { font-size: 1.05rem; margin-bottom: 0.5em; }
.news-title a { color: var(--bb-text); }
.news-title a:hover { color: var(--bb-red); }
.news-excerpt { color: var(--bb-muted); font-size: 0.92rem; margin: 0; flex: 1; }

/* ---------- page hero / breadcrumbs ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--bb-red-dark) 0%, var(--bb-red) 70%, #8a3a26 100%);
  color: #fff;
  padding: 54px 0 46px;
}
.page-hero h1 { color: #fff; font-size: 2.2rem; margin: 0.4em 0 0; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; font-size: 0.88rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: #e9dcd8; }
.breadcrumbs li + li::before { content: "/"; color: #b98d81; }
.breadcrumbs a { color: #f5ebe8; }
.breadcrumbs a:hover { color: #fff; }

.page-body { padding: 48px 0 72px; max-width: 860px; }

/* ---------- content typography (imported WP content) ---------- */
.page-body p, .post-body p { margin-bottom: 1.1em; }
.page-body h2, .post-body h2 {
  font-size: 1.6rem; margin-top: 1.6em;
  padding-bottom: 0.25em; border-bottom: 1px solid var(--bb-border);
}
.page-body h3, .post-body h3 { font-size: 1.25rem; margin-top: 1.4em; }
.page-body h4, .post-body h4 { font-size: 1.05rem; margin-top: 1.2em; }

figure { margin: 1.4em 0; }
figure img { border-radius: 6px; display: block; margin: 0 auto; }
figcaption { font-size: 0.85rem; color: var(--bb-muted); text-align: center; margin-top: 8px; }

.align-right { float: right; margin: 0.4em 0 1em 1.4em; max-width: 50%; }
.align-left { float: left; margin: 0.4em 1.4em 1em 0; max-width: 50%; }
.align-center { margin-left: auto; margin-right: auto; }

.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; }

.columns { display: flex; flex-wrap: wrap; gap: 20px; margin: 1.4em 0; }
.column { flex: 1 1 300px; min-width: 0; }

blockquote, .group blockquote {
  margin: 1.4em 0;
  padding: 14px 22px;
  border-left: 4px solid var(--bb-red-bright);
  background: var(--bb-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: #3c4043;
}
blockquote cite { display: block; font-size: 0.9rem; color: var(--bb-muted); font-style: normal; margin-top: 8px; }

table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--bb-border); padding: 8px 12px; text-align: left; }
th { background: var(--bb-soft); }

.cover { position: relative; margin: 1.6em 0; border-radius: var(--bb-radius); overflow: hidden; }
.cover .group, .cover > div { color: #fff; padding: 42px 28px; background: rgba(40, 14, 8, 0.82); }

.tablewrap { overflow-x: auto; }

.media-text { display: flex; gap: 24px; align-items: center; margin: 1.6em 0; }
.media-text img { flex: 0 1 45%; border-radius: 6px; }

/* content buttons (WP button blocks) */
a.btn, .post-body .btn a, .page-body .btn a {
  border-radius: 999px !important;
  padding: 10px 24px !important;
  background: var(--bb-red) !important;
  color: #fff !important;
  font-weight: 700;
  display: inline-block;
}
a.btn:hover, .post-body .btn a:hover, .page-body .btn a:hover {
  background: var(--bb-red-bright) !important;
}

/* ---------- post ---------- */
.post { padding: 48px 20px 64px; }
.post-header { border-bottom: 1px solid var(--bb-border); padding-bottom: 16px; margin-bottom: 28px; }
.post-meta { color: var(--bb-muted); font-size: 0.9rem; margin: 0; }
.post-meta .dot { margin: 0 8px; color: var(--bb-border); }
.post-body { max-width: 860px; }
.post-tags { margin-top: 40px; }
.post-tags ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.post-tags a {
  display: inline-block; padding: 4px 14px;
  background: var(--bb-soft); border: 1px solid var(--bb-border);
  border-radius: 999px; font-size: 0.85rem; color: var(--bb-text);
}
.post-tags a:hover { background: #ffe9e4; color: var(--bb-red); border-color: #f2c8bf; }
.post-back { margin-top: 28px; font-weight: 600; }

/* ---------- news list ---------- */
.news-list { display: flex; flex-direction: column; gap: 22px; padding: 48px 0 24px; }
.news-item {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px;
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius);
  overflow: hidden; background: #fff; box-shadow: var(--bb-shadow);
}
.news-thumb { display: block; min-height: 190px; background: var(--bb-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb-empty { display: block; width: 100%; height: 100%; }
.news-text { padding: 22px 24px 18px 0; }
.news-text .news-date { margin-bottom: 4px; }
.news-title { font-size: 1.3rem; margin-bottom: 0.4em; }
.news-title a { color: var(--bb-text); }
.news-title a:hover { color: var(--bb-red); }
.news-excerpt { color: var(--bb-muted); }
.news-more { margin: 0; font-weight: 600; }

.pagination { padding: 20px 0 56px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.pagination a, .pagination span {
  display: inline-block; min-width: 42px; text-align: center;
  padding: 8px 14px; border: 1px solid var(--bb-border);
  border-radius: 8px; color: var(--bb-text);
}
.pagination a:hover { border-color: var(--bb-red); color: var(--bb-red); text-decoration: none; }
.pagination .current span { background: var(--bb-red); color: #fff; border-color: var(--bb-red); }

/* ---------- footer ---------- */
.site-footer {
  background: #22150f;
  color: #d8cfc9;
  padding: 56px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 40px;
}
.footer-h {
  color: #fff; font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 14px;
}
.footer-col a { color: #f0b9ab; }
.footer-col a:hover { color: #fff; }
.footer-logo img { height: 36px; width: auto; margin-bottom: 12px; opacity: 0.92; }
.footer-desc-en { font-size: 0.88rem; color: #a89a92; }
.footer-address { line-height: 1.8; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0; text-align: center; font-size: 0.88rem; color: #a89a92;
}
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: var(--bb-header-h); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow);
    max-height: calc(100vh - var(--bb-header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-top: 1px solid var(--bb-soft); position: relative; }
  .main-nav > ul > li.has-sub { display: flex; align-items: stretch; }
  .main-nav > ul > li.has-sub > a { flex: 1; }
  .main-nav > ul > li > a { padding: 14px 20px; }
  .main-nav > ul > li.active > a::after { display: none; }
  .sub-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; border-left: 1px solid var(--bb-soft);
  }
  .main-nav li.open > .sub-toggle { color: var(--bb-red); }
  .main-nav li.open > .sub-toggle svg { transform: rotate(180deg); }
  .sub-nav {
    display: none; position: static; box-shadow: none; border: 0;
    background: var(--bb-soft); min-width: 0; padding: 0;
  }
  .main-nav li.open > .sub-nav { display: block; }
  .sub-nav li a { padding: 10px 20px 10px 34px; }

  .hero { min-height: 420px; }
  .hero-slides { min-height: 420px; }
  .hero-caption { padding: 56px 20px; }
  .hero-caption .hero-title { font-size: 1.8rem; }
  .hero-caption p { font-size: 1rem; }

  .page-hero h1 { font-size: 1.7rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 200px 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-thumb { min-height: 180px; max-height: 220px; }
  .news-text { padding: 0 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; }
  .media-text { flex-direction: column; align-items: stretch; }
  .media-text img { flex: none; width: 100%; }
  .align-right, .align-left { float: none; max-width: 100%; margin: 1em auto; }
  .hero-caption .hero-title { font-size: 1.5rem; }
  .services, .latest-news { padding: 48px 0; }
  .section-head h2 { font-size: 1.6rem; }
}
