/*
 * MAORING — Dark Theme CSS
 * Inspired by view-page-source.com design system
 * Adapted to Maoring brand: #007B8A · #2E3440 · #84C441
 */

/* ═══════════════════════════════════════════════════
   1. GOOGLE FONTS
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════
   2. CSS VARIABLES — DARK THEME
   ═══════════════════════════════════════════════════ */
:root {
  --bg-primary:       #14181f;
  --bg-secondary:     #1c2130;
  --bg-tertiary:      #232a3a;
  --bg-card:          #1a1f2d;
  --bg-code:          #12161e;

  --text-primary:     #f0f4f8;
  --text-secondary:   #8b98b0;
  --text-muted:       #546278;

  --accent:           #00AABD;
  --accent-light:     #00C5DA;
  --accent-dim:       rgba(0, 170, 189, 0.15);
  --accent-glow:      0 0 40px rgba(0, 170, 189, 0.25);
  --accent-glow-lg:   0 0 80px rgba(0, 170, 189, 0.2);
  --green:            #84C441;
  --green-dark:       #6aa334;
  --green-dim:        rgba(132, 196, 65, 0.15);

  --border:           #1e2d40;
  --border-light:     #253347;

  --shadow-sm:        0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:        0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:        0 10px 40px rgba(0,0,0,0.6);
  --shadow-xl:        0 20px 60px rgba(0,0,0,0.7);

  --font-body:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading:     'Oswald', 'Plus Jakarta Sans', sans-serif;

  --radius-sm:        6px;
  --radius:           10px;
  --radius-lg:        16px;
  --radius-full:      9999px;

  --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:  all 0.18s ease;

  --container:        1200px;
  --nav-height:       95px;
}

/* ═══════════════════════════════════════════════════
   3. ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,170,189,0.2); }
  50%       { box-shadow: 0 0 40px rgba(0,170,189,0.4); }
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes refExitAnim {
  from { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
  to   { opacity: 0; transform: scale(0.94) translateY(-12px); filter: brightness(1.3); }
}
@keyframes refEnterAnim {
  from { opacity: 0; transform: scale(0.94) translateY(16px); filter: brightness(0.7); }
  to   { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}
.reference-item.ref-exit {
  animation: refExitAnim 0.38s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  pointer-events: none;
}
.reference-item.ref-enter {
  animation: refEnterAnim 0.5s cubic-bezier(0.2, 0, 0.4, 1) forwards;
}

/* ═══════════════════════════════════════════════════
   4. BASE RESET & GLOBALS
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Force dark bg on all DIVI wrappers */
#page-container,
#content-area,
.et_pb_section,
.et_builder_inner_content,
.entry-content {
  background-color: transparent !important;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--green); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   5. TYPOGRAPHY
   ═══════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.2 !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem) !important; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem) !important; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem) !important; }
h4 { font-size: 1.1rem !important; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
p:last-child { margin-bottom: 0; }

/* Gradient heading text — hero use */
.gradient-text {
  background: linear-gradient(135deg, #00AABD 0%, #00d8f0 50%, #84C441 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* Section tag (small label above heading) */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 170, 189, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* Section header block */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-lg, 2.2rem);
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   6. LAYOUT
   ═══════════════════════════════════════════════════ */
.maoring-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.et_pb_section { padding: 3.2rem 0 !important; }
.et_pb_section.section--sm { padding: 1.8rem 0 !important; }
.et_pb_section.section--xs { padding: 0.9rem 0 !important; }

/* ═══════════════════════════════════════════════════
   7. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */
#main-header,
.et_pb_section_0.et_pb_fullwidth_section {
  background: rgba(10, 14, 23, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: var(--transition) !important;
}

body.maoring-scrolled #main-header {
  background: rgba(10, 14, 23, 0.98) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Logo */
#logo, .logo img { max-height: 52px !important; }

/* Nav vertical position + horizontal center */
#et-top-navigation {
  display: flex !important;
  align-items: center !important;
}
#top-menu-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0 !important;
}

/* Nav links */
#top-menu > li > a,
.et_pb_menu .et-menu > li > a {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--text-secondary) !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: color 0.2s ease !important;
  position: relative;
}

#top-menu > li > a::after { display: none !important; }

/* Remove DIVI's default border-top on all nav items */
#top-menu > li > a,
#top-menu > li > a:hover,
#top-menu > li.current-menu-item > a,
#top-menu > li.current-menu-ancestor > a,
#top-menu > li.current-menu-parent > a,
#top-menu > li.menu-item-has-children > a,
#top-menu > li.menu-item-has-children:hover > a {
  border-top: none !important;
  border-bottom: none !important;
  padding-top: inherit !important;
}

#top-menu > li > a:hover,
#top-menu > li.current-menu-item > a,
#top-menu > li.current-menu-ancestor > a,
#top-menu > li.current-menu-parent > a {
  color: var(--accent-light) !important;
}

/* Dropdown */
#top-menu .sub-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-xl) !important;
  padding: 0.5rem !important;
  min-width: 280px !important;
}
#top-menu .sub-menu li a {
  font-family: var(--font-body) !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text-secondary) !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  transition: var(--transition-fast) !important;
}
#top-menu .sub-menu li a:hover {
  background: var(--accent-dim) !important;
  color: var(--accent-light) !important;
  transform: translateX(4px);
}

/* Mobile nav */
.et_mobile_menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}
.et_mobile_menu li a {
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-bottom: 1px solid var(--border) !important;
}
#et_mobile_nav_menu .mobile_menu_bar::before {
  color: var(--text-primary) !important;
}

/* ═══════════════════════════════════════════════════
   8. HERO
   ═══════════════════════════════════════════════════ */
.section--hero {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--bg-primary) !important;
  padding-top: calc(var(--nav-height) + 2rem) !important;
}

/* Grid dot background */
.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,170,189,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(132,196,65,0.06) 0%, transparent 50%),
    radial-gradient(1px 1px at 50% 50%, rgba(0,170,189,0.15) 0%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.section--hero > .et_pb_row { position: relative; z-index: 1; }

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(0,170,189,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.hero-badge-dot {
  width: 10px; height: 10px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(3rem, 7vw, 5.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  line-height: 1.05 !important;
  animation: fadeInUp 0.6s ease both;
}

.hero__subtitle {
  font-family: var(--font-body) !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.7 !important;
  max-width: 600px;
  margin-top: 0.9rem !important;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  animation: fadeInUp 1s ease 0.2s both;
}

/* ═══════════════════════════════════════════════════
   9. STATS BAR
   ═══════════════════════════════════════════════════ */
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  animation: fadeInUp 1.2s ease 0.3s both;
}

.hero-stats .stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.2rem 0.8rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}
.hero-stats .stat-item:last-child { border-right: none; }
.hero-stats .stat-item:hover { background: var(--accent-dim); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   10. BUTTONS & CTAs
   ═══════════════════════════════════════════════════ */
.et_pb_button,
.et_pb_more_button,
a.et_pb_button {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  padding: 13px 28px !important;
  border-radius: var(--radius) !important;
  transition: var(--transition) !important;
  border-width: 1px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Primary: Green */
.et_pb_button:not(.btn-outline):not(.btn-ghost):not(.btn-teal),
.et_pb_button.btn-primary {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #0a0e17 !important;
  font-weight: 700 !important;
}
.et_pb_button:not(.btn-outline):not(.btn-ghost):not(.btn-teal):hover,
.et_pb_button.btn-primary:hover {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(132,196,65,0.3) !important;
}

/* Teal button */
.et_pb_button.btn-teal {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.et_pb_button.btn-teal:hover {
  background: var(--accent-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,170,189,0.35) !important;
}

/* Outline button */
.et_pb_button.btn-outline {
  background: transparent !important;
  border-color: var(--border-light) !important;
  color: var(--text-secondary) !important;
}
.et_pb_button.btn-outline:hover {
  border-color: var(--accent-light) !important;
  color: var(--accent-light) !important;
  background: var(--accent-dim) !important;
}

/* Ghost: transparent white */
.et_pb_button.btn-ghost {
  background: transparent !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.8) !important;
}
.et_pb_button.btn-ghost:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════
   11. FEATURE CARDS (Usluge)
   ═══════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg), var(--accent-glow);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
  display: block;
}
.feature-icon.svg-icon {
  font-size: inherit;
  line-height: 1;
}
.feature-icon.svg-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--accent-light);
  display: block;
}
.feature-card h3 {
  font-family: var(--font-heading) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.4 !important;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.feature-card a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.feature-card a:hover { gap: 8px; color: var(--green); }
.feature-card a::after { content: '→'; }
.feature-card a.ispu-more::after { content: ''; }

/* ═══════════════════════════════════════════════════
   12. BLOG / REFERENCE CARDS
   ═══════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  color: inherit;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
}
.blog-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.blog-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(15%);
}
.blog-card:hover .blog-image img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.blog-content { padding: 1rem; }
.blog-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(0,170,189,0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.blog-content h3 {
  font-family: var(--font-heading) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--text-primary) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.35 !important;
}
.blog-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   13. TESTIMONIALS
   ═══════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--accent-dim);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.testimonial-card blockquote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonial-info h3 {
  font-family: var(--font-heading) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-primary) !important;
  margin-bottom: 0.1rem !important;
}
.testimonial-info span {
  font-size: 0.75rem;
  color: var(--accent-light);
}

/* ═══════════════════════════════════════════════════
   14. SECTIONS
   ═══════════════════════════════════════════════════ */
.et_pb_section {
  background: var(--bg-primary) !important;
}
.section--alt {
  background: var(--bg-secondary) !important;
}
.section--card {
  background: var(--bg-tertiary) !important;
}

/* Section divider glow line */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   15. ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  pointer-events: none;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem;
}
.about-highlight__bar {
  width: 4px;
  min-height: 80px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  flex-shrink: 0;
}
.about-highlight__quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin: 0;
  border: none;
  padding: 0;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
.about-value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  transition: var(--transition-fast);
}
.about-value:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.about-value h4 {
  font-family: var(--font-heading) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--accent-light) !important;
  margin-bottom: 0.35rem !important;
}
.about-value p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   16. SERVICE DETAIL PAGE
   ═══════════════════════════════════════════════════ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 860px) { .service-detail-grid { grid-template-columns: 1fr; } }

.service-detail-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image column — stretch to full grid cell height */
.service-detail-grid > div:last-child {
  display: flex;
  flex-direction: column;
}

.service-detail-grid img {
  border-radius: var(--radius-lg);
  width: 100%;
  flex: 1;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

/* Info box (replaces maoring-highlight) */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem;
  margin: 1rem 0;
}
.info-box h3, .info-box h4 {
  font-family: var(--font-heading) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--accent-light) !important;
  margin-bottom: 0.75rem !important;
}
.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-box ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.info-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════
   17. REFERENCE / PORTFOLIO GRID
   ═══════════════════════════════════════════════════ */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .reference-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .reference-grid { grid-template-columns: 1fr; } }
.reference-grid--home { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 860px) { .reference-grid--home { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px) { .reference-grid--home { grid-template-columns: 1fr !important; } }

.reference-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  cursor: pointer;
}
.reference-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%) brightness(0.85);
}
.reference-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.reference-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,23,0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}
.reference-item:hover .reference-overlay { opacity: 1; }
.reference-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
}
.reference-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

/* Filter bar — overridden by ref-search block below */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 18px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ═══════════════════════════════════════════════════
   18. CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.8rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,170,189,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}
.contact-value a { color: var(--text-primary); }
.contact-value a:hover { color: var(--accent-light); }

/* DIVI Contact Form overrides */
.et_pb_contact_form .input,
.et_pb_contact_form textarea {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  transition: border-color 0.2s ease !important;
}
.et_pb_contact_form .input:focus,
.et_pb_contact_form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-dim) !important;
  outline: none !important;
}
.et_pb_contact_form label {
  color: var(--text-secondary) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}
.et_contact_bottom_container .et_pb_contact_submit {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  background: var(--green) !important;
  color: #0a0e17 !important;
  border: none !important;
  padding: 13px 32px !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
}
.et_contact_bottom_container .et_pb_contact_submit:hover {
  background: var(--green-dark) !important;
  transform: translateY(-2px) !important;
}

/* ═══════════════════════════════════════════════════
   19. PAGE TITLE (inner pages)
   ═══════════════════════════════════════════════════ */
.page-title-section {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 5rem 0 2.5rem !important;
  position: relative;
  overflow: hidden;
}
.page-title-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,170,189,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(132,196,65,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.et_pb_title_container h1 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
}

/* ═══════════════════════════════════════════════════
   20. FOOTER
   ═══════════════════════════════════════════════════ */
#main-footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border) !important;
}
#footer-widgets {
  padding: 2.8rem 0 2rem !important;
}
#footer-widgets h4,
#footer-widgets .widgettitle {
  font-family: var(--font-heading) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--border) !important;
}
#footer-widgets a {
  color: var(--text-secondary) !important;
  font-size: 0.87rem !important;
  transition: color 0.2s ease !important;
}
#footer-widgets a:hover { color: var(--accent-light) !important; }
#footer-widgets ul li {
  padding: 5px 0 !important;
  border: none !important;
  font-size: 0.87rem !important;
  color: var(--text-secondary) !important;
}

#footer-bottom {
  background: rgba(0,0,0,0.2) !important;
  padding: 1.25rem 0 !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  text-align: center !important;
  border-top: 1px solid var(--border) !important;
}

/* ═══════════════════════════════════════════════════
   21. CTA SECTION
   ═══════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, rgba(0,170,189,0.12) 0%, rgba(132,196,65,0.06) 100%) !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  text-align: center;
}
.cta-section h2 { color: var(--text-primary) !important; margin-bottom: 1rem !important; }
.cta-section p { margin-bottom: 1.4rem !important; }

/* ═══════════════════════════════════════════════════
   22. SCROLL REVEAL
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }
.reveal.delay-7 { transition-delay: 0.7s; }

/* ═══════════════════════════════════════════════════
   23. MISC / UTILITY
   ═══════════════════════════════════════════════════ */
/* Glow badge */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(132,196,65,0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* DIVI module overrides */
.et_pb_blurb_container h4 {
  font-family: var(--font-heading) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-primary) !important;
}
.et_pb_blurb .et_pb_blurb_description {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
}

/* Post categories/tags */
.post-categories a, .post-tags a {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(0,170,189,0.25);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   24. RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .et_pb_section { padding: 4rem 0 !important; }
}
@media (max-width: 768px) {
  .et_pb_section { padding: 3rem 0 !important; }
  .section--hero { min-height: 80vh !important; }
  .hero-stats .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
}
@media (max-width: 480px) {
  .hero-stats .stat-item { min-width: 100%; }
  h1 { font-size: 2rem !important; }
}

/* ═══════════════════════════════════════════════════
   LOGO FIX — white logo on dark header
   ═══════════════════════════════════════════════════ */
#logo,
#logo img,
.et_pb_image_wrap img[src*="maoring-logo"],
.logo img,
header img[src*="logo"],
#main-header .logo img {
  max-height: 56px !important;
  width: auto !important;
  filter: brightness(1) !important;
  opacity: 1 !important;
}

/* If DIVI doesn't load the logo, show site name styled */
#et-top-navigation .et_menu_container .logo {
  font-family: var(--font-heading) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
}

/* Ensure page background is always dark */
body,
#page-container,
.et_pb_section {
  background-color: var(--bg-primary) !important;
}

/* Page title inner pages padding fix */
.et_pb_section.page-title-section + .et_pb_section {
  padding-top: 5rem !important;
}

/* ═══════════════════════════════════════════════════
   LAYOUT FIX — Full width, no sidebar, fixed nav offset
   ═══════════════════════════════════════════════════ */

/* Fixed nav offset — push all page content below nav */
#page-container,
.et_pb_section:first-of-type {
  padding-top: 0 !important;
}

/* First section on non-homepage gets nav padding */
body:not(.home) #page-container > .et_pb_section:first-child,
body:not(.home) .page-title-section {
  padding-top: calc(var(--nav-height) + 2rem) !important;
}

/* Remove ALL sidebars and content dividers DIVI adds */
#sidebar,
.et_pb_widget_area,
#left-area,
#sidebar-wrap,
.et_pb_gutters3 #sidebar,
#et-boc .et-l aside,
.et_pb_section + aside {
  display: none !important;
  width: 0 !important;
}

/* Force full width on content area — no sidebar gutter */
#content-area,
#main-content,
.et_pb_pagebuilder_layout + #et-boc,
body.page #page-container #content-area,
#et-boc .et-l {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* DIVI full-width page class overrides */
.et_full_width_page #content-area,
.et_full_width_page #main-content,
.et_full_width_page .container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove DIVI's white background on page wrappers */
#page-container,
#main-content,
#content-area,
.et_pb_section,
.et-boc,
#et-boc,
.et-l,
.entry-content,
article.page,
article.post,
.post-content,
#et_builder_outer_content {
  background: transparent !important;
  background-color: transparent !important;
}

/* White box that appears next to content — kill it */
.et_pb_row {
  background: transparent !important;
}

/* DIVI inner container max-width */
.et_pb_row.et_pb_row_4col,
.et_pb_row {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Hide header search icon */
#et_search_icon,
.et_search_form_container,
.et-search-form {
  display: none !important;
}

/* Filter bar — filter buttons left, search icon right, same row */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.filter-bar__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

/* Reference search — identično kao filter-btn */
.ref-search-input {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 18px;
  background: transparent !important;
  color: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: text;
  outline: none;
  box-shadow: none !important;
  transition: var(--transition-fast);
  width: 120px;
  flex-shrink: 0;
  -webkit-appearance: none;
}
.ref-search-input:-webkit-autofill,
.ref-search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-secondary) inset !important;
  -webkit-text-fill-color: rgba(255,255,255,0.75) !important;
}
.ref-search-input::placeholder { color: rgba(255,255,255,0.35); }
.ref-search-input:hover,
.ref-search-input:focus {
  background: var(--accent-dim) !important;
  border-color: var(--accent);
  color: var(--accent-light);
}
.ref-no-results {
  display: none;
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 0;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════
   ISPU MODULE MODAL
   ═══════════════════════════════════════════════════ */
.ispu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.ispu-modal.is-open { display: flex; }
.ispu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.ispu-modal__box {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.ispu-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.ispu-modal__close:hover { background: var(--accent-dim); }

/* Gallery */
.ispu-gallery {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.ispu-gallery.has-images { display: block; }
.ispu-gallery:not(.has-images) .ispu-gallery__prev,
.ispu-gallery:not(.has-images) .ispu-gallery__next,
.ispu-gallery:not(.has-images) .ispu-gallery__dots { display: none; }
.ispu-gallery__main {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ispu-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  cursor: zoom-in;
}
.ispu-gallery__img.active { display: block; }
.ispu-gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.2);
}
.ispu-gallery.has-images .ispu-gallery__placeholder { display: none; }
.ispu-gallery__prev,
.ispu-gallery__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.ispu-gallery__prev { left: 1rem; }
.ispu-gallery__next { right: 1rem; }
.ispu-gallery__prev:hover,
.ispu-gallery__next:hover { background: var(--accent); }
.ispu-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem;
}
.ispu-gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s;
}
.ispu-gallery__dot.active { background: var(--accent); }

/* Content */
.ispu-modal__content {
  padding: 1.75rem 2rem 2rem;
}
.ispu-modal__title {
  font-family: var(--font-heading) !important;
  font-size: 1.3rem !important;
  color: #fff !important;
  margin-bottom: 1.25rem !important;
}
.ispu-modal__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; }
.ispu-modal__desc h4 { color: var(--accent-light); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.25rem 0 0.6rem; }
.ispu-modal__desc ul { padding-left: 1.2rem; }
.ispu-modal__desc li { margin-bottom: 0.45rem; }
.ispu-modal__desc p { margin-bottom: 0.75rem; }

/* "Saznaj više" link on card */
.ispu-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  pointer-events: none;
}

/* Lightbox */
.ispu-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.ispu-lightbox.is-open { display: flex; }
.ispu-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.ispu-lightbox__img {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  z-index: 1;
}
.ispu-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ispu-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  font-size: 0;
}
.ispu-lightbox__prev { left: 1.5rem; }
.ispu-lightbox__next { right: 1.5rem; }
.ispu-lightbox__nav:hover {
  background: rgba(0,170,189,0.3);
  border-color: var(--accent);
}
.ispu-lightbox__nav::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2.5px solid rgba(255,255,255,0.8);
  border-right: 2.5px solid rgba(255,255,255,0.8);
}
.ispu-lightbox__prev::before { transform: rotate(-135deg) translate(-1px, 1px); }
.ispu-lightbox__next::before { transform: rotate(45deg) translate(-1px, 1px); }
.ispu-lightbox__nav:hover::before { border-color: var(--accent-light); }

/* Ensure home page hero is truly full height */
body.home .section--hero {
  margin-top: 0 !important;
  padding-top: calc(var(--nav-height) + 3rem) !important;
}

/* ═══════════════════════════════════════════════════
   SECTION TAGS — hide button-style labels, keep flow clean
   ═══════════════════════════════════════════════════ */
.section-tag {
  display: none !important;
}

/* Replace section-tag siblings with a subtle accent line on the heading */
.maoring-section-header h2::before,
.section--services h2::before,
.section--about h2::before,
.section--reference h2::before,
.section--contact h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════
   HERO VIDEO BACKGROUND
   ═══════════════════════════════════════════════════ */
.section--hero {
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* Ensure hero content sits above video */
.section--hero > .et_pb_row,
.section--hero > div:not(.hero-video-bg) {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════
   FOOTER — Elegant dark footer
   ═══════════════════════════════════════════════════ */

/* Hide DIVI's default footer widget area */
#footer-widgets,
.et_pb_widget_area_footer {
  display: none !important;
}

#main-footer.maoring-footer {
  background: #10141c;
  border-top: 1px solid rgba(0, 123, 138, 0.25);
  padding: 2rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.maoring-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.maoring-footer__logo {
  text-align: center;
  margin-bottom: 1.4rem;
}

.maoring-footer__logo img {
  height: 50px;
  width: auto;
  opacity: 0.9;
}

.maoring-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .maoring-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .maoring-footer__grid {
    grid-template-columns: 1fr;
  }
}

.maoring-footer__col p {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.maoring-footer__col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.maoring-footer__col a:hover {
  color: var(--c-accent);
}

.maoring-footer__label {
  display: block;
  font-weight: 700;
  color: var(--c-green);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.maoring-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.maoring-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.maoring-footer__copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

.maoring-footer__policy:hover {
  border-color: var(--c-accent) !important;
  color: var(--c-accent) !important;
}

.maoring-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.maoring-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.2s;
}
.maoring-footer__social a:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

/* ═══════════════════════════════════════════════════
   REFERENCE PAGE — cards + modal
   ═══════════════════════════════════════════════════ */

/* Hero */
.ref-page-hero { padding-top: calc(var(--nav-height) + 4rem) !important; padding-bottom: 3rem !important; }
.ref-page-hero__title { font-family: var(--font-heading) !important; font-size: clamp(2rem,5vw,3.5rem) !important; color: #fff !important; margin-bottom: 0.75rem !important; }
.ref-page-hero__sub { color: rgba(255,255,255,0.55); font-size: 1rem; max-width: 600px; }

/* Filter bar */
.ref-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.ref-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.ref-filter-btn:hover,
.ref-filter-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* Grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .ref-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .ref-grid { grid-template-columns: 1fr; } }

/* ═══ REF-CARD (CPT dinamičke kartice) ═══ */
.ref-card {
  background: #0f1724;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.ref-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,170,189,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.ref-card__thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.ref-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ref-card:hover .ref-card__thumb img { transform: scale(1.05); }
.ref-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-card__overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
}
.ref-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.ref-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ref-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}
.ref-card__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.ref-card__more {
  font-size: 0.78rem;
  color: var(--c-accent, #00AABD);
  font-weight: 600;
  margin-top: auto;
  transition: color 0.2s;
}
.ref-card:hover .ref-card__more { color: var(--c-green, #84C441); }

/* Card — full image overlay style */
.reference-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.reference-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

/* Gradient overlay — always visible at bottom, stronger on hover */
.reference-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,15,0.92) 0%, rgba(5,8,15,0.4) 50%, rgba(5,8,15,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.25rem 1.1rem;
  transition: background 0.3s;
}
.reference-item:hover .reference-overlay {
  background: linear-gradient(to top, rgba(5,8,15,0.97) 0%, rgba(5,8,15,0.65) 60%, rgba(5,8,15,0.2) 100%);
}

.reference-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.reference-title {
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 0 0.4rem !important;
  padding: 0 !important;
}
.reference-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0 0 0.6rem !important;
  padding: 0 !important;
  display: none;
}
.reference-item:hover .reference-desc { display: block; }
.reference-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  display: block;
}
.reference-item:hover .reference-more {
  opacity: 1;
  transform: translateY(0);
}

/* ── MODAL ── */
.ref-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.ref-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.ref-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,15,0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.ref-modal__box {
  position: relative;
  background: #1a1f2d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.ref-modal.is-open .ref-modal__box {
  transform: scale(1) translateY(0);
}
.ref-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 2;
}
.ref-modal__close:hover { background: rgba(255,255,255,0.15); }
.ref-modal__img-wrap { position: relative; height: 260px; overflow: hidden; border-radius: 16px 16px 0 0; }
.ref-modal__img { width: 100%; height: 100%; object-fit: cover; display: none; }
.ref-modal__img.has-img { display: block; }
.ref-modal__img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ref-modal__content { padding: 1.75rem 2rem 2rem; }
.ref-modal__cat {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.ref-modal__title {
  font-family: var(--font-heading) !important;
  font-size: 1.4rem !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  padding: 0 !important;
}
/* Structured project fields */
.ref-modal__fields {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ref-modal__field {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ref-modal__field dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.2rem;
}
.ref-modal__field dd {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.ref-modal__desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 !important;
}
.ref-modal__no-desc {
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 0.85rem;
}

/* Section teal CTA */
.section--teal { background: var(--c-accent) !important; }
.section--teal h2 { color: #fff !important; }

/* old class compat */
.maoring-filter-btn { display: none; }
.maoring-reference-grid { display: none; }

/* ═══════════════════════════════════════════════════
   GDPR COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════ */
#maoring-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: calc(100% - 3rem);
  max-width: 780px;
  background: #0f1520;
  border: 1px solid rgba(0,170,189,0.25);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(-50%) translateY(20px);
}
#maoring-cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#maoring-cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}
.cookie-banner__text strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.cookie-banner__text a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--accent-light); }
.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-decline:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}
@media (max-width: 560px) {
  #maoring-cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════
   ISPU PAGE GALLERY
   ═══════════════════════════════════════════════════ */
.ispu-gallery-section { padding-top: 0 !important; }
.ispu-pgal-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ispu-pgal-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ispu-pgal-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.ispu-pgal-slide {
  flex: 0 0 100%;
  width: 100%;
  line-height: 0;
}
.ispu-pgal-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.ispu-pgal-slide img:hover { transform: scale(1.01); }
.ispu-pgal-arrow {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  line-height: 0;
  position: relative;
}
.ispu-pgal-arrow::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(255,255,255,0.55);
  border-right: 2px solid rgba(255,255,255,0.55);
  transition: border-color 0.22s;
}
.ispu-pgal-prev::before {
  transform: rotate(-135deg) translate(-1px, 1px);
}
.ispu-pgal-next::before {
  transform: rotate(45deg) translate(-1px, 1px);
}
.ispu-pgal-arrow:hover::before {
  border-color: var(--accent-light);
}
.ispu-pgal-arrow:hover {
  background: rgba(0,170,189,0.18);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: scale(1.08);
}
.ispu-pgal-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.ispu-pgal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.ispu-pgal-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}
.ispu-pgal-dot:hover:not(.active) { background: rgba(255,255,255,0.4); }

/* 3D vizualizacija gallery items — same look as reference-item but no modal */
.viz3d-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  aspect-ratio: 4/3;
}
.viz3d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.viz3d-item:hover img { transform: scale(1.05); }

/* Hero image zoom */
.ispu-hero-zoom {
  cursor: zoom-in !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}
.ispu-hero-zoom:hover {
  transform: scale(1.02) !important;
  filter: brightness(1.08) !important;
}

/* Lightbox for page gallery */
.ispu-pgal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.ispu-pgal-lightbox.is-open { opacity: 1; pointer-events: all; }
.ispu-pgal-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: zoom-out;
}
.ispu-pgal-lightbox__img {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}
.ispu-pgal-lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ispu-pgal-lightbox__close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 640px) {
  .ispu-pgal-slide img { height: 220px; }
  .ispu-pgal-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
}
