/*
Theme Name: mojhost
Theme URI: https://mojhost.si/
Author: Mojhost
Description: Blokovna tema za mojhost.si — spletno gostovanje, e-pošta in .si domene.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.3.2
License: GNU General Public License v2 or later
Text Domain: mojhost
*/

/* ---------- Osnova ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--ink); }

/* ---------- Glava ---------- */
.mh-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .mh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mh-header { top: 46px; } }

.mh-logo {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 500; font-size: 1.45rem; letter-spacing: -.035em;
	color: var(--wp--preset--color--ink); text-decoration: none; line-height: 1;
}
.mh-logo b { font-weight: 800; }
.mh-logo .mh-mark {
	width: 2rem; height: 2rem; flex: none; border-radius: .6rem;
	background: var(--wp--preset--color--primary);
	display: grid; place-items: center;
}
.mh-logo .mh-mark svg { width: 1.15rem; height: 1.15rem; }
.mh-logo:hover { color: var(--wp--preset--color--primary); }
.mh-footer .mh-logo { color: var(--wp--preset--color--base); }
.mh-footer .mh-logo .mh-mark { background: var(--wp--preset--color--accent); }

.mh-header .wp-block-navigation a { font-weight: 600; }
.mh-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }

/* ---------- Gumbi ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(11, 31, 42, .45); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 2px; }

/* ---------- Uvodni del (hero) ---------- */
.mh-hero { position: relative; overflow: hidden; isolation: isolate; }
.mh-hero::before {
	content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	background: radial-gradient(closest-side, rgba(255, 106, 61, .28), transparent 70%);
	z-index: -1; pointer-events: none;
}
.mh-hero::after {
	content: ""; position: absolute; inset: auto auto -50% -15%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
	background: radial-gradient(closest-side, rgba(45, 196, 178, .22), transparent 70%);
	z-index: -1; pointer-events: none;
}
.mh-lang { margin: 0; }
.mh-lang a {
	display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.1rem; padding: 0 .6rem; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line); font-weight: 700; font-size: .85rem; letter-spacing: .04em;
	color: var(--wp--preset--color--ink); text-decoration: none;
}
.mh-lang a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }

.mh-eyebrow {
	display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
	color: var(--wp--preset--color--accent);
}
.mh-hero .mh-eyebrow { color: var(--wp--preset--color--mint); }

/* Kartica s terminalom v uvodu */
.mh-panel {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 1.25rem; padding: 1.5rem;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.mh-panel-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); font-size: .95rem; }
.mh-panel-row:last-child { border-bottom: 0; }
.mh-panel-row span:first-child { opacity: .75; }
.mh-panel-row b { color: var(--wp--preset--color--mint); font-weight: 700; }
.mh-dots { display: flex; gap: .4rem; margin-bottom: 1rem; }
.mh-dots i { width: .7rem; height: .7rem; border-radius: 50%; background: rgba(255, 255, 255, .25); display: block; }
.mh-dots i:first-child { background: var(--wp--preset--color--accent); }

/* ---------- Trak zaupanja ---------- */
.mh-trust p { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 600; }
.mh-trust p::before {
	content: ""; width: 1.25rem; height: 1.25rem; flex: none; border-radius: 50%;
	background: var(--wp--preset--color--primary) 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='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- Kartice ---------- */
.mh-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1.25rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
}
.mh-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(11, 31, 42, .35); border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--line)); }
.mh-icon {
	width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center;
	background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary);
	margin-bottom: 1.1rem;
}
.mh-icon svg { width: 1.5rem; height: 1.5rem; }
.mh-card h3 { margin-top: 0; }
.wp-block-columns.mh-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.mh-equal > .wp-block-column > .mh-card { flex: 1; }

/* ---------- Paketi / cenik ---------- */
.mh-plan { position: relative; display: flex; flex-direction: column; }
.mh-plan .mh-price { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: .5rem 0 .25rem; color: var(--wp--preset--color--ink); }
.mh-plan .mh-price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.mh-plan ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; flex: 1; }
.mh-plan li { position: relative; padding: .45rem 0 .45rem 1.75rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.mh-plan li:last-child { border-bottom: 0; }
.mh-plan li::before {
	content: ""; position: absolute; left: 0; top: .75rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
	background: var(--wp--preset--color--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F5C5A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.mh-plan.is-featured { border: 2px solid var(--wp--preset--color--primary); box-shadow: 0 30px 60px -35px rgba(15, 92, 90, .55); }
.mh-plan.is-featured .mh-badge { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); }
.mh-badge {
	display: inline-block; background: var(--wp--preset--color--accent); color: #fff; font-weight: 700; font-size: .78rem;
	letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin: 0;
}
.mh-plan .wp-block-buttons { margin-top: auto; }
.mh-plan .wp-block-button, .mh-plan .wp-block-button__link { width: 100%; }

/* Oznaka za manjkajoče podatke (vidna samo v predogledu, dokler je ne zamenjamo) */
.mh-todo { background: #FFF3C4; color: #6B4E00; border-radius: .3rem; padding: 0 .3rem; font-weight: 700; }

/* ---------- Koraki ---------- */
.mh-step-num {
	width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; margin: 0 0 1rem;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); font-weight: 800;
}

/* ---------- Domene ---------- */
.mh-domain-box { border-radius: 1.5rem; position: relative; overflow: hidden; isolation: isolate; }
.mh-domain-box::after {
	content: ".si"; position: absolute; right: -1rem; bottom: -3.5rem; font-size: 14rem; font-weight: 800; letter-spacing: -.06em;
	color: rgba(255, 255, 255, .07); z-index: -1; line-height: 1; pointer-events: none;
}
.mh-tld { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; }

/* ---------- Tabela nastavitev ---------- */
.mh-table { overflow-x: auto; }
.mh-table td { overflow-wrap: anywhere; }
.mh-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--wp--preset--color--line); border-radius: 1rem; overflow: hidden; }
.mh-table th, .mh-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .85rem 1rem; text-align: left; vertical-align: top; }
.mh-table thead th { background: var(--wp--preset--color--sand); font-weight: 700; }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-table td code { background: var(--wp--preset--color--sand); padding: .1rem .4rem; border-radius: .35rem; font-size: .92em; }

/* ---------- Pogosta vprašanja ---------- */
.mh-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.mh-faq details:first-of-type { border-top: 1px solid var(--wp--preset--color--line); }
.mh-faq summary {
	cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary::after {
	content: "+"; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--sand); font-size: 1.3rem; font-weight: 600; transition: transform .2s ease, background-color .2s ease;
}
.mh-faq details[open] summary::after { transform: rotate(45deg); background: var(--wp--preset--color--accent-soft); }
.mh-faq details > :not(summary) { margin-top: .75rem; color: var(--wp--preset--color--muted); }

/* ---------- Kontaktni obrazec (Contact Form 7) ---------- */
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; margin-top: .35rem; padding: .8rem 1rem; font: inherit; font-weight: 400;
	border: 1px solid var(--wp--preset--color--line); border-radius: .75rem; background: var(--wp--preset--color--base);
}
.wpcf7 textarea { min-height: 9rem; }
.wpcf7 input, .wpcf7 select, .wpcf7 textarea { box-sizing: border-box; max-width: 100%; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px var(--wp--preset--color--primary-soft); }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 999px; padding: .9rem 1.8rem;
	font: inherit; font-weight: 700; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--ink); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }

/* ---------- Noga ---------- */
.mh-footer a { color: inherit; text-decoration: none; opacity: .82; }
.mh-footer a:hover { opacity: 1; text-decoration: underline; }
.mh-footer h2 { color: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; opacity: .6; font-weight: 700; }
.mh-footer ul { list-style: none; padding: 0; margin: 0; }
.mh-footer li { margin: .45rem 0; }

/* ---------- Naslov podstrani ---------- */
.mh-page-head { border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---------- Mobilno ---------- */
@media (max-width: 781px) {
	.mh-hide-mobile { display: none !important; }
	.mh-domain-box::after { font-size: 9rem; bottom: -2rem; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Past za robote v kontaktnem obrazcu */
.mh-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Uvod: "podatki ostanejo v Sloveniji" ---------- */
.mh-geo { padding: 1.75rem; }
.mh-geo-visual { position: relative; height: 170px; display: grid; place-items: center; margin-bottom: .5rem; }
.mh-ring {
	position: absolute; border-radius: 50%; border: 1px solid rgba(95, 224, 204, .35);
	animation: mh-pulse 4.5s ease-out infinite;
}
.mh-ring.r1 { width: 70px; height: 70px; }
.mh-ring.r2 { width: 120px; height: 120px; animation-delay: 1.5s; border-color: rgba(95, 224, 204, .22); }
.mh-ring.r3 { width: 170px; height: 170px; animation-delay: 3s; border-color: rgba(95, 224, 204, .12); }
@keyframes mh-pulse { 0% { transform: scale(.85); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.mh-pin {
	position: relative; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--accent); color: #fff; box-shadow: 0 0 0 8px rgba(255, 106, 61, .18), 0 18px 40px -12px rgba(255, 106, 61, .7);
}
.mh-pin svg { width: 1.6rem; height: 1.6rem; }
.mh-geo-label { text-align: center; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; margin: 0 0 1rem; }
.mh-geo-list { list-style: none; margin: 0; padding: 0; }
.mh-geo-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px dashed rgba(255, 255, 255, .14); font-size: .95rem; }
.mh-geo-list li span { opacity: .75; }
.mh-geo-list li b { color: var(--wp--preset--color--mint); font-weight: 700; text-align: right; }

/* ---------- Primerjava z oblakom ---------- */
.mh-compare table { table-layout: fixed; background: var(--wp--preset--color--base); }
.mh-compare thead th:first-child { width: 24%; }
.mh-compare th[scope="row"] { font-weight: 700; color: var(--wp--preset--color--muted); }
.mh-compare thead th { font-size: 1.05rem; }
.mh-compare .mh-us { background: var(--wp--preset--color--primary); color: #fff; }
.mh-compare tbody td:nth-child(2) { background: var(--wp--preset--color--primary-soft); font-weight: 600; color: var(--wp--preset--color--ink); }
.mh-compare tbody td:nth-child(3) { color: var(--wp--preset--color--muted); }
@media (max-width: 600px) {
	.mh-compare th, .mh-compare td { padding: .65rem .55rem; font-size: .88rem; }
	.mh-compare thead th:first-child { width: 30%; }
}
@media (prefers-reduced-motion: reduce) { .mh-ring { animation: none; opacity: 1; } }
