/* ==========================================================================
   DECUBIT one-page – Divi 5 child theme styles (prefix: dcb-)

   Spacing, backgrounds, colors, fonts, buttons, borders and shadows are set
   as native Divi settings on each module. This file only holds what Divi
   cannot do on its own, so builder settings keep working.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.dcb-page,
body.dcb-page #page-container,
body.dcb-page #main-content { background-color: #f7f6f2; }

body.dcb-page .et_pb_section[id] { scroll-margin-top: 80px; }

/* Text modules: no trailing gap after the last paragraph / list */
body.dcb-page .et_pb_text p:last-child,
body.dcb-page .et_pb_text ul:last-child { padding-bottom: 0; }
body.dcb-page .et_pb_text h1,
body.dcb-page .et_pb_text h2 { padding-bottom: 18px; }
body.dcb-page .et_pb_text h3 { padding-bottom: 8px; }
body.dcb-page .dcb-eyebrow p { text-transform: uppercase; }
body.dcb-page .et_pb_text.dcb-eyebrow { margin-bottom: 12px; }


body.dcb-page .et_pb_button:focus-visible { outline: 3px solid #1d2b2f; outline-offset: 3px; }
body.dcb-page .et_pb_button_module_wrapper { margin-bottom: 0; }

/* --- Header (sticky) ---------------------------------------------------- */
body.dcb-page .et-l--header {
	position: sticky;
	top: 0;
	z-index: 100;
}
body.dcb-page .dcb-header {
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
body.admin-bar.dcb-page .et-l--header { top: 32px; }

/* --- Hero: buttons sit side by side ---------------------------------- */
body.dcb-page .dcb-hero-col > .et_pb_module { margin-bottom: 0; }

/* --- Prednosti ---------------------------------------------------------- */
body.dcb-page .dcb-features-row > .et_pb_column { position: relative; }
body.dcb-page .dcb-features-row > .et_pb_column + .et_pb_column::before {
	content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: #e6e4dd;
}
body.dcb-page .dcb-feature-icon {
	width: 56px; height: 56px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #eef1ec; margin-bottom: 14px;
}
body.dcb-page .dcb-feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* --- Images ------------------------------------------------------------- */
body.dcb-page .dcb-img-cover .et_pb_image_wrap,
body.dcb-page .dcb-img-fade .et_pb_image_wrap,
body.dcb-page .dcb-card-img .et_pb_image_wrap { display: block; width: 100%; }
body.dcb-page .dcb-img-cover img,
body.dcb-page .dcb-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.dcb-page .dcb-img-fade img {
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 85%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 85%, transparent 100%);
}

/* --- Lists: check marks & colored legend dots -------------------------- */
body.dcb-page .dcb-checklist,
body.dcb-page .dcb-legend { list-style: none; padding: 10px 0 0; margin: 0; }
body.dcb-page .dcb-checklist li { position: relative; padding: 0 0 18px 42px; }
body.dcb-page .dcb-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0;
	width: 26px; height: 26px; border-radius: 50%;
	background: #8ea488 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.dcb-page .dcb-legend li { position: relative; padding: 0 0 12px 32px; }
body.dcb-page .dcb-legend li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; }
body.dcb-page .dcb-legend-blue::before { background: #7fb2e0; }
body.dcb-page .dcb-legend-peach::before { background: #f6c8b4; }
body.dcb-page .dcb-legend-coral::before { background: #ee9e83; }

/* --- Primjena: numbered cards ------------------------------------------ */
body.dcb-page .dcb-card { position: relative; overflow: hidden; }
body.dcb-page .dcb-card > .et_pb_module { margin-bottom: 0; }
body.dcb-page .dcb-step-badge { position: absolute !important; top: 22px; left: 22px; z-index: 2; }
body.dcb-page .dcb-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: #9e1235; color: #fff; font-weight: 700; font-size: 17px; line-height: 1;
}

/* --- FAQ: chevron instead of the default +/- icon ----------------------- */
body.dcb-page .dcb-accordion .et_pb_toggle { margin-bottom: 12px; transition: box-shadow .2s ease; }
body.dcb-page .dcb-accordion .et_pb_toggle:hover { box-shadow: 0 10px 30px rgba(29, 43, 47, .08); }
body.dcb-page .dcb-accordion .et_pb_toggle_title::before {
	content: "" !important;
	right: 0;
	width: 10px; height: 10px;
	margin-top: -7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	font-size: 0;
}
body.dcb-page .dcb-accordion .et_pb_toggle_open .et_pb_toggle_title::before { display: block; transform: rotate(-135deg); margin-top: -2px; }
body.dcb-page .dcb-accordion .et_pb_toggle_content { padding-top: 12px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
	body.dcb-page .dcb-features-row > .et_pb_column:nth-child(odd)::before { display: none; }
	body.dcb-page .dcb-features-row { row-gap: 26px; }
	body.dcb-page .dcb-steps-row { row-gap: 24px; }
}
@media (max-width: 782px) {
	body.admin-bar.dcb-page .et-l--header { top: 0; }
}
@media (max-width: 767px) {
	body.dcb-page .dcb-features-row > .et_pb_column::before { display: none; }
}

/* ==========================================================================
   Theme Builder header & footer, O nama, Kontakt
   ========================================================================== */

/* Header: Menu module */
body.dcb-page .dcb-menu .et_pb_menu__logo img { width: auto; }
body.dcb-page .dcb-menu .et_pb_menu__wrap { justify-content: flex-end; }
body.dcb-page .dcb-menu .et-menu > li { padding-left: 17px; padding-right: 17px; }
body.dcb-page .dcb-menu .et-menu > li > a { padding-top: 20px; padding-bottom: 20px; }
body.dcb-page .dcb-menu .et_mobile_nav_menu .mobile_nav { padding: 6px 0; }

/* Icon lists (kontakt podaci) */
body.dcb-page .dcb-contact-list { list-style: none; margin: 0; padding: 0; }
body.dcb-page .dcb-contact-list li { position: relative; padding: 0 0 14px 34px; }
body.dcb-page .dcb-contact-list li:last-child { padding-bottom: 0; }
body.dcb-page .dcb-ci { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; }
body.dcb-page .dcb-ci svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
body.dcb-page .dcb-contact-list a,
body.dcb-page .dcb-f-links a { color: inherit; transition: color .2s ease; }
body.dcb-page .dcb-contact-list a:hover,
body.dcb-page .dcb-f-links a:hover { color: #f3b9c7; }
body.dcb-page .dcb-contact-info .dcb-ci { color: #b9c7b2; }

/* Footer */
body.dcb-page .dcb-f-links { list-style: none; margin: 0; padding: 0; }
body.dcb-page .dcb-f-links li { padding: 0 0 6px; }
body.dcb-page .dcb-f-contact .dcb-ci { color: #b9c7b2; top: 5px; }
body.dcb-page .dcb-f-logo img { filter: brightness(0) invert(1); }
body.dcb-page .dcb-footer a:focus-visible,
body.dcb-page .dcb-contact-card a:focus-visible { outline: 2px solid #b9c7b2; outline-offset: 2px; }

/* O nama */
body.dcb-page .dcb-quote blockquote { border-left: 3px solid #9e1235; margin: 0; padding: 4px 0 4px 22px; }
body.dcb-page .dcb-cards-row { row-gap: 24px; }
body.dcb-page .dcb-btn-center .et_pb_button_module_wrapper,
body.dcb-page .et_pb_button_module_wrapper:has(.dcb-btn-center) { text-align: center; }

/* Kontakt obrazac */
body.dcb-page .dcb-form .et_pb_contact_field { margin-bottom: 16px; }
body.dcb-page .dcb-form .input:focus { outline: 2px solid #8ea488; outline-offset: 1px; }
body.dcb-page .dcb-form .et_contact_bottom_container { margin-top: 6px; }

@media (max-width: 980px) {
	body.dcb-page .dcb-contact-row { row-gap: 28px; }
}

/* Anchor links (e.g. "Decubit" → /#o-proizvodu) shouldn't look active alongside the page link */
body.dcb-page .dcb-menu .menu-item-type-custom.current-menu-item > a { color: inherit !important; }
