/*
Theme Name: BFF Slovensko
Theme URI: https://www.bffslovensko.sk/
Author: BFF Slovensko
Description: Vlastná bloková WordPress šablóna pre BFF Slovensko. Obsahuje editovateľné sekcie, služby, realizácie, recenzie a kontaktný formulár.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bff-slovensko
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, featured-images, blog
*/

:root {
  --bff-shadow-sm: 0 10px 30px rgba(23, 25, 28, 0.07);
  --bff-shadow-md: 0 22px 60px rgba(23, 25, 28, 0.14);
  --bff-radius-sm: 10px;
  --bff-radius-md: 18px;
  --bff-radius-lg: 28px;
  --bff-border: rgba(23, 25, 28, 0.11);
  --bff-transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--wp--preset--color--gold);
  outline-offset: 3px;
}

.bff-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(23, 25, 28, 0.09);
}

.admin-bar .bff-site-header {
  top: 32px;
}

.bff-topbar {
  font-size: 0.82rem;
  letter-spacing: 0.015em;
}

.bff-topbar p {
  margin-block: 0;
}

.bff-topbar a {
  color: inherit;
  text-decoration: none;
}

.bff-main-header {
  min-height: 76px;
}

.bff-brand {
  gap: 0.65rem;
}

.bff-brand-logo,
.bff-brand-logo img {
  flex: 0 0 auto;
}

.bff-brand-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.bff-brand-copy {
  gap: 0.1rem;
}

.bff-brand-copy > * {
  margin-block: 0;
}

.bff-brand-copy a {
  color: inherit;
  text-decoration: none;
}

.bff-main-nav .wp-block-navigation-item__content {
  padding: 0.48rem 0.2rem;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.bff-main-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--gold-dark);
}

.bff-main-nav .bff-nav-cta .wp-block-navigation-item__content {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--gold);
  font-weight: 800;
}

.bff-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 660px;
  display: grid;
  align-items: center;
}

.bff-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: 0.13;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.bff-hero::after {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -90px;
  width: 590px;
  height: 590px;
  border: 92px solid rgba(231, 167, 37, 0.15);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.bff-hero-grid {
  width: 100%;
}

.bff-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-block: 0 0.75rem;
  color: var(--wp--preset--color--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bff-hero .bff-eyebrow,
.bff-contact-section .bff-eyebrow,
.bff-highlight-panel .bff-eyebrow {
  color: var(--wp--preset--color--gold);
}

.bff-eyebrow::before {
  width: 34px;
  height: 3px;
  content: "";
  background: currentColor;
}

.bff-hero-title {
  max-width: 760px;
  margin-block: 0;
  text-wrap: balance;
}

.bff-hero-copy {
  max-width: 680px;
  margin-top: 1.35rem;
  opacity: 0.88;
}

.bff-hero-actions {
  margin-top: 2rem;
}

.bff-hero-note {
  margin-top: 1.3rem;
  opacity: 0.68;
  font-size: 0.86rem;
}

.wp-block-button__link,
.bff-form-submit {
  transition:
    transform var(--bff-transition),
    background-color var(--bff-transition),
    color var(--bff-transition),
    box-shadow var(--bff-transition);
}

.wp-block-button__link:hover,
.bff-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.wp-block-button.is-style-bff-outline .wp-block-button__link {
  border: 2px solid rgba(255, 255, 255, 0.56);
  color: var(--wp--preset--color--white);
  background: transparent;
}

.wp-block-button.is-style-bff-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--gold);
}

.bff-hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--bff-radius-lg);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.bff-panel-kicker,
.bff-panel-foot {
  color: var(--wp--preset--color--gold);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bff-panel-kicker {
  margin: 0 0 0.9rem;
}

.bff-panel-foot {
  margin: 1.2rem 0 0;
}

.bff-hero-service {
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.bff-hero-service p {
  margin-block: 0;
}

.bff-hero-service small {
  opacity: 0.65;
}

.bff-service-index {
  min-width: 2.25rem;
  color: var(--wp--preset--color--gold);
  font-size: 0.78rem;
  font-weight: 850;
}

.bff-section-heading {
  max-width: 760px;
  margin-top: 0;
  text-wrap: balance;
}

.bff-section-intro {
  max-width: 720px;
}

.bff-audience-card,
.bff-service-card,
.bff-project-card,
.bff-post-card,
.wp-block-group.is-style-bff-card {
  height: 100%;
  border: 1px solid var(--bff-border);
  border-radius: var(--bff-radius-md);
  background: var(--wp--preset--color--white);
  box-shadow: var(--bff-shadow-sm);
  transition:
    transform var(--bff-transition),
    box-shadow var(--bff-transition),
    border-color var(--bff-transition);
}

.bff-audience-card:hover,
.bff-service-card:hover,
.bff-project-card:hover,
.bff-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 167, 37, 0.8);
  box-shadow: var(--bff-shadow-md);
}

.bff-card-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--gold-soft);
  font-size: 0.75rem;
  font-weight: 850;
}

.bff-card-link,
.bff-text-link {
  font-weight: 800;
}

.bff-card-link {
  margin-top: auto;
}

.bff-card-link a,
.bff-text-link a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.bff-card-link a:hover,
.bff-text-link a:hover {
  color: var(--wp--preset--color--gold-dark);
}

.bff-query-grid > .wp-block-post-template {
  align-items: stretch;
}

.bff-service-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--wp--preset--color--gold);
}

.bff-service-card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bff-service-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 0 0.5rem;
  border-radius: 12px;
  place-items: center;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--gold-soft);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.bff-service-card .wp-block-post-title a,
.bff-project-card .wp-block-post-title a,
.bff-post-card .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.bff-service-card .wp-block-post-title a:hover,
.bff-project-card .wp-block-post-title a:hover,
.bff-post-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--gold-dark);
}

.bff-service-card .wp-block-post-excerpt__more-link,
.bff-project-card .wp-block-post-excerpt__more-link,
.bff-post-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.bff-audience-terms {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--bff-border);
  color: var(--wp--preset--color--muted);
}

.bff-audience-terms a {
  color: inherit;
  text-decoration: none;
}

.bff-scope-box {
  border: 1px solid rgba(231, 167, 37, 0.5);
  border-radius: var(--bff-radius-lg);
  background:
    linear-gradient(90deg, rgba(248, 232, 191, 0.55), rgba(255, 255, 255, 0.85)),
    var(--wp--preset--color--white);
}

.bff-about-visual {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--bff-radius-lg);
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--ink);
  box-shadow: var(--bff-shadow-md);
}

.bff-about-visual::before,
.bff-about-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.bff-about-visual::before {
  top: -85px;
  right: -85px;
  width: 240px;
  height: 240px;
  border: 42px solid rgba(231, 167, 37, 0.22);
}

.bff-about-visual::after {
  right: 40px;
  bottom: 40px;
  width: 86px;
  height: 86px;
  background: var(--wp--preset--color--gold);
  opacity: 0.92;
}

.bff-about-since,
.bff-about-area {
  color: var(--wp--preset--color--gold);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.bff-about-year {
  margin: 0;
  font-size: clamp(4.6rem, 10vw, 7.6rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.bff-about-visual hr {
  margin-block: 2rem;
  opacity: 0.28;
}

.bff-check-list {
  padding-left: 0;
  list-style: none;
}

.bff-check-list li {
  position: relative;
  padding-left: 1.9rem;
}

.bff-check-list li + li {
  margin-top: 0.75rem;
}

.bff-check-list li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  content: "\2713";
  place-items: center;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.bff-highlight-panel,
.wp-block-group.is-style-bff-highlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--bff-radius-lg);
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--ink);
}

.bff-highlight-panel::after,
.wp-block-group.is-style-bff-highlight::after {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 58px solid rgba(231, 167, 37, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.bff-process-grid {
  position: relative;
  z-index: 1;
}

.bff-process-card {
  height: 100%;
  padding: 0 1.2rem 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.bff-process-grid > .wp-block-column:last-child .bff-process-card {
  border-right: 0;
}

.bff-process-number {
  color: var(--wp--preset--color--gold);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.bff-project-card .wp-block-post-featured-image img,
.bff-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.bff-project-card .wp-block-post-featured-image,
.bff-post-card .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: var(--bff-radius-md) var(--bff-radius-md) 0 0;
}

.bff-empty-state {
  padding: 1.2rem 1.4rem;
  border: 1px dashed rgba(23, 25, 28, 0.25);
  border-radius: var(--bff-radius-sm);
  color: var(--wp--preset--color--muted);
  background: rgba(255, 255, 255, 0.72);
}

.bff-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50);
}

.bff-review-card {
	display: flex;
	min-height: 240px;
	flex-direction: column;
	padding: clamp(1.35rem, 3vw, 1.8rem);
	border: 1px solid var(--bff-border);
	border-top: 4px solid var(--wp--preset--color--gold);
	border-radius: var(--bff-radius-md);
	background: var(--wp--preset--color--white);
	box-shadow: var(--bff-shadow-sm);
}

.bff-review-stars {
	display: flex;
	gap: 0.16rem;
	margin-bottom: 1rem;
	font-size: 1.08rem;
	letter-spacing: 0.02em;
}

.bff-review-stars .is-filled {
	color: var(--wp--preset--color--gold-dark);
}

.bff-review-stars .is-empty {
	color: rgba(23, 25, 28, 0.18);
}

.bff-review-quote {
	color: var(--wp--preset--color--ink);
}

.bff-review-quote > :first-child {
	margin-top: 0;
}

.bff-review-quote > :last-child {
	margin-bottom: 0;
}

.bff-review-card h3 {
	margin: auto 0 0;
	padding-top: 1.25rem;
	font-size: 1.05rem;
}

.bff-review-source {
	display: inline-block;
	margin-top: 0.55rem;
	color: var(--wp--preset--color--gold-dark);
	font-size: 0.82rem;
	font-weight: 750;
	text-decoration: none;
}

.bff-contact-section {
  position: relative;
  overflow: hidden;
}

.bff-contact-section::after {
  position: absolute;
  z-index: 0;
  left: -180px;
  bottom: -230px;
  width: 470px;
  height: 470px;
  border: 72px solid rgba(231, 167, 37, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.bff-contact-section > .wp-block-columns {
  position: relative;
  z-index: 1;
}

.bff-contact-card {
  border-radius: var(--bff-radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.bff-contact-details {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.bff-contact-detail {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bff-contact-detail span {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--wp--preset--color--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bff-contact-detail a,
.bff-contact-detail strong {
  color: var(--wp--preset--color--white);
  text-decoration: none;
}

.bff-contact-form-wrap {
  color: var(--wp--preset--color--ink);
}

.bff-contact-form {
  margin: 0;
}

.bff-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.bff-form-field,
.bff-form-consent,
.bff-form-note {
  margin-block: 0 1rem;
}

.bff-form-field label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.84rem;
  font-weight: 750;
}

.bff-form-field input,
.bff-form-field select,
.bff-form-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(23, 25, 28, 0.2);
  border-radius: 9px;
  color: var(--wp--preset--color--ink);
  background: #fff;
  font: inherit;
}

.bff-form-field input,
.bff-form-field select {
  min-height: 48px;
  padding: 0.65rem 0.8rem;
}

.bff-form-field textarea {
  min-height: 138px;
  padding: 0.8rem;
  resize: vertical;
}

.bff-form-field input:focus,
.bff-form-field select:focus,
.bff-form-field textarea:focus {
  border-color: var(--wp--preset--color--gold-dark);
  box-shadow: 0 0 0 3px rgba(231, 167, 37, 0.18);
}

.bff-form-consent {
  font-size: 0.82rem;
}

.bff-form-consent input {
  margin-right: 0.35rem;
}

.bff-form-note {
  color: var(--wp--preset--color--muted);
  font-size: 0.8rem;
}

.bff-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bff-form-submit {
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  border: 0;
  border-radius: 8px;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.bff-form-message {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 9px;
  background: var(--wp--preset--color--paper);
  font-weight: 700;
}

.bff-form-message--success {
  border-left: 4px solid #22863a;
}

.bff-form-message--invalid,
.bff-form-message--spam,
.bff-form-message--error {
  border-left: 4px solid #b42318;
}

.bff-contact-strip {
  border-radius: var(--bff-radius-lg);
  box-shadow: var(--bff-shadow-md);
}

.bff-page-hero {
  border-bottom: 1px solid var(--bff-border);
}

.bff-content-area > * {
  margin-block-start: 1.4rem;
}

.bff-content-area > :first-child {
  margin-block-start: 0;
}

.bff-content-area img {
  border-radius: var(--bff-radius-sm);
}

.bff-content-area blockquote {
  border-left: 5px solid var(--wp--preset--color--gold);
}

.bff-site-footer a {
  color: inherit;
}

.bff-site-footer a:hover {
  color: var(--wp--preset--color--gold);
}

.bff-footer-title {
  color: var(--wp--preset--color--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .bff-hero {
    min-height: auto;
  }

  .bff-hero-grid {
    gap: 2.5rem;
  }

  .bff-hero-grid > .wp-block-column {
    flex-basis: 100% !important;
  }

  .bff-hero-panel {
    max-width: 680px;
  }

  .bff-about-visual {
    min-height: 380px;
  }
}

@media (max-width: 782px) {
  html {
    scroll-padding-top: 82px;
  }

  .bff-reviews-grid {
    grid-template-columns: 1fr;
  }

  .admin-bar .bff-site-header {
    top: 46px;
  }

  .bff-topbar {
    display: none;
  }

  .bff-main-header {
    min-height: 68px;
  }

  .bff-brand-logo img {
    width: 50px;
    height: 50px;
  }

  .bff-brand-copy .wp-block-site-tagline {
    display: none;
  }

  .bff-hero::after {
    top: -90px;
    right: -260px;
  }

  .bff-hero-actions .wp-block-button,
  .bff-hero-actions .wp-block-button__link {
    width: 100%;
  }

  .bff-hero-actions .wp-block-button__link {
    text-align: center;
  }

  .bff-process-card {
    padding-bottom: 1.1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .bff-process-grid > .wp-block-column:last-child .bff-process-card {
    border-bottom: 0;
  }

  .bff-contact-strip,
  .bff-contact-card {
    border-radius: var(--bff-radius-md);
  }
}

@media (max-width: 600px) {
  .bff-brand-copy {
    display: none;
  }

  .bff-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bff-about-visual {
    min-height: 330px;
  }

  .bff-about-visual::after {
    width: 66px;
    height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
