html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background: #ffffff !important;
}

body.page,
body.page-id-40,
.site,
.site-content,
.ast-container,
.entry-content,
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-html,
.elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

:root {
  --vg-red: #e30613;
  --vg-red-dark: #b9050f;
  --vg-black: #111111;
  --vg-dark: #171717;
  --vg-text: #171717;
  --vg-muted: #4f5967;
  --vg-light: #f5f5f5;
  --vg-border: #e8e8e8;
  --vg-white: #ffffff;
  --vg-shadow: 0 18px 45px rgba(17,17,17,.10);
  --vg-max: 1720px;
}

.vg-wrap,
.vg-wrap * {
  box-sizing: border-box;
}

.vg-wrap {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--vg-white);
  color: var(--vg-text);
  line-height: 1.55;
  overflow-x: hidden;
}

.vg-wrap a {
  color: inherit;
  text-decoration: none;
}

.vg-wrap img {
  max-width: 100%;
  display: block;
}

.vg-container {
  width: min(calc(100% - 72px), var(--vg-max));
  margin: 0 auto;
}

.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: .22s ease;
  cursor: pointer;
}

.vg-btn-primary {
  background: var(--vg-red);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(227,6,19,.22);
}

.vg-btn-primary:hover {
  background: var(--vg-black);
  transform: translateY(-1px);
}

.vg-btn-secondary {
  background: #fff;
  color: var(--vg-black) !important;
  border-color: var(--vg-border);
  box-shadow: 0 12px 28px rgba(17,17,17,.06);
}

.vg-btn-secondary:hover {
  color: var(--vg-red) !important;
  border-color: rgba(227,6,19,.25);
}

.vg-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
}

/* HEADER */
.vg-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--vg-border);
  backdrop-filter: blur(12px);
}

.vg-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.vg-brand img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.vg-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.vg-menu a {
  position: relative;
  color: #111;
}

.vg-menu a:hover,
.vg-menu a.is-active {
  color: var(--vg-red);
}

.vg-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 3px;
  background: var(--vg-red);
}

.vg-header-contact {
  display: flex;
  align-items: center;
  gap: 26px;
}

.vg-phone-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.vg-phone-mini .vg-phone-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--vg-red);
  background: #fff1f2;
}

.vg-phone-mini small {
  display: block;
  margin-top: 1px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

/* HERO */
.vg-hero {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}

.vg-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 25%, rgba(255,255,255,.74) 43%, rgba(255,255,255,.14) 62%, rgba(255,255,255,0) 100%),
    url('https://vebergrupa.hr/wp-content/uploads/2026/03/20230404_103950-scaled.jpg');
  background-size: cover;
  background-position: center right;
}

.vg-hero .vg-container {
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
}

.vg-hero-content {
  width: min(760px, 100%);
  padding-bottom: 72px;
}

.vg-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vg-black);
}

.vg-eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--vg-red);
}

.vg-hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.3vw, 86px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 950;
  color: #070707;
}

.vg-red-dot {
  color: var(--vg-red);
}

.vg-hero p {
  max-width: 590px;
  margin: 24px 0 34px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
  color: #344054;
}

.vg-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* FLOATING STATS */
.vg-statbar-wrap {
  position: relative;
  z-index: 5;
  margin-top: -70px;
}

.vg-statbar {
  width: min(94%, 980px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(17,17,17,.06);
  box-shadow: 0 22px 60px rgba(17,17,17,.13);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.vg-stat-item {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px;
  position: relative;
}

.vg-stat-item + .vg-stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  height: 70px;
  width: 1px;
  background: var(--vg-border);
}

.vg-stat-icon {
  color: var(--vg-red);
  margin-bottom: 10px;
}

.vg-stat-item strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.vg-stat-item span {
  display: block;
  margin-top: 4px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

/* SECTION COMMON */
.vg-section {
  padding: 70px 0;
}

.vg-section-head {
  text-align: center;
  margin-bottom: 34px;
}

.vg-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 950;
  color: var(--vg-red);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.vg-label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--vg-red);
}

.vg-section-head h2 {
  margin: 0;
  color: #070707;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 950;
}

.vg-section-head p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #475467;
  font-size: 16px;
  font-weight: 600;
}

/* SERVICES + ABOUT */
.vg-main-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: stretch;
}

.vg-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.vg-service-card {
  background: #fff;
  border: 1px solid var(--vg-border);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(17,17,17,.08);
  transition: .25s ease;
}

.vg-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(17,17,17,.14);
}

.vg-service-photo {
  height: 146px;
  background-size: cover;
  background-position: center;
}

.vg-service-body {
  position: relative;
  padding: 0 18px 22px;
}

.vg-service-icon {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--vg-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(227,6,19,.25);
}

.vg-service-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.vg-service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.vg-service-card li {
  display: flex;
  gap: 8px;
  margin: 4px 0;
}

.vg-service-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--vg-red);
}

.vg-about-card {
  background: #f6f7f8;
  border-radius: 26px 0 0 0;
  padding: 48px 46px;
  box-shadow: inset 1px 0 0 rgba(17,17,17,.04);
}

.vg-about-card .vg-label {
  justify-content: flex-start;
}

.vg-about-card h2 {
  margin: 12px 0 18px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 950;
}

.vg-about-card p {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 600;
}

.vg-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 36px;
}

.vg-feature svg {
  color: var(--vg-red);
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.vg-feature strong {
  display: block;
  color: #151515;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 950;
}

.vg-feature span {
  display: block;
  margin-top: 3px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

/* DARK CTA */
.vg-darkbar {
  background: #111;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(17,17,17,.98), rgba(17,17,17,.92)),
    url('https://vebergrupa.hr/wp-content/uploads/2026/03/20221125_100043-scaled.jpg');
  background-size: cover;
  background-position: center;
}

.vg-darkbar-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.vg-darkbar-brand {
  display: flex;
  align-items: center;
  gap: 36px;
}

.vg-darkbar-brand img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.vg-darkbar-brand::after {
  display: none;
}

.vg-darkbar-title h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 950;
}

.vg-darkbar-title p {
  margin: 4px 0 0;
  color: #d0d5dd;
  font-size: 13px;
  font-weight: 600;
}

.vg-darkbar-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  color: #f2f4f7;
  font-size: 14px;
  font-weight: 800;
}

.vg-darkbar-contact a,
.vg-darkbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

/* WORKS */
.vg-work-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
}

.vg-work-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: vgWorkScroll 42s linear infinite;
  will-change: transform;
}

.vg-work-slider:hover .vg-work-track {
  animation-play-state: paused;
}

.vg-work-item {
  flex: 0 0 auto;
  width: 370px;
  height: 310px;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 18px 45px rgba(17,17,17,.14);
}

.vg-work-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  transition: transform .45s ease;
}

.vg-work-item:hover .vg-work-thumb {
  transform: scale(1.05);
}

.vg-work-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.08));
}

.vg-work-overlay {
  position: relative;
  color: #fff;
  z-index: 2;
}

.vg-work-tag {
  display: inline-block;
  background: var(--vg-red);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.vg-work-overlay h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 19px;
  line-height: 1.16;
  font-weight: 950;
}

.vg-work-overlay p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 700;
}

@keyframes vgWorkScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 11px)); }
}

/* SEO / CONTACT */
.vg-seo-grid,
.vg-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.vg-text-card,
.vg-contact-box {
  border: 1px solid var(--vg-border);
  background: #fff;
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 16px 36px rgba(17,17,17,.06);
}

.vg-text-card h3,
.vg-contact-box h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 950;
  color: #101828;
}

.vg-text-card p,
.vg-contact-box p {
  margin: 0 0 14px;
  color: #475467;
  font-size: 15px;
  font-weight: 600;
}

.vg-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.vg-contact-item {
  padding: 16px 18px;
  border: 1px solid var(--vg-border);
  border-radius: 8px;
  background: #fafafa;
}

.vg-contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
  font-size: 14px;
  font-weight: 950;
}

.vg-contact-item span {
  color: #475467;
  font-size: 15px;
  font-weight: 700;
}

/* WPForms - potamnjeni tekst i uredniji inputi */
.vg-contact-form,
.vg-contact-form * {
  color: #101828 !important;
}

.vg-contact-form .wpforms-container,
.vg-contact-form .wpforms-form {
  margin: 0 !important;
}

.vg-contact-form .wpforms-field,
.vg-contact-form .wpforms-field-container {
  color: #101828 !important;
}

.vg-contact-form label,
.vg-contact-form .wpforms-field-label,
.vg-contact-form .wpforms-field-sublabel,
.vg-contact-form .wpforms-required-label,
.vg-contact-form .wpforms-field-description,
.vg-contact-form .wpforms-field-limit-text {
  color: #344054 !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

.vg-contact-form .wpforms-required-label {
  color: var(--vg-red) !important;
}

.vg-contact-form input[type="text"],
.vg-contact-form input[type="email"],
.vg-contact-form input[type="tel"],
.vg-contact-form input[type="number"],
.vg-contact-form textarea,
.vg-contact-form select {
  width: 100% !important;
  min-height: 54px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #101828 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.vg-contact-form textarea {
  min-height: 150px !important;
}

.vg-contact-form input::placeholder,
.vg-contact-form textarea::placeholder {
  color: #667085 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.vg-contact-form input:focus,
.vg-contact-form textarea:focus,
.vg-contact-form select:focus {
  border-color: var(--vg-red) !important;
  box-shadow: 0 0 0 4px rgba(227,6,19,.10) !important;
  outline: none !important;
}

.vg-contact-form button,
.vg-contact-form button[type="submit"],
.vg-contact-form .wpforms-submit {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--vg-red) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  box-shadow: 0 14px 34px rgba(227,6,19,.22) !important;
}

.vg-contact-form button:hover,
.vg-contact-form button[type="submit"]:hover,
.vg-contact-form .wpforms-submit:hover {
  background: var(--vg-black) !important;
}

.vg-contact-form .wpforms-error,
.vg-contact-form label.wpforms-error {
  color: var(--vg-red) !important;
  font-weight: 800 !important;
}

/* Lightbox */
.vg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition: .25s ease;
}

.vg-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vg-lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0,0,0,.45);
}

.vg-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

.vg-footer {
  padding: 26px 0;
  background: #0f0f0f;
  color: #d0d5dd;
  font-size: 14px;
  font-weight: 600;
}

.vg-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1320px) {
  .vg-menu { gap: 20px; }
  .vg-header-contact .vg-phone-mini { display: none; }
  .vg-services-grid { grid-template-columns: repeat(3, 1fr); }
  .vg-main-grid { grid-template-columns: 1fr; }
  .vg-about-card { border-radius: 18px; }
}

@media (max-width: 980px) {
  .vg-container { width: min(calc(100% - 32px), var(--vg-max)); }
  .vg-topbar { position: relative; }
  .vg-nav { min-height: auto; padding: 16px 0; flex-wrap: wrap; }
  .vg-brand img { width: 210px; }
  .vg-menu { order: 3; width: 100%; overflow-x: auto; padding: 12px 0 2px; }
  .vg-header-contact { display: none; }
  .vg-hero { min-height: 620px; }
  .vg-hero .vg-container { min-height: 620px; }
  .vg-statbar { grid-template-columns: repeat(2, 1fr); }
  .vg-stat-item:nth-child(3)::before { display: none; }
  .vg-services-grid { grid-template-columns: repeat(2, 1fr); }
  .vg-seo-grid, .vg-contact-grid { grid-template-columns: 1fr; }
  .vg-darkbar-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .vg-hero-bg {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
      url('https://vebergrupa.hr/wp-content/uploads/2026/03/20230404_103950-scaled.jpg');
    background-position: center;
  }
  .vg-hero h1 { font-size: 46px; }
  .vg-actions { flex-direction: column; }
  .vg-btn { width: 100%; }
  .vg-statbar { grid-template-columns: 1fr; }
  .vg-stat-item::before { display: none !important; }
  .vg-services-grid { grid-template-columns: 1fr; }
  .vg-features { grid-template-columns: 1fr; }
  .vg-work-item { width: 270px; height: 240px; }
  .vg-darkbar-brand::after { display: none; }
}