/*
  Etnokeramika - B2B / landing page sections
  Used by: saradnja-i-veleprodaja, posudje-za-restorane, veleprodaja-saksija,
  veleprodaja-bastenskih-figura, kvalitet-i-zdravstvena-ispravnost, and the B2B call-to-action band.
  Works on top of Bootstrap 4 and the theme (style.min.css).
*/

:root {
    --b2b-main: #cc4422;
    --b2b-dark: #3d464d;
    --b2b-text: #3d464d;
    --b2b-muted: #6c757d;
    --b2b-soft: #faf5f0;
    --b2b-line: #ebe4dc;
}

.b2b-page {
    color: var(--b2b-text);
}

.b2b-page p {
    line-height: 1.7;
}

/* hero */
.b2b-hero {
    background: var(--b2b-soft);
    border-bottom: 1px solid var(--b2b-line);
    padding: 40px 0 44px;
    margin-bottom: 48px;
}

.b2b-hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--b2b-main);
    margin-bottom: 10px;
}

.b2b-hero h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.b2b-hero__lead {
    font-size: 18px;
    color: var(--b2b-muted);
    margin-bottom: 24px;
    max-width: 640px;
}

.b2b-hero__image {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.b2b-hero__actions .btn {
    margin: 0 8px 8px 0;
}

@media (max-width: 767px) {
    .b2b-hero { padding: 24px 0 28px; margin-bottom: 32px; }
    .b2b-hero h1 { font-size: 26px; }
    .b2b-hero__lead { font-size: 16px; }
    .b2b-hero__image { margin-top: 24px; }
}

/* sections */
.b2b-section {
    margin-bottom: 56px;
}

.b2b-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}

.b2b-section h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 10px;
}

.b2b-section--soft {
    background: var(--b2b-soft);
    border-top: 1px solid var(--b2b-line);
    border-bottom: 1px solid var(--b2b-line);
    padding: 44px 0;
}

.b2b-section__image {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .b2b-section { margin-bottom: 40px; }
    .b2b-section h2 { font-size: 22px; }
    .b2b-section__image { margin-top: 20px; }
}

/* benefits */
.b2b-benefit {
    padding: 22px 20px;
    border: 1px solid var(--b2b-line);
    border-radius: 6px;
    background: #fff;
}

/* equal-height cards only inside a card row (not for stacked sidebar boxes) */
.b2b-benefits > [class*="col"] {
    display: flex;
}

.b2b-benefits > [class*="col"] > .b2b-benefit {
    width: 100%;
}

.b2b-benefit__icon {
    font-size: 26px;
    color: var(--b2b-main);
    margin-bottom: 12px;
}

.b2b-benefit h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 6px;
}

.b2b-benefit p {
    margin: 0;
    font-size: 15px;
    color: var(--b2b-muted);
}

/* program cards */
.b2b-program {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--b2b-line);
    border-radius: 6px;
    background: #fff;
}

.b2b-program h3 {
    font-size: 20px;
    font-weight: 700;
}

.b2b-program p {
    flex-grow: 1;
}

.b2b-program .btn {
    align-self: flex-start;
}

/* lists */
.b2b-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.b2b-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
}

.b2b-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--b2b-main);
}

.b2b-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.b2b-chips a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--b2b-line);
    border-radius: 20px;
    font-size: 14px;
    color: var(--b2b-text);
    background: #fff;
}

.b2b-chips a:hover {
    border-color: var(--b2b-main);
    color: var(--b2b-main);
    text-decoration: none;
}

/* gallery */
.b2b-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.b2b-gallery figure {
    margin: 0;
}

.b2b-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.b2b-gallery figcaption,
.b2b-caption {
    font-size: 13px;
    color: var(--b2b-muted);
    margin-top: 4px;
}

@media (max-width: 767px) {
    .b2b-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ */
.b2b-faq details {
    border-bottom: 1px solid var(--b2b-line);
    padding: 14px 0;
}

.b2b-faq summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 17px;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.b2b-faq summary::-webkit-details-marker {
    display: none;
}

.b2b-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: -2px;
    font-size: 22px;
    color: var(--b2b-main);
}

.b2b-faq details[open] summary::after {
    content: "\2013";
}

.b2b-faq details p {
    margin: 10px 0 0;
    color: var(--b2b-muted);
}

/* call to action band */
.b2b-cta {
    background: var(--b2b-dark);
    color: #fff;
    border-radius: 6px;
    padding: 32px;
    margin-bottom: 48px;
}

.b2b-cta h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.b2b-cta p {
    color: rgba(255, 255, 255, .85);
    margin-bottom: 0;
}

.b2b-cta .btn {
    white-space: nowrap;
}

.b2b-cta .btn-light {
    color: var(--b2b-dark);
}

@media (max-width: 767px) {
    .b2b-cta { padding: 24px; }
    .b2b-cta .btn { margin-top: 16px; }
}

/* CTA band on category / product pages */
.b2b-band {
    margin: 8px 0 40px;
}

.b2b-band__item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--b2b-line);
    border-radius: 6px;
    background: var(--b2b-soft);
    color: var(--b2b-text);
}

.b2b-band__item:hover {
    border-color: var(--b2b-main);
    color: var(--b2b-text);
    text-decoration: none;
}

.b2b-band__icon {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--b2b-main);
    margin-right: 16px;
}

.b2b-band__title {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.b2b-band__text {
    display: block;
    font-size: 14px;
    color: var(--b2b-muted);
}

/* inquiry form */
.b2b-form {
    padding: 28px;
    border: 1px solid var(--b2b-line);
    border-radius: 6px;
    background: #fff;
}

.b2b-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.b2b-form__intro {
    color: var(--b2b-muted);
    margin-bottom: 20px;
}

.b2b-form label {
    font-weight: 500;
    font-size: 14px;
}

.b2b-form .is-invalid {
    border-color: #dc3545;
}

.b2b-form__note {
    font-size: 12px;
    color: var(--b2b-muted);
    margin-top: 10px;
}

@media (max-width: 767px) {
    .b2b-form { padding: 20px; }
}
