/*
Theme Name:   GoSolar Child
Theme URI:    https://progres-doboj.com
Description:  Progres Doboj – novi izgled sajta KP „Progres“ a.d. Doboj. Child tema za GoSolar: sav postojeći sadržaj ostaje, mijenjaju se zaglavlje, podnožje, početna stranica, font (Montserrat) i čitljivost.
Author:       KP Progres a.d. Doboj
Template:     gosolar
Version:      1.0.2
Requires PHP: 7.4
Text Domain:  progres
*/

/* Bijela pozadina, zelene iz logotipa kao akcenti. */
:root {
	--pg-bg: #ffffff;
	--pg-surface: #f4f9f0;
	--pg-fg: #1b2616;
	--pg-muted: #4f5c49;
	--pg-line: #dfe9d8;
	--pg-brand: #2f7d12;      /* tamnija zelena iz loga – tekst, dugmad */
	--pg-brand-mid: #3a9019;  /* osnovna zelena loga */
	--pg-leaf: #72b83b;       /* svijetla zelena loga – ukrasi */
	--pg-deep: #235f0e;
	--pg-font: "Montserrat", Arial, sans-serif;
	--pg-max: 1160px;
}

/* ---------- Osnova ---------- */
html { -webkit-text-size-adjust: 100%; }
body.pg-site {
	margin: 0;
	padding: 0 !important;
	background: var(--pg-bg);
	color: var(--pg-fg);
	font: 400 17px/1.7 var(--pg-font);
	-webkit-font-smoothing: antialiased;
}
.pg-site *, .pg-site *::before, .pg-site *::after { box-sizing: border-box; }
.pg-site a:focus-visible, .pg-site button:focus-visible { outline: 3px solid var(--pg-leaf); outline-offset: 2px; }
.pg-wrap {
	max-width: var(--pg-max);
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.pg-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--pg-brand); color: #fff; padding: 10px 16px; }
.pg-skip:focus { left: 8px; top: 8px; }
.pg-site .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stari elementi GoSolar teme koji se više ne koriste */
.pg-site #header, .pg-site #mobile-header, .pg-site .zmm-wrapper, .pg-site #mobile-search-wrapper,
.pg-site #footer, .pg-site .page-title-section, .pg-site .pageloader, .pg-site #scrollUp { display: none !important; }
.pg-site #zozo_wrapper, .pg-site .zozo-main-wrapper { padding-top: 0 !important; margin-top: 0 !important; background: var(--pg-bg); }

/* ---------- Gornja traka ---------- */
.pg-topbar { background: var(--pg-deep); color: #e7f2e0; font-size: 14px; line-height: 1.5; }
.pg-topbar .pg-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 8px; }
.pg-topbar b { color: #fff; font-weight: 600; }
.pg-topbar a { color: inherit; text-decoration: none; }
.pg-topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Zaglavlje ---------- */
.pg-header { position: sticky; top: 0; z-index: 50; background: var(--pg-bg); border-bottom: 1px solid var(--pg-line); }
.admin-bar .pg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pg-header { top: 0; } }
.pg-header .pg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; position: relative; }
.pg-logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--pg-fg); }
.pg-logo img { width: 58px; height: auto; display: block; }
.pg-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.pg-logo-text strong { font-family: var(--pg-font); font-weight: 800; font-size: 21px; letter-spacing: .04em; color: var(--pg-brand); }
.pg-logo-text span { font-size: 13px; color: var(--pg-muted); }

.pg-nav .pg-menu, .pg-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.pg-nav .pg-menu { display: flex; gap: 2px; }
.pg-nav li { position: relative; margin: 0; }
.pg-nav a {
	display: block; padding: 10px 14px; border-radius: 8px;
	font: 600 15px/1.3 var(--pg-font); color: var(--pg-fg); text-decoration: none;
}
.pg-nav a:hover, .pg-nav a:focus { background: var(--pg-surface); color: var(--pg-brand); }
.pg-nav .current-menu-item > a, .pg-nav .current_page_item > a, .pg-nav a[aria-current] { color: var(--pg-brand); }
.pg-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.pg-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 240px; padding: 6px;
	background: var(--pg-bg); border: 1px solid var(--pg-line); border-radius: 10px;
	box-shadow: 0 10px 30px rgba(20, 40, 10, .1); display: none; z-index: 60;
}
.pg-nav li:hover > .sub-menu, .pg-nav li:focus-within > .sub-menu { display: block; }
.pg-menu-btn {
	display: none; font: 600 16px var(--pg-font); color: var(--pg-fg);
	background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: 8px; padding: 10px 16px; cursor: pointer;
}
@media (max-width: 900px) {
	.pg-menu-btn { display: block; }
	.pg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--pg-bg); border-bottom: 1px solid var(--pg-line); box-shadow: 0 12px 24px rgba(20, 40, 10, .08); }
	.pg-nav.is-open { display: block; }
	.pg-nav .pg-menu { flex-direction: column; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
	.pg-nav a { padding: 14px 12px; font-size: 17px; }
	.pg-nav .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.pg-nav li:hover > .sub-menu { display: none; }
	.pg-nav li.is-open > .sub-menu, .pg-nav li:focus-within > .sub-menu { display: block; }
}

/* ---------- Traka sa naslovom (unutrašnje stranice) ---------- */
.pg-pagehead { background: var(--pg-surface); border-bottom: 1px solid var(--pg-line); }
.pg-pagehead .pg-wrap { padding-block: 28px 30px; }
.pg-crumbs { font-size: 14px; color: var(--pg-muted); }
.pg-crumbs a { color: var(--pg-brand); text-decoration: none; font-weight: 600; }
.pg-crumbs a:hover { text-decoration: underline; }
.pg-site .pg-pagehead-title { margin: 6px 0 0; font: 800 clamp(28px, 4vw, 40px)/1.15 var(--pg-font); color: var(--pg-fg); text-wrap: balance; letter-spacing: -.01em; text-transform: none; }

/* ---------- Sadržaj starih stranica: čitljivost ---------- */
.pg-site #main { font-family: var(--pg-font); font-size: 17px; line-height: 1.7; color: var(--pg-fg); }
.pg-site #main p, .pg-site #main li, .pg-site #main td, .pg-site #main th,
.pg-site #main .wpb_text_column, .pg-site #main .entry-content, .pg-site #main .entry-summary {
	font-family: var(--pg-font) !important; line-height: 1.7; color: var(--pg-fg);
}
.pg-site #main h1, .pg-site #main h2, .pg-site #main h3, .pg-site #main h4, .pg-site #main h5, .pg-site #main h6 {
	font-family: var(--pg-font) !important; color: var(--pg-fg); letter-spacing: normal; line-height: 1.25; text-wrap: balance;
}
.pg-site #main h1 { font-weight: 800; }
.pg-site #main h2, .pg-site #main h3 { font-weight: 700; }
.pg-site #main h4, .pg-site #main h5, .pg-site #main h6 { font-weight: 600; }
.pg-site #main .entry-content p, .pg-site #main .wpb_text_column p { max-width: 75ch; text-align: left !important; hyphens: manual; }
.pg-site #main .wpb_text_column h1, .pg-site #main .wpb_text_column h2, .pg-site #main .wpb_text_column h3, .pg-site #main .wpb_text_column h4 { text-transform: none !important; }
.pg-site #main a { color: var(--pg-brand); }
.pg-site #main h1 a, .pg-site #main h2 a, .pg-site #main h3 a, .pg-site #main h4 a { color: var(--pg-fg); }
.pg-site #main h1 a:hover, .pg-site #main h2 a:hover, .pg-site #main h3 a:hover, .pg-site #main h4 a:hover { color: var(--pg-brand); }
.pg-site #main .entry-content a:not(.btn):not(.vc_btn3) { text-decoration: underline; text-underline-offset: 2px; }
.pg-site #main img { max-width: 100%; height: auto; }

/* Dugmad i forme (WPBakery, Contact Form 7) */
.pg-site #main .btn, .pg-site #main input[type="submit"], .pg-site #main button[type="submit"],
.pg-site #main .vc_btn3.vc_btn3-color-primary-bg, .pg-site #main .wpcf7 input[type="submit"] {
	background: var(--pg-brand) !important; border-color: var(--pg-brand) !important; color: #fff !important;
	font: 600 16px/1.2 var(--pg-font) !important; border-radius: 10px !important; padding: 14px 22px !important; text-transform: none !important; letter-spacing: 0 !important;
}
.pg-site #main input[type="text"], .pg-site #main input[type="email"], .pg-site #main input[type="tel"], .pg-site #main textarea, .pg-site #main select {
	font: 400 16px/1.5 var(--pg-font) !important; color: var(--pg-fg); background: #fff;
	border: 1px solid #c9d6c1 !important; border-radius: 8px !important; padding: 12px 14px !important; width: 100%; max-width: 640px;
}
.pg-site #main input:focus, .pg-site #main textarea:focus { border-color: var(--pg-brand) !important; outline: 2px solid var(--pg-leaf); outline-offset: 0; }

/* ---------- Komponente početne ---------- */
.pg-home h1, .pg-home h2, .pg-home h3 { font-family: var(--pg-font) !important; margin: 0; text-wrap: balance; color: var(--pg-fg); letter-spacing: normal; text-transform: none; }
.pg-home h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; }
.pg-home h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.pg-home p { margin: 0; }
.pg-section { padding-block: 64px; }
.pg-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pg-section-head > a, .pg-more { font-weight: 700; color: var(--pg-brand) !important; text-decoration: none; }
.pg-section-head > a:hover, .pg-more:hover { text-decoration: underline; }
.pg-eyebrow { font-size: 13px !important; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pg-brand) !important; margin-bottom: 6px !important; }
.pg-muted { color: var(--pg-muted) !important; }

.pg-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 10px;
	font: 700 16px/1.2 var(--pg-font); text-decoration: none !important; border: 2px solid var(--pg-brand);
}
.pg-btn-primary, .pg-btn-primary:hover, .pg-btn-primary:focus { background: var(--pg-brand); color: #fff !important; }
.pg-btn-primary:hover { background: var(--pg-deep); border-color: var(--pg-deep); }
.pg-btn-ghost { background: transparent; color: var(--pg-brand) !important; }
.pg-btn-ghost:hover { background: var(--pg-surface); }
.pg-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.pg-hero { background: var(--pg-surface); border-bottom: 1px solid var(--pg-line); }
.pg-hero .pg-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-block: 56px; align-items: start; }
.pg-hero-text { min-width: 0; }
.pg-home .pg-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.pg-hero h1 em { font-style: normal; color: var(--pg-brand); }
.pg-lead { font-size: 19px; color: var(--pg-muted); max-width: 36ch; margin-top: 16px !important; }
.pg-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; color: var(--pg-muted); font-size: 15px; }
.pg-facts strong { display: block; font-size: 24px; font-weight: 800; color: var(--pg-fg); }

.pg-hotline { background: var(--pg-bg); border: 2px solid var(--pg-brand); border-radius: 14px; padding: 24px; }
.pg-home .pg-hotline h2 { font-size: 20px; }
.pg-hotline > p { color: var(--pg-muted); font-size: 15px; margin-bottom: 12px !important; }
.pg-hotline ul { list-style: none; margin: 0; padding: 0; }
.pg-hotline li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--pg-line); margin: 0; }
.pg-hotline li span { font-size: 15px; }
.pg-hotline li a { font-weight: 700; font-size: 18px; color: var(--pg-brand); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Brzi linkovi */
.pg-tasks-wrap { padding-block: 32px 0; }
.pg-tasks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pg-task { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--pg-line); border-radius: 12px; text-decoration: none !important; color: var(--pg-fg) !important; background: var(--pg-bg); min-width: 0; }
.pg-task:hover { border-color: var(--pg-brand); }
.pg-task svg { flex: none; width: 32px; height: 32px; color: var(--pg-brand); }
.pg-task strong { display: block; font-size: 17px; }
.pg-task span span { font-size: 14px; color: var(--pg-muted); }

/* Usluge */
.pg-services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--pg-line); }
.pg-service { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--pg-line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.pg-service:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--pg-line); }
.pg-service svg { width: 36px; height: 36px; color: var(--pg-brand-mid); }
.pg-service p { color: var(--pg-muted); font-size: 16px; }
.pg-service a { font-weight: 700; color: var(--pg-brand); text-decoration: none; font-size: 16px; }
.pg-service a:hover { text-decoration: underline; }

/* Kontejneri */
.pg-containers { background: var(--pg-surface); border-block: 1px solid var(--pg-line); }
.pg-containers .pg-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.pg-containers-text { color: var(--pg-muted); margin-top: 12px !important; max-width: 40ch; }
.pg-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.pg-size { text-align: center; }
.pg-bin { margin: 0 auto 10px; background: linear-gradient(180deg, var(--pg-leaf), var(--pg-brand-mid)); border-radius: 6px 6px 3px 3px; position: relative; max-width: 100%; }
.pg-bin::before { content: ""; position: absolute; left: -6%; right: -6%; top: -8px; height: 8px; background: var(--pg-deep); border-radius: 3px; }
.pg-size strong { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pg-size span { font-size: 14px; color: var(--pg-muted); }

/* Novosti */
.pg-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pg-post { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pg-thumb { display: block; aspect-ratio: 57 / 37; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--pg-surface); border: 1px solid var(--pg-line); }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pg-post:hover .pg-thumb img { transform: scale(1.03); }
.pg-post time { font-size: 14px; color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.pg-post h3 a { color: var(--pg-fg) !important; text-decoration: none; }
.pg-post h3 a:hover { color: var(--pg-brand) !important; text-decoration: underline; }

/* O nama */
.pg-about { background: var(--pg-surface); border-block: 1px solid var(--pg-line); }
.pg-about-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.pg-about-grid > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pg-about-grid p { color: var(--pg-muted); font-size: 16px; }
.pg-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-badge { border: 1px solid var(--pg-brand); color: var(--pg-brand); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.pg-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pg-linklist li { margin: 0; }
.pg-linklist a { color: var(--pg-brand); font-weight: 600; text-decoration: none; font-size: 16px; }
.pg-linklist a:hover { text-decoration: underline; }

/* Kontakt */
.pg-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.pg-table-wrap { overflow-x: auto; min-width: 0; }
.pg-dir { width: 100%; border-collapse: collapse; font-size: 16px; }
.pg-dir td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--pg-line); vertical-align: top; }
.pg-dir td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.pg-dir a { color: var(--pg-fg); text-decoration: none; }
.pg-dir a:hover { color: var(--pg-brand); text-decoration: underline; }
.pg-card { border: 1px solid var(--pg-line); border-radius: 12px; padding: 24px; display: grid; gap: 18px; align-content: start; }
.pg-card h3 { margin-bottom: 4px !important; }
.pg-card a:not(.pg-btn) { color: var(--pg-muted); }
.pg-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.pg-hours dt { color: var(--pg-muted); font-weight: 400; }
.pg-hours dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Podnožje ---------- */
.pg-footer { background: var(--pg-deep); color: #d6e8cc; font-size: 15px; line-height: 1.6; }
.pg-footer a { color: #fff; text-decoration: none; }
.pg-footer a:hover { text-decoration: underline; }
.pg-footer p { margin: 0 0 6px; }
.pg-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 32px; padding-block: 48px 32px; }
.pg-footer-grid > div { min-width: 0; }
.pg-footer-name { font-weight: 800; color: #fff; font-size: 17px; margin-bottom: 10px !important; }
.pg-footer-h { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 12px !important; }
.pg-footer .pg-hours dt { color: #b9d3ab; }
.pg-footer .pg-hours dd { color: #fff; }
.pg-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 18px; font-size: 14px; color: #b9d3ab; }

/* ---------- Telefon i tablet ---------- */
@media (max-width: 900px) {
	.pg-hero .pg-wrap, .pg-containers .pg-wrap, .pg-contact-grid, .pg-about-grid { grid-template-columns: 1fr; }
	.pg-tasks { grid-template-columns: 1fr 1fr; }
	.pg-services { grid-template-columns: 1fr 1fr; }
	.pg-service, .pg-service:not(:nth-child(3n+1)) { padding: 24px 16px 24px 0; border-left: 0; }
	.pg-service:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--pg-line); }
	.pg-news { grid-template-columns: 1fr; }
	.pg-footer-grid { grid-template-columns: 1fr 1fr; }
	.pg-section { padding-block: 48px; }
	.pg-hero .pg-wrap { padding-block: 40px; }
}
@media (max-width: 560px) {
	.pg-tasks, .pg-services, .pg-footer-grid { grid-template-columns: 1fr; }
	.pg-service, .pg-service:nth-child(2n) { padding: 20px 0; border-left: 0; }
	.pg-logo-text span { display: none; }
	.pg-topbar .pg-wrap { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pg-site * { transition: none !important; } }

/* Okvir "O autoru" iz stare teme se ne prikazuje */
.pg-site .author-info, .pg-site .about-author, .pg-site .author-bio { display: none !important; }
