/*
Theme Name: Letoni Glacier
Theme URI: https://letoni.sk
Author: LE TONI SLOVAKIA s.r.o.
Author URI: https://letoni.sk
Description: Moderná téma pre Letoni Slovakia – cisternová doprava, aplikácia hnojovice a digestátu, čistenie prevádzok. Svetlo sivá, svetlo modrá, modrá a biela.
Version: 6.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: letoni
Tags: custom-logo, custom-menu, featured-images, one-column, full-width-template
*/

:root {
  --bg: #e9eef5;
  --surface: #ffffff;
  --muted: #cdd8e6;
  --border: #c5d0de;
  --secondary: #d9e3f0;
  --accent: #a9c1e4;
  --primary: #1f5fd1;
  --primary-dark: #17469c;
  --text: #16213a;
  --text-soft: #52607a;
  --radius: 18px;
  --shadow: 0 20px 50px -25px rgba(22, 33, 58, .35);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(233, 238, 245, .75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.site-logo { display: inline-flex; background: var(--primary); border-radius: 12px; padding: 8px 14px; }
.site-logo img { height: 44px; width: auto; }
.site-logo .site-title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; background: var(--primary); color: #fff; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: .5rem .7rem; font-size: 1.2rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,33,58,.15), rgba(22,33,58,.75)); }
.hero .container { position: relative; padding: 6rem 0 4rem; }
.hero p { max-width: 640px; font-size: 1.2rem; opacity: .95; }
.hero-card { background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 2rem; max-width: 760px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--secondary); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--primary); }
.section-title { max-width: 720px; margin-bottom: 2.5rem; }
.section-title p { color: var(--text-soft); }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: center; }
.card { background: rgba(255,255,255,.75); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card-body p { color: var(--text-soft); margin: 0; }
.specs { list-style: none; padding: 0; margin: 0; }
.specs li { position: relative; padding-left: 1.1rem; margin-bottom: .4rem; color: var(--text-soft); }
.specs li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.stats { display: flex; gap: 2.5rem; margin-top: 1.5rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--primary); }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-grid a { display: block; border-radius: 14px; overflow: hidden; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(10,16,30,.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* CTA + contact */
.cta { background: var(--primary); color: #fff; border-radius: 28px; padding: 3.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta .btn { background: #fff; color: var(--primary); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); }

/* Page intro / content */
.page-intro { padding: 5rem 0 3rem; background: linear-gradient(180deg, var(--secondary), var(--bg)); }
.page-intro p { color: var(--text-soft); max-width: 680px; font-size: 1.15rem; }
.entry-content { padding: 3rem 0 5rem; }
.entry-content > * { max-width: 820px; }
.post-list article { margin-bottom: 2.5rem; }

/* Footer */
.site-footer { background: var(--text); color: #c8d3e6; padding: 4rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: #fff; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 4%; }
  .main-nav li a { display: block; padding: .8rem 0; }
  .cta { padding: 2rem; }
}

/* Inner pages */
.page-intro { padding: 4rem 0 2rem; background: linear-gradient(180deg, var(--secondary, #dde7f5), transparent); }
.page-intro p { max-width: 640px; color: var(--text-soft); }
.split { display: grid; gap: 2rem; align-items: center; margin-bottom: 4rem; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.num { font-size: .75rem; font-weight: 600; color: var(--primary); }
.more-link { display: inline-block; margin-top: 2rem; font-weight: 600; color: var(--primary); }
