/*
Theme Name: Gecic Modern
Theme URI: https://gecic.rs/
Author: DigitalSquare
Description: Moderna WordPress tema za Advokatsku kancelariju Gecic, sa SCF/ACF poljima, uslugama, aktuelnostima i trojezicnim prikazom.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: gecic-modern
*/

:root {
  --ink: #14171c;
  --ink-2: #2f353d;
  --paper: #f8f7f3;
  --white: #ffffff;
  --line: #ded8cc;
  --gold: #a77b31;
  --gold-2: #d4b06a;
  --green: #334b42;
  --blue: #223f5f;
  --muted: #6f747b;
  --shadow: 0 22px 60px rgba(20, 23, 28, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

p {
  margin: 0 0 1rem;
}

.site-wrap {
  min-height: 100vh;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 243, 0.93);
  border-bottom: 1px solid rgba(20, 23, 28, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-logo {
  width: 170px;
  max-height: 48px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu li {
  display: flex;
  align-items: center;
}

.main-nav a,
.primary-menu a {
  padding: 10px 12px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus,
.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--gold);
}

.primary-menu li:last-child {
  margin-left: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.primary-menu li:last-child a {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 9px 14px;
  background: var(--ink);
  color: var(--white);
}

.primary-menu li:last-child a:hover,
.primary-menu li:last-child a:focus {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 3px;
}

.language-switcher a {
  min-width: 38px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.language-switcher a.is-active {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  padding: 76px 0 48px;
  background:
    linear-gradient(115deg, rgba(20, 23, 28, 0.92) 0%, rgba(20, 23, 28, 0.78) 43%, rgba(51, 75, 66, 0.72) 100%),
    url("assets/images/hero-placeholder.svg") center/cover no-repeat;
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: 0.95;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5.6vw, 5.4rem);
  line-height: 1;
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  line-height: 1.2;
}

.button:hover,
.button:focus {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.hero-actions .button:not(.is-light) {
  border-color: var(--gold-2);
  background: var(--gold-2);
  color: var(--ink);
}

.hero-actions .button:not(.is-light):hover,
.hero-actions .button:not(.is-light):focus {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button.is-light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button.is-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.hero-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 28px;
}

.hero-stat {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
  display: block;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.section {
  padding: 92px 0;
}

.section.is-white {
  background: var(--white);
}

.section.is-dark {
  background: var(--ink);
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.04;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.is-dark .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.is-dark .section-title + .section-copy {
  margin-top: 20px;
}

.values-grid,
.services-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-item,
.service-card,
.news-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 35px rgba(20, 23, 28, 0.04);
}

.value-item {
  padding: 26px;
}

.value-item img {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  object-fit: cover;
}

.value-item h3,
.service-card h3,
.news-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.18;
}

.value-item p,
.service-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
}

.service-card {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.service-media,
.placeholder-media {
  min-height: 188px;
  background:
    linear-gradient(135deg, rgba(34, 63, 95, 0.76), rgba(167, 123, 49, 0.6)),
    url("assets/images/service-placeholder.svg") center/cover no-repeat;
}

.service-media-link {
  display: block;
}

.service-media-link:hover .service-media,
.service-media-link:focus .service-media {
  filter: brightness(1.05);
}

.service-card img.service-media,
.news-card img.placeholder-media {
  width: 100%;
  height: 188px;
  min-height: 0;
  object-fit: cover;
}

.service-card-body {
  padding: 26px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 26px 26px;
  color: var(--gold);
  font-weight: 800;
}

.card-link::after {
  content: ">";
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: center;
}

.portrait-placeholder {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 23, 28, 0.08), rgba(20, 23, 28, 0.32)),
    url("assets/images/profile-placeholder.svg") center/cover no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.prose {
  color: var(--ink-2);
  font-size: 1.04rem;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}

.prose ul {
  padding-left: 1.1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.page-hero {
  padding: 96px 0 64px;
  background: var(--ink);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 6.4rem);
}

.page-hero p {
  max-width: 760px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.16rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 42px;
  align-items: start;
}
  .side-box a.button {
    color: white;
}

.side-box {
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
}

.side-box h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.side-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-box a {
  color: var(--ink-2);
}

.side-box a:hover {
  color: var(--gold);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-item div {
  padding: 0 20px 20px;
  color: var(--muted);
}

.news-card {
  overflow: hidden;
}

.news-card .placeholder-media {
  min-height: 168px;
}

.news-card-body {
  padding: 24px;
}

.meta {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 26px;
}

.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card strong,
.contact-card a {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.map-placeholder {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.78), rgba(51, 75, 66, 0.62)),
    url("assets/images/map-placeholder.svg") center/cover no-repeat;
  overflow: hidden;
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  min-height: 390px;
  border: 0;
}

.map-panel {
  display: grid;
  gap: 14px;
}

.map-link-card {
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  text-decoration: none;
}

.map-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.05), rgba(20, 23, 28, 0.76));
}

.map-link-card span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.map-open-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer {
  padding: 52px 0 34px;
  background: #101216;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.footer-logo {
  width: 150px;
  margin-bottom: 18px;
  filter: brightness(10);
}

.footer-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  gap: 0;
  justify-items: start;
}

.footer-services h2 {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-services a {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
}

.footer-services > a {
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.35;
}

.footer-services a:hover,
.footer-services h2 a:hover {
  color: var(--gold-2);
}

.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-nav-row a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.footer-nav-row a:hover {
  color: var(--gold-2);
}

.footer-bottom {
  margin-top: 18px;
  font-size: 0.9rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-menu li {
    display: block;
  }

  .primary-menu li:last-child {
    margin-left: 0;
    margin-top: 8px;
    padding-left: 0;
    border-left: 0;
  }

  .primary-menu li:last-child a {
    display: block;
    text-align: center;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 68px 0 48px;
  }

  .hero-grid,
  .section-head,
  .split,
  .service-detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 0;
    padding-top: 18px;
  }

  .values-grid,
  .services-grid,
  .news-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-box {
    position: static;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 134px;
  }

  .language-switcher a {
    min-width: 32px;
    padding: 5px 6px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 17vw, 4.9rem);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  .section {
    padding: 64px 0;
  }

  .values-grid,
  .services-grid,
  .news-grid,
  .contact-grid,
  .footer-services {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    min-height: 360px;
  }
}
