/* ==========================================
   Site styles – David Fajman Geodetické služby
   ========================================== */

:root {
  --navy:   #1a2e4a;
  --blue:   #2563eb;
  --sky:    #38bdf8;
  --light:  #f8fafc;
  --white:  #ffffff;
  --muted:  #64748b;
  --border: #e2e8f0;
  --green:  #16a34a;
  --radius: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: #1e293b;
  margin: 0;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; border: none; }

/* ── Navigace ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.site-nav .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.site-nav .brand span {
  color: var(--blue);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-nav ul a {
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav ul a:hover,
.site-nav ul a.active {
  background: #eff6ff;
  color: var(--blue);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 60%, #1a56a0 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--white);
}

/* ── Hlavní obsah ── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Sekce ── */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.35rem;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

/* ── Mřížka služeb ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(37,99,235,0.10);
  transform: translateY(-3px);
}

.service-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.price-badge {
  display: inline-block;
  background: #dcfce7;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.8rem;
  border-radius: 2rem;
  margin-top: 0.5rem;
  width: fit-content;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  background: #f1f5f9;
  border-left: 3px solid var(--sky);
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 1rem;
}

/* ── Profil ── */
.profile-section {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.profile-section img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sky);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.25rem;
}

.profile-info .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.97rem;
  color: #334155;
}

.contact-list .ci {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  color: var(--blue);
}

/* ── Kontaktní stránka ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

.map-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.map-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1rem;
}

.map-box img {
  border-radius: 0.75rem;
  width: 100%;
  height: auto;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  margin-top: 4rem;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .contact-list li {
    justify-content: center;
  }

  .hero {
    padding: 3.5rem 1rem 3rem;
  }
}
