/* ============================================================
   VAIDVA THEME — Dark Industrial Design System
   ============================================================ */

:root {
  --v-bg: #111111;
  --v-dark: #1a1a1a;
  --v-secondary: #2a2a2a;
  --v-accent: #E8B100;
  --v-accent-hover: #FFD000;
  --v-text: #ffffff;
  --v-text-dim: rgba(255,255,255,.7);
  --v-text-muted: rgba(255,255,255,.4);
  --v-light: #f5f5f0;
  --v-border: rgba(255,255,255,.08);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--v-bg);
  color: var(--v-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* Remove WP default content width restrictions */
.wp-site-blocks > .wp-block-post-content { max-width: none; }
.entry-content > * { max-width: none !important; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(17,17,17,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v-border);
  transition: background .3s;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--v-text);
  text-decoration: none;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo .logo-accent { color: var(--v-accent); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav a {
  color: var(--v-text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 16px;
  transition: color .25s;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--v-accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.header-nav a:hover { color: var(--v-text); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-phone {
  color: var(--v-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .25s;
}
.header-phone:hover { color: var(--v-accent-hover); }

/* ---- HERO SECTION ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--v-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17,17,17,.65) 0%,
    rgba(17,17,17,.4) 40%,
    rgba(17,17,17,.7) 70%,
    rgba(17,17,17,.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--v-accent);
  border: 1px solid rgba(232,177,0,.3);
  padding: 8px 20px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--v-text);
  margin: 0 0 24px;
}
.hero-title .accent { color: var(--v-accent); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--v-text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-indicator span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--v-text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--v-accent), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--v-accent);
  color: #111111;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s;
}
.btn-primary:hover {
  background: var(--v-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232,177,0,.25);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--v-text);
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  border: 1px solid var(--v-border);
  cursor: pointer;
  transition: all .3s;
}
.btn-outline:hover {
  border-color: var(--v-accent);
  color: var(--v-accent);
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--v-dark);
  border-top: 1px solid var(--v-border);
  border-bottom: 1px solid var(--v-border);
  padding: 56px 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--v-border);
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--v-accent);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v-text-muted);
  margin-top: 8px;
}

/* ---- SECTION FOUNDATIONS ---- */
.section-dark {
  background: var(--v-bg);
  padding: clamp(64px, 8vw, 120px) 24px;
}
.section-darker {
  background: var(--v-dark);
  padding: clamp(64px, 8vw, 120px) 24px;
}
.section-light {
  background: var(--v-light);
  padding: clamp(64px, 8vw, 120px) 24px;
  color: #1a1a1a;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 64px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--v-accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.section-light .section-title { color: #1a1a1a; }
.section-desc {
  font-size: 1.1rem;
  color: var(--v-text-dim);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}
.section-light .section-desc { color: rgba(26,26,26,.6); }

/* ---- SERVICES (Full-width alternating) ---- */
.service-block {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--v-border);
}
.service-block:last-child { border-bottom: none; }
.service-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
}
.service-block:hover .service-bg { transform: scale(1.05); }
.service-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.6) 50%, rgba(17,17,17,.3) 100%);
}
.service-block.reverse .service-bg::after {
  background: linear-gradient(270deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.6) 50%, rgba(17,17,17,.3) 100%);
}
.service-text {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 80px);
  max-width: 550px;
}
.service-block.reverse .service-text {
  margin-left: auto;
}
.service-num {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(232,177,0,.15);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: -16px;
}
.service-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--v-text);
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.service-desc {
  color: var(--v-text-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 24px;
  font-weight: 300;
}
.service-link {
  color: var(--v-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .3s;
}
.service-link:hover { gap: 14px; }
.service-link::after { content: '\2192'; }

/* ---- PROJECTS GRID ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,17,17,.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity .4s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--v-text);
  margin: 0 0 4px;
}
.project-overlay p {
  color: var(--v-text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- CTA SECTION ---- */
.cta-section {
  position: relative;
  padding: clamp(80px, 10vw, 160px) 24px;
  text-align: center;
  overflow: hidden;
}
.cta-section .hero-bg::after {
  background: linear-gradient(
    180deg,
    rgba(17,17,17,.85) 0%,
    rgba(17,17,17,.7) 100%
  );
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--v-text);
}
.cta-desc {
  color: var(--v-text-dim);
  font-size: 1.1rem;
  margin: 0 0 36px;
  font-weight: 300;
}

/* ---- ABOUT SECTION ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  position: relative;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--v-accent);
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.value-item {
  padding: 24px;
  background: var(--v-secondary);
  border-left: 3px solid var(--v-accent);
}
.value-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--v-text);
}
.value-item p {
  font-size: 0.875rem;
  color: var(--v-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--v-secondary);
  border: 1px solid var(--v-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--v-accent);
  font-size: 1.2rem;
}
.contact-info-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v-text-muted);
  margin: 0 0 4px;
}
.contact-info-item p {
  font-size: 1rem;
  color: var(--v-text);
  margin: 0;
  line-height: 1.6;
}
.contact-info-item a {
  color: var(--v-accent);
  text-decoration: none;
  transition: color .25s;
}
.contact-info-item a:hover { color: var(--v-accent-hover); }
.contact-map {
  background: var(--v-secondary);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v-text-muted);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  filter: grayscale(.8) brightness(.7) contrast(1.2);
}

/* ---- FOOTER ---- */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--v-border);
  padding: 80px 24px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p {
  color: var(--v-text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0 0;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--v-text);
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--v-text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color .25s;
}
.footer-col a:hover { color: var(--v-accent); }
.footer-bottom {
  border-top: 1px solid var(--v-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--v-text-muted);
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: var(--v-text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color .25s;
}
.footer-legal a:hover { color: var(--v-text-dim); }

/* ---- ANIMATIONS ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: .1s; }
.animate-on-scroll.delay-2 { transition-delay: .2s; }
.animate-on-scroll.delay-3 { transition-delay: .3s; }
.animate-on-scroll.delay-4 { transition-delay: .4s; }

/* Stagger children */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: .3s; }

/* ---- REQUISITES TABLE (dark) ---- */
.req-table { width: 100%; border-collapse: collapse; }
.req-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--v-border);
  font-size: 0.9rem;
  vertical-align: top;
}
.req-table td:first-child {
  color: var(--v-text-muted);
  width: 40%;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- EQUIPMENT GRID ---- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.equipment-card {
  background: var(--v-secondary);
  border: 1px solid var(--v-border);
  padding: 32px;
  transition: border-color .3s, transform .3s;
}
.equipment-card:hover {
  border-color: var(--v-accent);
  transform: translateY(-4px);
}
.equipment-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--v-text);
  margin: 0 0 8px;
}
.equipment-card p {
  color: var(--v-text-dim);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

/* ---- WASTE TYPES TABLE ---- */
.waste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.waste-item {
  background: var(--v-secondary);
  border-left: 3px solid var(--v-accent);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--v-text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .equipment-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .service-block { min-height: 400px; }
  /* hamburger handles nav visibility */
  .hero-actions { flex-direction: column; align-items: center; }
}

/* Remove WP editor artifacts */
.wp-block-post-content > .wp-block-group { max-width: none !important; }

/* Logo responsive */
.logo-mobile { display: none; }
@media (max-width: 768px) {
  .logo-desktop { display: none; }
  .logo-mobile { display: block; }
}

/* Force logo size */
.header-logo img {
  height: 120px !important;
  width: auto !important;
  max-height: none !important;
}
@media (max-width: 768px) {
  .header-logo img {
    height: 60px !important;
  }
}

/* Fix header height for larger logo */
.site-header {
  padding: 8px 0 !important;
}
.header-inner {
  min-height: 100px;
  align-items: center;
}

/* ---- HAMBURGER MENU ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--v-text);
  margin: 5px 0;
  transition: all .3s;
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .header-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17,17,17,.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1000;
  }
  .header-nav.nav-open {
    display: flex;
  }
  .header-nav a {
    font-size: 1.2rem;
    padding: 16px 24px;
  }
  .header-phone { display: none; }
  .header-logo img {
    height: 60px !important;
  }
}

/* Contact cards responsive */
@media (max-width: 768px) {
  .section-inner > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  .section-inner > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Fix contact card links - no yellow underline */
.kontaktai-cards a {
  text-decoration: none !important;
  color: inherit !important;
}
.kontaktai-cards a:hover {
  color: inherit !important;
}
.kontaktai-cards .card-phone,
.kontaktai-cards .card-email {
  color: #fff !important;
  text-decoration: none !important;
}

/* Hero backgrounds - WordPress strips url() from inline styles */
.hero-bg-kontaktai { background: linear-gradient(rgba(17,17,17,.75),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/kontaktai-bg.jpg') center/cover !important; }
.hero-bg-home { background: linear-gradient(rgba(17,17,17,.65),rgba(17,17,17,.8)),url('/wp-content/uploads/demo/hero-demolition.jpg') center/cover !important; }
.hero-bg-paslaugos { background: linear-gradient(rgba(17,17,17,.75),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/svc-demolition.jpg') center/cover !important; }
.hero-bg-projektai { background: linear-gradient(rgba(17,17,17,.7),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/proj-industrial.jpg') center/cover !important; }
.hero-bg-apie { background: linear-gradient(rgba(17,17,17,.75),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/about-team.jpg') center/cover !important; }
.hero-bg-cta { background: linear-gradient(rgba(17,17,17,.85),rgba(17,17,17,.9)),url('/wp-content/uploads/demo/cta-bg.jpg') center/cover !important; }

/* Service block backgrounds */
.svc-bg-1 { background: linear-gradient(rgba(17,17,17,.7),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/svc-demolition.jpg') center/cover !important; }
.svc-bg-2 { background: linear-gradient(rgba(17,17,17,.7),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/svc-earthworks.jpg') center/cover !important; }
.svc-bg-3 { background: linear-gradient(rgba(17,17,17,.7),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/svc-recycling.jpg') center/cover !important; }
.svc-bg-4 { background: linear-gradient(rgba(17,17,17,.7),rgba(17,17,17,.85)),url('/wp-content/uploads/demo/svc-aggregate.jpg') center/cover !important; }

/* Project card backgrounds */
.proj-bg-1 { background: url('/wp-content/uploads/demo/proj-industrial.jpg') center/cover !important; }
.proj-bg-2 { background: url('/wp-content/uploads/demo/proj-earthwork.jpg') center/cover !important; }
.proj-bg-3 { background: url('/wp-content/uploads/demo/proj-road.jpg') center/cover !important; }
.proj-bg-4 { background: url('/wp-content/uploads/demo/proj-residential.jpg') center/cover !important; }
.proj-bg-5 { background: url('/wp-content/uploads/demo/proj-foundation.jpg') center/cover !important; }
.proj-bg-6 { background: url('/wp-content/uploads/demo/proj-recycling.jpg') center/cover !important; }

/* ---- PROJECT GRID: uniform card sizes ---- */
.projektai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.projektai-grid .wp-block-image {
  margin: 0 !important;
}
.projektai-grid .wp-block-image img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}
.projektai-grid figure {
  margin: 0 !important;
}
.projektai-grid figcaption {
  color: rgba(255,255,255,.7) !important;
  font-size: 13px !important;
  padding: 12px 0 !important;
}

/* Service cards on paslaugos - uniform height */
.paslaugos-grid .wp-block-cover {
  min-height: 320px !important;
}

/* Uniform service cards on home */
.home-services .wp-block-cover {
  min-height: 300px !important;
}

@media (max-width: 768px) {
  .projektai-grid {
    grid-template-columns: 1fr;
  }
  .projektai-grid .wp-block-image img {
    height: 220px !important;
  }
}

/* ---- CERTIFICATES / ATESTATAI ---- */
.atestatai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.atestatai-grid a {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #222;
  transition: all .4s;
  background: #1a1a1a;
}
.atestatai-grid a:hover {
  border-color: #E8B100;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232,177,0,.15);
}
.atestatai-grid a img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 16px;
  background: #fff;
}
.atestatai-grid a::after {
  content: '🔍';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transition: opacity .3s;
}
.atestatai-grid a:hover::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .atestatai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .atestatai-grid { grid-template-columns: 1fr; }
  .atestatai-grid a img { height: 220px; }
}

/* ---- ANIMATE ON SCROLL (restore) ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* Counter animation style */
.counter-num {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #E8B100;
  line-height: 1;
}

/* Force uniform project image heights */
.wp-block-columns .wp-block-column .wp-block-image img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
}
@media (max-width: 768px) {
  .wp-block-columns .wp-block-column .wp-block-image img {
    height: 220px !important;
  }
}

/* Stats bar mobile fix */
@media (max-width: 600px) {
  .counter-num {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
    background: #333;
  }
  .stats-grid > div {
    background: #1a1a1a;
    border-right: none !important;
    padding: 20px 12px !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
.wp-site-blocks, .wp-block-cover, .wp-block-group, .wp-block-columns {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

@media (max-width: 782px) {
  .wp-block-columns { flex-direction: column !important; }
  .wp-block-column { flex-basis: 100% !important; width: 100% !important; }
  .wp-block-cover { min-height: 60vh !important; }
  img { max-width: 100% !important; }
  .wp-block-image img { height: 220px !important; object-fit: cover !important; }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.2rem !important; }
  #footerContent { grid-template-columns: 1fr !important; gap: 32px !important; }
  .header-nav { display: none; }
  .header-phone { display: none !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid > div { border-right: none !important; border-bottom: 1px solid #333; padding: 16px !important; }
  .counter-num { font-size: 2rem !important; }
  .wp-block-cover__inner-container { padding: 24px 16px !important; }
  .wp-block-buttons { flex-direction: column !important; align-items: stretch !important; }
  .wp-block-button { width: 100% !important; }
  .wp-block-button__link { width: 100% !important; text-align: center !important; box-sizing: border-box !important; }
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
}

@media (min-width: 783px) and (max-width: 1024px) {
  #footerContent { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all .3s;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.98);
  z-index: 999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu nav a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color .2s;
}
.mobile-menu nav a:hover { color: #E8B100; }

@media (max-width: 782px) {
  .hamburger-btn { display: block !important; }
  .header-nav { display: none !important; }
}
@media (min-width: 783px) {
  .hamburger-btn { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* Fix hamburger button - remove any default styling */
.hamburger-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 10px !important;
  margin: 0 !important;
}
/* Ensure button has no white background on iOS Safari */
button.hamburger-btn {
  background-color: transparent !important;
}

/* Kill white square on hamburger - iOS fix */
.hamburger-btn,
.hamburger-btn * {
  background: transparent !important;
  background-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
}
#hamburgerBtn {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
#hamburgerBtn span {
  width: 24px;
  height: 2px;
  background: #fff !important;
  display: block;
  transition: all .3s;
  margin: 0 !important;
}

/* FORCE hide hamburger on desktop */
@media (min-width: 783px) {
  .hamburger-btn, #hamburgerBtn, div.hamburger-btn {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}
