/* ===========================
   Ordinacija Dr Lukic - Styles
   =========================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #4A90B8;
  --color-primary-dark: #3A7399;
  --color-primary-light: #E8F4FA;
  --color-accent: #5CB88A;
  --color-accent-dark: #4A9E75;
  --color-warm: #F4A261;
  --color-text: #2D3748;
  --color-text-secondary: #5A6578;
  --color-bg: #F7F9FC;
  --color-card: #FFFFFF;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1140px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.3; }
h1 a, h2 a, h3 a, h4 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--color-primary-dark); }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }

/* --- Container --- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* --- Header --- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container { position: relative; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-header .logo img {
  height: 50px;
  width: auto;
  filter: brightness(0.3) sepia(1) hue-rotate(160deg) saturate(3);
}

.nav-list { display: flex; gap: .25rem; }
.nav-list a {
  display: block;
  padding: .5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.nav-list a:hover,
.nav-list .active a {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Floating Call Button (mobile) --- */
.call-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.call-fab svg { width: 26px; height: 26px; fill: #fff; }

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-grid h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.footer-grid p, .footer-grid a {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-bottom p { font-size: .8rem; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
}
.footer-link:hover { color: var(--color-primary-light); }
.footer-link svg { width: 20px; height: 20px; fill: currentColor; }

/* --- Hero Slideshow --- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero img.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(74,144,184,.55), rgba(58,115,153,.35));
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.hero-overlay h2 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  margin-bottom: .25rem;
}
.hero-overlay p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

@media (min-width: 768px) {
  .hero-overlay h2 { font-size: 2.75rem; }
  .hero-overlay p { font-size: 1.25rem; }
}
@media (max-width: 767px) {
  .hero-overlay h2 { font-size: 1.5rem; }
  .hero-overlay p { font-size: .9rem; }
}

/* --- Index About Sections --- */
.about-section { margin-bottom: 1.25rem; }
.about-section h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.about-section p { color: var(--color-text-secondary); }
.cta-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.cta-btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.cta-btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.cta-btn--outline {
  background: none;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cta-btn--outline:hover { background: var(--color-primary); color: #fff; }
.cta-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Index Grid --- */
.index-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 1rem;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.card h2 { margin-bottom: .75rem; }
.card p { color: var(--color-text-secondary); margin-bottom: .5rem; }

.sidebar-card h2 { font-size: 1.125rem; }
.sidebar-card + .sidebar-card { margin-top: 1.5rem; }

.partners { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; }
.partners img { height: 40px; width: auto; opacity: .7; transition: opacity .2s; }
.partners img:hover { opacity: 1; }

/* --- Team Cards --- */
.team-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}
.team-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.team-card-header h2 { color: #fff; font-size: 1.125rem; margin-top: 1rem; }
.team-card-header p { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: .25rem; }
.team-card-header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  margin: 0 auto;
}
.team-card-body { padding: 1.5rem; }
.team-card-body p { color: var(--color-text-secondary); }

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.service-item {
  text-align: center;
  padding: 1.25rem .75rem;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.service-item:hover { transform: translateY(-3px); }
.service-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.service-icon img { width: 44px; height: 44px; filter: brightness(0) invert(1); }
.service-item h3 { font-size: 1rem; color: var(--color-text); }

.services-description {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.services-description h2 { margin-bottom: .75rem; }
.services-description p { color: var(--color-text-secondary); }

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 1rem;
}
.pricing-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pricing-card-header {
  background: var(--color-warm);
  color: #fff;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: var(--color-primary-light); }
.pricing-row .service-name { font-weight: 500; }
.pricing-row .service-price { font-weight: 600; color: var(--color-primary); white-space: nowrap; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74,144,184,.25);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: .5rem;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.contact-card {
  text-align: center;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem;
}
.contact-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}
.contact-icon img { width: 50px; height: 50px; filter: brightness(0) invert(1); }
.contact-card h3 { margin-bottom: .5rem; color: var(--color-text); }
.contact-card p { font-size: .875rem; color: var(--color-text-secondary); line-height: 1.5; }
.contact-card a { white-space: nowrap; }

.map-container {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-container iframe { display: block; width: 100%; height: 350px; border: none; }
.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  gap: .75rem;
}
.map-placeholder p {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* --- Page Title --- */
.page-title {
  padding: 2rem 0 .5rem;
}
.page-title h1 {
  color: var(--color-primary);
}

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--color-card);
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  padding: 1rem 1.5rem;
}
.cookie-banner.show { display: block; }
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: .85rem;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 200px;
}
.cookie-banner button {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  background: var(--color-primary);
  color: #fff;
  transition: background .2s;
  white-space: nowrap;
}
.cookie-banner button:hover { background: var(--color-primary-dark); }

/* --- Responsive --- */
@media (min-width: 768px) {
  .index-grid { grid-template-columns: 2fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.25rem; }
}

@media (max-width: 767px) {
  .hamburger { display: block; }
  .site-header .container {
    flex-wrap: nowrap;
    height: auto;
    min-height: 60px;
  }
  .site-header .logo { min-width: 0; }
  .site-header .logo img { height: 40px; max-width: calc(100vw - 100px); }
  .site-header .hamburger { flex-shrink: 0; margin-left: auto; }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
  }
  .nav-list {
    display: none;
    flex-direction: column;
    padding: .5rem 0;
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .75rem 1.5rem; }
  .hero { aspect-ratio: 16/9; }
  .call-fab { display: flex; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
