/* =========================================================
   Maklér s Realitami — maklersrealitami.sk
   Klasický, dôveryhodný vzhľad lokálnej realitnej kancelárie
   ========================================================= */

:root {
  --navy: #1a3a5c;
  --navy-dark: #122c46;
  --gold: #c9a85c;
  --gold-light: #e8d5a3;
  --bg: #ffffff;
  --surface: #f8f6f3;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0ddd8;
  --success: #2d7a4f;
  --error: #c0392b;
  --shadow-sm: 0 1px 2px rgba(26, 42, 60, .05), 0 6px 22px rgba(26, 42, 60, .07);
  --shadow-lg: 0 16px 40px rgba(26, 58, 92, .16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.22;
  font-weight: 700;
  margin: 0 0 .5em;
}

a { color: var(--navy); }

::selection { background: var(--gold-light); color: var(--navy); }

img, svg { vertical-align: middle; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-nav.is-scrolled { box-shadow: 0 8px 28px rgba(26, 58, 92, .14); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.nav-phone:hover { background: var(--navy); color: #fff; }
.nav-phone:hover svg { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 104px 0 112px;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -12%, rgba(201, 168, 92, .20), transparent 62%),
    radial-gradient(900px 420px at 8% 112%, rgba(201, 168, 92, .10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 30px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 30px),
    var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(94%, 1080px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .85;
}
.hero .container { position: relative; z-index: 1; }
.hero-line { display: block; width: 58px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 auto 30px; }
.hero h1 { color: #fff; font-size: clamp(1.95rem, 4.8vw, 3.1rem); max-width: 830px; margin: 0 auto 18px; font-weight: 700; }
.hero-sub { color: #ccd7e4; font-size: 1.07rem; max-width: 620px; margin: 0 auto 34px; font-weight: 400; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 26px 0 0; font-size: .84rem; letter-spacing: .03em; color: #9db0c6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.1;
  padding: 15px 30px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(201, 168, 92, .28);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 8px 22px rgba(201, 168, 92, .4); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Statistika ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 20px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 3px; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.85rem; line-height: 1.15; color: var(--navy); }
.stat-num--text { font-size: 1.55rem; }
.stat-label { font-size: .88rem; color: var(--text-muted); letter-spacing: .02em; }

/* ---------- Sekcie ---------- */
.section { padding: 90px 0; scroll-margin-top: 84px; }
.section-head { max-width: 660px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); margin: 0 0 14px; }
.section-lead { margin: 0; color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Ako to prebieha ---------- */
.steps-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .22s ease;
  border-radius: 0 0 3px 3px;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step:hover::before { opacity: 1; }
.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-num { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.step h3 { font-size: 1.28rem; margin: 0 0 9px; }
.step p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- Lead / formulár ---------- */
.lead { background: var(--surface); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); margin-top: 44px; overflow: hidden; }
.tabs { display: flex; background: #fbfaf8; border-bottom: 1px solid var(--border); }
.tab-btn {
  flex: 1 1 50%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 12px 15px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.tab-btn:hover { color: var(--navy); background: rgba(26, 58, 92, .04); }
.tab-btn.is-active { color: var(--navy); background: #fff; border-bottom-color: var(--gold); }
.panel { display: none; padding: 40px clamp(20px, 4.5vw, 52px) 44px; }
.panel.is-active { display: block; animation: panelIn .3s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.req { color: var(--error); }
input, select, textarea {
  font-family: inherit;
  font-size: .98rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); flex: none; margin: 0; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a3a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
input::placeholder, textarea::placeholder { color: #9d9a92; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 92, .28); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192, 57, 43, .13); }
.field.is-invalid label { color: var(--error); }
.field-hint { margin: 0; font-size: .85rem; font-style: italic; color: var(--text-muted); align-self: center; }
.field-error { margin: 0; font-size: .83rem; line-height: 1.45; color: var(--error); }

.form-footer { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; }
.gdpr { display: flex; flex-direction: column; gap: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--text-muted); cursor: pointer; }
.checkbox input { margin-top: 4px; }
.gdpr.is-invalid .checkbox { color: var(--error); }
.submit-row { margin-top: 20px; }
.btn-submit { width: 100%; padding: 16px; background: var(--gold); border-color: var(--gold); color: var(--navy); font-size: 1.02rem; letter-spacing: .01em; }
.btn-submit:hover:not(:disabled) { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 8px 22px rgba(201, 168, 92, .35); }
.btn-submit:disabled { cursor: progress; opacity: .8; }
.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(26, 58, 92, .3);
  border-top-color: var(--navy);
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
  margin: 20px clamp(20px, 4.5vw, 52px) 40px;
  background: #fbefec;
  border: 1px solid #e9c1ba;
  border-left: 4px solid var(--error);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: .93rem;
  line-height: 1.5;
  color: #7c2a20;
}
.error-banner strong { color: var(--error); }

.success { padding: 66px 28px 62px; text-align: center; }
.success:focus { outline: none; }
.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(45, 122, 79, .1);
  border: 1px solid rgba(45, 122, 79, .25);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success h3 { font-size: 1.65rem; margin: 0 0 10px; }
.success p { max-width: 460px; margin: 0 auto 28px; color: var(--text-muted); }

.privacy-note { margin: 24px auto 0; max-width: 820px; font-size: .83rem; line-height: 1.6; color: var(--text-muted); }
.privacy-note strong { color: var(--navy); }

/* ---------- Prečo my ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card h3 { font-size: 1.2rem; margin: 16px 0 7px; }
.why-card p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Pätka ---------- */
.site-footer { background: var(--navy); color: #c3cfdd; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 58px 20px 44px; }
.footer-brand { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.32rem; color: #fff; margin: 0 0 12px; }
.footer-tag { margin: 0; font-size: .93rem; line-height: 1.65; color: #a9bacf; max-width: 340px; }
.site-footer h4 { margin: 0 0 16px; font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .95rem; }
.site-footer a { color: #e4ebf3; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 20px; font-size: .84rem; color: #8fa3ba; }
.footer-bottom p { margin: 0; }
.to-top { color: #c3cfdd; text-decoration: none; }
.to-top:hover { color: var(--gold-light); }

/* ---------- Coverage / tag cloud ---------- */
.coverage-section { background: var(--bg); }
.coverage-section .section-sub { max-width: 560px; margin: 0 auto 36px; text-align: center; color: var(--text-muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color .15s, color .15s;
  cursor: default;
}
.tag:hover { border-color: var(--gold); color: var(--navy); }

/* ---------- Responzívne ---------- */
@media (max-width: 920px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 460px; margin: 44px auto 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 84px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .stats-inner { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); padding-top: 16px; }
  .nav-inner { height: 62px; }
  .brand { font-size: 1.1rem; }
  .nav-phone { font-size: .85rem; padding: 8px 12px; gap: 7px; }
  .panel { padding: 30px 18px 34px; }
  .field-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
