/*
 * TEHNIČKI PLINOVI (powered by Brewville)
 * Vlastiti stilovi iznad Porto teme. Učitava se nakon Porto CSS-a.
 * Paleta: Tlačna plava, Signalna narančasta, Neretva, Grafit, Čelik, Bijela.
 */

:root {
	--tp-plava: #12385A;
	--tp-plava-tamna: #0C2840;
	--tp-narancasta: #C2410C;
	--tp-narancasta-tamna: #9A3412;
	--tp-neretva: #0A6E6A;
	--tp-grafit: #1B252D;
	--tp-celik: #E4E9EC;
	--tp-rub: #C5CED4;
	--tp-tekst-2: #52606D;
	--tp-adr: #F28C28;
	--tp-radius: 6px;
	--tp-font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tp-font-naslovi: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

/* Tipografija */
html body {
	font-family: var(--tp-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--tp-grafit);
}

html body h1, html body h2, html body h3, html body h4, html body h5,
html body .tp-naslov {
	font-family: var(--tp-font-naslovi);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tp-plava);
	line-height: 1.15;
}

html body h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); margin-bottom: .75rem; }
html body h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); margin-bottom: .75rem; }
html body h3 { font-size: 1.5rem; margin-bottom: .5rem; }
html body h4 { font-size: 1.25rem; margin-bottom: .5rem; }

html body p { color: var(--tp-grafit); font-size: inherit; line-height: inherit; }
.tp-lead { font-size: 1.25rem; max-width: 46rem; }
.tp-muted { color: var(--tp-tekst-2) !important; }
.tp-narrow { max-width: 46rem; }

a { color: var(--tp-neretva); }
a:hover, a:focus { color: var(--tp-plava); }

:focus-visible {
	outline: 3px solid var(--tp-neretva);
	outline-offset: 2px;
}

.tp-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	background: var(--tp-plava);
	color: #fff;
	padding: .75rem 1rem;
}
.tp-skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* Gumbi */
html body .btn { font-family: var(--tp-font); font-weight: 600; border-radius: var(--tp-radius); text-transform: none; letter-spacing: 0; }
html body .btn-lg { padding: .8rem 1.6rem; font-size: 1.125rem; }
html body .tp-btn-light-outline { border: 2px solid #fff; color: #fff; background: transparent; }
html body .tp-btn-light-outline:hover, html body .tp-btn-light-outline:focus { background: #fff; color: var(--tp-plava); }
html body .tp-btn-outline { border: 2px solid var(--tp-plava); color: var(--tp-plava); background: transparent; }
html body .tp-btn-outline:hover, html body .tp-btn-outline:focus { background: var(--tp-plava); color: #fff; }

/* Zaglavlje */
#header.tp-header .header-body { border-bottom: 1px solid var(--tp-rub); }
#header.tp-header .header-container { min-height: 84px; }
.tp-wordmark { display: inline-flex; flex-direction: column; line-height: 1; padding: .9rem 0; }
.tp-wordmark-name {
	font-family: var(--tp-font-naslovi);
	font-weight: 700;
	font-size: 1.75rem;
	color: var(--tp-plava);
	letter-spacing: .01em;
}
.tp-wordmark-sub { font-size: .875rem; color: var(--tp-tekst-2); margin-top: .25rem; }
.tp-wordmark:hover .tp-wordmark-name { color: var(--tp-plava-tamna); }

#header.tp-header .header-nav-main nav > ul > li > a {
	font-family: var(--tp-font);
	font-size: 1.0625rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tp-grafit);
}
#header.tp-header .header-nav-main nav > ul > li > a.active,
#header.tp-header .header-nav-main nav > ul > li > a:hover { color: var(--tp-plava); }
.tp-header-cta { margin-left: 1rem; white-space: nowrap; }
.tp-lang { margin-left: 1rem; font-weight: 600; color: var(--tp-tekst-2); text-decoration: none; }
.tp-lang:hover { color: var(--tp-plava); }
#header.tp-header .header-btn-collapse-nav { background: var(--tp-plava); color: #fff; }

/* Odjeljci */
.tp-section { padding: 4.5rem 0; }
.tp-section-steel { background: var(--tp-celik); }
.tp-section-blue { background: var(--tp-plava); color: #fff; }
.tp-section-blue h1, .tp-section-blue h2, .tp-section-blue h3, .tp-section-blue p { color: #fff !important; }

/* Naslovna */
.tp-hero { background: var(--tp-plava); color: #fff; padding: 4.5rem 0 0; overflow: hidden; }
.tp-hero h1 { color: #fff !important; max-width: 13em; }
.tp-hero p { color: #DCE6EE !important; }
.tp-hero .tp-lead { color: #fff !important; }
.tp-hero-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: #DCE6EE; }
.tp-hero-facts li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; background: var(--tp-adr); margin-right: .5rem; vertical-align: middle; }
.tp-cylinders { display: block; width: 100%; height: auto; margin-top: 2rem; }

/* Kartice plinova */
.tp-gas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.tp-gas-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tp-rub);
	border-radius: var(--tp-radius);
	overflow: hidden;
	height: 100%;
}
.tp-shoulder { height: 14px; background: var(--tp-rame, var(--tp-celik)); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.tp-shoulder-mix {
	background: repeating-linear-gradient(135deg, var(--tp-celik) 0 8px, #fff 8px 16px);
}
.tp-gas-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tp-gas-card h3 { font-size: 1.375rem; margin-bottom: .15rem; }
.tp-gas-card h3 a { color: var(--tp-plava); text-decoration: none; }
.tp-gas-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tp-gas-card h3 a:focus-visible { outline: none; }
.tp-gas-card:focus-within { outline: 3px solid var(--tp-neretva); outline-offset: 2px; }
.tp-gas-card:hover { border-color: var(--tp-plava); }
.tp-gas-card p { margin-bottom: .75rem; }
.tp-gas-card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--tp-tekst-2); font-size: .95rem; }

.tp-formula { font-family: var(--tp-font-naslovi); font-weight: 600; color: var(--tp-plava); font-size: 1.5rem; line-height: 1.1; }
.tp-formula sub { font-size: .65em; bottom: -.15em; }

/* UN broj u obliku ADR oznake */
.tp-adr {
	display: inline-block;
	font-family: var(--tp-font-naslovi);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
	color: #000;
	background: var(--tp-adr);
	border: 3px solid #000;
	padding: .3rem .6rem;
	min-width: 4.2rem;
	text-align: center;
}
.tp-adr-label { font-size: .875rem; color: var(--tp-tekst-2); margin-left: .5rem; }
.tp-mix-label { font-size: .875rem; color: var(--tp-tekst-2); }

/* Kategorije na stranici kataloga */
.tp-category { padding-top: 2.5rem; scroll-margin-top: 2rem; }
.tp-category + .tp-category { border-top: 1px solid var(--tp-rub); margin-top: 3rem; }
.tp-category-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.tp-category-nav a {
	display: inline-block;
	padding: .45rem .9rem;
	border: 1px solid var(--tp-rub);
	border-radius: 999px;
	background: #fff;
	color: var(--tp-plava);
	font-weight: 600;
	text-decoration: none;
}
.tp-category-nav a:hover { border-color: var(--tp-plava); }

/* Zaglavlje podstranica */
.tp-page-header { background: var(--tp-celik); padding: 2.5rem 0 2.25rem; border-bottom: 1px solid var(--tp-rub); }
.tp-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .75rem; font-size: .95rem; color: var(--tp-tekst-2); }
.tp-breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--tp-rub); }
.tp-breadcrumb a { color: var(--tp-tekst-2); }

/* Stranica plina */
.tp-gas-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.tp-gas-hero .tp-formula { font-size: 2.5rem; }
.tp-shoulder-swatch { display: inline-flex; align-items: center; gap: .5rem; color: var(--tp-tekst-2); font-size: .95rem; }
.tp-shoulder-swatch i { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--tp-rame); border: 1px solid rgba(0, 0, 0, .25); }

.tp-table { width: 100%; border-collapse: collapse; background: #fff; }
.tp-table th, .tp-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--tp-rub); text-align: left; vertical-align: top; }
.tp-table th { font-weight: 600; color: var(--tp-plava); background: var(--tp-celik); }
.tp-table-wrap { overflow-x: auto; border: 1px solid var(--tp-rub); border-radius: var(--tp-radius); }

.tp-checklist { list-style: none; padding: 0; margin: 0; }
.tp-checklist li { padding: .35rem 0 .35rem 1.75rem; position: relative; }
.tp-checklist li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: .4rem; color: var(--tp-neretva); }

.tp-aside {
	border: 1px solid var(--tp-rub);
	border-radius: var(--tp-radius);
	padding: 1.5rem;
	background: #fff;
}
.tp-aside + .tp-aside { margin-top: 1.25rem; }

/* Usluge */
.tp-service { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.tp-service-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--tp-celik); color: var(--tp-plava); font-size: 1.2rem; }
.tp-service h3 { font-size: 1.375rem; margin-bottom: .25rem; }

/* Obrasci */
.tp-form label { font-weight: 600; margin-bottom: .3rem; color: var(--tp-grafit); }
.tp-form .form-control, .tp-form .form-select { border-color: var(--tp-rub); border-radius: var(--tp-radius); padding: .65rem .8rem; font-size: 1rem; }
.tp-form .form-control:focus, .tp-form .form-select:focus { border-color: var(--tp-neretva); box-shadow: 0 0 0 .2rem rgba(10, 110, 106, .2); }
.tp-form fieldset { border: 1px solid var(--tp-rub); border-radius: var(--tp-radius); padding: 1.25rem 1.25rem .5rem; margin-bottom: 1.5rem; background: #fff; }
.tp-form legend { float: none; width: auto; padding: 0 .4rem; font-family: var(--tp-font-naslovi); font-weight: 600; font-size: 1.375rem; color: var(--tp-plava); }
.tp-item-row { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: .75rem; align-items: end; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--tp-rub); }
.tp-rows-inquiry .tp-item-row { grid-template-columns: 1.6fr 1.8fr .8fr 1.8fr auto; }
@media (max-width: 991px) { .tp-item-row, .tp-rows-inquiry .tp-item-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .tp-item-row, .tp-rows-inquiry .tp-item-row { grid-template-columns: 1fr; } }
.tp-hp { position: absolute; left: -9999px; }
.tp-notice { border-left: 4px solid var(--tp-adr); background: #FFF7EE; padding: .9rem 1.1rem; margin-bottom: 1.5rem; }

/* Podnožje */
.tp-footer { background: var(--tp-plava-tamna); color: #C9D6E2; padding: 3.5rem 0 1.5rem; }
.tp-footer h2 { font-size: 1.25rem; color: #fff !important; margin-bottom: .75rem; }
.tp-footer p, .tp-footer li { color: #C9D6E2; }
.tp-footer a { color: #fff; }
.tp-footer a:hover { color: var(--tp-adr); }
.tp-footer ul { list-style: none; padding: 0; margin: 0; }
.tp-footer li { margin-bottom: .35rem; }
.tp-footer .tp-wordmark-name { color: #fff; }
.tp-footer .tp-wordmark-sub { color: #C9D6E2; }
.tp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .925rem; }

@media (max-width: 991px) {
	.tp-section { padding: 3rem 0; }
	.tp-hero { padding-top: 3rem; }
	.tp-header-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Ujednačene veličine gumba i polja (Porto ih postavlja na 0.8rem) */
html body .btn { font-size: 1rem; padding: .6rem 1.15rem; line-height: 1.4; }
html body .btn-sm { font-size: .9375rem; padding: .4rem .85rem; }
html body .btn-lg { font-size: 1.125rem; padding: .8rem 1.6rem; }
html body .btn-link { font-weight: 600; }
.tp-form input, .tp-form select, .tp-form textarea { font-size: 1rem !important; }
.tp-form .form-check-input:checked { background-color: var(--tp-plava); border-color: var(--tp-plava); }
.tp-form .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(10, 110, 106, .25); border-color: var(--tp-neretva); }
.tp-form .form-check-label { font-weight: 500; }

/* Podnožje: pravne poveznice */
.tp-footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.tp-footer-legal li { margin: 0; }

/* Izbornik sa 6 stavki: gumb u zaglavlju tek na širim zaslonima */
@media (min-width: 992px) and (max-width: 1199px) {
	.tp-header-cta { display: none !important; }
	#header.tp-header .header-nav-main nav > ul > li > a { padding-left: .6rem; padding-right: .6rem; }
}

/* Primjene */
.tp-use-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.tp-use-card { position: relative; border: 1px solid var(--tp-rub); border-radius: var(--tp-radius); padding: 1.4rem 1.5rem; background: #fff; height: 100%; }
.tp-use-card:hover { border-color: var(--tp-plava); }
.tp-use-card:focus-within { outline: 3px solid var(--tp-neretva); outline-offset: 2px; }
.tp-use-card h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.tp-use-card h2 a { color: var(--tp-plava); text-decoration: none; }
.tp-use-card h2 a::after { content: ""; position: absolute; inset: 0; }
.tp-use-card h2 a:focus-visible { outline: none; }
.tp-use-card .tp-use-gases { margin-top: .75rem; color: var(--tp-tekst-2); font-size: .95rem; }

/* Sigurnost i pravne stranice */
.tp-prose { max-width: 48rem; }
.tp-prose h2 { margin-top: 2.5rem; }
.tp-prose h3 { margin-top: 1.75rem; font-size: 1.375rem; }
.tp-prose ul { padding-left: 1.25rem; }
.tp-prose li { margin-bottom: .35rem; }
.tp-toc { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tp-toc a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--tp-rub); border-radius: 999px; background: #fff; color: var(--tp-plava); font-weight: 600; text-decoration: none; }
.tp-toc a:hover { border-color: var(--tp-plava); }
.tp-swatch { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .3); vertical-align: -.2rem; margin-right: .5rem; }
.tp-faq details { border-bottom: 1px solid var(--tp-rub); padding: .9rem 0; }
.tp-faq summary { cursor: pointer; font-weight: 600; color: var(--tp-plava); font-size: 1.125rem; list-style-position: outside; }
.tp-faq details p { margin: .6rem 0 0; }
.tp-callout { border-left: 4px solid var(--tp-narancasta); background: var(--tp-celik); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.tp-dl { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: .6rem 1.5rem; margin: 0; }
.tp-dl dt { font-weight: 600; color: var(--tp-plava); }
.tp-dl dd { margin: 0; }
@media (max-width: 575px) { .tp-dl { grid-template-columns: 1fr; } .tp-dl dd { margin-bottom: .5rem; } }
