/* ============================================================
   VESTEA BUNĂ — FSE Theme CSS
   Design tokens from theme.json · Shortcode output styles
   Plugin compatibility: GTranslate, Smart Slider 3, Team Showcase
   ============================================================ */

/* ---------- GOOGLE FONTS IMPORT ---------- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700;800;900&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

/* ---------- ROOT VARS (supplement theme.json tokens) ---------- */
:root {
  --vb-torch: #E7741F;
  --vb-torch-bright: #F89B3C;
  --vb-ember: #BE3A14;
  --vb-gold: #D6A23C;
  --vb-danube: #2E7B7C;
  --vb-ink: #16110B;
  --vb-stone-900: #291F16;
  --vb-stone-700: #4A3727;
  --vb-stone-500: #73593F;
  --vb-stone-300: #A98C6B;
  --vb-sand: #E6D6BB;
  --vb-paper: #FAF5EB;
  --vb-paper-2: #F4ECDD;
  --vb-r-sm: 6px;
  --vb-r-md: 12px;
  --vb-r-lg: 20px;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
::selection { background: var(--vb-torch); color: #fff }

/* ---------- HEADER ---------- */
.vb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 235, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(22, 17, 11, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.admin-bar .vb-header { top: 32px }
@media (max-width: 782px) { .admin-bar .vb-header { top: 46px } }

/* Nav links */
.vb-header .wp-block-navigation__container a {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--vb-ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  opacity: 0.82;
}
.vb-header .wp-block-navigation__container a:hover {
  opacity: 1;
  background: rgba(22, 17, 11, 0.06);
  color: var(--vb-ink);
  text-decoration: none;
}
.vb-header .wp-block-navigation__container .current-menu-item > a {
  opacity: 1;
  color: var(--vb-torch);
}

/* GTranslate in header */
.vb-gtranslate-wrap {
  display: inline-flex;
  align-items: center;
}
.vb-gtranslate-wrap .gt_switcher,
.vb-gtranslate-wrap select {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(22, 17, 11, 0.15);
  border-radius: 999px;
  padding: 5px 10px;
  background: transparent;
  color: var(--vb-ink);
  cursor: pointer;
}

/* ---------- HERO / SMART SLIDER ---------- */
.vb-hero-wrap {
  position: relative;
}
.vb-hero-wrap .n2-ss-slider-wrapper,
.vb-hero-wrap .n2-ss-slide-wrapper {
  border-radius: 0 !important;
}

/* ---------- BUTTONS ---------- */
.wp-block-button .wp-block-button__link {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.25s, color 0.25s, border-color 0.25s;
  line-height: 1;
}
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--vb-torch);
  color: #fff;
  border: 1.5px solid var(--vb-torch);
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--vb-torch-bright);
  border-color: var(--vb-torch-bright);
  transform: translateY(-2px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1.5px solid rgba(22,17,11,0.2);
  color: var(--vb-ink);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--vb-ink);
  transform: translateY(-2px);
}
/* Outline on dark background */
.vb-give .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

/* ---------- BLOG CARDS ---------- */
.vb-blog-card {
  border: 1px solid rgba(22,17,11,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
  background: #fff;
}
.vb-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.3);
}
.vb-blog-card .wp-block-post-title a { text-decoration: none; color: inherit }
.vb-blog-card .wp-block-post-title a:hover { color: var(--vb-torch) }

/* ---------- WORD QUOTE CARD ---------- */
.vb-word-quote {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.55);
}

/* ---------- PROJECTS SHORTCODE OUTPUT ---------- */
.vb-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--wp--style--global--wide-size, 1280px);
  margin: 0 auto;
}
.vb-proj-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(22,17,11,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
}
.vb-proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.3);
}
.vb-proj-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.vb-proj-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vb-proj-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vb-torch);
  background: color-mix(in srgb, var(--vb-torch) 14%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.vb-proj-body h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--vb-ink);
}
.vb-proj-body h3 a { color: inherit; text-decoration: none }
.vb-proj-body h3 a:hover { color: var(--vb-torch) }
.vb-proj-full {
  font-size: 13px;
  color: var(--vb-stone-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.vb-proj-body p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--vb-stone-500);
  flex: 1;
  margin: 0;
}
.vb-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--vb-torch);
  text-decoration: none;
  margin-top: 18px;
  transition: gap 0.2s;
}
.vb-link-arrow:hover { gap: 10px; color: var(--vb-ember) }

/* ---------- EVENTS SHORTCODE OUTPUT ---------- */
.vb-events-list {
  max-width: var(--wp--style--global--wide-size, 1280px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Featured event card */
.vb-event-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border: 1px solid rgba(22,17,11,0.1);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.vb-event-feature .vb-event-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.vb-event-feature-body {
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vb-event-feature-body h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.0;
  margin: 10px 0 0;
  color: var(--vb-ink);
}
.vb-event-feature-body p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--vb-stone-500);
  margin: 16px 0 0;
  max-width: 46ch;
}
.vb-event-feature-body .vb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vb-torch);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 24px;
  align-self: flex-start;
  transition: background 0.25s, transform 0.25s;
}
.vb-event-feature-body .vb-btn-primary:hover {
  background: var(--vb-torch-bright);
  transform: translateY(-2px);
}

/* Event date badge */
.vb-event-date {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--vb-torch);
  text-transform: uppercase;
}

/* Event meta (time, place) */
.vb-event-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--vb-stone-500);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

/* List event rows */
.vb-event-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(22,17,11,0.1);
}
.vb-event-row:last-child { border-bottom: 1px solid rgba(22,17,11,0.1) }
.vb-event-main h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  margin: 0;
  color: var(--vb-ink);
}
.vb-event-main h4 a { color: inherit; text-decoration: none }
.vb-event-main h4 a:hover { color: var(--vb-torch) }

/* ---------- GIVE SECTION ---------- */
.vb-give {
  position: relative;
  overflow: hidden;
}
.vb-give::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.4'%3E%3Cpath d='M0 360 Q300 290 600 330 T1200 300'/%3E%3Cpath d='M0 320 Q300 245 600 290 T1200 256'/%3E%3Cpath d='M0 278 Q300 200 600 248 T1200 212'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* ---------- FOOTER ---------- */
.vb-footer { position: relative; overflow: hidden }
.vb-footer a { transition: color 0.2s }
.vb-footer a:hover { color: #fff !important; text-decoration: none }
.vb-footer .wp-block-navigation a {
  color: rgba(234,223,205,0.78) !important;
  font-size: 15px;
  line-height: 2;
}
.vb-footer .wp-block-navigation a:hover { color: #fff !important }

/* ---------- MAP EMBED ---------- */
.vb-map-embed {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(22,17,11,0.1);
}
.vb-map-embed iframe {
  display: block;
  width: 100%;
}

/* ---------- TEAM SHOWCASE PLUGIN OVERRIDES ---------- */
/* Make Team Showcase output match our warm palette */
.tmf-member-wrap,
.tmf_team_member {
  border-radius: var(--vb-r-lg) !important;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1) !important;
}
.tmf-member-wrap:hover,
.tmf_team_member:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.25) !important;
}
.tmf-name, .tmf_member_name {
  font-family: 'Archivo', system-ui, sans-serif !important;
  font-weight: 700 !important;
  color: var(--vb-ink) !important;
}
.tmf-role, .tmf_member_position {
  color: var(--vb-torch) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

/* ---------- GTRANSLATE OVERRIDES ---------- */
.gt_switcher_wrapper,
#google_translate_element {
  display: inline-block;
}
.gt_switcher select,
#google_translate_element select {
  font-family: 'Hanken Grotesk', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  border: 1px solid rgba(22,17,11,0.15) !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  background: transparent !important;
  color: var(--vb-ink) !important;
  cursor: pointer;
}

/* ---------- SMART SLIDER 3 OVERRIDES ---------- */
/* Ensure slider fills the container */
.vb-hero-wrap .n2-ss-slider { width: 100% !important }

/* ---------- PAGINATION ---------- */
.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22,17,11,0.12);
  font-weight: 700;
  font-size: 14px;
  color: var(--vb-ink);
  text-decoration: none;
  transition: all 0.2s;
}
.wp-block-query-pagination-numbers .current {
  background: var(--vb-torch);
  color: #fff;
  border-color: var(--vb-torch);
}
.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination-next a:hover {
  border-color: var(--vb-ink);
}

/* ---------- CONTENT (single posts) ---------- */
.wp-block-post-content {
  font-size: 17px;
  line-height: 1.75;
}
.wp-block-post-content h2, .wp-block-post-content h3 {
  margin-top: 48px;
  margin-bottom: 18px;
}
.wp-block-post-content p { margin-bottom: 24px }
.wp-block-post-content blockquote {
  border-left: 3px solid var(--vb-torch);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
}
.wp-block-post-content a {
  color: var(--vb-torch);
  text-decoration: underline;
}
.wp-block-post-content a:hover { color: var(--vb-ember) }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .vb-projects-grid { grid-template-columns: 1fr 1fr }
  .vb-event-feature { grid-template-columns: 1fr }
  .vb-event-feature .vb-event-img { min-height: 240px }
}
@media (max-width: 860px) {
  .vb-header .wp-block-navigation { display: none }
}
@media (max-width: 640px) {
  .vb-projects-grid { grid-template-columns: 1fr }
  .vb-event-row { grid-template-columns: 1fr; gap: 10px }
  .vb-event-feature { grid-template-columns: 1fr }
}

/* ============================================================
   WELCOME SECTION — slider background + content overlay
   ============================================================ */
.vb-welcome-wrap {
  position: relative;
  overflow: hidden;
}

/* Slider fills the full section as a background layer */
.vb-welcome-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.vb-welcome-slider > *,
.vb-welcome-slider .n2-ss-slider-wrapper,
.vb-welcome-slider .n2-ss-slider {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

/* Subtle dark scrim so text is readable over any slider image */
.vb-welcome-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 11, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* Content panel sits above slider and scrim */
.vb-welcome-content {
  position: relative;
  z-index: 2;
  margin: clamp(40px, 6vw, 80px) auto;
  max-width: 1280px;
  /* Semi-transparent so slider peeks around edges */
  background: rgba(250, 245, 235, 0.96) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 32px 80px rgba(22, 17, 11, 0.25);
}

/* Ensure the outer wrap has min height from the slider */
.vb-welcome-wrap .n2-ss-slider-wrapper {
  min-height: 520px;
}

/* ============================================================
   NAVIGATION — header fixes
   ============================================================ */
.vb-header .wp-block-navigation {
  flex: 1;
  justify-content: center;
}
.vb-header .wp-block-navigation .wp-block-navigation__container {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
}
.vb-header .wp-block-navigation-item__content {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--vb-ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  opacity: 0.82;
  text-decoration: none !important;
}
.vb-header .wp-block-navigation-item__content:hover {
  background: rgba(22, 17, 11, 0.07);
  opacity: 1;
  color: var(--vb-ink);
}
.vb-header .current-menu-item .wp-block-navigation-item__content {
  color: var(--vb-torch);
  opacity: 1;
}

/* Mobile hamburger */
.vb-header .wp-block-navigation__responsive-container-open {
  color: var(--vb-ink);
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.vb-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--vb-paper);
  z-index: 200;
}

/* ============================================================
   FOOTER NAV — vertical list
   ============================================================ */
.vb-footer .wp-block-navigation .wp-block-navigation__container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.vb-footer .wp-block-navigation-item__content {
  font-size: 15px;
  line-height: 2;
  color: rgba(234, 223, 205, 0.78) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0;
  transition: color 0.2s;
}
.vb-footer .wp-block-navigation-item__content:hover {
  color: #fff !important;
}

/* ============================================================
   SECTION WIDTH CONSISTENCY
   All sections: outer full-bleed, inner alignwide = 1280px max
   ============================================================ */
.wp-block-group.alignwide,
.wp-block-columns.alignwide {
  max-width: var(--wp--style--global--wide-size, 1280px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Give section alignwide inner */
.vb-give .wp-block-group.alignwide {
  max-width: 1280px;
}
