/*
Theme Name: Чистота Балкани
Theme URI: https://example.com
Description: Тема за сайта на Чистота Балкани ООД – събиране и рециклиране на пластмасови отпадъци.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
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: chistota-balkani
*/

/* ---------- Заглавия ---------- */
h1, h2, h3, h4 { color: var(--wp--preset--color--dark); }
.has-dark-background-color h1,
.has-dark-background-color h2,
.has-dark-background-color h3,
.has-dark-background-color h4,
.has-dark-background-color a:not(.wp-element-button) { color: #fff; }
.has-dark-background-color p { color: #C9E4D5; }

/* ---------- Секции ---------- */
.cb-section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.cb-section-tight { padding-top: 56px; padding-bottom: 56px; }
.cb-eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wp--preset--color--primary); margin-bottom: 0;
}
.has-dark-background-color .cb-eyebrow { color: #C9E4D5; }
.cb-lead { font-size: 1.2rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.has-dark-background-color .cb-lead { color: #C9E4D5; }

/* ---------- Горна част (hero) ---------- */
.cb-hero { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 136px); background-size: cover; background-position: center; }
.cb-hero h1 { max-width: 16ch; }

/* Бутон с рамка върху тъмен фон */
.has-dark-background-color .is-style-outline .wp-block-button__link {
  color: #fff; border: 1.5px solid rgba(255,255,255,.7); background: transparent;
}
.has-dark-background-color .cb-btn-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--dark); }

/* ---------- Карти ---------- */
.cb-card {
  background: #fff; border-radius: 14px; padding: 28px;
  box-shadow: var(--wp--preset--shadow--card);
  height: 100%; box-sizing: border-box;
}
.cb-card > :first-child { margin-top: 0; }
.cb-card p { color: var(--wp--preset--color--muted); font-size: .97rem; }
.cb-num {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--wp--preset--color--soft); color: var(--wp--preset--color--primary) !important;
  font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.1rem; margin-bottom: 0;
}
.cb-cards-overlap { margin-top: -64px; position: relative; z-index: 2; }

/* ---------- Цифри ---------- */
.cb-stat { text-align: center; }
.cb-stat-value {
  font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.3rem);
  color: var(--wp--preset--color--primary); line-height: 1.1; margin-bottom: 4px;
}

/* ---------- Стъпки ---------- */
.cb-step { border-top: 3px solid var(--wp--preset--color--accent); padding-top: 20px; }
.cb-step .cb-step-label { color: var(--wp--preset--color--primary); font-weight: 700; font-family: var(--wp--preset--font-family--heading); margin-bottom: 0; }
.cb-step p { color: var(--wp--preset--color--muted); }

/* ---------- Какво приемаме ---------- */
.cb-tile { background: rgba(255,255,255,.08); border-radius: 12px; padding: 20px; height: 100%; box-sizing: border-box; }
.has-base-background-color .cb-tile, .cb-tile-light { background: var(--wp--preset--color--soft); }
.cb-tile h3 { font-size: 1.15rem; margin: 0 0 6px; }
.cb-not { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid var(--wp--preset--color--border); }
.cb-not h3 { color: #9A2B1F !important; }
.cb-not li { color: var(--wp--preset--color--ink); }

/* ---------- Място за снимка ---------- */
.cb-photo-ph {
  border: 2px dashed #C5D3CB; border-radius: 16px; min-height: 320px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--wp--preset--color--muted); background: var(--wp--preset--color--soft); padding: 24px;
}
.wp-block-image img { border-radius: 16px; }

/* ---------- Карето с разрешителното ---------- */
.cb-note { background: var(--wp--preset--color--soft); border-radius: 12px; padding: 18px 22px; }
.cb-note p { margin: 0; }

/* ---------- Хедър ---------- */
.cb-header { border-bottom: 1px solid var(--wp--preset--color--border); background: #fff; }
.cb-header-inner { padding-top: 16px; padding-bottom: 16px; gap: 16px 32px; }
.cb-header .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.35rem; margin: 0; }
.cb-header .wp-block-site-title a { color: var(--wp--preset--color--dark); text-decoration: none; }
.cb-header .wp-block-navigation { font-size: .97rem; font-weight: 500; gap: 6px 26px; }
.cb-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; }
.cb-header .wp-block-navigation a:hover,
.cb-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--primary); }
.cb-header .wp-block-button__link { padding: 11px 18px; font-size: .95rem; }

/* ---------- Футър ---------- */
.cb-footer { padding-top: 64px; padding-bottom: 32px; font-size: .95rem; }
.cb-footer h3 { font-size: 1.05rem; color: #fff; }
.cb-footer a { color: #fff; }
.cb-footer .cb-copy { max-width: var(--wp--style--global--wide-size) !important; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; margin-top: 40px; font-size: .85rem; }

/* ---------- Заглавна лента на вътрешни страници ---------- */
.cb-page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.cb-page-head h1 { margin: 0; }

/* ---------- Статии ---------- */
.cb-post-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; overflow: hidden; height: 100%; }
.cb-post-card .wp-block-post-featured-image { margin: 0; }
.cb-post-card .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.cb-post-card-body { padding: 22px; }
.cb-post-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.cb-post-card h3 a { color: var(--wp--preset--color--dark); text-decoration: none; }
.cb-post-card .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
.cb-post-card .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: .85rem; }

/* ---------- Формата (Contact Form 7) ---------- */
.wpcf7 label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
  width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid #C9D3CE; border-radius: 8px;
  padding: 12px; font: inherit; background: #fff;
}
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: .85rem; color: var(--wp--preset--color--muted); }
.wpcf7 input[type=submit] {
  background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 8px;
  padding: 15px 28px; font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%;
}
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--dark); }
.cb-form-box { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(15,35,25,.06); }

/* ---------- Телефон ---------- */
@media (max-width: 781px) {
  .cb-cards-overlap { margin-top: -40px; }
  .cb-header .wp-block-buttons { display: none; }
}
