/*
Theme Name: EUCRI
Theme URI: https://eucri.com/
Author: EUCRI
Author URI: https://eucri.com/
Description: Namjenska, responzivna i SEO optimizirana WordPress tema za EUCRI.
Version: 2.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: eucri
*/

.screen-reader-text,
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.screen-reader-text:focus {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  z-index: 100000 !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  padding: 12px 18px !important;
  background: #fff !important;
  color: #051d36 !important;
}

.form-alert {
  border: 1px solid #93b79e;
  border-left: 4px solid #1f7437;
  border-radius: 10px;
  background: #f0faf3;
  color: #174f28;
  padding: 14px 16px;
  margin: 0 0 22px;
  font-weight: 700;
}

.form-alert.error {
  border-color: #d9a0a0;
  border-left-color: #a22929;
  background: #fff5f5;
  color: #7f2020;
}

.form-alert.warning {
  border-color: #e0bd72;
  border-left-color: #a46600;
  background: #fff9ed;
  color: #704600;
}

.form-alert a {
  color: inherit;
}

#contact-form {
  scroll-margin-top: 130px;
}

.wp-fallback {
  max-width: 900px;
  margin-inline: auto;
  padding: 80px 24px 110px;
}

.wp-fallback h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.wp-fallback img {
  height: auto;
}

.error-page {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.error-page .actions {
  margin-top: 28px;
}

/* Version 2: bilingual, editable Gutenberg content. */
.section {
  padding: 88px 0;
}

.home-hero-grid {
  min-height: 620px;
}

.brand,
.brand img {
  width: 218px !important;
}

.brand {
  height: 82px !important;
  flex: 0 0 218px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 3px;
  font-size: .76rem;
  font-weight: 850;
}

.language-switcher a {
  color: #66727d;
  text-decoration: none;
}

.language-switcher a[aria-current="true"],
.language-switcher a:hover,
.language-switcher a:focus {
  color: var(--blue);
}

.home-hero-grid > div:first-child h1 {
  max-width: 800px;
  margin: .22em 0;
}

.home-hero-grid > div:first-child > p {
  max-width: 720px;
  color: #d1deea;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link.light { color: #fff; }

.hero-panel {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 26px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}

.hero-panel > span {
  display: block;
  color: #8ec1ff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-panel > strong {
  display: block;
  margin: 12px 0;
  font-size: 1.6rem;
}

.hero-panel p { color: #c9d9e7; }
.hero-panel ul { margin: 25px 0 0; padding: 0; list-style: none; }
.hero-panel li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); font-weight: 750; }

.proof-strip { border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-grid > div { min-height: 92px; padding: 20px 22px; border-right: 1px solid var(--line); }
.proof-grid > div:first-child { border-left: 1px solid var(--line); }
.proof-grid strong,.proof-grid span { display: block; }
.proof-grid strong { color: var(--blue); }
.proof-grid span { color: var(--muted); font-size: .78rem; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
  column-gap: 64px;
  row-gap: 18px;
  align-items: end;
  margin-bottom: 44px;
}

.section-head .kicker {
  grid-column: 1 / -1;
  margin: 0;
}

.section-head h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 3.7vw, 3.9rem);
}

.section-head > p {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid .service-card { display: flex; flex-direction: column; gap: 0; min-height: 295px; }
.service-grid .service-card > span { color: var(--blue); font-size: .75rem; font-weight: 900; }
.service-grid .service-card h2 { margin: 32px 0 12px; font-size: 1.5rem; }
.service-grid .service-card h2 a { text-decoration: none; }
.service-grid .service-card > a:last-child { margin-top: auto; color: var(--blue); font-weight: 800; text-decoration: none; }

.inverse .prose p,.section-blue .prose p,.section-blue p { color: #dcecff; }

.catalog-group > ol {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.catalog-group > ol li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  font-size: .92rem;
}

.catalog-group > ol li > span { color: var(--blue); font-weight: 850; }
.catalog-group-head > a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; text-decoration: none; }

.service-intro { padding: 105px 0; }
.service-intro-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 85px; }
.service-intro-grid h2 { margin: .25em 0; font-size: 2.7rem; }
.service-intro-grid > div p { color: var(--muted); font-size: 1.07rem; }
.service-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.service-list li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.service-list span { color: var(--blue); font-size: .76rem; font-weight: 900; }

.region-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.region-card { position: relative; min-height: 260px; padding: 34px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; }
.region-card:hover { border-color: var(--blue); background: var(--soft); }
.region-card > span { color: var(--blue); font-size: .75rem; font-weight: 900; }
.region-card h2 { margin: 35px 0 12px; font-size: 2rem; }
.region-card p { max-width: 540px; color: var(--muted); }
.region-card b { position: absolute; right: 28px; top: 28px; color: var(--blue); font-size: 1.3rem; }
.region-detail ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }

.notice-panel { padding: 34px; border-left: 4px solid var(--blue); background: var(--soft); }
.notice-panel h2 { font-size: 2rem; }
.article-tools { max-width: 850px; margin: 0 0 42px; color: var(--muted); font-size: 1.08rem; }

.article-content h2 { margin-top: 2.1em; scroll-margin-top: 120px; }
.article-content h2:first-of-type { margin-top: 1.6em; }
.article-content h3 { margin: 1.8em 0 .6em; font-size: 1.35rem; scroll-margin-top: 120px; }
.article-content ul { padding-left: 1.25rem; }
.article-sources-list { margin-top: 20px; padding: 0 !important; border-top: 1px solid var(--line); list-style: none; }
.article-sources-list li { border-bottom: 1px solid var(--line); }
.article-sources-list a { display: block; padding: 14px 2px; color: var(--blue); font-weight: 750; text-decoration: none; }
.article-sources-list a:hover,.article-sources-list a:focus { text-decoration: underline; }
.article-disclaimer { margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
.related-service-link { margin: 42px 0 !important; padding: 20px 22px; border-left: 4px solid var(--blue); background: var(--soft); }
.related-service-link a { color: var(--blue); font-weight: 800; }
.article-toc nav a { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .82rem; text-decoration: none; }
.article-toc nav a:hover { color: var(--blue); }
.article-toc nav span { color: var(--blue); font-weight: 800; }

.footer-disclaimer { margin-top: 44px; padding-top: 22px; border-top: 1px solid #263b4e; font-size: .78rem; }
.footer-disclaimer p { max-width: 850px; margin-bottom: 0; }
.footer-legal { margin-top: 22px !important; }

*:focus-visible { outline: 3px solid #64a8ff; outline-offset: 3px; }

@media (max-width: 1180px) {
  .brand,.brand img { width: 182px !important; }
  .brand { flex-basis: 182px; }
  .main-nav { gap: 13px; }
  .main-nav > a,.nav-services { font-size: .82rem; }
}

@media (max-width: 900px) {
  .brand,.brand img { width: 165px !important; }
  .brand { flex-basis: 165px; height: 70px !important; }
  .language-switcher { padding: 10px 0; }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 76px 0; }
  .section-head,.service-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-head .kicker,.section-head h2,.section-head > p { grid-column: 1; grid-row: auto; }
  .section-head h2 { max-width: 760px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .brand,.brand img { width: 150px !important; }
  .brand { flex-basis: 150px; }
  .section { padding: 62px 0; }
  .section-head h2 { font-size: 2.25rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-panel { padding: 24px; }
  .proof-grid,.service-grid,.region-cards,.catalog-group > ol { grid-template-columns: 1fr; }
  .proof-grid > div { border-left: 1px solid var(--line); }
  .service-grid .service-card { min-height: 0; }
  .region-card { min-height: 0; }
}

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

.admin-bar .mega-menu {
  top: 152px;
}

@media (max-width: 900px) {
  .admin-bar .main-nav {
    inset-block-start: 142px;
    max-height: calc(100vh - 142px);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .mega-menu {
    top: auto;
  }

  .admin-bar .main-nav {
    inset-block-start: 156px;
    max-height: calc(100vh - 156px);
  }
}

@media (max-width: 620px) {
  .admin-bar .main-nav {
    inset-block-start: 122px;
    max-height: calc(100vh - 122px);
  }

  .hero-facts strong {
    max-width: 9ch;
    line-height: 1.08;
  }
}
