/*
Theme Name: FRATEX Luxury
Theme URI: http://www.fratex.sk
Author: FRATEX
Author URI: http://www.fratex.sk
Description: Luxusná tmavá šablóna pre FRATEX - bytový textil, záclony, závesy, garniže. Temný, exkluzívny dizajn so zlatými akcentmi a typografiou Cormorant Garamond.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fratex
*/

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
  --bg-deep:    #0F0F0F;
  --bg-mid:     #141414;
  --bg-card:    #1A1A1A;
  --bg-footer:  #080808;
  --text:       #F0F0F0;
  --muted:      #A0A0A0;
  --gold:       #C9A84C;
  --gold-light: #E0C06A;
  --gold-dim:   rgba(201, 168, 76, 0.18);
  --gold-border: rgba(201, 168, 76, 0.25);
  --overlay:    rgba(0, 0, 0, 0.55);
  --transition: 0.3s ease;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Inter', sans-serif;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

ul { list-style: none; }

/* =====================================================
   Layout Utilities
   ===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 96px 0;
}

.section--dark   { background: var(--bg-mid); }
.section--deeper { background: var(--bg-deep); }
.section--card   { background: var(--bg-card); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  opacity: 0.85;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  color: var(--text);
}

.section-heading--gold   { color: var(--gold); }
.section-heading--italic { font-style: italic; }

.section-intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

.gold-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-top: 4px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 64px;
}

/* =====================================================
   Navbar - Checkbox Hamburger (no JS required for mobile)
   ===================================================== */
#nav-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: padding var(--transition);
}

/* Dark bg when scrolled (JS adds .scrolled) or on no-hero pages */
.navbar.scrolled,
.no-hero .navbar {
  background: var(--bg-mid);
  box-shadow: 0 1px 0 var(--gold-border);
}

.navbar.scrolled .navbar__inner,
.no-hero .navbar .navbar__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Slightly smaller on scroll / no-hero pages */
.navbar.scrolled .navbar__logo-img,
.no-hero .navbar__logo-img {
  height: 34px;
  transition: height var(--transition);
}

/* Nav links */
.navbar__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.navbar__links a:hover,
.navbar__links .current-menu-item > a,
.navbar__links .current_page_item > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
#nav-toggle:checked ~ .navbar .navbar__links {
  display: flex;
}

#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =====================================================
   Hero - Full Viewport
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  /* Background image injected inline via wp_head (Customizer) */
  background-color: var(--bg-mid);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.9;
}

/* Hero logo image (replaces text title on front page) */
.hero__logo {
  height: clamp(80px, 12vw, 140px);
  width: auto;
  max-width: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(64px, 10vw, 108px);
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.78);
  margin-top: -8px;
}

.hero__divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero__cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 48px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold);
  transition: background var(--transition), color var(--transition);
}

.hero__cta:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* =====================================================
   Page Header (no-hero pages: cinnost, kontakt, predajna)
   ===================================================== */
.page-header {
  padding: 140px 0 80px;
  background: var(--bg-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.page-header .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================================================
   Stat Cards (front-page highlights)
   ===================================================== */
.stats {
  background: var(--gold-dim);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gold);
}

.stat-card {
  background: var(--bg-mid);
  padding: 52px 40px;
  border-top: 2px solid var(--gold);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 12px;
}

.stat-card__desc {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* =====================================================
   About Section (front-page)
   ===================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.about__text p:last-child { margin-bottom: 0; }

.about__image {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 32px;
  object-fit: cover;
}

.about__accent {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 26px;
  color: var(--text);
  line-height: 1.45;
  border-left: 2px solid var(--gold);
  padding-left: 28px;
}

.about__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about__link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}
.about__link:hover { opacity: 0.7; }

/* =====================================================
   Services List (cinnost - block editor content)
   ===================================================== */
.services-content ul,
.services__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.services-content ul li,
.services__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.services-content ul li:nth-last-child(-n+2),
.services__list li:nth-last-child(-n+2) { border-bottom: none; }

.services-content ul li::before,
.services__list li::before {
  content: '-';
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Handle WP block editor list */
.services-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* =====================================================
   Product Cards (cinnost)
   ===================================================== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bg-card);
}

.product-card {
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

.product-card__image {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
}

.product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, 0.25);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-card:hover .product-card__image::after { opacity: 1; }

.product-card--more {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: var(--bg-card);
}

.product-card--more span {
  font-family: var(--font-heading);
  height: 100%;
  justify-content: center;
  text-align: center;
  align-self: center;
  align-items: center;
  font-style: italic;
  font-size: 42px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.65;
  letter-spacing: 0.04em;
}

/* Placeholder (Doplnky card) */
.product-card__image--placeholder {
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image--placeholder svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.product-card__body {
  padding: 24px 28px 32px;
}

.product-card__body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-card__body em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* =====================================================
   Hotel ASTON Strip (referencie)
   ===================================================== */
.aston__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 24px;
}

.aston__strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 4px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-card);
}

.aston__strip::-webkit-scrollbar { height: 3px; }
.aston__strip::-webkit-scrollbar-track { background: var(--bg-card); }
.aston__strip::-webkit-scrollbar-thumb { background: var(--gold); }

.aston__strip a {
  flex-shrink: 0;
  display: block;
  width: 280px;
  height: 190px;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
}

.aston__strip a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.aston__strip a:hover img { transform: scale(1.05); }

.aston__strip a::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
}
.aston__strip a:hover::after { border-color: var(--gold); }

/* =====================================================
   Reference Gallery (referencie)
   ===================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px;
}

.gallery__item {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
}

.gallery__item a {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
  z-index: 1;
}

.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { border-color: var(--gold); }

/* Empty state */
.gallery__empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

/* =====================================================
   Showroom Grid (predajna)
   ===================================================== */
.showroom__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 64px;
}

.showroom__item {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
  display: block;
}

.showroom__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.showroom__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
  z-index: 1;
}

.showroom__item:hover img { transform: scale(1.06); }
.showroom__item:hover::after { border-color: var(--gold); }

/* =====================================================
   Hours Card
   ===================================================== */
.hours-card {
  border: 1px solid var(--gold);
  background: var(--bg-mid);
  padding: 44px 48px;
  max-width: 480px;
}

.hours-card__title {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 24px;
}

.hours-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-card__row:last-child { border-bottom: none; }

.hours-card__day {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}

.hours-card__time {
  color: var(--text);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.hours-card__time--closed { color: var(--muted); }

/* Predajna - intro + hours side by side */
.predajna-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.predajna-intro__text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.predajna-intro__text p:last-child { margin-bottom: 0; }

/* =====================================================
   Contact Layout (kontakt)
   ===================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-card {
  border-left: 2px solid var(--gold);
  padding-left: 32px;
}

.contact-info-card__name {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.2;
}

.contact-info-card__name small {
  display: block;
  font-size: 20px;
  color: var(--gold);
  font-style: italic;
}

.contact-info__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.contact-info__row:last-child { border-bottom: none; }

.contact-info__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  min-width: 62px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__value {
  color: var(--muted);
  line-height: 1.8;
}

.contact-info__value a:hover { color: var(--gold); }

/* Map */
.map-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56%;
  overflow: hidden;
  margin-bottom: 40px;
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form (CF7 overrides) */
.contact-form-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form-card .wpcf7-form,
.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(160, 160, 160, 0.45);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--gold);
}

.wpcf7-form textarea { min-height: 140px; }

.wpcf7-form .wpcf7-submit,
.contact-form-card input[type="submit"] {
  display: inline-block;
  padding: 15px 48px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}

.wpcf7-form .wpcf7-submit:hover,
.contact-form-card input[type="submit"]:hover {
  background: var(--gold-light);
}

.wpcf7-response-output {
  font-size: 13px !important;
  color: var(--muted) !important;
  border-color: var(--gold) !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  background: transparent !important;
}

/* CF7 notice (no plugin) */
.cf7-notice {
  color: var(--gold);
  padding: 1rem 1.25rem;
  border: 1px dashed rgba(201, 168, 76, 0.4);
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-card);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--bg-footer);
  padding: 72px 0 40px;
  border-top: 1px solid var(--gold-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 32px;
}

.footer__logo {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.footer__col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.footer__col p,
.footer__col address p {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--gold-border);
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}
.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__bottom {
  font-size: 11px;
  color: rgba(160, 160, 160, 0.4);
  letter-spacing: 0.05em;
}

/* =====================================================
   Lightbox (:target CSS-only)
   ===================================================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay:target {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 36px;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  font-family: var(--font-body);
  font-weight: 300;
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}
.lightbox-close:hover { opacity: 1; color: var(--gold); }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}

/* =====================================================
   Generic page content
   ===================================================== */
.entry-content {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 760px;
}

.entry-content p { margin-bottom: 20px; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--text);
  margin: 32px 0 12px;
}
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 26px; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .about__grid         { grid-template-columns: 1fr; gap: 48px; }
  .about__image img    { height: 360px; }
  .products__grid      { grid-template-columns: repeat(2, 1fr); }
  .predajna-intro      { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section   { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .navbar__inner { padding: 20px 24px; }
  .no-hero .navbar .navbar__inner { padding: 14px 24px; }
  .navbar.scrolled .navbar__inner { padding: 14px 24px; }

  /* Mobile nav overlay */
  .nav-hamburger { display: flex; }

  .navbar__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-mid);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .navbar__links a { font-size: 15px; letter-spacing: 0.2em; }

  .stats__grid     { grid-template-columns: 1fr; gap: 2px; }
  .services-content ul,
  .services__list  { grid-template-columns: 1fr; }
  .products__grid  { grid-template-columns: 1fr; }
  .showroom__grid  { grid-template-columns: repeat(2, 1fr); }
  .contact__grid   { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom  { flex-direction: column; gap: 8px; text-align: center; }

  .hours-card      { padding: 32px 24px; }
  .map-wrapper     { margin-bottom: 32px; }

  .hero__title     { font-size: clamp(44px, 12vw, 72px); }
  .hero__subtitle  { font-size: 10px; letter-spacing: 0.2em; }
  .page-header     { padding: 100px 0 60px; }
}

@media (max-width: 480px) {
  .hero__title     { font-size: 48px; }
  .showroom__grid  { grid-template-columns: 1fr; }
  .gallery__grid   { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .aston__strip a  { width: 220px; height: 150px; }
}

/* ── Accessibility ──────────────────────────────────────── */
.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 {
  background: var(--gold);
  clip: auto !important;
  clip-path: none;
  color: var(--bg-deep);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ── Sidebar & Widget Areas ─────────────────────────────── */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.sidebar .widget {
  margin-bottom: 32px;
}

.sidebar .widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-border);
  color: var(--gold);
}

.footer .widget {
  margin-bottom: 16px;
}

.footer .widget-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--gold);
}

@media (max-width: 767px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs__list a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumbs__list a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  margin: 0 6px;
  color: var(--muted);
}

/* =====================================================
   Services intro text (page-cinnost)
   ===================================================== */
.services__intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: 40px;
}

/* =====================================================
   Blog Grid (page-blog.php)
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bg-card);
  margin-bottom: 64px;
}

.blog-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.blog-card__image {
  display: block;
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.blog-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img { transform: scale(1.05); }

.blog-card__body {
  padding: 28px 28px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__title a { color: inherit; transition: color var(--transition); }
.blog-card__title a:hover { color: var(--gold); }

.blog-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card__link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity var(--transition);
}
.blog-card__link:hover { opacity: 0.7; }

.blog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 80px 0;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--transition), color var(--transition);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* =====================================================
   Single Post (single.php)
   ===================================================== */
.post-meta__date {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 16px;
}

.post-hero-image {
  background: var(--bg-mid);
  padding: 0 0 64px;
}

.post-hero-image__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.post-content p  { margin-bottom: 24px; }

.post-content h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 36px;
  color: var(--text);
  margin: 40px 0 16px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 26px;
  color: var(--text);
  margin: 32px 0 12px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.9;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  margin: 32px 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  line-height: 1.5;
}

.post-content a { color: var(--gold); text-decoration: underline; }

/* ── Blog responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid         { grid-template-columns: 1fr; }
  .post-hero-image   { padding-bottom: 40px; }
}
