/*
Theme Name: MULTIP SK
Theme URI: https://www.multip.sk
Author: MULTIP SK, s.r.o.
Description: Moderná jednostránková téma pre školský nábytok a vybavenie učební. Biela a zelená rgb(0, 145, 54), štvorčekový zošit ako vizuálny motív, SEO schéma (Organization, FAQPage), kontaktný formulár bez pluginov.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: multip-sk
*/

:root {
  --green: rgb(0 145 54);
  --green-deep: rgb(0 99 37);
  --green-tint: rgb(233 246 238);
  --green-line: rgb(205 232 214);
  --white: #fff;
  --ink: rgb(16 38 26);
  --muted: rgb(78 97 86);
  --line: rgb(216 228 220);
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-deep); }
.btn--ghost:hover { background: var(--green-tint); color: var(--green-deep); border-color: var(--green-deep); }
.btn--white { background: #fff; color: var(--green-deep); border-color: #fff; }
.btn--white:hover { background: var(--green-tint); color: var(--green-deep); border-color: var(--green-tint); }
.btn--sm { padding: .75rem 1.25rem; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgb(255 255 255 / .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; background: var(--green); border-radius: 8px; position: relative; flex: none; }
.brand__mark::before, .brand__mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.brand__mark::before { left: 8px; top: 9px; width: 18px; height: 5px; }
.brand__mark::after { left: 8px; top: 17px; width: 5px; height: 9px; box-shadow: 13px 0 0 #fff; }
.brand small { font-size: .78rem; font-weight: 700; color: var(--green-deep); border: 2px solid var(--green); border-radius: 6px; padding: 0 .3rem; letter-spacing: 0; }
.custom-logo { max-height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--green-deep); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: var(--radius-sm); width: 46px; height: 46px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; margin: auto; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* Hero: štvorčekový zošit */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background-color: #fff;
  background-image:
    linear-gradient(var(--green-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__text { background: #fff; padding: clamp(1.25rem, 3vw, 2.25rem); margin-left: -.25rem; border-radius: var(--radius); box-shadow: 0 0 0 10px #fff; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: 1.25rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero__visual { position: relative; }
.hero__panel {
  background: var(--green); border-radius: 28px; aspect-ratio: 6 / 5;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel svg { width: 86%; }
.hero__card {
  position: absolute; left: -1.5rem; bottom: -1.75rem; background: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.4rem; box-shadow: 0 10px 30px rgb(16 38 26 / .14); border: 1px solid var(--line);
}
.hero__card ul { display: grid; gap: .4rem; font-weight: 600; font-size: .98rem; }
.hero__card li { display: flex; align-items: center; gap: .55rem; }
.tick { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green); position: relative; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Ponuka */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem;
}
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; }
.tile--main { grid-column: span 2; grid-row: span 2; background: var(--green); color: #fff; border-color: var(--green); padding: 2.2rem; justify-content: flex-end; }
.tile--main h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tile--main p { color: rgb(255 255 255 / .92); font-size: 1.1rem; }
.tile--wide { grid-column: span 2; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.chips li { font-size: .88rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); }
.tile--main .chips li { background: rgb(255 255 255 / .18); color: #fff; }

/* Pre koho */
.segments { background: var(--green-tint); }
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.seg { background: #fff; border-radius: var(--radius); padding: 1.6rem; border-left: 6px solid var(--green); }
.seg h3 { margin-bottom: .6rem; }
.seg ul { display: grid; gap: .45rem; color: var(--muted); font-size: 1rem; }
.seg li { padding-left: 1.1rem; position: relative; }
.seg li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

/* Postup (skutočná postupnosť) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  background: var(--green); color: #fff; border-radius: 50%; font-weight: 800; font-size: 1.2rem;
}
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Projekty a financovanie */
.projects { background: var(--green); color: #fff; }
.projects .section-head p { color: rgb(255 255 255 / .92); }
.projects a { color: #fff; }
.projects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.1rem; font-weight: 600; }
.checklist .tick { background: #fff; margin-top: .25rem; width: 22px; height: 22px; }
.checklist .tick::after { border-color: var(--green); left: 7px; top: 4px; width: 5px; height: 9px; }
.projects__cta { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; }
.projects__cta p { color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; line-height: 1; color: var(--green); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Kontakt */
.contact { background: var(--green-tint); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact address { font-style: normal; display: grid; gap: .9rem; font-size: 1.1rem; }
.contact address strong { display: block; font-size: 1.2rem; }
.contact address a { font-weight: 700; }
.form { background: #fff; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .98rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .8rem .9rem; border: 1.5px solid rgb(150 175 160); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--green-line); border-color: var(--green); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; }
.notice--ok { background: var(--green-tint); border: 2px solid var(--green); color: var(--green-deep); }
.notice--err { background: #fff3f1; border: 2px solid #c0392b; color: #8a2a1f; }

/* Footer */
.site-footer { background: var(--ink); color: rgb(230 240 234); padding: 2.5rem 0; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; max-width: none; }

/* Generic content (index.php) */
.page-content { padding: 4rem 0; }

/* Responsive */
@media (max-width: 1020px) {
  .bento, .seg-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .tile--main { grid-column: 1 / -1; grid-row: auto; }
  .tile--wide { grid-column: 1 / -1; }
  .hero__grid, .projects__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__card { left: 1rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; border-bottom: 2px solid var(--green); }
}
@media (max-width: 600px) {
  .bento, .seg-grid, .steps, .form { grid-template-columns: 1fr; }
  .hero__text { box-shadow: none; padding: 0; margin: 0; }
  .hero__card { position: static; margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
