/*
Theme Name: ELKAM
Description: Enostranska tema za ELKAM (klimatske naprave, elektroinštalacije, lokalno prezračevanje). Vsebino urejate v Videz › Prilagodi › Vsebina strani in v Strani › Domov.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: elkam
*/

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(assets/fonts/open-sans-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(assets/fonts/open-sans-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (from CGP) ---------- */
:root {
	--teal: #1b8f9c;
	--teal-ink: #136b75;     /* AA-contrast teal for small text on white */
	--ink: #231f20;
	--ink-soft: #57504f;
	--red: #c81c22;
	--red-hover: #a9161b;
	--orange: #f68712;
	--white: #fff;
	--sky-1: #e3f5fa;
	--sky-2: #fbe9e6;

	--font: "Open Sans", "Myriad Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-body: 1.0625rem;
	--fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
	--fs-h3: 1.1875rem;

	--wrap: 76rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--space: clamp(4rem, 3rem + 5vw, 8rem);
	--radius: 1.5rem;
	--header-h: 4rem;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 var(--fs-body)/1.65 var(--font);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: var(--white); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 3rem; padding: .75rem 1.5rem;
	border: 2px solid transparent; border-radius: 999px;
	font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); color: var(--white); }
.btn--outline { border-color: var(--teal); color: var(--teal-ink); }
.btn--outline:hover { background: var(--teal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .9);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	box-shadow: 0 1px 0 rgb(35 31 32 / .08);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.site-header__logo { display: block; width: 7.5rem; margin-right: auto; }
.site-header__logo svg { width: 100%; height: auto; }
.site-nav { display: none; gap: 2rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover { color: var(--teal-ink); }
@media (min-width: 48em) { .site-nav { display: flex; } }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* ---------- Hero (the poster) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; align-items: start;
	min-height: min(calc(100svh - var(--header-h)), 58rem);
	padding-block: clamp(2rem, 6vw, 5.5rem) 11rem;
	background: linear-gradient(180deg, #d4eef8, #f7d9d3 70%, #7fcfd3 70%);
}
.hero picture, .hero__bg {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 70% 100%;
}
.hero::before { /* soft wash for legibility on small screens */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgb(255 255 255 / .8) 0%, rgb(255 255 255 / .55) 55%, rgb(255 255 255 / .6) 72%, transparent 88%);
}
.hero__chevrons { display: none; }

.hero__grid {
	display: grid; gap: 1.75rem;
	grid-template-areas: "brand" "card" "phone" "meta";
}
.hero__brand { grid-area: brand; }
.hero__brand svg { width: min(100%, 26rem); height: auto; margin-inline: auto; }

.hero__panel {
	grid-area: card; align-self: start;
	width: 100%; max-width: 31rem; justify-self: center;
	padding: .75rem;
	background: rgb(255 255 255 / .72);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	border: 1px solid rgb(255 255 255 / .8);
	border-radius: 1.25rem;
	box-shadow: 0 1px 2px rgb(19 107 117 / .08), 0 1.5rem 3rem -1.25rem rgb(19 107 117 / .35);
}
.hero__label {
	display: flex; align-items: center; gap: .6rem;
	padding: .5rem .75rem .75rem;
	color: var(--teal-ink); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.hero__label::before { content: ""; width: 1.25rem; height: 2px; border-radius: 1px; background: var(--teal); }
.hero__panel li + li { border-top: 1px solid rgb(35 31 32 / .08); }
.hero__panel a {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
	padding: .8rem .75rem;
	border-radius: .75rem;
	color: var(--ink); text-decoration: none;
	font-size: clamp(1.0625rem, .85rem + .6vw, 1.3125rem); font-weight: 600; letter-spacing: -.005em; line-height: 1.25;
	transition: background-color .2s var(--ease);
}
.hero__icon {
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem; border-radius: .75rem;
	background: color-mix(in srgb, var(--teal) 12%, var(--white));
	transition: background-color .2s var(--ease);
}
.hero__icon svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: var(--teal-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s var(--ease); }
.hero__arrow {
	width: 1.125rem; height: 1.125rem;
	fill: none; stroke: var(--teal-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	opacity: .45; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
@media (max-width: 47.99em) {
	.hero__panel { padding: .5rem; }
	.hero__label { padding: .5rem .5rem .5rem; }
	.hero__panel a { gap: .75rem; padding: .55rem .5rem; }
	.hero__icon { width: 2.25rem; height: 2.25rem; border-radius: .6rem; }
	.hero__icon svg { width: 1.2rem; height: 1.2rem; }
}
@media (hover: hover) {
	.hero__panel a:hover { background: rgb(255 255 255 / .75); }
	.hero__panel a:hover .hero__icon { background: var(--teal); }
	.hero__panel a:hover .hero__icon svg { stroke: var(--white); }
	.hero__panel a:hover .hero__arrow { opacity: 1; transform: translateX(3px); }
}

.hero__meta {
	grid-area: meta;
	display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.5rem;
	font-weight: 700; font-size: 1.0625rem;
}
.hero__meta a { color: inherit; text-decoration: none; }
.hero__meta a:hover { text-decoration: underline; }
.hero__phone {
	grid-area: phone; justify-self: center;
	color: var(--red); text-decoration: none;
	font-weight: 700; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); letter-spacing: .03em; line-height: 1;
	font-variant-numeric: tabular-nums;
}
.hero__phone:hover { color: var(--red-hover); }

@media (min-width: 48em) {
	.hero {
		min-height: clamp(34rem, 50.5vw, calc(100svh - var(--header-h)));
		padding-block: clamp(2.5rem, 4.5vw, 5rem) 0;
	}
	.hero picture, .hero__bg { object-position: 100% 100%; }
	.hero::before { display: none; }
	.hero__chevrons {
		display: block; position: absolute; z-index: -1;
		left: 0; top: 30%; height: 48%; width: auto;
	}
	.hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		grid-template-areas: "brand card" "meta phone";
		column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(2.5rem, 7vw, 8rem);
		align-items: center;
	}
	.hero__brand svg { margin-inline: 0; width: 100%; max-width: 32rem; }
	.hero__panel { justify-self: end; }
	.hero__meta { justify-content: flex-start; padding-left: 12%; gap: 1rem clamp(2rem, 8vw, 9rem); }
	.hero__phone { justify-self: start; padding-left: .3em; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
	display: flex; align-items: center; gap: .6em;
	margin-bottom: .75rem;
	color: var(--teal-ink); font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--red); }
h2 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: .03em; }

/* Services */
.services { display: grid; gap: 1.25rem; }
@media (min-width: 56em) { .services { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.service {
	display: grid; align-content: start; gap: .75rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 2px solid color-mix(in srgb, var(--teal) 28%, transparent);
	border-radius: var(--radius);
	transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) {
	.service:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 1.25rem 2.5rem -1.5rem rgb(19 107 117 / .4); }
}
.service__icon {
	width: 3.25rem; height: 3.25rem; padding: .75rem; margin-bottom: .5rem;
	fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
	background: var(--sky-1); border-radius: 50%;
}
.service h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.service p { color: var(--ink-soft); }

/* About (editor content) */
.section--sky { background: linear-gradient(160deg, var(--sky-1), var(--white) 55%, var(--sky-2)); }
.about { display: grid; gap: 3rem; align-items: center; }
.about__mascot svg { width: clamp(7rem, 22vw, 12rem); height: auto; margin-inline: auto; }
@media (min-width: 56em) { .about { grid-template-columns: 1.6fr 1fr; } }

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .6em; }
.prose h3 { font-size: 1.375rem; font-weight: 600; margin-top: 1.8em; }
.prose .is-lead, .prose .has-large-font-size { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose img { border-radius: var(--radius); height: auto; }

/* Contact */
.section--teal { background: var(--teal); color: var(--white); }
.section--teal .eyebrow { color: var(--white); }
.section--teal .eyebrow::before { background: var(--white); }
.contact { display: grid; gap: 2.5rem; align-items: center; }
.contact__intro p:last-child { max-width: 30rem; margin-top: 1.25rem; font-size: 1.125rem; opacity: .92; }
@media (min-width: 56em) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact__card {
	display: grid; gap: .5rem; justify-items: start;
	padding: clamp(1.75rem, 4vw, 3rem);
	background: var(--white); color: var(--ink);
	border-radius: var(--radius);
	box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / .35);
}
.contact__phone { color: var(--red); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: .03em; line-height: 1.1; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__phone:hover { color: var(--red-hover); }
.contact__email { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.contact__email:hover { text-decoration: underline; }
.contact__company { color: var(--ink-soft); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .75); font-size: .875rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.75rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
