/* Pod Křížovou horou – Premium minimalistický styl
   (statický web: HTML + CSS, Netlify)
*/

:root{
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1a1f1d;

  /* jemně zvednutý kontrast pro lepší čitelnost */
  --muted: #4f5a55;

  --brand: #173a2f;
  --brand-2: #0f2a22;
  --accent: #b08d57;
  --border: rgba(23,58,47,.14);
  --shadow: 0 18px 45px rgba(0,0,0,.10);
  --radius: 18px;

  --container: 1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* UX: lepší tap highlight na mobilech */
a, button, label{
  -webkit-tap-highlight-color: transparent;
}

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

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

/* Accessiblity: jednotný focus ring */
:focus-visible{
  outline: 3px solid rgba(176,141,87,.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247,244,238,.72);
  border-bottom: 1px solid rgba(23,58,47,.10);
}

.nav{
  position: relative; /* důležité pro absolutní menu na mobilu */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: .2px;
  font-size: 20px;
  color: var(--brand);
}

.menu{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.menu a{
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.menu a:hover{
  background: rgba(23,58,47,.08);
  color: var(--brand);
}

.menu a.active{
  background: rgba(23,58,47,.12);
  color: var(--brand);
}

/* Mobile nav */
.nav-toggle{ display:none; }
.hamburger{
  display:none;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(23,58,47,.14);
  background: rgba(255,255,255,.65);
  align-items:center;
  justify-content:center;
  gap: 5px;
  cursor:pointer;
}
.hamburger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 99px;
  opacity:.9;
}

@media (max-width: 860px){
  .hamburger{ display:flex; }
  .menu{
    position: absolute;
    right: 20px;
    top: 62px;
    width: min(320px, calc(100vw - 40px));
    padding: 10px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(23,58,47,.14);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .menu a{ padding: 12px 12px; }
  .nav-toggle:checked ~ .menu{ display:flex; }
}

/* Typography */
h1,h2,h3{
  font-family:"Cormorant Garamond", serif;
  font-weight: 600;
  line-height:1.15;
  letter-spacing: .1px;
  margin: 0 0 10px 0;
  color: var(--brand-2);
}
h1{ font-size: clamp(34px, 5vw, 56px); }
h2{ font-size: clamp(24px, 3.2vw, 34px); }

/* vylepšení pro mobil: h3 je flexibilní (globálně) */
h3{ font-size: clamp(18px, 2.2vw, 22px); }

/* čitelnost: omezení délky řádku */
p{ margin: 0 0 12px 0; max-width: 70ch; }
.muted{ color: var(--muted); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing:.2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor:pointer;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23,58,47,.20);
}
.btn-primary:hover{ background: #124034; }

.btn-ghost{
  background: rgba(255,255,255,.65);
  border-color: rgba(23,58,47,.18);
  color: var(--brand);
}
.btn-ghost:hover{ background: rgba(255,255,255,.85); }

/* Layout blocks */
.main{ padding: 26px 0 50px; }

.section{ padding: 54px 0; }
.section-head{ margin-bottom: 18px; max-width: 820px; }
.spacer-12{ height: 12px; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
}

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
}

/* Cards */
.card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(23,58,47,.14);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);

  /* NOVĚ: umožní zarovnání spodního bloku (note) ke dnu */
  display: flex;
  flex-direction: column;
}

.card-link{
  display:block;
  transition: transform .15s ease, box-shadow .15s ease; /* fix: transition patří sem */
}
.card-link:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(176,141,87,.12);
  border: 1px solid rgba(176,141,87,.25);
  color: #7b5a2e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing:.2px;
  margin-bottom: 10px;
}

.list{
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--text);
}
.list li{ margin: 6px 0; }

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(23,58,47,.22);
  color: var(--muted);
  background: rgba(247,244,238,.65);

  /* NOVĚ: přilepí "Vizualizace bude doplněna" ke spodní hraně karty */
  margin-top: auto;
  margin-bottom: 0;
}

.card-cta{
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}

/* Page hero */
.page-hero{
  padding: 6px 0 18px;
}
.kicker{
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Home hero */
.hero{
  position: relative;
  overflow: hidden;
  padding: 68px 0 54px;
  border-bottom: 1px solid rgba(23,58,47,.10);
  background: linear-gradient(180deg, rgba(23,58,47,.10), rgba(247,244,238,1) 60%);
}
.hero-bg{
  position:absolute;
  inset: -40px;
  background:
    radial-gradient(900px 500px at 20% 25%, rgba(176,141,87,.22), transparent 60%),
    radial-gradient(700px 420px at 85% 10%, rgba(23,58,47,.18), transparent 60%),
    radial-gradient(800px 540px at 70% 80%, rgba(23,58,47,.10), transparent 60%);
  pointer-events:none;
}
.hero-inner{ position: relative; }
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(23,58,47,.14);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-lead{
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Hero metrics (homepage) */
.hero-metrics{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.metric{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(23,58,47,.12);
  border-radius: 16px;
  padding: 14px 14px;
}
.metric-k{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand);
  font-size: 18px;
}
.metric-v{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.metric-v span{ opacity:.85; }

@media (max-width: 980px){
  .hero{ padding: 52px 0 42px; }
  .hero-metrics{ grid-template-columns: 1fr; }
}

/* =========================================================
   Apartmány – silnější hierarchie (jen na stránce apartmány)
   Pozn.: funguje jen pokud je v apartmany.html:
   <body class="page-apartmany">
   ========================================================= */

body.page-apartmany .card h3{
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--brand-2);
  margin-top: 4px;
  margin-bottom: 12px;
}

body.page-apartmany .badge{
  font-size: 13px;
  padding: 7px 12px;
  margin-bottom: 12px;
  border-color: rgba(23,58,47,.16);
  background: rgba(23,58,47,.08);
  color: var(--brand);
}

/* jemně zvednout první "výrazný" text, pokud někde používáš <strong> v popisu */
body.page-apartmany .card p strong{
  color: var(--brand-2);
}
