/*
Theme Name: Najbolji Dom Za Stare
Theme URI: https://najboljidomzastare.com/
Author: Maxima Lux / Perplexity
Description: Custom directory theme for elderly care homes in Belgrade organized by municipality.
Version: 1.0.0
Text Domain: najboljidomzastare
*/

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #f1ece4;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5ded3;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d8eeeb;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(229, 222, 211, 0.9);
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 76px;
}
.branding { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.branding img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.main-nav ul, .footer-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 20px; flex-wrap: wrap;
}

/* Buttons */
.header-cta, .button, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 700;
  transition: .2s ease;
}
.header-cta:hover, .button:hover, button:hover, input[type="submit"]:hover {
  background: var(--accent-dark);
}
.button.secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}

/* Hero */
.hero {
  position: relative; min-height: 720px; display: grid; align-items: center;
  background: linear-gradient(rgba(20,24,28,.45), rgba(20,24,28,.55)),
              url('./assets/hero-section.png') center/cover no-repeat;
  color: #fff;
}
.hero-content { max-width: 720px; padding: 110px 0; }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections & headings */
.section { padding: 72px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section-head h2, .section-head h3 {
  margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.section-head p {
  margin: 8px 0 0; color: var(--muted); max-width: 640px;
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-card, .listing-card, .article-card { height: 100%; }

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-image-wrap img { transform: scale(1.04); }

.card-body { padding: 18px; }
.card h3, .card h4 { margin: 0 0 10px; line-height: 1.2; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: .95rem; color: var(--muted);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 7px 12px; font-size: .9rem; font-weight: 700;
}

/* Trust grid */
.trust-grid .card-body { padding: 24px; }

/* Breadcrumbs, archive, single */
.breadcrumbs {
  font-size: .95rem; color: var(--muted); margin-bottom: 16px;
}
.archive-intro, .single-intro { padding: 48px 0 24px; }
.archive-title, .single-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

/* Single layout */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
  gap: 32px; align-items: start;
}
.single-content .content-card, .sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.single-content h2 { margin-top: 0; }
.info-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.info-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.info-list li:last-child {
  border-bottom: 0; padding-bottom: 0;
}

/* Marketing box */
.marketing-box {
  background: linear-gradient(135deg, #103c3a, #0f766e);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.marketing-box p, .marketing-box li { color: rgba(255,255,255,.88); }
.marketing-box ul { margin: 18px 0; padding-left: 18px; }

/* Footer */
.site-footer {
  background: #122029;
  color: #eef2f7;
  margin-top: 60px;
  padding: 26px 0 36px;
}
.site-footer p, .site-footer a { color: rgba(238,242,247,.84); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 20px;
  padding-top: 20px;
}

/* Utility */
.placeholder { background: #d7d3cd; width: 100%; height: 100%; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden; position: absolute;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-inner, .footer-inner, .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 580px; }
  .section { padding: 56px 0; }
}