/*
Theme Name: KerfMetals
Theme URI: https://kerfmetals.com
Author: Predrag Marković
Author URI: https://predragmarkovic.com
Description: Prilagođena tema za KerfMetals.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kerfmetals
Tags: kerfmetals
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

:root {
	--kerf-black: #111111;
	--kerf-dark: #1b1b1b;
	--kerf-light: #f4f4f4;
	--kerf-white: #ffffff;
	--kerf-accent: #d6a328;
	--kerf-border: #dddddd;
	--kerf-content-width: 820px;
	--kerf-site-width: 1280px;
}

.site-container {
	width: min(100% - 40px, var(--kerf-site-width));
	margin-inline: auto;
}

.content-container {
	max-width: var(--kerf-content-width);
}

.section-spacing {
	padding-block: clamp(60px, 8vw, 110px);
}


.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 26px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.button--primary {
	color: var(--kerf-black);
	background: var(--kerf-accent);
}

.button--primary:hover,
.button--primary:focus-visible {
	color: var(--kerf-white);
	background: var(--kerf-black);
	border-color: var(--kerf-white);
}

.service-card {
	overflow: hidden;
	border: 1px solid var(--kerf-border);
	background: var(--kerf-white);
}

.service-card__content {
	padding: 26px;
}

.service-card__title {
	margin-top: 0;
	font-size: 26px;
}

.service-card__title a,
.service-card__link {
	color: inherit;
}

.section-eyebrow {
	margin-bottom: 12px;
	color: var(--kerf-accent);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}


@media (max-width: 600px) {
	.site-container {
		width: min(100% - 30px, var(--kerf-site-width));
	}
}

/* ==========================================================================
   Header
   NAPOMENA: Aktivni glavni header (top bar + primarni meni) je custom kod
   u header.php + kerf-site-header.css. Klase .kerfmetals-* ispod su legacy
   ostatak i ne pripadaju trenutnom headeru — ostavljene su netaknute jer
   ne prave konflikt (drugačiji nazivi klasa od .kerf-primary-nav).
   ========================================================================== */

.kerfmetals-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.kerfmetals-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */

.kerfmetals-logo {
    flex-shrink: 0;
}

.kerfmetals-logo img {
    max-height: 50px;
    width: auto;
}

.kerfmetals-logo a {
    font-size: 20px;
    font-weight: 700;
}

/* Navigacija */

.kerfmetals-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.kerfmetals-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.kerfmetals-nav a {
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.kerfmetals-nav a:hover {
    opacity: 0.7;
}

/* Kontakt / dugme */

.kerfmetals-contact {
    flex-shrink: 0;
}

.kerfmetals-contact .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.kerfmetals-contact .button:hover {
    background-color: #333333;
}

/* Mobile — jednostavan stack raspored ispod 782px */

@media (max-width: 782px) {
    .kerfmetals-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .kerfmetals-nav {
        order: 3;
        width: 100%;
    }

    .kerfmetals-nav ul {
        justify-content: center;
    }
}

/* =========================================================
   KERF METALS FOOTER
   ========================================================= */

.kerf-footer {
  --footer-bg: var(--kerf-graphite, #0e1011);
  --footer-surface: var(--kerf-steel, #343a3e);
  --footer-accent: var(--kerf-orange, #e83317);
  --footer-white: #ffffff;
  --footer-muted: #aeb3b6;
  --footer-border: rgba(255, 255, 255, 0.12);

  padding: 80px 0 0;
  color: var(--footer-white);
  background-color: var(--footer-bg);
}

.kerf-footer *,
.kerf-footer *::before,
.kerf-footer *::after {
  box-sizing: border-box;
}

.kerf-footer a {
  color: inherit;
  text-decoration: none;
}

.kerf-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: 64px;
}

.kerf-footer__brand {
  max-width: 360px;
}

.kerf-footer__logo {
  margin-bottom: 24px;
}

.kerf-footer__logo .custom-logo-link {
  display: inline-flex;
}

.kerf-footer__logo .custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 64px;
  object-fit: contain;
}

.kerf-footer__logo > a:not(.custom-logo-link) {
  color: var(--footer-white);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.kerf-footer__description {
  max-width: 330px;
  margin: 0 0 28px;
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.75;
}

.kerf-footer__cta {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--footer-white);
  border: 2px solid var(--footer-accent);
  background: var(--footer-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.kerf-footer__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.kerf-footer__cta:hover,
.kerf-footer__cta:focus-visible {
  color: var(--footer-white);
  border-color: var(--footer-white);
  background: transparent;
}

.kerf-footer__cta:hover svg {
  transform: translateX(4px);
}

.kerf-footer__title {
  margin: 0 0 24px;
  color: var(--footer-white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.kerf-footer__menu,
.kerf-footer__legal,
.kerf-footer__socials {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kerf-footer__menu {
  display: grid;
  gap: 15px;
}

.kerf-footer__menu a {
  display: inline-block;
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.5;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.kerf-footer__menu a:hover,
.kerf-footer__menu a:focus-visible,
.kerf-footer__menu .current-menu-item > a {
  color: var(--footer-white);
  transform: translateX(4px);
}

.kerf-footer__address {
  display: grid;
  gap: 16px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}

.kerf-footer__address a,
.kerf-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.kerf-footer__address a {
  transition: color 180ms ease;
}

.kerf-footer__address a:hover,
.kerf-footer__address a:focus-visible {
  color: var(--footer-white);
}

.kerf-footer__address svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  fill: none;
  stroke: var(--footer-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.kerf-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.kerf-footer__socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--footer-white);
  border: 1px solid var(--footer-border);
  background: transparent;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.kerf-footer__socials a:hover,
.kerf-footer__socials a:focus-visible {
  border-color: var(--footer-accent);
  background: var(--footer-accent);
}

.kerf-footer__socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.kerf-footer__socials a[href*="instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.kerf-footer__bottom {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--footer-border);
}

.kerf-footer__copyright {
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.6;
}

.kerf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
}

.kerf-footer__legal a {
  color: var(--footer-muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.kerf-footer__legal a:hover,
.kerf-footer__legal a:focus-visible,
.kerf-footer__legal .current-menu-item > a {
  color: var(--footer-white);
}

/* Tablet */
@media (max-width: 1050px) {
  .kerf-footer {
    padding-top: 64px;
  }

  .kerf-footer__grid {
    grid-template-columns: minmax(260px, 1.3fr) repeat(2, 1fr);
  }

  .kerf-footer__contact {
    grid-column: 2 / -1;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .kerf-footer {
    padding-top: 50px;
  }

  .kerf-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 30px;
    padding-bottom: 46px;
  }

  .kerf-footer__brand,
  .kerf-footer__contact {
    grid-column: 1 / -1;
  }

  .kerf-footer__bottom {
    min-height: auto;
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .kerf-footer__legal {
    justify-content: flex-start;
  }
}

/* Small mobile */
@media (max-width: 430px) {
  .kerf-footer__grid {
    grid-template-columns: 1fr;
  }

  .kerf-footer__brand,
  .kerf-footer__contact {
    grid-column: auto;
  }

  .kerf-footer__cta {
    width: 100%;
  }
}

.production-card {
    position: relative;
    padding: 24px 28px 24px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

/* Crvena linija na vrhu */
.production-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--e-global-color-primary, #ef4b38);
}

/* Ikonica */
.production-card .elementor-icon {
    color: var(--e-global-color-primary, #ef4b38);
    fill: var(--e-global-color-primary, #ef4b38);
}

/* Naslov */
.production-card .elementor-heading-title {
    margin: 0;
}

/* Tekst */
.production-card .elementor-widget-text-editor {
    margin-top: 22px;
}

/* Nova sekcija sa punom crvenom linijom */
.production-card-full-line .production-card::before {
    left: 0;
    width: 100%;
    transform: none;
}

/* Linija ostaje puna i na hoveru */
.production-card-full-line .production-card:hover::before {
    width: 100%;
}

/* KERF METALS QUOTE FORM */
.kerf-quote-form {
    --kerf-red: #d71920;
    --kerf-red-dark: #ad1117;
    --kerf-black: #171717;
    --kerf-gray: #666666;
    --kerf-border: #d7d7d7;
    --kerf-light: #f6f6f6;

    /* max-width: 760px; */
    padding: 40px;
    background: #ffffff;
    border-top: 5px solid var(--kerf-red);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Naslovi i tekst */
.kerf-quote-form h2,
.kerf-quote-form h3 {
    margin: 0 0 12px;
    color: var(--kerf-black);
    font-weight: 700;
    line-height: 1.25;
}

.kerf-quote-form .form-intro {
    margin: 0 0 8px;
    color: var(--kerf-black);
    font-size: 18px;
}

.kerf-quote-form .form-notice {
    display: inline-block;
    margin: 0 0 28px;
    padding: 8px 12px;
    color: var(--kerf-red);
    background: rgba(215, 25, 32, 0.07);
    border-left: 3px solid var(--kerf-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Raspored polja */
.kerf-quote-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.kerf-quote-form .form-group {
    margin-bottom: 22px;
}

.kerf-quote-form label,
.kerf-quote-form .field-label {
    display: block;
    color: var(--kerf-black);
    font-size: 14px;
    font-weight: 700;
}

/* Tekstualna polja */
.kerf-quote-form input[type="text"],
.kerf-quote-form input[type="email"],
.kerf-quote-form input[type="tel"],
.kerf-quote-form input[type="number"],
.kerf-quote-form select,
.kerf-quote-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    color: var(--kerf-black);
    background: #ffffff;
    border: 1px solid var(--kerf-border);
    border-radius: 0;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.kerf-quote-form textarea {
    min-height: 160px;
    resize: vertical;
}

.kerf-quote-form input::placeholder,
.kerf-quote-form textarea::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.kerf-quote-form input:focus,
.kerf-quote-form select:focus,
.kerf-quote-form textarea:focus {
    background: #fff;
    border-color: var(--kerf-red);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.11);
}

/* Checkbox i radio grupe */
.kerf-quote-form .wpcf7-checkbox,
.kerf-quote-form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.kerf-quote-form .wpcf7-list-item {
    margin: 0;
}

.kerf-quote-form .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.kerf-quote-form input[type="checkbox"],
.kerf-quote-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--kerf-red);
    cursor: pointer;
}

/* Upload polje */
.kerf-quote-form input[type="file"] {
    width: 100%;
    padding: 18px;
    color: var(--kerf-gray);
    background: var(--kerf-light);
    border: 2px dashed #c7c7c7;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.kerf-quote-form input[type="file"]:hover {
    background: rgba(215, 25, 32, 0.04);
    border-color: var(--kerf-red);
}

.kerf-quote-form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--kerf-black);
    border: 0;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.kerf-quote-form input[type="file"]::file-selector-button:hover {
    background: var(--kerf-red);
}

.kerf-quote-form .upload-note {
    display: block;
    margin-top: 8px;
    color: var(--kerf-gray);
    font-size: 13px;
    line-height: 1.5;
}

/* Submit dugme */
.kerf-quote-form input[type="submit"],
.kerf-quote-form button[type="submit"] {
    min-height: 54px;
    padding: 14px 30px;
    color: #ffffff;
    background: var(--kerf-red);
    border: 2px solid var(--kerf-red);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.kerf-quote-form input[type="submit"]:hover,
.kerf-quote-form button[type="submit"]:hover {
    color: var(--kerf-red);
    background: transparent;
    transform: translateY(-2px);
}

/* CF7 poruke */
.kerf-quote-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: var(--kerf-red);
    font-size: 13px;
}

.kerf-quote-form .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-left: 4px solid var(--kerf-red) !important;
    background: var(--kerf-light);
}

/* Mobilni prikaz */
@media (max-width: 767px) {
    .kerf-quote-form {
        padding: 25px 20px;
    }

    .kerf-quote-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kerf-quote-form .wpcf7-checkbox,
    .kerf-quote-form .wpcf7-radio {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .kerf-quote-form input[type="submit"],
    .kerf-quote-form button[type="submit"] {
        width: 100%;
    }
}

/* ===================================
   KERF METALS CONTACT FORM
=================================== */

.kerf-contact-form {
    --kerf-red: #e31b23;
    --kerf-red-dark: #bd1118;
    --kerf-black: #17191b;
    --kerf-gray: #65686c;
    --kerf-border: #d9dadd;
    --kerf-light: #f5f5f5;

    width: 100%;
    max-width: 780px;
    padding: 42px;
    background: #ffffff;
    border-top: 5px solid var(--kerf-red);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

/* Naslov forme */

.kerf-contact-form .contact-form-heading {
    margin-bottom: 30px;
}

.kerf-contact-form .contact-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--kerf-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.kerf-contact-form .contact-form-heading h2 {
    margin: 0 0 12px;
    color: var(--kerf-black);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
}

.kerf-contact-form .contact-form-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--kerf-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* Raspored polja */

.kerf-contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.kerf-contact-form .form-field {
    margin-bottom: 21px;
}

.kerf-contact-form label {
    display: block;
    color: var(--kerf-black);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.kerf-contact-form label span {
    color: var(--kerf-red);
}

/* CF7 wrapper mora biti block */

.kerf-contact-form .wpcf7-form-control-wrap {
    display: block;
}

/* Polja */

.kerf-contact-form input[type="text"],
.kerf-contact-form input[type="email"],
.kerf-contact-form input[type="tel"],
.kerf-contact-form select,
.kerf-contact-form textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    color: var(--kerf-black);
    background-color: #ffffff;
    border: 1px solid var(--kerf-border);
    border-radius: 0;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.kerf-contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.kerf-contact-form input::placeholder,
.kerf-contact-form textarea::placeholder {
    color: #919499;
    opacity: 1;
}

/* Select strelica */

.kerf-contact-form select {
    padding-right: 44px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 15px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Focus */

.kerf-contact-form input:focus,
.kerf-contact-form select:focus,
.kerf-contact-form textarea:focus {
    background-color: #ffffff;
    border-color: var(--kerf-red);
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.1);
}

/* Footer forme */

.kerf-contact-form .contact-form-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 5px;
}

.kerf-contact-form .contact-submit {
    flex: 0 0 auto;
}

.kerf-contact-form .quote-direction {
    margin: 0;
    color: var(--kerf-gray);
    font-size: 13px;
    line-height: 1.6;
}

.kerf-contact-form .quote-direction a {
    display: inline-block;
    margin-left: 3px;
    color: var(--kerf-red);
    font-weight: 750;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.kerf-contact-form .quote-direction a:hover {
    color: var(--kerf-red-dark);
}

/* Submit dugme */

.kerf-contact-form input[type="submit"] {
    min-width: 170px;
    min-height: 54px;
    padding: 14px 27px;
    color: #ffffff;
    background: var(--kerf-red);
    border: 2px solid var(--kerf-red);
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.kerf-contact-form input[type="submit"]:hover {
    color: var(--kerf-red);
    background: transparent;
    transform: translateY(-2px);
}

.kerf-contact-form input[type="submit"]:focus-visible {
    outline: 3px solid rgba(227, 27, 35, 0.22);
    outline-offset: 3px;
}

/* Loader */

.kerf-contact-form .wpcf7-spinner {
    margin: 0 0 0 10px;
    background-color: var(--kerf-black);
}

/* Validacija */

.kerf-contact-form .wpcf7-not-valid {
    border-color: var(--kerf-red) !important;
}

.kerf-contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: var(--kerf-red);
    font-size: 12px;
    line-height: 1.4;
}

/* CF7 statusna poruka */

.kerf-contact-form .wpcf7-response-output {
    margin: 25px 0 0 !important;
    padding: 14px 16px !important;
    color: var(--kerf-black);
    background: var(--kerf-light);
    border: 0 !important;
    border-left: 4px solid var(--kerf-red) !important;
    font-size: 14px;
    line-height: 1.55;
}

.kerf-contact-form form.sent .wpcf7-response-output {
    border-left-color: #278343 !important;
}

.kerf-contact-form form.invalid .wpcf7-response-output,
.kerf-contact-form form.failed .wpcf7-response-output,
.kerf-contact-form form.aborted .wpcf7-response-output {
    border-left-color: var(--kerf-red) !important;
}

/* Uklanja nepotrebne prazne CF7 paragrafe */

.kerf-contact-form p:empty {
    display: none;
}

/* Tablet i mobilni */

@media (max-width: 767px) {
    .kerf-contact-form {
        padding: 30px 22px;
    }

    .kerf-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kerf-contact-form .contact-form-heading {
        margin-bottom: 25px;
    }

    .kerf-contact-form .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .kerf-contact-form .contact-submit,
    .kerf-contact-form input[type="submit"] {
        width: 100%;
    }

    .kerf-contact-form .quote-direction {
        text-align: center;
    }
}

/* FIXED kompletan header */
html body #kerf-site-header.kerf-site-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
}

/* Nadoknađuje prostor koji zauzima fixed header */
html body {
    padding-top: 126px !important;
}

/* WordPress admin traka dok si prijavljen */
html body.admin-bar #kerf-site-header {
    top: 32px !important;
}

/* Telefon i tablet */
@media screen and (max-width: 782px) {
    html body.admin-bar #kerf-site-header {
        top: 46px !important;
    }
}

@media screen and (max-width: 1050px) {
    html body {
        padding-top: 110px !important;
    }
}

/* =========================================
   FINALNA DORADA MULTIPLE UPLOAD POLJA
========================================= */

.kerf-quote-form .codedropz-upload-handler {
    min-height: 155px;
    background: #f7f7f7;
    border: 2px dashed #c9c9c9;
}

.kerf-quote-form .codedropz-upload-container {
    min-height: 151px;
    padding: 22px 20px;
}

.kerf-quote-form .codedropz-upload-inner h3 {
    margin-bottom: 6px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.3;
}

.kerf-quote-form .codedropz-upload-inner > span {
    margin-bottom: 10px;
    font-size: 12px;
}

/* Browse Files dugme */
.kerf-quote-form .cd-upload-btn {
    min-height: 40px;
    padding: 2px 20px;
    color: #ffffff !important;
    background: #e31b23;
    border: 2px solid #e31b23;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kerf-quote-form .cd-upload-btn:hover {
    color: #ffffff !important;
    background: #111111;
    border-color: #111111;
}

/* File counter */
.kerf-quote-form .dnd-upload-counter {
    right: 12px;
    bottom: 8px;
    color: #65686c;
    font-size: 10px;
}

/* Uploadovani fajl */
.kerf-quote-form .dnd-upload-status {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dedede;
}

.kerf-quote-form .dnd-upload-details .name {
    margin-bottom: 7px;
    color: #17191b;
    font-size: 12px;
    font-weight: 700;
}

.kerf-quote-form .dnd-upload-details .name em {
    color: #65686c;
    font-size: 10px;
}

/* Progress bar */
.kerf-quote-form .dnd-upload-status .dnd-upload-percent {
    height: 5px;
    background: #e1e1e1;
}

.kerf-quote-form .dnd-upload-status .dnd-upload-percent span {
    background: #e31b23 !important;
}

/* Remove ikonica */
.kerf-quote-form .dnd-upload-remove {
    color: #65686c !important;
}

.kerf-quote-form .dnd-upload-remove:hover {
    color: #e31b23 !important;
}

/* Upload poruke i greške */
.kerf-quote-form .dnd-upload-status .dnd-upload-error,
.kerf-quote-form .codedropz-upload-wrapper .wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;
    color: #e31b23;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

/* Napomena */
.kerf-quote-form .upload-note {
    margin-top: 9px;
    color: #65686c;
    font-size: 11px;
}

/* Uklanja višak prostora koji plugin može napraviti */
.kerf-quote-form .dnd-upload-status:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .kerf-quote-form .codedropz-upload-handler {
        min-height: 145px;
    }

    .kerf-quote-form .codedropz-upload-container {
        min-height: 141px;
        padding: 20px 14px;
    }

    .kerf-quote-form .codedropz-upload-inner h3 {
        font-size: 16px;
    }
}

/* =========================================
   KERF METALS – RESPONSIVE MATERIAL TABLE
   ========================================= */

.kerf-material-table {
    --kerf-red: #f0442e;
    --kerf-red-dark: #d83622;
    --kerf-black: #17191a;
    --kerf-text: #303234;
    --kerf-muted: #6f7377;
    --kerf-border: #e3e4e5;
    --kerf-light: #f6f6f6;
    --kerf-white: #ffffff;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--kerf-text);
    font-family: inherit;
}

.kerf-material-table__scroll {
    width: 100%;
    overflow-x: auto;
    border-top: 3px solid var(--kerf-red);
    border-radius: 3px;
    background: var(--kerf-white);
    box-shadow: 0 8px 28px rgba(20, 22, 23, 0.08);
    -webkit-overflow-scrolling: touch;
}

.kerf-material-table table {
    width: 100%;
    min-width: 820px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: var(--kerf-white);
}

.kerf-material-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kerf-material-table th,
.kerf-material-table td {
    padding: 20px 22px;
    border: 0;
    border-bottom: 1px solid var(--kerf-border);
    text-align: left;
    vertical-align: middle;
    line-height: 1.55;
}

.kerf-material-table thead th {
    padding-top: 18px;
    padding-bottom: 18px;
    background: var(--kerf-black);
    color: var(--kerf-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.35;
    text-transform: uppercase;
}

.kerf-material-table thead th:first-child {
    width: 19%;
}

.kerf-material-table thead th:nth-child(2) {
    width: 16%;
}

.kerf-material-table thead th:nth-child(3) {
    width: 31%;
}

.kerf-material-table thead th:nth-child(4) {
    width: 34%;
}

.kerf-material-table tbody th {
    position: relative;
    padding-left: 34px;
    background: var(--kerf-white);
    color: var(--kerf-black);
    font-size: 15px;
    font-weight: 700;
}

.kerf-material-table tbody th::before {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 5px;
    height: 26px;
    border-radius: 5px;
    background: var(--kerf-red);
    content: "";
    transform: translateY(-50%);
}

.kerf-material-table tbody td {
    color: var(--kerf-text);
    font-size: 14px;
    font-weight: 400;
}

.kerf-material-table tbody tr:nth-child(even) th,
.kerf-material-table tbody tr:nth-child(even) td {
    background: var(--kerf-light);
}

.kerf-material-table tbody tr {
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.kerf-material-table tbody tr:hover th,
.kerf-material-table tbody tr:hover td {
    background: #fff6f4;
}

.kerf-material-table tbody tr:last-child th,
.kerf-material-table tbody tr:last-child td {
    border-bottom: 0;
}

.kerf-material-table__note {
    position: relative;
    margin: 18px 0 0;
    padding: 15px 18px 15px 46px;
    border-left: 3px solid var(--kerf-red);
    background: var(--kerf-light);
    color: var(--kerf-muted);
    font-size: 13px;
    line-height: 1.65;
}

.kerf-material-table__note::before {
    position: absolute;
    top: 16px;
    left: 17px;
    color: var(--kerf-red);
    content: "i";
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* Tablet */
@media (max-width: 1024px) {
    .kerf-material-table th,
    .kerf-material-table td {
        padding: 17px 18px;
    }

    .kerf-material-table tbody th {
        padding-left: 31px;
    }

    .kerf-material-table tbody th::before {
        left: 15px;
    }
}

/* Mobile: each material becomes a separate card */
@media (max-width: 767px) {
    .kerf-material-table__scroll {
        overflow: visible;
        border-top: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .kerf-material-table table,
    .kerf-material-table tbody,
    .kerf-material-table tr,
    .kerf-material-table th,
    .kerf-material-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .kerf-material-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .kerf-material-table tbody tr {
        margin-bottom: 16px;
        overflow: hidden;
        border-top: 3px solid var(--kerf-red);
        border-radius: 3px;
        background: var(--kerf-white);
        box-shadow: 0 6px 20px rgba(20, 22, 23, 0.08);
    }

    .kerf-material-table tbody th,
    .kerf-material-table tbody td,
    .kerf-material-table tbody tr:nth-child(even) th,
    .kerf-material-table tbody tr:nth-child(even) td,
    .kerf-material-table tbody tr:hover th,
    .kerf-material-table tbody tr:hover td {
        background: var(--kerf-white);
    }

    .kerf-material-table tbody th {
        padding: 18px 18px 18px 39px;
        border-bottom: 1px solid var(--kerf-border);
        font-size: 17px;
    }

    .kerf-material-table tbody th::before {
        left: 18px;
        height: 24px;
    }

    .kerf-material-table tbody th::after {
        display: block;
        margin-top: 4px;
        color: var(--kerf-red);
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .kerf-material-table tbody td {
        position: relative;
        min-height: 72px;
        padding: 35px 18px 15px;
        border-bottom: 1px solid var(--kerf-border);
        font-size: 14px;
    }

    .kerf-material-table tbody td::before {
        position: absolute;
        top: 13px;
        left: 18px;
        color: var(--kerf-red);
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.07em;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .kerf-material-table tbody tr:last-child,
    .kerf-material-table tbody tr:last-child th,
    .kerf-material-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .kerf-material-table__note {
        margin-top: 20px;
        padding: 14px 15px 14px 42px;
    }

    .kerf-material-table__note::before {
        left: 15px;
    }
}

/* Istaknuta poruka iznad izbora projekta */
.kerf-quote-form .project-type-notice {
    margin: 28px 0 16px;
    padding: 16px 18px;
    background: #f7f7f7;
    border-left: 4px solid #ed2f24;
}

.kerf-quote-form .project-type-notice strong {
    display: block;
    margin-bottom: 4px;
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.kerf-quote-form .project-type-notice span {
    display: block;
    color: #606060;
    font-size: 13px;
    line-height: 1.5;
}

/* Aktivna SERVICES stavka na Services arhivi */
body.post-type-archive-services
#kerf-primary-menu > #menu-item-6520 > a::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--kerf-red, #ed321e) !important;
    transform: scaleX(1) !important;
}

/* Opcionalno: crveni tekst SERVICES */
body.post-type-archive-services
#kerf-primary-menu > #menu-item-6520 > a {
    color: var(--kerf-red, #ed321e) !important;
}