/* =============================================
   LOVEX – Zbrojní mistr Jičín
   Klasický, důstojný, tradiční design
   ============================================= */

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/inter-tight.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-400-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-400-italic-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-700-ext.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-700.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:       #f5f0e8;
  --surface:  #faf7f2;
  --alt:      #ede7db;
  --text:     #1e1a14;
  --muted:    #6b5f4a;
  --muted-2:  #a09070;
  --border:   #d8cfc0;

  --ink:      #161208;
  --ink-2:    #201a10;

  --gold:     #9a7a38;
  --gold-2:   #b8922e;
  --gold-light: #e8d5a0;

  --f: 'Inter Tight', system-ui, sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;
  --nav-h: 70px;
  --cont: 1160px;
  --radius: 3px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--f); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--cont); margin: 0 auto; padding: 0 2.5rem; }

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(245,240,232,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--cont);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  transition: color 0.3s, text-shadow 0.3s;
}
#navbar.scrolled .logo-name { color: var(--text); text-shadow: none; }
.logo-sep {
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  transition: color 0.3s;
}
#navbar.scrolled .logo-sep { color: var(--muted-2); }
.logo-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
#navbar.scrolled .logo-sub { color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 0.1rem; }

.nav-link {
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  transition: color 0.2s;
  text-shadow:
    0 0 4px rgba(0,0,0,0.9),
    0 0 14px rgba(0,0,0,0.7),
    0 1px 3px rgba(0,0,0,0.9);
}
.nav-link:hover { color: var(--gold-light); }
#navbar.scrolled .nav-link { color: var(--text); text-shadow: none; }
#navbar.scrolled .nav-link:hover { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.75rem;
  background: var(--gold);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
  text-shadow: none !important;
}
.nav-cta:hover { background: var(--gold-2); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.25s; }
#navbar.scrolled .hamburger span { background: var(--text); }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(16,10,4,0.65) 0%,
    rgba(16,10,4,0.40) 40%,
    rgba(16,10,4,0.70) 75%,
    rgba(16,10,4,0.92) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) 2.5rem 6rem;
  max-width: var(--cont);
  margin: 0 auto;
  width: 100%;
}

.hero-content { max-width: 640px; }

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.hero-h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-perex {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 7rem 0; }
.section-dark { background: var(--ink); }

.section-intro {
  max-width: var(--cont);
  margin: 0 auto 4.5rem;
  padding: 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-light); opacity: 0.7; }

.section-h2 {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.section-h2--light { color: #f0e8d0; }

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.svc-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.svc-card:hover { background: var(--bg); }
.svc-card + .svc-card { border-left: 1.5px solid var(--border); }

.svc-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.svc-icon svg { width: 100%; height: 100%; }

.svc-card h3 {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.svc-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* =============================================
   O DÍLNĚ
   ============================================= */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.about-left { position: sticky; top: calc(var(--nav-h) + 2rem); }
.about-left .section-h2--light { margin-top: 0.75rem; }

.about-right p {
  font-size: 1rem;
  color: rgba(240,232,210,0.65);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-right p:last-of-type { margin-bottom: 2.5rem; }

.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.stat-item {
  flex: 1;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-item span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.stat-div {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* =============================================
   KONTAKT
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-left .eyebrow { margin-bottom: 0.75rem; }
.contact-left .section-h2 { margin-bottom: 2rem; }

.contact-phone {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--gold); }

.contact-addr {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.contact-hours { margin-bottom: 2rem; }
.hours-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-right iframe {
  border-radius: var(--radius);
  filter: saturate(0.7) brightness(0.97);
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--ink-2);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.22);
}
.footer-copy a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-copy a:hover { color: rgba(255,255,255,0.6); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc-card:nth-child(3) { border-left: none; border-top: 1.5px solid var(--border); }
  .svc-card:nth-child(2) { border-left: 1.5px solid var(--border); }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-left { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }
  .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section-intro { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }

  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(245,240,232,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.5rem; text-shadow: none; color: var(--text); font-weight: 700; }
  .nav-cta { margin-left: 0; font-size: 1.1rem; padding: 0.75rem 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .svc-card + .svc-card { border-left: none; border-top: 1.5px solid var(--border); }
  .svc-card:nth-child(2) { border-left: none; }
  .svc-card:nth-child(3) { border-left: none; }

  .about-stats { flex-direction: column; gap: 1.5rem; }
  .stat-div { width: 40px; height: 1px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
}
