/*
Theme Name: Waldobike Yellow Hero Image
Theme URI: https://waldobike.sk/
Author: Waldobike
Author URI: https://waldobike.sk/
Description: Jednoduchá responzívna WordPress šablóna pre cyklo predajňu a servis bicyklov Waldobike v žltých odtieňoch. Táto verzia používa obrázkové pozadie v hero-card. Pripravená pre WordPress 6.6.5 a PHP 7.2.24.
Version: 1.3.1-yellow-image
Requires at least: 6.6
Tested up to: 6.6.5
Requires PHP: 7.2.24
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waldobike
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, responsive-layout, e-commerce, yellow
Update URI: false
*/

:root {
  --wb-yellow: #ffd100;
  --wb-yellow-dark: #8a6400;
  --wb-yellow-deep: #4a3400;
  --wb-yellow-soft: #fff5bf;
  --wb-amber: #ffb000;
  --wb-black: #181307;
  --wb-gray-900: #231d10;
  --wb-gray-700: #665b3d;
  --wb-gray-300: #e4d6a6;
  --wb-gray-200: #fff0a8;
  --wb-gray-100: #fffaf0;
  --wb-white: #ffffff;
  --wb-orange: #ff9f1c;
  --wb-green: var(--wb-yellow);
  --wb-green-dark: var(--wb-yellow-dark);
  --wb-radius: 22px;
  --wb-shadow: 0 20px 50px rgba(24, 19, 7, .13);
  --wb-container: 1180px;
}

/* Waldobike Yellow edition: žltá = primárna značka, tmavá hnedočierna = kontrast. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--wb-black);
  background: radial-gradient(circle at 12% 0%, rgba(255,209,0,.16), transparent 28%), var(--wb-gray-100);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--wb-green-dark); }
img { max-width: 100%; height: auto; }

.wb-container {
  width: min(100% - 32px, var(--wb-container));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  display: block;
  height: auto;
  left: 16px;
  top: 16px;
  width: auto;
  z-index: 100000;
  padding: 10px 14px;
  background: var(--wb-white);
  color: var(--wb-black);
  border-radius: 10px;
  box-shadow: var(--wb-shadow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 240, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(138, 100, 0, .16);
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--wb-black);
}

.wb-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--wb-white);
  background: linear-gradient(135deg, var(--wb-yellow), var(--wb-amber) 55%, var(--wb-yellow-dark));
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(255, 209, 0, .36);
  font-size: 22px;
}

.site-title { font-size: 1.2rem; }
.site-description {
  display: block;
  margin-top: -4px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--wb-gray-700);
  text-transform: none;
}

.main-navigation { display: flex; align-items: center; gap: 22px; }
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a { font-weight: 800; font-size: .95rem; }

.menu-toggle {
  display: none;
  border: 0;
  background: var(--wb-yellow-soft);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.wb-btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wb-yellow), var(--wb-amber));
  color: var(--wb-black);
  font-weight: 900;
  border: 2px solid transparent;
  box-shadow: 0 12px 28px rgba(255, 209, 0, .30);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.wb-btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  color: var(--wb-black);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 209, 0, .42);
}
.wb-btn--dark { background: linear-gradient(135deg, var(--wb-black), var(--wb-yellow-deep)); color: var(--wb-white); }
.wb-btn--dark:hover { color: var(--wb-white); }
.wb-btn--ghost { background: transparent; border-color: rgba(255,255,255,.65); color: var(--wb-white); box-shadow: none; }
.wb-btn--ghost:hover { color: var(--wb-white); background: rgba(255,255,255,.12); }

/* Hero */
.wb-hero {
  position: relative;
  overflow: hidden;
  color: var(--wb-white);
  background:
    radial-gradient(circle at 80% 12%, rgba(255,209,0,.62), transparent 28%),
    linear-gradient(135deg, rgba(18,21,18,.92), rgba(74,52,0,.90)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 15px);
}
.wb-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -34% auto;
  width: 560px;
  height: 560px;
  border: 42px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 42px;
  align-items: center;
  padding: 96px 0 84px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
  font-size: .88rem;
}

.map {
  aspect-ratio: 5/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
}
.hero-title {
  margin: 22px 0 18px;
  font-size: 35px;
  line-height: .98;
  letter-spacing: -.05em;
}
.hero-title span { color: var(--wb-green); }
.hero-text {
  max-width: 680px;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-card {
  position: relative;
  min-height: 420px;
  border-radius: 38px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
  url("assets/images/dodo_pred.png");
    background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 30px 70px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.18);
}
.hero-bike-art {
  display: none;
}
.hero-card-label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,250,225,.95);
  color: var(--wb-black);
  box-shadow: var(--wb-shadow);
}
.hero-card-label strong { display: block; font-size: 1.35rem; line-height: 1.2; }
.hero-card-label span { color: var(--wb-gray-700); font-weight: 700; }

/* Sections */
.section { padding: 72px 0; }
.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.section-lead {
  margin: 0 0 34px;
  max-width: 740px;
  color: var(--wb-gray-700);
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  padding: 28px;
  border-radius: var(--wb-radius);
  background: linear-gradient(180deg, var(--wb-white), #fffdf6);
  box-shadow: var(--wb-shadow);
  border: 1px solid rgba(138,100,0,.12);
}
.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--wb-yellow-soft);
  font-size: 1.8rem;
}
.card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--wb-gray-700); }



.home-cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--wb-white), #fffdf6);
  box-shadow: var(--wb-shadow);
  border: 1px solid rgba(138,100,0,.12);
}
.home-cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}
.home-cta-card p { margin: 0; color: var(--wb-gray-700); }

/* Content pages */
.site-main { padding: 54px 0 76px; }
.content-box {
  background: linear-gradient(180deg, var(--wb-white), #fffdf6);
  border-radius: 28px;
  box-shadow: var(--wb-shadow);
  padding: clamp(26px, 4vw, 46px);
}
.entry-title {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.entry-thumbnail { margin: 24px 0; border-radius: 24px; overflow: hidden; }
.entry-thumbnail img { display: block; width: 100%; }
.entry-content a { color: var(--wb-green-dark); font-weight: 800; text-decoration: underline; }
.entry-content :where(h2,h3) { line-height: 1.15; }
.entry-content blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 6px solid var(--wb-yellow);
  background: var(--wb-gray-100);
  border-radius: 16px;
}
.wp-block-image img,
.wp-block-cover { border-radius: 22px; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td,
.wp-block-table th { border: 1px solid var(--wb-gray-300); padding: 10px; }

/* Footer */
.site-footer {
  padding: 52px 0 28px;
  background: linear-gradient(135deg, var(--wb-black), var(--wb-yellow-deep));
  color: var(--wb-white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  padding-bottom: 34px;
}
.site-footer h3 { margin-top: 0; }
.site-footer p,
.site-footer li { color: rgba(255,255,255,.72); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.58);
  font-size: .92rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--wb-gray-300);
  border-radius: 14px;
  background: var(--wb-white);
  font: inherit;
}
textarea { min-height: 140px; }

/* WooCommerce basic compatibility */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--wb-white);
  border-radius: var(--wb-radius);
  padding: 18px;
  box-shadow: var(--wb-shadow);
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #payment #place_order {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wb-yellow), var(--wb-amber));
  color: var(--wb-black);
  font-weight: 900;
}
.woocommerce div.product .product_title { letter-spacing: -.03em; }
.woocommerce span.onsale { background: var(--wb-amber); color: var(--wb-black); }

/* Pagination */
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.nav-links a,
.nav-links span {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--wb-yellow-soft);
  font-weight: 800;
}
.nav-links .current { background: linear-gradient(135deg, var(--wb-yellow), var(--wb-amber)); color: var(--wb-black); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 72px 0; }
  .hero-card { min-height: 340px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 16px;
    background: var(--wb-white);
    border-radius: 18px;
    box-shadow: var(--wb-shadow);
    border: 1px solid rgba(138,100,0,.14);
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 10px; }
  .header-cta { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .home-cta-card { grid-template-columns: 1fr; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wb-container { width: min(100% - 22px, var(--wb-container)); }
  .hero-inner { padding: 54px 0; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .wb-btn { width: 100%; }
  .section { padding: 52px 0; }
  .hero-card { min-height: 280px; border-radius: 28px; }
}
