/* ================================================
   DENTAL CENTAR MAŠULOVIĆ
   Design closely following kyoso.com
   Pure black · Inter · clean · no gimmicks
   ================================================ */

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

:root {
  --black:    #f0f1f3;
  --black-2:  #e2e4e8;
  --black-3:  #d8dade;
  --black-4:  #e8eaed;
  --border:   rgba(0,0,0,0.18);
  --border-2: rgba(0,0,0,0.32);
  --white:    #0e3036;
  --w70:      rgba(14,48,54,0.88);
  --w45:      rgba(14,48,54,0.60);
  --w20:      rgba(14,48,54,0.22);
  --w08:      rgba(14,48,54,0.07);
  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  /* Animation easing — Apple-style spring */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(135deg, #f5f6f8 0%, #eceef2 40%, #e4e7ec 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ================================================
   SCROLL REVEAL SYSTEM
   All .reveal elements start invisible and slide
   up 20px — IntersectionObserver triggers .visible
   ================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside containers */
.services-scroll .reveal:nth-child(1) { transition-delay: 0.00s; }
.services-scroll .reveal:nth-child(2) { transition-delay: 0.06s; }
.services-scroll .reveal:nth-child(3) { transition-delay: 0.12s; }
.services-scroll .reveal:nth-child(4) { transition-delay: 0.18s; }
.services-scroll .reveal:nth-child(5) { transition-delay: 0.24s; }
.services-scroll .reveal:nth-child(6) { transition-delay: 0.30s; }

.pillars .reveal:nth-child(1) { transition-delay: 0.00s; }
.pillars .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars .reveal:nth-child(3) { transition-delay: 0.16s; }

.team-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.team-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.team-grid .reveal:nth-child(3) { transition-delay: 0.20s; }
.team-grid .reveal:nth-child(4) { transition-delay: 0.30s; }
.team-grid .reveal:nth-child(5) { transition-delay: 0.40s; }
.team-grid .reveal:nth-child(6) { transition-delay: 0.50s; }

.features-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.28s; }

/* ================================================
   NAVIGATION
   ================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.nav.stuck {
  background: rgba(240,241,243,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}

.nav-inner-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  padding: 0 40px;
}

.nav-logo a {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: opacity 0.2s;
}
.nav-logo a:hover { color: #3aa2b2; opacity: 1; }

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

.nav-center a {
  font-size: 14px;
  color: var(--white);
  transition: color 0.2s var(--ease-out);
}
.nav-center a:hover { color: #3aa2b2; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: #3ab286;
  color: #ffffff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn-book:hover { opacity: 0.88; transform: scale(0.98); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 190;
  background: rgba(240,241,243,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  padding: 13px 0;
  font-size: 15px;
  color: var(--w70);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-menu .btn-book { justify-content: center; }

/* ================================================
   HERO
   ================================================ */

.hero {
  padding-top: 160px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 980px;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 20px;
  white-space: nowrap;
}

.hero-sub {
  font-size: 17px;
  color: var(--white);
  max-width: 740px;
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #3ab286;
  color: #ffffff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  white-space: nowrap;
}
.cta-primary:hover { opacity: 0.88; transform: scale(0.98); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--w70);
  transition: color 0.2s var(--ease-out);
}
.cta-secondary:hover { color: var(--white); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border: 1px solid #3ab286;
  border-radius: 100px;
  font-size: 14px;
  color: #3ab286;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.cta-ghost:hover {
  color: #ffffff;
  background: #3ab286;
  border-color: #3ab286;
  transform: scale(0.98);
}

/* Text-only CTA — no border, becomes green pill on hover */
.cta-text {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.cta-text:hover {
  color: #ffffff;
  background: #3ab286;
  border-color: #3ab286;
  transform: scale(0.98);
}

/* Main hero CTA — slightly larger */
.cta-hero-main {
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 600;
}

/* ================================================
   HERO MOCKUP — three photos with hover overlay
   ================================================ */

.hero-mockup-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 52px auto 0;
  padding: 0 24px;
}

.hero-mockup {
  border: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 400px;
}

.mockup-img {
  overflow: hidden;
  position: relative;
  background: #e8eaed;
  cursor: default;
}
.mockup-img + .mockup-img { border-left: 1px solid var(--border); }

.mockup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.82) saturate(0.65);
  transition:
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: auto;
}

/* Hover overlay text */
.mockup-hover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  background: rgba(14,48,54,0.55);
  backdrop-filter: blur(0px);
  transition:
    opacity 0.5s var(--ease-out),
    backdrop-filter 0.5s var(--ease-out);
}

.mockup-img:hover img {
  transform: scale(1.04) translateZ(0);
  filter: brightness(0.5) saturate(0.35) blur(2px);
}
.mockup-img:hover .mockup-hover-label {
  opacity: 1;
  backdrop-filter: blur(4px);
  color: #ffffff;
}

.mockup-label-overlay {
  position: absolute;
  bottom: 20px; right: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
  background: rgba(14,48,54,0.72);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(58,178,134,0.4);
}

/* ================================================
   SHARED SECTION LAYOUT
   ================================================ */

.section {
  padding: 100px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-head { margin-bottom: 56px; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3aa2b2;
  margin-bottom: 14px;
}

.section-head h2,
.contact-info h2,
.pillars-intro h2,
.bottom-cta-inner h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

/* ================================================
   SERVICES LIST
   ================================================ */

.services-scroll {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease-out);
}
.service-item:last-child { border-bottom: 1px solid var(--border); }
.service-item:hover { padding-left: 6px; }

.service-num {
  font-size: 12px;
  color: #3aa2b2;
  padding-top: 3px;
  font-weight: 500;
}

.service-item h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.service-item:hover h3 { color: var(--white); }

.service-item p {
  font-size: 14px;
  color: var(--white);
  line-height: 1.65;
}

/* ================================================
   THREE PILLARS
   ================================================ */

.pillars-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #e4e6ea 0%, #dcdfe5 50%, #d5d8de 100%);
  padding: 100px 40px;
}

.pillars-section > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.pillars-intro {
  margin-bottom: 56px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
}

.pillar {
  background: #f0f2f5;
  padding: 36px 32px;
  transition: background 0.3s var(--ease-out);
  border-right: 1px solid #d4d7dc;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: #e8eaee; }

.pillar-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3aa2b2;
  margin-bottom: 14px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 14px;
  color: var(--white);
  line-height: 1.65;
}

/* ================================================
   TEAM
   ================================================ */

.team-section {
  border-top: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.team-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease-out),
    transform 0.35s var(--ease-spring);
}
.team-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}

.team-img {
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
  background: #d6d4d1;
  display: block;
  width: 100%;
}
.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.88) saturate(0.75);
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.team-card:hover .team-img img {
  transform: scale(1.03);
  filter: brightness(0.92) saturate(0.8);
}

.team-img--veselin img {
  transform: scale(1.12);
  transform-origin: top center;
}
.team-card:hover .team-img--veselin img {
  transform: scale(1.15);
}

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 20px;
  background: rgba(10, 18, 30, 0.45);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.team-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.team-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6dd6e4;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.team-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ================================================
   FEATURES GRID
   ================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  background: linear-gradient(135deg, #e8eaee 0%, #dde0e6 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition:
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--white);
  line-height: 1.65;
}

.feature-card-wide {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  overflow: hidden;
}

.feature-card-inner { padding: 28px; }

.feature-card-img { overflow: hidden; }
.feature-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.65);
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.feature-card-wide:hover .feature-card-img img {
  transform: scale(1.03) translateZ(0);
  filter: brightness(0.7) saturate(0.6);
}

/* ================================================
   BOTTOM CTA
   ================================================ */

.bottom-cta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 40px;
  text-align: center;
}

.bottom-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.bottom-cta-inner h2 {
  white-space: nowrap;
}

/* ================================================
   CONTACT
   ================================================ */

.contact-section {
  padding: 100px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h2 { margin: 14px 0 40px; }

.contact-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 1px solid var(--border); }

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3aa2b2;
}

.contact-row span:not(.contact-label),
.contact-row a {
  font-size: 15px;
  color: var(--w70);
  transition: color 0.2s;
}
.contact-row a:hover { color: var(--white); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.contact-photo {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.82) saturate(0.65);
  transition: transform 0.7s var(--ease-out), filter 0.6s var(--ease-out);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.contact-photo:hover img {
  transform: scale(1.03) translateZ(0);
  filter: brightness(0.88) saturate(0.75);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  color: var(--w45);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(14,48,54,0.15);
  border-radius: var(--r);
  padding: 12px 14px;
  color: #0e3036;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(14,48,54,0.28); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #3aa2b2; }
.form-group select option { background: #ffffff; color: #0e3036; }

.cta-full { width: 100%; justify-content: center; border-radius: var(--r); background: #3ab286; color: #ffffff; }

/* Textarea that fills remaining contact form height */
.textarea-grow {
  flex: 1;
  min-height: 80px;
  resize: none;
}

.form-group:has(.textarea-grow) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group:has(.textarea-grow) .textarea-grow {
  flex: 1;
}

/* ================================================
   FOOTER
   ================================================ */

.footer { border-top: 1px solid var(--border); }

.footer-top {
  display: flex;
  gap: 80px;
  padding: 72px 40px;
  max-width: 1320px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.footer-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 0.7; }

.footer-brand p {
  font-size: 13px;
  color: var(--white);
  line-height: 1.7;
}

.footer-cols { flex: 2; display: flex; gap: 80px; justify-content: flex-end; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

.footer-col strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3aa2b2;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--white);
  transition: color 0.2s;
}
.footer-col a:hover { color: #3ab286; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 0 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-legal {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-legal p {
  font-size: 12px;
  color: var(--white);
  line-height: 1.7;
  width: 100%;
  text-align: center;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-bottom-row span {
  font-size: 13px;
  color: var(--white);
}

.footer-bottom-row a {
  font-size: 13px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer-bottom-row a:hover {
  color: #3ab286;
}

.fivecape-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.fivecape-link:hover {
  color: #3ab286;
}



/* ================================================
   PAGE LOAD ANIMATIONS — hero only
   Everything else uses scroll reveal
   ================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.1s;
}

.hero-mockup-wrap {
  /* override reveal — handled by load animation instead */
}

.mockup-img {
  opacity: 0;
  transform: translateY(16px);
  /* JS sets animation once page loads */
}

.mockup-img.loaded {
  animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.mockup-img.loaded:nth-child(1) { animation-delay: 0.70s; }
.mockup-img.loaded:nth-child(2) { animation-delay: 0.82s; }
.mockup-img.loaded:nth-child(3) { animation-delay: 0.94s; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 900px) {
  .nav-inner-wrap { max-width: 100%; padding: 0 24px; }
  .nav-center, .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .hero h1 { font-size: clamp(28px, 8vw, 48px); white-space: normal; }

  .hero-mockup { grid-template-columns: 1fr 1fr; height: 280px; }
  .mockup-img-last { display: none; }
  @media (max-width: 560px) { .hero-mockup-wrap { display: none; } }

  .section { padding: 72px 24px; }

  .service-item { grid-template-columns: 40px 1fr; }
  .service-item p { grid-column: 2; }
  .service-item:hover { padding-left: 0; }

  .pillars-section { padding: 72px 24px; }
  .pillars { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: 1; grid-template-columns: 1fr; }
  .feature-card-img { height: 200px; }

  .contact-section { padding: 72px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-photo { min-height: 280px; }


  .footer-top { flex-direction: column; gap: 40px; padding: 48px 24px; }
  .footer-cols { gap: 40px; }
  .footer-bottom { padding: 20px 24px; }
  .footer-top { flex-wrap: wrap; gap: 40px; justify-content: flex-start; padding: 48px 24px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bottom-cta-inner h2 { white-space: normal; font-size: clamp(26px, 6vw, 40px); }
  .bottom-cta { padding: 80px 24px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(26px, 9vw, 38px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { justify-content: center; }
  .hero-mockup-wrap { display: none; }
  .hero { padding-bottom: 72px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ================================================
   LOGO — inline SVG nav & footer
   ================================================ */

.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-svg {
  display: block;
  line-height: 0;
}

.nav-logo-svg svg {
  height: 46px;
  width: auto;
  display: block;
}

/* Footer logo — large, matching the height of the link columns */
.footer-brand-logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-logo-svg {
  display: block;
  line-height: 0;
}

.footer-logo-svg svg {
  height: 140px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .nav-logo-svg svg {
    height: 36px;
  }
  .footer-logo-svg svg {
    height: 80px;
  }
}

/* ================================================
   FOOTER — logo left, cols pushed to the right
   ================================================ */

.footer-top-split {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between !important;
  gap: 40px;
}

.footer-top-split .footer-brand-logo {
  flex-shrink: 0;
  margin-bottom: 0;
}

/* cols group sits on the far right */
.footer-top-split .footer-cols {
  display: flex;
  gap: 64px;
  margin-left: auto;
}

.footer-top-split .footer-col {
  min-width: 160px;
}

@media (max-width: 900px) {
  .footer-top-split {
    flex-direction: column;
    gap: 32px;
  }
  .footer-top-split .footer-cols {
    margin-left: 0;
    gap: 40px;
  }
}

/* ================================================
   CTA POPUP — iPhone-style spring animation
   ================================================ */

.cta-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 20, 28, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  will-change: backdrop-filter, background;
  transition:
    background      0.55s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-popup-overlay.active {
  background: rgba(10, 20, 28, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

/* Card always centered via fixed position */
.cta-popup-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9001;
  background: #1a2b30;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 32px 28px 20px;
  width: min(92vw, 460px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* Start: scaled down and offset to button origin */
  transform: translate(calc(-50% + var(--popup-dx, 0px)), calc(-50% + var(--popup-dy, 0px))) scale(var(--popup-scale, 0.1));
  transform-origin: center center;
  transition:
    transform 0.62s cubic-bezier(0.34, 1.22, 0.64, 1),
    opacity   0.22s ease,
    box-shadow 0.4s ease;
}

.cta-popup-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cta-popup-card.closing {
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(-50% + var(--popup-dx, 0px)), calc(-50% + var(--popup-dy, 0px))) scale(var(--popup-scale, 0.1));
  transition:
    transform 0.44s cubic-bezier(0.36, 0, 0.66, -0.08),
    opacity   0.28s ease 0.05s,
    box-shadow 0.3s ease;
}


.cta-popup-header {
  margin-bottom: 24px;
}

.cta-popup-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3aa2b2;
  margin-bottom: 8px;
}

.cta-popup-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.1;
}

.cta-popup-sub {
  font-size: 14px;
  color: var(--w45);
  line-height: 1.5;
}

.cta-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cta-popup-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(14,48,54,0.12);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
}

.cta-popup-btn:active {
  transform: scale(0.97);
}

.cta-popup-call {
  background: linear-gradient(135deg, #286474 0%, #1e4f5c 100%);
  border-color: transparent;
}

.cta-popup-call:hover {
  background: linear-gradient(135deg, #2e7082 0%, #245e6c 100%);
}

.cta-popup-whatsapp {
  background: linear-gradient(135deg, #25c065 0%, #1aaa54 100%);
  border-color: transparent;
}

.cta-popup-whatsapp:hover {
  background: linear-gradient(135deg, #2dd470 0%, #1fbe5e 100%);
}

.cta-popup-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  flex-shrink: 0;
}

.cta-popup-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-popup-btn-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cta-popup-btn-text small {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.cta-popup-btn-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta-popup-btn:hover .cta-popup-btn-arrow {
  transform: translateX(3px);
}

.cta-popup-close {
  display: block;
  width: 100%;
  padding: 14px;
  background: rgba(14,48,54,0.06);
  border: 1px solid rgba(14,48,54,0.1);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--w70);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-popup-close:hover {
  background: rgba(14,48,54,0.1);
  color: var(--white);
}

.cta-popup-close:active {
  transform: scale(0.97);
}

/* ================================================
   INTRO SCREEN — logo reveal on first load
   ================================================ */

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Fades the whole thing out at the end */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Blurred background — covers the page content */
.intro-blur-bg {
  position: absolute;
  inset: 0;
  background: rgba(245, 242, 238, 0.55);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  will-change: opacity;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The logo itself */
.intro-logo {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.88);
  will-change: opacity, transform;
  transition:
    opacity   0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-logo.visible {
  opacity: 1;
  transform: scale(1);
}

.intro-logo.fade-out {
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity   0.5s cubic-bezier(0.4, 0, 1, 1),
    transform 0.5s cubic-bezier(0.4, 0, 1, 1);
}

.intro-logo svg {
  width: min(72vw, 360px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

/* ================================================
   PILLARS SECTION — subtle background image
   ================================================ */
.pillars-bg {
  position: relative;
  overflow: hidden;
}

.pillars-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('ordinacija_1.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.09;
  filter: saturate(1);
  z-index: 0;
}

.pillars-bg .pillars-intro,
.pillars-bg .pillars {
  position: relative;
  z-index: 1;
}

/* ================================================
   SERVICE POPUP — large frosted glass card
   ================================================ */
.mockup-img[data-service-popup] {
  cursor: pointer;
}

/* Frosted glass card — lighter than surroundings, barely there */
#servicePopupCard.cta-popup-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(1.8) brightness(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.8) brightness(1.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: min(88vw, 740px);
  padding: 56px 60px 52px;
}

#servicePopupCard.cta-popup-card.open {
  width: min(88vw, 740px);
}

#servicePopupCard.cta-popup-card.closing {
  width: min(88vw, 740px);
}

/* Darker, heavier blur on the overlay so card reads clearly */
#servicePopupOverlay.active {
  background: rgba(8, 18, 22, 0.65);
  backdrop-filter: blur(20px) saturate(0.6);
  -webkit-backdrop-filter: blur(20px) saturate(0.6);
}

.service-popup-header {
  margin-bottom: 28px;
}

/* Eyebrow */
#servicePopupCard .cta-popup-eyebrow {
  opacity: 0;
  transform: translateY(5px);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
#servicePopupCard.open .cta-popup-eyebrow {
  opacity: 1;
  transform: translateY(0);
}
#servicePopupCard.closing .cta-popup-eyebrow {
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* BIG title — display size */
#servicePopupCard .cta-popup-title {
  opacity: 0;
  transform: translateY(16px);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0;
  transition: opacity 0.5s ease 0.32s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
}
#servicePopupCard.open .cta-popup-title {
  opacity: 1;
  transform: translateY(0);
}
#servicePopupCard.closing .cta-popup-title {
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* Thin divider line between title and body */
#servicePopupCard .cta-popup-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  margin-top: 20px;
}

/* Body text */
.service-popup-body {
  opacity: 0;
  transform: translateY(10px);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-top: 20px;
  transition: opacity 0.45s ease 0.5s, transform 0.45s ease 0.5s;
}
#servicePopupCard.open .service-popup-body {
  opacity: 1;
  transform: translateY(0);
}
#servicePopupCard.closing .service-popup-body {
  opacity: 0;
  transition: opacity 0.08s ease;
}

/* CTA button */
.service-popup-cta {
  opacity: 0;
  transform: translateY(8px);
  margin-top: 36px;
  margin-bottom: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  transition: opacity 0.4s ease 0.65s, transform 0.4s ease 0.65s, background 0.2s ease;
}
.service-popup-cta:hover {
  background: rgba(255,255,255,0.2);
}
.service-popup-cta .cta-popup-btn-text strong {
  color: #ffffff;
}
.service-popup-cta .cta-popup-btn-text small {
  color: rgba(255,255,255,0.55);
}
.service-popup-cta .cta-popup-btn-icon {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}
#servicePopupCard.open .service-popup-cta {
  opacity: 1;
  transform: translateY(0);
}
#servicePopupCard.closing .service-popup-cta {
  opacity: 0;
  transition: opacity 0.06s ease;
}

/* Close button */
#servicePopupCard .cta-popup-close {
  margin-top: 12px;
  opacity: 0;
  background: transparent;
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  transition: opacity 0.35s ease 0.72s, background 0.2s ease, color 0.2s ease;
}
#servicePopupCard.open .cta-popup-close {
  opacity: 1;
}
#servicePopupCard.closing .cta-popup-close {
  opacity: 0;
  transition: opacity 0.06s ease;
}
#servicePopupCard .cta-popup-close:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
}

@media (max-width: 700px) {
  #servicePopupCard.cta-popup-card,
  #servicePopupCard.cta-popup-card.open,
  #servicePopupCard.cta-popup-card.closing {
    width: 92vw;
    padding: 36px 28px 28px;
  }
}

/* ================================================
   SERVICE POPUP — inline contact buttons
   ================================================ */
.service-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.65s, transform 0.4s ease 0.65s;
}

#servicePopupCard.open .service-contact-actions {
  opacity: 1;
  transform: translateY(0);
}

#servicePopupCard.closing .service-contact-actions {
  opacity: 0;
  transition: opacity 0.06s ease;
}

.service-contact-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-contact-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.service-contact-btn .cta-popup-btn-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.service-contact-btn .cta-popup-btn-text strong {
  color: #ffffff;
}

.service-contact-btn .cta-popup-btn-text small {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 700px) {
  .service-contact-actions {
    margin-top: 24px;
  }
}

/* ================================================
   SERVICE POPUP — two-slide carousel
   ================================================ */

/* Clip the card so slides don't overflow */
#servicePopupCard.cta-popup-card {
  overflow: hidden;
  contain: paint;
}
.service-slides-wrap {
  display: flex;
  width: 200%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.service-slides-wrap.on-slide-2 {
  transform: translateX(calc(-50% - 340px));
}

.service-slide {
  width: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 0;
}

.service-slide-contact {
  padding-left: 200px;
  margin-left: 200px;
  visibility: hidden;
  transition: visibility 0s 0.01s;
}

.service-slides-wrap.on-slide-2 .service-slide-contact {
  visibility: visible;
  transition: visibility 0s;
}

/* "Pozovite nas" single button on slide 1 */
.service-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease 0.65s,
    transform 0.4s ease 0.65s,
    background 0.2s ease;
}

#servicePopupCard.open .service-next-btn {
  opacity: 1;
  transform: translateY(0);
}

#servicePopupCard.closing .service-next-btn {
  opacity: 0;
  transition: opacity 0.06s ease;
}

.service-next-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Contact actions on slide 2 */
.service-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.service-contact-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-contact-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.service-contact-btn .cta-popup-btn-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.service-contact-btn .cta-popup-btn-text strong { color: #ffffff; }
.service-contact-btn .cta-popup-btn-text small  { color: rgba(255,255,255,0.55); }
