/*
Theme Name: Velvet Elegance Signature V4.1 – oprava mobilní hero fotografie
Theme URI: https://velvetelegance.cz/
Author: TrebWebdesign.cz
Author URI: https://www.trebwebdesign.cz/
Description: Tmavá responzivní šablona Velvet Elegance pro American Curl s vlastní administrační stránkou.
Version: 4.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: velvet-elegance
*/

:root {
  --ve-bg: #11100f;
  --ve-surface: #191715;
  --ve-text: #f5f0e8;
  --ve-muted: #bdb5aa;
  --ve-line: rgba(255, 255, 255, .13);
  --ve-accent: #c7a977;
  --ve-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ve-text);
  background: var(--ve-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover, a:focus-visible { color: var(--ve-accent); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px;
  clip: auto; background: #fff; color: #111;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--ve-line);
  background: rgba(17, 16, 15, .94);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--ve-width));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-branding { flex: 0 0 auto; line-height: 1.05; }
.branding-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-logo { width: auto; max-width: 62px; max-height: 54px; object-fit: contain; }
.branding-text { display: block; }
.site-title {
  display: block;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: .02em;
}
.site-title a { text-decoration: none; }
.site-description {
  display: block;
  margin: 7px 0 0;
  color: var(--ve-muted);
  font-size: .67rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  padding: 10px 0;
  color: var(--ve-text);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.primary-nav { min-width: 0; }
.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 27px);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.primary-menu a {
  display: block;
  padding: 30px 0 27px;
  border-bottom: 2px solid transparent;
  color: var(--ve-muted);
  font-size: clamp(.72rem, 1vw, .88rem);
  letter-spacing: .04em;
  text-decoration: none;
}
.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a { color: var(--ve-text); border-color: var(--ve-accent); }
.primary-menu .campus-star a {
  padding-inline: 4px;
  color: var(--ve-accent);
  font-size: 1.12rem;
  line-height: 1;
}

.site-main { min-height: 62vh; }
.content-wrap {
  width: min(calc(100% - 48px), 920px);
  margin-inline: auto;
  padding: clamp(68px, 10vw, 132px) 0;
}
.entry-kicker {
  margin: 0 0 16px;
  color: var(--ve-accent);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { margin: 0 0 34px; font-size: clamp(3rem, 8vw, 7.5rem); letter-spacing: -.045em; }
h2 { margin-top: 2.2em; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
p { max-width: 760px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content blockquote {
  margin: 2.5em 0;
  padding: .2em 0 .2em 28px;
  border-left: 1px solid var(--ve-accent);
  color: var(--ve-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25em;
}
.entry-content hr { margin: 3.5em 0; border: 0; border-top: 1px solid var(--ve-line); }

.front-hero {
  position: relative;
  min-height: var(--ve-hero-height, 440px);
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--ve-line);
  background-color: var(--ve-bg);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.front-mobile-image { display: none; }
.front-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,16,15,.97) 0%, rgba(17,16,15,.78) 48%, rgba(17,16,15,.35) 100%);
}
.front-inner {
  width: min(calc(100% - 48px), var(--ve-width));
  margin-inline: auto;
  padding: clamp(72px, 12vw, 150px) 0;
}
.front-inner h1 { max-width: 900px; }
.front-text { max-width: 710px; color: #ddd6cc; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.front-text:empty { display: none; }

.gallery-empty { min-height: 46vh; }
.gallery-empty .entry-content img,
.gallery-empty .entry-content figure,
.gallery-empty .entry-content .wp-block-gallery { display: none !important; }

.contact-card {
  max-width: 720px;
  margin-top: 38px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--ve-line);
  background: var(--ve-surface);
}
.contact-card a { color: var(--ve-accent); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.1rem, 3vw, 1.7rem); }

.site-footer { border-top: 1px solid var(--ve-line); }
.footer-inner {
  width: min(calc(100% - 48px), var(--ve-width));
  margin-inline: auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--ve-muted);
  font-size: .82rem;
}
.footer-brand { color: var(--ve-text); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.footer-contact a { color: var(--ve-text); }
.footer-credit { display: block; white-space: nowrap; }

/* Starý měřicí kód může vložit viditelný obrázek nebo odkaz až přes wp_footer(). */
a[href*="statcounter.com"],
a[href*="statcounter.cz"],
img[src*="statcounter.com"],
img[src*="statcounter.cz"],
.statcounter,
#statcounter,
#sc_counter,
.statcounter-widget { display: none !important; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 74px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 8px 24px 22px;
    border-bottom: 1px solid var(--ve-line);
    background: var(--ve-bg);
  }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: block; white-space: normal; }
  .primary-menu a { padding: 13px 0; font-size: .93rem; }
  .primary-menu .campus-star a { font-size: 1.22rem; }
  .front-hero::before { inset: 0; background: linear-gradient(90deg, rgba(17,16,15,.94), rgba(17,16,15,.62)); }
}
@media (max-width: 600px) {
  .header-inner, .front-inner, .content-wrap, .footer-inner { width: min(calc(100% - 32px), var(--ve-width)); }
  .site-description { max-width: 190px; line-height: 1.35; }
  .site-main { min-height: 0; }
  .front-mobile-image {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--ve-line);
    background: var(--ve-bg);
  }
  .front-mobile-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .front-hero { min-height: var(--ve-hero-mobile-height, 330px); align-items: center; }
  .front-hero.has-mobile-media { background-image: none !important; }
  .front-hero.has-mobile-media::before { display: none; }
  .front-inner { padding: 64px 0 70px; }
  .front-inner h1 { font-size: clamp(3rem, 15vw, 4.15rem); overflow-wrap: normal; }
  .content-wrap { padding: 46px 0 54px; }
  h1 { max-width: 100%; font-size: clamp(2.2rem, 10vw, 3rem); overflow-wrap: anywhere; letter-spacing: -.03em; }
  .gallery-empty { min-height: 0; }
  .contact-card { margin-top: 24px; padding: 24px 20px; overflow-wrap: anywhere; }
  .contact-card a { font-size: clamp(1rem, 5vw, 1.3rem); }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 30px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
