/*
Theme Name: Bela Piedo
Theme URI: https://www.belapiedo.sk/
Author: Bela Piedo
Description: Moderná, responzívna WordPress téma pre chovateľskú stanicu chodského psa Bela Piedo. Minimalistický dizajn s dôrazom na fotografie a prehľadnosť.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belapiedo
*/

/* =========================================================
   1. Premenné a základ
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f1;
  --text: #1c1c1e;
  --muted: #6d6a64;
  --accent: #a9743f;
  --accent-dark: #8a5d31;
  --border: #e8e3da;
  --dark: #1a1714;
  --dark-soft: #262019;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(26, 23, 20, 0.08);
  --shadow-sm: 0 4px 18px rgba(26, 23, 20, 0.06);
  --maxw: 1180px;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

/* =========================================================
   2. Layout pomocníci
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #f3efe8; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: 1.12rem; color: var(--muted); }

/* =========================================================
   3. Tlačidlá
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; border-color: var(--text); }
.btn--light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* =========================================================
   4. Hlavička
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 48px; height: 48px;
  object-fit: contain;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a,
.nav .menu-item a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 100px;
  transition: background var(--t), color var(--t);
}
.nav a:hover,
.nav .current-menu-item > a { background: var(--bg-alt); color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,14,0.35) 0%, rgba(20,17,14,0.55) 55%, rgba(20,17,14,0.78) 100%);
}
.hero__inner { max-width: 680px; padding-block: 60px; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero__sub { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 1.8em; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

/* =========================================================
   6. Mriežky a karty
   ========================================================= */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Dog / profil karty */
.dog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dog-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.dog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dog-card:hover .dog-card__media img { transform: scale(1.05); }
.dog-card__body { padding: 26px; }
.dog-card__body h3 { margin-bottom: 4px; }
.dog-card__meta { font-size: 0.85rem; color: var(--accent); font-family: var(--font-head); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 0.8rem; padding: 5px 12px; border-radius: 100px; background: var(--bg-alt); color: var(--muted); font-family: var(--font-head); }

/* Featurette list */
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.facts span { color: var(--muted); font-size: 0.95rem; }
.facts .dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

/* =========================================================
   7. Kontakt
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--accent); }
.section--dark .contact-list .ico { background: rgba(255,255,255,0.08); }
.contact-list a { color: inherit; }
.contact-list .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.section--dark .contact-list .lbl { color: rgba(243,239,232,0.6); }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-family: var(--font-head); font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; display: block; }
.form input,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169,116,63,0.15); }
.form textarea { min-height: 130px; resize: vertical; }

/* Socials */
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  transition: background var(--t), transform var(--t);
}
.socials a:hover { background: var(--accent); transform: translateY(-2px); color: #fff; }

/* =========================================================
   8. Pätička
   ========================================================= */
.site-footer { background: var(--dark-soft); color: rgba(243,239,232,0.75); padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(243,239,232,0.75); font-size: 0.95rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; color: rgba(243,239,232,0.55); }

/* =========================================================
   9. WordPress obsahové stránky (page.php / index.php)
   ========================================================= */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: clamp(48px, 8vw, 90px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.entry { max-width: 780px; margin-inline: auto; }
.entry img { border-radius: var(--radius); margin: 24px auto; box-shadow: var(--shadow-sm); }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 6px 0 6px 22px; color: var(--muted); font-style: italic; }

/* =========================================================
   10. Utility a prístupnosť
   ========================================================= */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   11. Responzívne breakpointy
   ========================================================= */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform var(--t);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 0; width: 100%; }
  .nav a, .nav .menu-item a { display: block; padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav ul li:last-child a { border-bottom: none; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .form .row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .container { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
                                                        