/*
Theme Name: Semeino Konsultirane
Theme URI: https://semeino-konsultirane.bg
Author: Agency AI
Description: Block theme. Page design is Tailwind via WindPress. This file is only what utilities cannot reach (home clip-path hero, WP nav, details, post-content).
Version: 2.6.33
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: semeino
*/

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  max-width: 100%;
}

body.semeino-site {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  color: #111827;
  background: #fff;
  font-family: Roboto, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks,
.wp-block-post-content,
main.wp-block-group {
  max-width: 100%;
  overflow-x: clip;
}

.wp-block-post-content.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.wp-block-post-content.is-layout-constrained > .alignfull,
.entry-content.is-layout-constrained > .alignfull,
.wp-block-post-content.is-layout-flow > .alignfull {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.semeino-site .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Cover inner is WP-generated — no HTML to put utilities on */
.wp-block-cover > .wp-block-cover__inner-container {
  width: 100%;
}

/* Home hero — clip-path split. Do not clone onto inner pages. */
.sk-hero {
  position: relative;
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.sk-hero .sk-hero-photo {
  position: absolute !important;
  top: 0;
  right: 0;
  width: 54%;
  height: 100%;
  margin: 0 !important;
  max-width: 54% !important;
}

.sk-hero .sk-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.sk-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4.5rem 50% 4.5rem max(1.25rem, calc((100vw - 1100px) / 2));
}

.sk-hero-copy.is-layout-constrained > *,
.sk-hero-copy .sk-hero-inner {
  max-width: 32rem !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  justify-self: start !important;
}

.sk-hero-title {
  font-size: clamp(1.85rem, 3.4vw, 3.15rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
  margin: 0 0 1rem !important;
}

/* Top bar — theme.json link color (#4A90B8) must not override white contact links */
.sk-topbar a,
.sk-topbar a:visited,
.sk-topbar a:hover,
.sk-topbar a:where(:not(.wp-element-button)) {
  color: #fff !important;
}

/* WP generates nav markup — no HTML to put utilities on */
.sk-header .wp-block-navigation .wp-block-navigation-item__content {
  padding: 0.35rem 0.15rem;
  color: #111827;
  font-size: 0.8125rem;
  font-weight: 500;
}

.sk-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: #4a90b8;
}

.sk-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: #3d7ea3 !important;
  box-shadow: inset 0 -2px 0 #7eb8d8;
}

/* Header call button — WP button chrome cannot reach a plain <a> */
.sk-header-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  background: #7eb8d8;
  color: #fff !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.sk-header-cta:hover { background: #4a90b8; }
.sk-header-cta img {
  display: block !important;
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0;
  margin: 0 !important;
  filter: brightness(0) invert(1);
}

@media (max-width: 1199px) {
  .sk-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .sk-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .sk-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.25rem;
    background: #fff;
  }
  .sk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 1.05rem;
    padding: 0.7rem 0;
  }
}

/* FAQ / "вижте повече" — details summary pseudos */
.sk-faq {
  counter-reset: skfaq;
}

.sk-faq .wp-block-details {
  border: 0;
  border-bottom: 1px solid #e8eef3;
  margin: 0;
  background: transparent;
}

.sk-faq .wp-block-details:last-child { border-bottom: 0; }

.sk-faq .wp-block-details summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.35rem 2.25rem 1.35rem 3.1rem;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #111827;
}

.sk-faq .wp-block-details summary::-webkit-details-marker { display: none; }

.sk-faq .wp-block-details summary::before {
  counter-increment: skfaq;
  content: counter(skfaq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  color: #7eb8d8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sk-faq .wp-block-details summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 1.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #4a90b8;
  border-bottom: 2px solid #4a90b8;
  transform: rotate(45deg);
}

.sk-faq .wp-block-details[open] summary::after {
  top: 1.7rem;
  transform: rotate(-135deg);
}

.sk-faq .wp-block-details p {
  margin: 0 0 1.25rem !important;
  padding-left: 3.1rem;
  color: #4b5563;
  line-height: 1.7;
}

/* "Вижте повече" — бутон под секцията; при отваряне отива най-отдолу */
details.sk-more {
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
}
details.sk-more[open] {
  flex-direction: column-reverse;
}
details.sk-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.35rem auto 0;
  padding: 0.7rem 1.25rem;
  border-radius: 0.375rem;
  background: #7eb8d8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
details.sk-more > summary::-webkit-details-marker,
details.sk-more > summary::marker {
  display: none;
  content: "";
}
details.sk-more > summary:hover { background: #4a90b8; color: #fff; }
details.sk-more > summary:focus-visible {
  outline: 2px solid #4a90b8;
  outline-offset: 3px;
}
details.sk-more .sk-more-close { display: none; }
details.sk-more[open] .sk-more-open { display: none; }
details.sk-more[open] .sk-more-close { display: inline; }
details.sk-more > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
details.sk-more[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.12rem;
}
details.sk-more .sk-more-body {
  padding-top: 0.15rem;
}

.sk-certs {
  padding: 0 1.25rem 4.5rem;
}
.sk-certs a,
.sk-certs a:hover,
.sk-certs a:visited {
  color: inherit;
  text-decoration: none;
}
.sk-certs-featured,
.sk-certs-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 12px 36px rgba(16, 32, 51, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sk-certs-featured:hover,
.sk-certs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(16, 32, 51, 0.14);
}
.sk-certs-shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8f4fa;
}
.sk-certs-shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sk-certs-featured .sk-certs-shot {
  aspect-ratio: 16 / 10;
}
.sk-certs-featured .sk-certs-shot img {
  object-fit: contain;
}
.sk-certs-card .sk-certs-shot {
  aspect-ratio: 4 / 3;
}
.sk-certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.sk-certs-grid.is-tall .sk-certs-shot {
  aspect-ratio: 3 / 4;
}
.sk-certs-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 6.25rem;
  margin-top: auto;
  padding: 1rem 1.2rem 1.15rem;
  border-top: 1px solid #e8eef3;
}
.sk-certs-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: #4a90b8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sk-certs-title {
  display: block;
  min-height: 2.7em;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.sk-certs-sub {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
}
.sk-certs-pdf {
  flex-shrink: 0;
  align-self: flex-end;
  padding: 0.28rem 0.55rem;
  border: 1px solid #cfe3ef;
  border-radius: 999px;
  background: #f4f8fb;
  color: #4a90b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sk-certs-featured:hover .sk-certs-pdf,
.sk-certs-card:hover .sk-certs-pdf {
  background: #4a90b8;
  border-color: #4a90b8;
  color: #fff;
}
@media (min-width: 700px) {
  .sk-certs-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 699px) {
  .sk-certs-grid { grid-template-columns: 1fr; }
  .sk-certs-featured .sk-certs-shot { aspect-ratio: 4 / 3; }
}

/* Article body — blog posts + baked page content */
.sk-article .wp-block-post-content > * { max-width: none; }
.sk-article p,
.sk-article .wp-block-post-content p {
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
.sk-article h2,
.sk-article .wp-block-post-content h2 { font-size: 1.55rem; margin: 2.25rem 0 0.85rem; color: #111827; }
.sk-article h3,
.sk-article .wp-block-post-content h3 { font-size: 1.2rem; margin: 1.75rem 0 0.65rem; color: #111827; }
.sk-article a,
.sk-article .wp-block-post-content a { color: #4a90b8; }
.sk-article ul,
.sk-article .wp-block-post-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.sk-article li { margin: 0 0 0.4rem; }
.sk-article blockquote,
.sk-article .wp-block-post-content blockquote {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  background: #e8f4fa;
  border-left: 3px solid #7eb8d8;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
}
.sk-article cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-style: normal;
  color: #6b7280;
}

.sk-related:not(:has(.wp-block-post)) { display: none !important; }

.sk-post-sidebar { min-width: 0; }
@media (min-width: 782px) {
  .sk-post-sidebar {
    position: sticky;
    top: 5.75rem;
    align-self: flex-start;
  }
}
.sk-sidebar-posts .wp-block-post {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid #e8eef3;
}
.sk-sidebar-posts .wp-block-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.sk-sidebar-posts .wp-block-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.2rem;
}
.sk-sidebar-posts .wp-block-post-title a {
  color: #111827;
  text-decoration: none;
}
.sk-sidebar-posts .wp-block-post-title a:hover { color: #4a90b8; }
.sk-sidebar-posts .wp-block-post-featured-image {
  margin: 0;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}
.sk-sidebar-posts .wp-block-post-featured-image img,
.sk-sidebar-posts .wp-block-post-featured-image a {
  display: block;
  width: 72px;
  height: 72px;
}
.sk-sidebar-posts .wp-block-post-featured-image img {
  object-fit: cover;
  border-radius: 0.5rem;
}
@media (max-width: 781px) {
  .sk-post-sidebar { position: static; }
}

@media (max-width: 781px) {
  .sk-hero {
    min-height: 0;
    display: block;
  }
  .sk-hero .sk-hero-photo {
    position: relative !important;
    width: 100%;
    max-width: 100% !important;
    height: 220px;
  }
  .sk-hero .sk-hero-photo img {
    clip-path: none;
    height: 220px;
  }
  .sk-hero-copy { padding: 1.75rem 1.25rem 2.5rem !important; }

  .sk-header .wp-block-navigation { order: 3; }

  .sk-header-cta {
    width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    gap: 0 !important;
  }
}

.sk-map {
  overflow: hidden;
  height: 100%;
  min-height: 28rem;
  background: #e8f4fa;
  border-radius: 1.15rem;
  box-shadow: 0 12px 36px rgba(16, 32, 51, 0.08);
}
.sk-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
}
.sk-cf7 .wpcf7 {
  margin: 0;
}
.sk-cf7 .wpcf7-form > p,
.sk-cf7 .wpcf7-form .sk-cf7-field {
  margin: 0 0 1rem;
}
.sk-cf7 label {
  display: block;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.sk-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.4rem;
}
.sk-cf7 input.wpcf7-text,
.sk-cf7 input.wpcf7-email,
.sk-cf7 input.wpcf7-tel,
.sk-cf7 textarea.wpcf7-textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  background: #fff;
  color: #111827;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
}
.sk-cf7 input.wpcf7-text:focus,
.sk-cf7 input.wpcf7-email:focus,
.sk-cf7 input.wpcf7-tel:focus,
.sk-cf7 textarea.wpcf7-textarea:focus {
  outline: 2px solid #7eb8d8;
  outline-offset: 1px;
  border-color: #7eb8d8;
}
.sk-cf7 textarea.wpcf7-textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.sk-cf7 input.wpcf7-submit {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 0.45rem;
  background: #7eb8d8;
  color: #fff;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
}
.sk-cf7 input.wpcf7-submit:hover {
  background: #4a90b8;
}
.sk-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 400;
}
.sk-cf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.925rem;
}
.sk-cf7 .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #b7e0c2;
  background: #f0faf3;
  color: #166534;
}
.sk-cf7 .wpcf7 form.invalid .wpcf7-response-output,
.sk-cf7 .wpcf7 form.failed .wpcf7-response-output,
.sk-cf7 .wpcf7 form.unaccepted .wpcf7-response-output {
  border: 1px solid #f2c9c4;
  background: #fef2f2;
  color: #991b1b;
}
